Hanukkah=0;BarMitzvah=1;Candlestick=2;Challah=3;Havdolah=4;Jewelry=5;
KiddushCup=6;Kipa=7;Mezuza=8;Mints=9;Passover=10;Purim=11;RoshHashanah=12;
ShabbatTable=13;Shofar=14;Silver=15;Tallit=16;Other=17;

CatText = [];
CatPage = [];
CatHdrText = [];

root = "/" ;

CatText[Kipa]="Kipas Galore";
CatPage[Kipa]= root + "CT_Apparel/CT_AP.htm" ;
CatHdrText[Kipa]="<font color='#FF0000'>Kipa Store</font>";

CatText[Hanukkah]="Hanukkah&nbsp;2003";
CatPage[Hanukkah]= root + "CT_Menorah/SC_Gifts.htm" ;
CatHdrText[Hanukkah]="<font color='#FF0000'>Hanukkah 2003</font>";

CatText[Tallit]="Tallit";
CatPage[Tallit]= root + "CT_Tallit/SC_Tallit.htm" ;
CatHdrText[Tallit]="<font color='#FF0000'>Tallit Store</font>";

CatText[Mints]="Mazel Mints";
CatPage[Mints]= root + "CT_Mints/SC_BarMitzvah.htm" ;
CatHdrText[Mints]="<font color='#FF0000'>Mazel Mints</font>";

CatText[RoshHashanah]="Rosh&nbsp;Hashanah";
CatPage[RoshHashanah]= root + "CT_Rosh/SC_Honey.htm" ;
CatHdrText[RoshHashanah]="<font color='#FF0000'>Rosh Hashanah</font>";

CatText[Jewelry]="Jewelry";
CatPage[Jewelry]= root + "CT_Jewelry/SC_Chai.htm" ;
CatHdrText[Jewelry]="<font color='#FF0000'>Judaica Jewelry</font>";

CatText[BarMitzvah]="Bar Mitzvah"; 
CatPage[BarMitzvah]= root + "CT_BarMitzvah/CT_BR.htm" 
CatText[Candlestick]="Candlesticks"; 			CatPage[Candlestick]= root + "CT_Candlestick/CT_CS.htm" 
CatText[Challah]="Challah Covers Boards & Knives"; 	CatPage[Challah]=root + "CT_Challah/CT_CH.htm" 
CatText[Havdolah]="Havdolah"; 		CatPage[Havdolah]=root + "CT_Havdolah/CT_HV.htm" 
//CatText[Jewelry]="Jewelry"; 		CatPage[Jewelry]=root + "CT_Jewelry/CT_JL.htm" 
CatText[KiddushCup]="Kiddush Cups"; 	CatPage[KiddushCup]=root + "CT_KiddushCup/CT_KC.htm" 
CatText[Mezuza]="Mezuzas"; 		CatPage[Mezuza]= root + "CT_Mezuza/CT_MZ.htm"
CatText[Purim]="Purim"; 		CatPage[Purim]=root + "CT_Purim/CT_PM.htm"
CatText[Passover]="Passover"; 		CatPage[Passover]=root + "CT_Pesach/CT_PS.htm"
CatText[ShabbatTable]="Shabbat Table"; 	CatPage[ShabbatTable]=root + "CT_Challah/CT_CH.htm"
CatText[Shofar]="Shofar"; 		CatPage[Shofar]=root + "CT_Misc/PRMS2_MSG427.htm"
CatText[Silver]="Silver"; 		CatPage[Silver]=root + "CT_Silver/CT_SV.htm"
CatText[Other]="Other"; 		CatPage[Other]=root + "CT_Misc/CT_MS.htm"

CatTotal=CatText.length;
//alert(CatTotal);

//fill subcategory array
subCatText = [];
subCatPage = [];
for (var i=0; i<CatTotal; i++) {
	subCatText[i] = [];
	subCatPage[i] = [];
}

subCatText[Jewelry][0] = '14K&nbsp;Gold&nbsp;Chai&nbsp;Pendants';	
subCatPage[Jewelry][0] =  root +"CT_Jewelry/SC_Chai.htm";

subCatText[Jewelry][1] = '14K&nbsp;Gold&nbsp;Hamsa&nbsp;Charms';  
subCatPage[Jewelry][1] = root + "CT_Jewelry/SC_Hamsa.htm";

subCatText[Jewelry][2] = '14K&nbsp;Gold&nbsp;Mezuza&nbsp;Pendants';  
subCatPage[Jewelry][2] = root + "CT_Jewelry/SC_Mezuza.htm";

