// Copyright © 2005 Robert K Campbell, All Rights Reserved. 
var imgpath= rootpath+'thumb/'
imgtot =  imgary.length -1 //3 // starts at 0
imgwidth = 200;
imgheight = 150;
imghspace = 4;
imgvspace = 4;
imgcols = 2; // starts at 0
cellwidth = 210;
cellheight = 170;

r = 0;
p=0;
while(p<=imgtot){ 
		document.write('<tr>');
		for (r=0;r<=imgcols;r++){
				if(p<=imgtot){

				
//			document.write('<a href="' + rootpath  + 'medium/' + imgary[p] + '" target="_blank"><img align="center" border="0" src="' + imgpath + imgary[p] + '" hspace="' + imghspace + '" vspace="' + imgvspace + '"></a>');
				
				document.write('<td width="'+ cellwidth +'" height="'+ cellheight +'" align="center" valign="top"><div id="img'+ p + '" align="left" style="position:relative;width=28;height=28;filter:alpha(opacity=85);-moz-opacity:.85"; onmouseover="brite(' + p + ')"><a href="' + rootpath  + 'medium/' + imgary[p] + '" target="_blank"><img align="center" border="0" src="' + imgpath + imgary[p] + '" hspace="' + imghspace + '" vspace="' + imgvspace + '"></a></div></td>');
			
//					 document.write('<a href="' + rootpath  + 'medium/' + imgary[p] + '" target="_blank"><img align="center" border="0" src="' + imgpath + imgary[p] + '" hspace="' + imghspace + '" vspace="' + imgvspace'"></a>');

					 
					 
//			document.write('<a href="' + rootpath  + 'medium/' + imgary[p] + '" target="_blank"><img border="0" src="' + imgpath + imgary[p] + '" hspace="' + imghspace + '" vspace="' + imgvspace + '"></a>');

//				 document.write('<td width="'+ cellwidth +'" height="'+ cellheight +'" align="center" valign="top"><div id="img'+ p + '" align="left" style="position:relative;width=28;height=28;filter:alpha(opacity=85);-moz-opacity:.85"; onmouseover="brite(' + p + ')"><img align="left" border="0" src="' + imgpath + imgary[p] + ' hspace="' + imghspace + '" vspace="' + imgvspace + '" width="' + imgwidth + '" height="' + imgheight + '"></div></td>');

				}
				else{
					document.write('<td></td>');
				}
				p++
  }				
		document.write('</tr>');
}


