/*JAVASCRIPT FOR THEMES_DAY OF THE DEAD.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]="dead								227	30			";
cb_catalog[++i]="0209	None	Journey Container 3, 2005	Day of the Dead^	monoprint	$395 	18 x 12	orange^purple	180	120	285	432";
cb_catalog[++i]="0213	None	Journey 2, 2005	Day of the Dead^	monoprint	$395 	18 x 12	blue^orange	79	120	284	432";
cb_catalog[++i]="0211	None	Journey Container 1, 2005	Day of the Dead^	monoprint	$395 	18 x 12	purple^yellow	76	120	272	432";
cb_catalog[++i]="0212	None	Journey 1, 2005	Day of the Dead^	monoprint	$395 	18 x 12	orange^purple	75	120	270	432";
cb_catalog[++i]="0210	None	Journey Container 2	Day of the Dead^	monoprint	$395 	18 x 12	purple^yellow	73	120	264	432";



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_dead_enlarge.html?row="+i, "enlargements", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=825px,height=700px, left=10px");	 
							OpenWin.focus();
							}





