/*JAVASCRIPT FOR GRAY.HTML*/

cb_catalog=new Array(); i=-1;
cb_catalog[++i]="CODE	CATEGORY	TITLE	THEME	TYPE	PRICE	SIZE	COLOR	t-width	t-height	f-width	f-height	PRICE RANGE";
cb_catalog[++i]="gray								194	30			";
cb_catalog[++i]="0344A	None	Regrowth 1 (A), 2007	Origins^	mixed  media	$295 	7 x 7	gray^orange	117	120	440	450";
cb_catalog[++i]="0104	Unintended Series	Unintended Consequences #9, 2001/2003	Uncategorized	monoprint	$395 	7 x 11	gray^red	185	120	728	450";
cb_catalog[++i]="0114	None	Free Association 2, 2004	Uncategorized	monoprint	$395 	14 x 7	gray^white	61	120	221	432";
cb_catalog[++i]="0396	Evolution Series	Evolutionary Leap 7, 2007	Origins^	mixed  media	$595 	17 x 12	gray^yellow	120	120	327	450";
cb_catalog[++i]="0397	Evolution Series	Evolutionary Leap 8, 2007	Origins^	mixed  media	$595 	17 x 12	gray^yellow	123	120	335	450";

			



for (i=0;i<cb_catalog.length;++i) {  //THIS SPLITS THE TWO-DIMENSIONAL ARRAY AT THE TABS
				cb_catalog[i]=cb_catalog[i].split("\t");
}
	function make_thumb_table() { //THIS CREATES A NESTED TABLE WITHIN THE 2ND TABLE, 1ST ROW, 1ST COLUMN FOR THE IMAGES GALLERY
							thumbs='<table class="gallery_table" cellspacing="5px">';
							cellcount=0;
							for (i=1;i<cb_catalog.length;++i) {
								if (cellcount%3==0) {
									thumbs+='<tr>';
								}
 
								thumbs+='<td class="image_placement"><a href="javascript:open_Enlargement_Window('+i+');"><img class="image_border" alt="'+cb_catalog[i][2]+'"height="'+cb_catalog[i][9]+'" width="'+cb_catalog[i][8]+'" src="cb_thumb_images/'+cb_catalog[i][0]+'.jpg" id="cell_'+i+'"  style="position: relative; left: 0px; top: 0px" /></a></td>'; //MLN REMOVED THE STYLE PORTION OF THIS STATEMENT, BUT I PUT IT BACK IN SO THE ANIMATION WOULD WORK
								++cellcount;
							if (cellcount%3==0) {	
								thumbs+='</tr>';	
							}
							}
							thumbs+='</table>';
							document.getElementById('gallery').innerHTML=thumbs;
							 
							
								
						}
						
						function open_Enlargement_Window(i) {
						    OpenWin = window.open("cb_gray_enlarge.html?row="+i, "enlargements", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=825px,height=700px, left=10px");	 
							OpenWin.focus();
							}





