max=24
rowmax=8
text0="This beam was coated with 200 years&acute; worth of paint."
text1="Layers of paint were painstakingly removed to reveal the historic timbers."
text2="Olde World Plaster applied to give the illusion of a &quot;found&quot; tile lady in the wall."
text3="Custom olde-world plaster wall finish."
text4="Baseboard radiation painted and rusting."
text5="Baseboard radiation stripped, cleaned, and woodgrained to blend with the wall."
text6="Corner cabinet with decades of paint layers."
text7="Ages-old wooden corner cabinet after careful paint removal and wood treatment."
text8="Ceiling was raised and revealed chimney was unfinished block. Plywood was applied and plastered and..."
text9="Where does the real brick end and the faux brick begin?"
text10="The sunset sky was invited inside to grace this vaulted celing."
text11="Repair resulted in two-tone chimney"
text12="Chimney treated so the new matches and blends with the old."
text13="Antique blacksmith&acute;s cabinet was made over into a baby changing table."
text14="Baby changing table. Antique hardware stripped and given authentic patina; original wood stripped, then all wood distressed to historically sensitive appearance."
text15="Ages-old fireplace. Wooden mantel and marble lintel coated with years of paint."
text16="Restored fireplace. Wood painstakingly stripped of paint layers; lintel cleaned; surrounding timberframe beams freed of 200 years of paint."
text17="Found pillars frame wall which will receive faux brick plaster finish."
text18="Found pillars restored; &quot;found&quot; faux brick plaster wall."
text19="Which beam is original to the house and which came from an old barn?"
text20="Exterior paint carefully chosen and conscientiously applied."
text21="Exterior paint and trim."
text22="This &quot;hardwood&quot floor is really plywood!"
text23="&quot;Now it&acute;s back to the way it used to be!&quot;"

cell=0
row=0
nickedrow=eval(rowmax-4)
document.write("<div align='center'><table border='0' cellpadding='0' cellspacing='1' valign='top'><tr>")
document.write("<td rowspan='4' colspan='4' background='#990000' align='center' valign='middle'>")
document.write("<iFrame name='gallview' height='300' width='300' src='gallery/0.jpg' align='center' scrolling='no' marginheight='0' marginwidth='0'>")
document.write("</iframe></td>")
for (i = 0; i < max; i++) {
	function pop(info){
		gallery=window.open("gallery/"+info+".jpg","MR:::Gallery","width=200,height=200")
	}
	text=eval("text"+i)
	document.write("<td height='75' width='75'><div align='center'>")
	document.write("<a href='gallery/"+i+".jpg' target='gallview' onClick='pop("+i+");return false'>")
	document.write("<img src='gallery/thumb/" + i + ".jpg'  class='gallery' alt='"+text+"'></a></div></td>")
	cell++
	if (row < 4){
		if (cell == nickedrow) {
			document.write("</tr><tr>")
			cell = 0
			row++
		}
	}
	if (cell == rowmax) {
		document.write("</tr><tr>")
		cell = 0
		row++
	}
}

document.write("</tr></table></div>")