subCatText[Jewelry][3] = '14K&nbsp;Gold&nbsp;Star&nbsp;of&nbsp;David&nbsp;Pendants';
subCatPage[Jewelry][3] = root + "CT_Jewelry/SC_Star.htm";

subCatText[Jewelry][4] = '14K&nbsp;Gold&nbsp;Love&nbsp;Pendants';
subCatPage[Jewelry][4] = root + "CT_Jewelry/SC_Love.htm";

subCatText[Jewelry][5] = '14K&nbsp;Gold&nbsp;Torah&nbsp;Pendants';
subCatPage[Jewelry][5] = root + "CT_Jewelry/SC_Torah.htm";

subCatText[Jewelry][6] = '14K&nbsp;Gold&nbsp;Chains';
subCatPage[Jewelry][6] = root + "CT_Jewelry/SC_Chains.htm";

subCatText[Jewelry][7] = '14K&nbsp;Gold&nbsp;Earrings';
subCatPage[Jewelry][7] = root + "CT_Jewelry/SC_Earrings.htm";

subCatText[Jewelry][8] = '14K&nbsp;Gold&nbsp;Rings';
subCatPage[Jewelry][8] = root + "CT_Jewelry/SC_Rings.htm";

subCatText[Jewelry][9] = 'Silver&nbsp;Chai&nbsp;Pendants';	
subCatPage[Jewelry][9] =  root +"CT_Jewelry/SC_Chai2.htm";

subCatText[Jewelry][10] = 'Silver&nbsp;Hamsa&nbsp;Charms';  
subCatPage[Jewelry][10] = root + "CT_Jewelry/SC_Hamsa2.htm";

subCatText[Jewelry][11] = 'Silver&nbsp;Mezuza&nbsp;Pendants';  
subCatPage[Jewelry][11] = root + "CT_Jewelry/SC_Mezuza2.htm";

subCatText[Jewelry][12] = 'Silver&nbsp;Star&nbsp;of&nbsp;David&nbsp;Pendants';
subCatPage[Jewelry][12] = root + "CT_Jewelry/SC_Star2.htm";

subCatText[Jewelry][13] = 'Silver&nbsp;Love&nbsp;Pendants';
subCatPage[Jewelry][13] = root + "CT_Jewelry/SC_Love2.htm";

subCatText[Jewelry][14] = 'Sterling&nbsp;Silver&nbsp;Chains';
subCatPage[Jewelry][14] = root + "CT_Jewelry/SC_Chains2.htm";

subCatText[Tallit][6] = 'Tallit Bags'; 
subCatPage[Tallit][6] = root + "CT_Tallit/SC_Bags.htm";
subCatText[Tallit][0] = 'Traditional Tallit';	
subCatPage[Tallit][0] =  root +"CT_Tallit/SC_Traditional.htm";

subCatText[Tallit][1] = 'Modern Tallit Sets';  
subCatPage[Tallit][1] = root + "CT_Tallit/SC_Tallit.htm";

subCatText[Tallit][2] = 'Emanuel&nbsp;Tallit&nbsp;Sets';  
subCatPage[Tallit][2] = root + "CT_Tallit/SC_Emanuel.htm";

subCatText[Tallit][3] = 'Gabrielli&nbsp;Tallit&nbsp;Sets';
subCatPage[Tallit][3] = root + "CT_Tallit/SC_Gabrieli.htm";

subCatText[Tallit][4] = 'Heirloom&nbsp;Tallit&nbsp;Collection';
subCatPage[Tallit][4] = root + "CT_Tallit/SC_Heirloom.htm";

subCatText[Tallit][5] = 'Tallit Clips'; 
subCatPage[Tallit][5] = root + "CT_Tallit/SC_Clips.htm";

subCatText[Tallit][6] = 'Tallit Bags'; 
subCatPage[Tallit][6] = root + "CT_Tallit/SC_Bags.htm";

subCatText[Mints][0] = 'Bar&nbsp;Mitzvah'; 
subCatPage[Mints][0] = root + "CT_Mints/SC_BarMitzvah.htm";

subCatText[Mints][1] = 'Bat Mitzvah'; 
subCatPage[Mints][1] = root + "CT_Mints/SC_BatMitzvah.htm";

subCatText[Mints][2] = 'Wedding'; 
subCatPage[Mints][2] = root + "CT_Mints/SC_Wedding.htm";

subCatText[RoshHashanah][0] = 'Honey Dishes and Trays';	
subCatPage[RoshHashanah][0] =  root +"CT_Rosh/SC_Honey.htm";

