
//////////////////// browser checking
//////////// if Netscape 6
if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 5)) {
	layerRef="document.getElementById"
	styleRef=".style."
	showStr1="document.getElementById('layer"
	showStr2="').style.visibility="
}

//////////// if explorer (4.x)
else if (document.all) {
	layerRef="document.all"
	styleRef=".style."
	showStr1="document.all.layer"
	showStr2=".style.visibility="
}

//////////// else if netscape (4.x)
else if (document.layers) {
	layerRef="document.layers"
	styleRef="."
	showStr1="document.layers.layer"
	showStr2=".visibility="
}

layerStr = new Array ();

Z = new Array ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10","11","12","13","14");
menuWidth = new Array(null,45, 56, 46, 66, 102, 40, 77, 66, 53, 46, 98, 102, 80);

subWidth = new Array(45,90, 146, 192, 258, 360, 400, 477, 545, 596, 644,650,724);


if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) < 5))) {

	for (var i=0; i<=13; i++) {
		layerStr [i] = "<layer id='layer"+Z[i]+"' "
				+ "z-index='"+Z[i]+"' "
				+ "left='" + subWidth[i] + "' "
				+ "width='150' "
				+ "height='20' "
				+ "top='220' "
				+ "bgcolor='' "
				+ "visibility='hidden'>"
	}

	layerEnd = "</layer>"
}

else {
	for (var i=0; i<=13; i++) {		

		layerStr [i] = "<div id='layer"+Z[i]+"' "
				+ "style='position:absolute; "
				+ "z-index:"+Z[i]+"; "
				+ "left:"+ subWidth[i] +";" 
				+ "width:150; "
				+ "height:20; "
				+ "top:202; "
				+ "visibility:hidden'>"
	}

	layerEnd = "</div>"
}

var k=13    //////////////////// first menu length

//////////// turn on the sub-menu/turn off the previous

function show(n) {

	eval (showStr1 + n + showStr2 + "'visible'");
	for(var i=0; i<n-1; i++) {
		var m=i+1
		eval (showStr1 + m + showStr2 + "'hidden'");
	}

	for(var j=n; j<k; j++) {
		var m=j+1
		eval (showStr1 + m + showStr2 + "'hidden'");
	}
}


var n, s, timerID_main;


//////////// turn off all 2nd tier
function TurnOff() {
	for(var i=1; i<=k; i++) {
		eval (showStr1 + i + showStr2 + "'hidden'");
	}
}

//////////// set time out
var timerID_sub

function LayerTimeOut() {
	timerID_sub = setTimeout ("TurnOff()",590);
}

function ClearTimeOut() {
	clearTimeout (timerID_main);
	clearTimeout (timerID_sub);
}

document.write ("<table border='0' bgcolor='#002F62' cellspacing='0' cellpadding='0' height='20' width=100%><tr><td width=900>")
document.write ("<table border='0' bgcolor='#002F62' cellspacing='0' cellpadding='0' height='20' width=900 >")
document.write ("<tr><td width=45 height=1><IMG src='http://www.starchefs.com/spacer.gif' width=45 height=1></td>");  

menuStrj = new Array();

for (var jjj = 1; jjj <= menuWidth.length-1; jjj++) {



menuStrj[jjj] = "<td width='" + menuWidth[jjj] + "' height=1><IMG src='http://www.starchefs.com/spacer.gif' height=1 width='"+ menuWidth[jjj] +"'></td>"



document.write (menuStrj[jjj])



}



<!-- end of main menu -->





document.write ("</tr>")

document.write ("<tr><td width='45'><IMG src='http://www.starchefs.com/spacer.gif' width=45 height=20></td>")


<!-- main menu begins here -->

menuStr = new Array();


///////////////////////////////////////////////////////
/////////////// update main menu item names here //////
///////////////////////////////////////////////////////

menuName = new Array(null,"shop" ,"recipes","chefs","jobfinder","culinary&nbsp;schools","wine","community","features","events", "news", "chefs congress","ask&nbsp;the&nbsp;experts", "rising stars");


///////////////////////////////////////////////////////
/////// adjust main menu item table cell width here ///
///////////////////////////////////////////////////////

//menuWidth = new Array(null, 56, 46, 102, 102, 40, 77, 66, 53, 46, 56, 102, 56);
// menuWidth = new Array(null, 102, 46, 38, 77, 66, 46, 69, 94, 42, 56, 56);


