//Script to produce Gallery of images 3 wide
re=/@/
currentSurname=""
for(i=0;i<noImages;i++){
	cell=dI[i].split(re)
	if(cell[0]!=currentSurname){
		if(i>0){document.write("</tr>")}
		document.write("<tr><td colspan='3'><br><h2>" + cell[0] + "</h2></td></tr><tr>")
		colCount=0
		currentSurname=cell[0]
//document.writeln(currentSurname)
		}
	colCount++
	if(colCount>4){
		document.writeln("</tr></tr>")
		colCount=1
		}
	tempHeight=(cell[3]/cell[4])*160
    tempWidth=160
	document.write("<td class='g'><table><tr><td class='g'><a href=\"javascript:nW(\'../../i/" + cell[1] + ".jpg\'," + cell[4] + "," + cell[3] + ")\">")
	document.write("<img border='0' src=\'../../i/" + cell[1] + "tn_.jpg" + "\' width=\'" + tempWidth + "\' height=\'" + tempHeight + "\' alt=\'" + cell[5] + "\'></a>")
	document.write("</td></tr><tr><td class='g'>" + cell[5] + "</td></tr></table></td>")	
	}
	
				
					