subCatText[RoshHashanah][1] = 'Shofars';	
subCatPage[RoshHashanah][1] =  root +"CT_MISC/PRMS2_MSG427.htm";

subCatText[RoshHashanah][2] = 'Calendars';	
subCatPage[RoshHashanah][2] =  root +"CT_Rosh/SC_Calendar.htm";


subCatText[Hanukkah][0] = 'Designer&nbsp;Two&nbsp;Tone&nbsp;Menorahs'; 
subCatPage[Hanukkah][0] = root + "CT_Menorah/SC_Designer.htm";

subCatText[Hanukkah][1] = 'Traditional&nbsp;Menorahs'; 
subCatPage[Hanukkah][1] = root + "CT_Menorah/SC_Traditional.htm";

subCatText[Hanukkah][2] = 'Theme&nbsp;Menorahs'; 
subCatPage[Hanukkah][2] = root + "CT_Menorah/SC_Theme.htm";

subCatText[Hanukkah][3] = 'Economy&nbsp;Menorahs'; 
subCatPage[Hanukkah][3] = root + "CT_Menorah/SC_Economy.htm";

subCatText[Hanukkah][4] = 'Brass&nbsp;Menorahs'; 
subCatPage[Hanukkah][4] = root + "CT_Menorah/SC_Brass.htm";

subCatText[Hanukkah][5] = 'Electric&nbsp;Menorahs'; 
subCatPage[Hanukkah][5] = root + "CT_Menorah/SC_Electric.htm";

subCatText[Hanukkah][6] = 'Large&nbsp;Menorahs'; 
subCatPage[Hanukkah][6] = root + "CT_Menorah/SC_Large.htm";

subCatText[Hanukkah][7] = 'Candles,Bulb,etc....'; 
subCatPage[Hanukkah][7] = root + "CT_Menorah/SC_Accessories.htm";

subCatText[Hanukkah][8] = 'Gifts'; 
subCatPage[Hanukkah][8] = root + "CT_Menorah/SC_Gifts.htm";

subCatText[Hanukkah][9] = 'Dreidels'; 
subCatPage[Hanukkah][9] = root + "CT_Menorah/SC_Dreidel.htm";

subCatText[Hanukkah][10] = 'Edibles'; 
subCatPage[Hanukkah][10] = root + "CT_Menorah/SC_Edibles.htm";

subCatText[Hanukkah][11] = 'Fun&nbsp;&amp;&nbsp;Games'; 
subCatPage[Hanukkah][11] = root + "CT_Menorah/SC_Fun.htm";

subCatText[Hanukkah][12] = 'Paper&nbsp;Goods,&nbsp;Signs and&nbsp;Gift&nbsp;Wrap'; 
subCatText[Hanukkah][12] = 'Hanukkah&nbsp;Signs'; 
subCatPage[Hanukkah][12] = root + "CT_Menorah/SC_Sign.htm";

subCatText[BarMitzvah][0] = 'Kipas';
subCatText[BarMitzvah][1] = 'albums';

subCatText[Passover][0] ="Seder Ceramics"; 	
subCatText[Passover][1] ="Three Tier Seder Plates";	
subCatText[Passover][2] ="Seder Plates";			
subCatText[Passover][3] ="Matzoh Covers";	
subCatText[Passover][4] ="Matzoh Holders";	
subCatText[Passover][5] ="Afikomen Bags";	
subCatText[Passover][6] ="Kiddush Cups";			
subCatText[Passover][7] ="Matzoh";			
subCatText[Passover][8] ="Accessories";		
subCatText[Passover][9] ="Haggadahs and Cookbooks";	



function oldtopnavbar(){

tt='<table border=0 cellpadding=0 cellspacing=1 width=100% height=17><tr valign=top>';
tt+='<TD><IMG alt="judaicaonline.com Logo" src = "../images/logo2.jpg"></TD>';
tt+='<td align=right><IMG alt="shopping cart" src = "../images/shoppingcartt.jpg" border=0<br><br>';
tt+='Your Shopping Cart contains <br><b>5</b> items <br>for a total of <br><b>$125.00</b>';
tt+='</td></tr></table>';

document.write(tt);

}

function youarehere(currentCat,currentsubCat){
	if (currentsubCat <0 || currentsubCat == null)  {
		currentsubCat = 0
	}		
        tt='<div class="itemdescr">'
	tt+='&nbsp;&nbsp;&nbsp;you are here:&nbsp; ';
	tt+='<A href="'+ CatPage[currentCat] + '">' + CatText[currentCat] + '</A> > ' + '<A href="'+ subCatPage[currentCat][currentsubCat] + '">' +  subCatText[currentCat][currentsubCat] + '</A>';
	tt+= "</div>";

document.write(tt);

}