///////////////////////////////////////////////////////
/////////////// update main menu URLs here ////////////
///////////////////////////////////////////////////////

menuURL = new Array(null,
"/shopping",
                        "/recipe_search.php",
                        "/chefs/html/index.shtml",
                        "http://www.starchefsjobfinder.com",
                        "/cooking_school_finder/html/",
                        "/wine/html/index.shtml",
                        "/community/index.shtml",
                        "/features/html/index.shtml",
                        "/events/index.shtml",
			"/news/html/index.shtml",
			"http://www.starchefs.com/cook/events/icc/2012",
			"/ask_the_expert/index.shtml",
			"/chefs/rising_stars/index.shtml "			
                        );


for (var j = 1; j <= menuWidth.length-1; j++) {

menuStr[j] = "<td width='" + menuWidth[j] + "'><font face='Franklin Gothic, Verdana, Arial, Helvetica, Sans Serif, Sans-Serif' color=#ffffff size=2><a class=whitelink href='" + menuURL[j] + "' "
+ "onMouseOver=ClearTimeOut()||show(" + j + ") "
+ "onMouseOut=LayerTimeOut() target='_top'>"
+ menuName[j] + "</a></font></td>"

document.write (menuStr[j])

}

<!-- end of main menu -->


document.write ("</tr></table></td><td width=100%>&nbsp</td></tr></table>")


<!-- submenus begin here -->

itemSpace = new Array(null, 0, 0, 100, 100, 210, 170, 400, 400, 400, 400, 300,550);
itemName = new Array();
itemURL = new Array();
itemStr = new Array();

itemStr[1] = new Array();
itemStr[2] = new Array();
itemStr[3] = new Array();
itemStr[4] = new Array();
itemStr[5] = new Array();
itemStr[6] = new Array();
itemStr[7] = new Array();
itemStr[8] = new Array();
itemStr[9] = new Array();
itemStr[10] = new Array();
itemStr[11] = new Array();
itemStr[12] = new Array();
itemStr[13] = new Array();
itemStr[14] = new Array();
///////////////////////////////////////////////////////
/////////////// update submenu item names here ////////
///////////////////////////////////////////////////////
itemName[1] = new Array(null);
itemName[2] = new Array(null,
				"top 10 recipes",
				"quick meals",
				"recipe search",
				"star cookbooks")
itemName[3] = new Array(null,"chefs",
                             "pastry chefs",

                             "cookbook authors",

                             "rising stars",

                             "restaurants" 

)
itemName[4] = new Array(null,
				"search",
				"chef jobs",
				"restaurant jobs",
				"hotel jobs",
				"post resume",
				"career center",
				"classified ad pricing",
				"sign up",
				"business&nbsp;tools"
				)
itemName[5] = new Array(null,
                        "search",
                        "cooking schools",
                        "professional schools",
                        "hospitality schools",
                        "update school",
                        "pricing")
itemName[6] = new Array(null,
                         
				"ask the sommelier",
				"sommelier archive", 
				"tips",
				"features",
				"wine forum",
				"starvintners",
				"uncorked",
				"Q & A search")

itemName[7] = new Array(null,
				"culinary schools",
				"culinary events",
				"culinary links",
				"trade assns",
				"charities",
				"farmfresh markets")				
itemName[8] = new Array(null,           
                                                         // "all features",
				"techniques",

				
				"mixology",

				
				"travel",

				"trends",
				"letter from the editor",
				"on the plate",
				"photo galleries",
				"videos",
				"cookbooks")
itemName[9] = new Array(null,
                "pastry competition",
				"calendar",
				"festivals / food festivities",
				"benefits & other events",
				"rising stars",
				"starchefs studio",
        "chefs congress"
		)				
				

itemName[10] = new Array(null,
				"rumbles & murmurs",
				"dishrag",
				"press releases",
				"letter from the editor")

itemName[11] = new Array(null,
"2012",
"2011",					 
"2010",
"2009",
"2008",
"2007",
"2006",
"buy tickets",
"buy book & DVDs",
"sponsorship information"
//"ICC 2007",
   //                           "ICC 2006 DVDs"
//"food for thought",
                              //"school",

                            //  "quickmeals",

                            //  "wine",

                            //  "ask the editor"

                            //  "turn the tables",

                             // "general discussion"
                             )

