/*JAVASCRIPT FOR INNER_PORTF_PRAYER.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";
cb_catalog[++i]="0426	Prayers Series	Prayer Offerings 4, 2008	Otherwise	mixed  media	$695 	12 x 12	red	129	120	486	450";
cb_catalog[++i]="0430	Prayers Series	Prayer Offerings 8, 2008	Otherwise	mixed  media	$695 	12 x 12	yellow	125	120	469	450";
cb_catalog[++i]="0433	Prayers Series	Prayer Offerings 11, 2008	Otherwise	mixed  media	$695 	12 x 12	blueyellow	123	120	459	450";
cb_catalog[++i]="0423	Prayers Series	Prayer Offerings 1, 2008	Otherwise	mixed  media	$695 	12 x 12	orangered	122	120	458	450";
cb_catalog[++i]="0424	Prayers Series	Prayer Offerings 2, 2008	Otherwise	mixed  media	$695 	12 x 12	blue	122	120	458	450";
cb_catalog[++i]="0425A	Prayers Series	Prayer Offering 3A, 2008	Otherwise	mixed  media	$695 	12 x 12	yellowblue	122	120	456	450";
cb_catalog[++i]="0428	Prayers Series	Prayer Offerings 6, 2008	Otherwise	mixed  media	$695 	12 x 12	red	122	120	459	450";
cb_catalog[++i]="0429	Prayers Series	Prayer Offerings 7, 2008	Otherwise	mixed  media	$695 	12 x 12	yellowblue	122	120	457	450";
cb_catalog[++i]="0431	Prayers Series	Prayer Offerings 9, 2008	Otherwise	mixed  media	$695 	12 x 12	greenblue	122	120	456	450";
cb_catalog[++i]="0427	Prayers Series	Prayer Offerings 5, 2008	Otherwise	mixed  media	$695 	12 x 12	yellowblue	121	120	456	450";
cb_catalog[++i]="0432	Prayers Series	Prayer Offerings 10, 2008	Otherwise	mixed  media	$695 	12 x 12	bluewhite	120	120	450	450";
cb_catalog[++i]="0425B	Prayers Series	Prayer Offering 3B, 2008	Otherwise	mixed  media	$695 	12 x 12	redblue	117	120	437	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="series_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_prayer_enlarge.html?row="+i, "enlargements", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,width=825px,height=700px, left=10px");	 
							OpenWin.focus();
							}