function topnavbar(currentCat){

tt='<table border=0 cellpadding=0 cellspacing=1 width=100% height=17>';
tt+='<tr valign=top>';
tt+='<td><IMG alt="Judaica Online Logo" height =75 src = "../images/judaica4.gif" width=150 ></td>';
tt+='<td><h1>'+ CatHdrText[currentCat];

tt+='<table align=right>';
tt+='<tr><td align=right  class="more"><A href="../index.htm" title="JudaicaOnline Home Page" >Home Page</A> | ';
tt+='<A  href=" ../search.htm"  title="Search for specific products" >Search</A> | ';
tt+='<A HREF="http://secure.spiderwebhost.net/judaicaonline/cgi-bin/shopcart.cgi?sc_action=disp_sc">Shopping Cart</a>';
tt+='</td></tr></table>';
tt+='</td></tr>';
tt+='<tr>';
tt+='<td colspan=2><hr></td></tr></table>';
document.write(tt);
}



function topnavbar2(){

tt='<table border=0 cellpadding=0 cellspacing=1 width=100% height=17><tr valign=center>';
tt+='<TD><IMG alt="judaicaonline Logo" src = "../images/judaica4.gif" height=100 width = 200></TD>';
tt+='<td><A HREF="CT_MN.htm">Hanukkah Index</td>';
tt+='<td><A HREF="../index.htm">Home Page </td>';
tt+='<td><A HREF="http://secure.spiderwebhost.net/judaicaonline/cgi-bin/shopcart.cgi?sc_action=disp_sc">Shopping Cart</td>';
tt+='</tr><tr><td colspan=4><hr size=3></tr></table>';

document.write(tt);

}


function leftnavbar(currentCat,currentsubCat) {
expand = 1; 

	if (currentsubCat <0 || currentsubCat == null)  {
		currentsubCat = 0
	}		
	if (currentCat <0 || currentCat == null)  {
		expand = 0
	}		


	// alert(currentCat);
	tt='<table  border="0"  cellspacing=0 cellpadding=0 width=100%>';
	tt+='<tr><td>';
	tt+='<div id="cmh13349" class="header"><b>Categories</b></div>';

	// only do below section if there is a current cat
	if (expand == 1) {	
		tt+='<div class="leftbar"><A href="'+ CatPage[currentCat] + '">' + CatText[currentCat] + '</A></div>';
		j=0;
		while (subCatText[currentCat][j]!=null) {
			if (j==currentsubCat) {
				tt+='<div class="leftbarsubcurrent">'
			}
			 else  {
				tt+='<div class="leftbarsub">'
			}
			tt+='<A HREF="';
			tt+=subCatPage[currentCat][j];
			tt+='">';
			tt+=subCatText[currentCat][j];
			tt+='</A></div>';
			j++;
		}

	}
	tt+='<div class="leftbar">';

	for (k=0;k<CatTotal;k++) {
		if (k==currentCat) {
		}
		else  {
			tt+='<br><A HREF="';
			tt+=CatPage[k];
			tt+='">';
			tt+=CatText[k];
			tt+='</A>';
		}

	}

	tt+='</div>';
	tt+='</td>';
	tt+='</tr>';
	tt+='</table>';

	document.write(tt);

}


function bottomnavbar(){

tt='<br clear=all>';

tt+='<center>&copy; Copyright 2003 judaicaonline.com</center>';

document.write(tt);
}



function bottomnavbar2(){

tt='<br clear=all>';
tt='<br clear=all>';
tt='<table border=0 cellpadding=0 cellspacing=1 width=100% ><tr>';
tt+='<td colspan=4><hr size=3></td></tr>';
tt+='<td align=center><A HREF="CT_MN.htm">Hanukkah Index';

tt+=subCatTotal;
tt+='</td><td align=center><A HREF="../index.htm">Home Page </td>';
tt+='<td align=center><A HREF="http://secure.spiderwebhost.net/judaicaonline/cgi-bin/shopcart.cgi?sc_action=disp_sc">Shopping Cart</td>';
tt+='</tr></table>';

tt+='<hr size=1><center>&copy; Copyright 2003 judaicaonline.com</h>';

document.write(tt);

}

function addtocart(idescr,iprice,icode) { 
	document.orderitem.orderproducts.value="|shopcart@judaicaonline.com,1," + iprice + ", " + document.orderitem.ioption1.value + " " + document.orderitem.ioption2.value + " " + idescr + "," + icode +"|";
	document.orderitem.submit();
  }