itemName[12] = new Array(null,
				//"ask bobby flay",
				"ask the sommelier",
				//"ask trendspotters",
				//"ask entertainers",
				"ask the chefs",
                                                        "ask the career expert")
itemName[13] = new Array(null,
				//"cookbooks",
				//"chocolate show",
				//"wine",
				//"tickets",
				//"ebay&nbsp;auctions"
				"about rising stars",
				"2012 austin-san antonio",
				"2011 new york",
				"2011 portland",
				"2011 chicago",
				"2011 houston"				
				)				


itemName[14] = new Array(null)




//////////////////////////////////////////////////////
/////////////// update submenu item URLs here ////////
//////////////////////////////////////////////////////

itemURL[1] = new Array (null);
itemURL[2] = new Array (null,
				"/recipes/top_10/index.shtml",
				"/recipes/quick_meals/",
				"/recipe_search.php",
				"/features/cookbooks/star_cookbooks/html/index.shtml")
itemURL[3] = new Array (null,"/chefs/html/index.shtml",
                             "/chefs/html/index.shtml",
                             "/chefs/html/index.shtml",
                             "/chefs/rising_stars/index.shtml",
                             "/chefs/html/index.shtml")

itemURL[4] = new Array (null,
                                "http://www.starchefsjobfinder.com/js-searchjobs.php",
				"http://www.starchefsjobfinder.com/chef_jobs.php",
				"http://www.starchefsjobfinder.com/restaurant_jobs.php",
				"http://www.hoteljobfinder.com/js-searchjobs.php?s=-1&t=j&positionid=0&submitting=1&pidtoname_0=ALL%20CATEGORIES",
				"http://www.starchefsjobfinder.com/js-postresume.php",
				"http://www.starchefsjobfinder.com/career_center/career_center.php?s=-1&t=j ",
				"http://www.starchefsjobfinder.com/emp-pricing.php?s=-1&t=j",
				"http://www.starchefsjobfinder.com/register.php",
				"http://www.starchefs.com/business_tools/html/index.shtml")
				
itemURL[5] = new Array (null,
                        "/cooking_school_finder/html/",
                        "/cooking_school_finder/html/cooking_schools.php",
                        "/cooking_school_finder/html/professional_schools.php",
                        "/cooking_school_finder/html/hospitality_schools.php",
                        "/cooking_school_finder/html/login.php",
                        "/cooking_school_finder/html/listing.php")

itemURL[6] = new Array (null,
                              
				"/wine/ask_Sommelier/wine.php",
				"/wine/ask_Sommelier/html/index.shtml",
				"/wine//tips/html/index.shtml",
				"/wine/features/html/index.shtml",
				"/phpBB2/",
				"/wine/starvintners/html/index.shtml",
				"/wine/uncorked/html/index.html",
				"/wine/ask_Sommelier/search.shtml")



itemURL[7] = new Array (null,
				"/cooking_school_finder/html/",
				"/events/index.shtml",
				"/links/html/index.shtml",
				"/community/index.shtml",
				"/community/index.shtml",
				"/features/farm_fresh/html/index.php")


itemURL[8] = new Array (null,             
                                                          //"http://www.starchefs.com/features/html/index.shtml",
				"http://www.starchefs.com/features/techniques/",

				
				
				"/features/mixology/index.shtml",

				

				"/features/travel/html/",
				"/features/trends/html/index.shtml",
				"/cook/letter-from-editor/archive/2012",
				"/features/on_the_plate/chef_plating/index.shtml",
				"/cook/photo-gallery",
				"/video",
				"/cookbook")
				
itemURL[9] = new Array (null,
                "http://www.starchefs.com/cook/events/pastry-competition-2011",
				"/events/food_calendar/html/index.shtml",
				"/events/index.shtml",
				"/events/index.shtml",
				"/chefs/rising_stars/index.shtml",
				"/events/studio/index.shtml",
        "/icc"
		)				
				
				
itemURL[10] = new Array (null,
				"/rumbles/html/index.shtml",
				"/cook/newsletter/2012",
				"/news/press_releases/html/index.php",
				"/cook/letter-from-editor/archive/2012")
				
itemURL[11] = new Array (null,
"http://www.starchefs.com/cook/events/icc/2012",
"http://www.starchefs.com/cook/events/icc/2011",
"http://www.starchefs.com/cook/events/icc/2010",
"http://www.starchefs.com/cook/icc-2009",
"http://www.starchefs.com/cooking/icc-2008",
"http://www.starchefs.com/events/icc/2007/html/index.shtml",
"http://www.starchefs.com/events/icc/2006/index.shtml",
"https://www.starchefs.com/tickets/icc/earlyticket.php",
"http://www.starchefs.com/shopping",
"http://www.starchefs.com/events/icc/2010/html/sponsorship.shtml"
                              
//"/phpBB2/viewforum.php?f=21",
                              
//"/phpBB2/viewforum.php?f=6",
                              //"http://www.starchefs.com/phpBB2/viewforum.php?f=9",
                             // "http://www.starchefs.com/phpBB2/viewforum.php?f=22",

                          //    "/phpBB2/viewforum.php?f=23"

                              //"http://www.starchefs.com/phpBB2/viewforum.php?f=25",

                              //"http://www.starchefs.com/phpBB2/viewforum.php?f=20"
                              )



itemURL[12] = new Array (null,
				//"http://www.starchefs.com/cgi-bin/bobby.pl",
				"http://www.starchefs.com/wine/ask_Sommelier/wine.php",
				//"http://www.starchefs.com/ask_the_expert/trendspotters/html/index.shtml",
				//"http://www.starchefs.com/ask_the_expert/entertain/html",
				//"http://www.starchefs.com/phpBB2/viewforum.php?f=23",
        "/experts/chefs/chefs.php",
         "/experts/career/index.shtml")

itemURL[13] =new Array (null,
				//"/Cookbooks/Cookbooks.html",
				//"http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=CHOCOLATESHOW&Category_Code=CHOCOLATESHOW",
				//"/wine/club/html/index.php",
				//"http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=CHOCOLATESHOW&Category_Code=CHOCOLATESHOW",
				//"/auctions/html/index.shtml"
				"/chefs/rising_stars/about.shtml",
				"http://www.starchefs.com/cook/content/2012-austin-sanantonio-rising-stars",
				"http://starchefs.com/cook/chefs/2011-new-york-rising-stars",
				"http://www.starchefs.com/cook/chefs/2011-portland-rising-stars",
				"http://www.starchefs.com/cook/chefs/2011-chicago-rising-stars",
				"http://www.starchefs.com/cook/chefs/2011-houston-rising-stars"
											
				)
 

itemURL[14] = new Array (null)


for (var k = 1; k <=13; k++) {
document.write (layerStr [k-1])
document.write ("<STYLE type=text/css>.tblborder {BORDER-RIGHT: #282828 1px solid; BORDER-TOP: #282828 1px solid; BORDER-LEFT: #282828 1px solid; BORDER-BOTTOM: #282828 1px solid} </style>")

document.write ("<table border=1  cellspacing='0' cellpadding='0' bgcolor=#006699 width=180 bordercolor=#ffffff class=tblborder>")

<!-- space -->
//document.write ("<td width='" + itemSpace[k] + "'>&nbsp;</td><td height=20 nowrap>")


//////////// sub menus

for (var j = 1; j <= itemName[k].length-1; j++) {

itemStr[k][j] = "<tr><td><a href='" + itemURL[k][j] + "' onMouseOver=ClearTimeOut() onMouseOut=LayerTimeOut() class='secondtier' target='_top'>"
				+ "<b><span class='secondtier'>&nbsp;&nbsp;" + itemName[k][j]
				+ "</span></b></a>&nbsp;&nbsp;&nbsp;</td></tr>"

document.write (itemStr[k][j])

}

document.write ("</td>")
document.write ("</tr></table>")
document.write (layerEnd)

}

var k=14

document.write (layerStr [k-1])

document.write ("<table border='1' cellspacing='0' cellpadding='0' bgcolor=#006699 width=180 bordercolor=#ffffff class=tblborder>")
//document.write ("<td width='" + itemSpace[k] + "'>&nbsp;</td><td height=20 nowrap>")

for (var j = 1; j <= itemName[k].length - 1; j++) {

itemStr[k][j] = "<tr><td><a href='" + itemURL[k][j] + "' onMouseOver=ClearTimeOut() onMouseOut=LayerTimeOut() class='secondtier' target='_top'>"
			+ "<b><span class='secondtier'>&nbsp;&nbsp;" + itemName[k][j]
			+ "</span></b></a>&nbsp;&nbsp;&nbsp;</td></tr>"

document.write (itemStr[k][j])


}

//document.write("</td>")
document.write ("</table>")
document.write (layerEnd)


