
//////////////////// 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");

if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) < 5))) {

	for (var i=0; i<=11; i++) {
		layerStr [i] = "<layer id='layer"+Z[i]+"' "
				+ "z-index='"+Z[i]+"' "
				+ "left='184' "
				+ "width='590' "
				+ "height='20' "
				+ "top='54' "
				+ "bgcolor='' "
				+ "visibility='hidden'>"
	}

	layerEnd = "</layer>"
}

else {

	for (var i=0; i<=11; i++) {
		layerStr [i] = "<div id='layer"+Z[i]+"' "
				+ "style='position:absolute; "
				+ "z-index:"+Z[i]+"; "
				+ "left:184; "
				+ "width:590; "
				+ "height:20; "
				+ "top:54; "
				+ "visibility:hidden'>"
	}

	layerEnd = "</div>"
}

var k=10     //////////////////// 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%>")
document.write ("<tr><td width='190'>&nbsp;</td>")


<!-- main menu begins here -->

menuStr = new Array();


///////////////////////////////////////////////////////
/////////////// update main menu item names here //////
///////////////////////////////////////////////////////

menuName = new Array(null, "recipes","chefs","restaurant&nbsp;jobs","culinary&nbsp;schools","wine","community","features", "news", "forums","ask&nbsp;the&nbsp;experts", "shop");


///////////////////////////////////////////////////////
/////// adjust main menu item table cell width here ///
///////////////////////////////////////////////////////

menuWidth = new Array(null, 56, 46, 102, 102, 40, 77, 66, 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,
                        "http://www.starchefs.com/recipe_search.php",
                        "http://www.starchefs.com/chefs/html/index.shtml",
                        "http://www.starchefsjobfinder.com",
                        "http://www.starchefs.com/cooking_school_finder/html/",
                        "http://www.starchefs.com/wine/html/index.shtml",
                        "http://www.starchefs.com/community/html/index.shtml",
                        "http://www.starchefs.com/features/html/index.shtml",
			"http://www.starchefs.com/news/html/index.shtml",
			"http://www.starchefs.com/phpBB2/",
			"http://www.starchefs.com/ask_the_expert/index.shtml",
			"http://www.starchefs.com/shop/html/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>")


<!-- submenus begin here -->

itemSpace = new Array(null, 0, 0, 100, 100, 210, 170, 100, 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();

///////////////////////////////////////////////////////
/////////////// update submenu item names here ////////
///////////////////////////////////////////////////////
itemName[1] = new Array(null,
				"top 10 recipes",
				"secret ingredients",
				"quick meals",
				"recipe search",
				"star cookbooks")
itemName[2] = new Array(null)
itemName[3] = new Array(null,
				"search",
				"chef jobs",
				"restaurant jobs",
				"hotel jobs",
				"post resume",
				"career",
				"classified ad pricing",
				"sign up",
				"business&nbsp;tools"
				)
itemName[4] = new Array(null,
                        "search",
                        "cooking schools",
                        "professional schools",
                        "hospitality schools",
                        "update school",
                        "pricing")
itemName[5] = new Array(null,
                                "wine club",
				"ask sommelier",
				"sommelier archive", 
				"tips",
				"features",
				"wine forum",
				"starvintners",
				"uncorked")
itemName[6] = new Array(null,
				"james beard",
				"culinary schools",
				"culinary events",
				"messageboards",
				"resources")				
itemName[7] = new Array(null,
				"foods",
				"holidays & special events",
				"seasonal",
				"trends",
				"business&nbsp;tools")

itemName[8] = new Array(null,
				"rumbles & murmurs",
				"newsletter",
				"press releases",
				"bloomberg radio")

itemName[9] = new Array(null)

itemName[10] = new Array(null,
				"ask bobby flay",
				"ask sommelier",
				"ask trendspotters",
				"ask entertainers",
				"ask the editor")
itemName[11] = new Array(null,
				"cookbooks",
				"chocolate show",
				"wine",
				"tickets",
				"eBay&nbsp;auctions")				


itemName[12] = new Array(null)



//////////////////////////////////////////////////////
/////////////// update submenu item URLs here ////////
//////////////////////////////////////////////////////

itemURL[1] = new Array (null,
				"http://www.starchefs.com/recipes/top_10/index.shtml",
				"http://www.starchefs.com/secretingredients.html",
				"http://www.starchefs.com/Quickmeals.html",
				"http://www.starchefs.com/recipe_search.php",
				"http://www.starchefs.com/shop/cookbooks/star_cookbooks/html/index.shtml")
itemURL[2] = new Array (null)

itemURL[3] = 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.starchefsjobfinder.com/hotel_jobs.php",
				"http://www.starchefsjobfinder.com/js-postresume.php",
				"http://www.starchefsjobfinder.com/js-gotourl.cgi?url=http://starchefs.com/cooking_school_finder/html/",
				"http://www.starchefsjobfinder.com/",
				"http://www.starchefsjobfinder.com/register.php",
				"http://www.starchefs.com/business_tools/html/index.shtml")
				
itemURL[4] = new Array (null,
                        "http://www.starchefs.com/cooking_school_finder/html/",
                        "http://www.starchefs.com/cooking_school_finder/html/cooking_schools.php",
                        "http://www.starchefs.com/cooking_school_finder/html/professional_schools.php",
                        "http://www.starchefs.com/cooking_school_finder/html/hospitality_schools.php",
                        "http://www.starchefs.com/cooking_school_finder/html/login.php",
                        "http://www.starchefs.com/cooking_school_finder/html/listing.php")

itemURL[5] = new Array (null,
                                "http://www.starchefs.com/wine/club/html/index.php",
				"http://www.starchefs.com/cgi-bin/wine.pl",
				"http://www.starchefs.com/wine/ask_Sommelier/html/index.shtml",
				"http://www.starchefs.com/wine//tips/html/index.shtml",
				"http://www.starchefs.com/wine/features/html/index.shtml",
				"http://www.starchefs.com/phpBB2/",
				"http://www.starchefs.com/wine/starvintners/html/index.shtml",
				"http://www.starchefs.com/wine/uncorked/html/index.html")

itemURL[6] = new Array (null,
				"http://www.jamesbeard.org",
				"http://www.starchefs.com/school_finder/html/",
				"http://www.starchefs.com/community/html/events.shtml",
				"http://www.starchefs.com/phpBB2/",
				"http://www.starchefs.com/community/html/resources.shtml")


itemURL[7] = new Array (null,
				"http://www.starchefs.com/features/html/foods.shtml",
				"http://www.starchefs.com/features/html/holiday.shtml",
				"http://www.starchefs.com/features/html/seasonal.shtml",
				"http://www.starchefs.com/features/html/trends.shtml",
				"http://www.starchefs.com/business_tools/html/index.shtml")
				
itemURL[8] = new Array (null,
				"http://www.starchefs.com/rumbles/html/index.shtml",
				"http://www.starchefs.com/news/newsletter/starchefs/html/index.shtml",
				"http://www.starchefs.com/news/press_releases/html/index.php",
				"http://www.starchefs.com/bloomberg/html/index.shtml")
				
itemURL[9] = new Array (null)


itemURL[10] = new Array (null,
				"http://www.starchefs.com/cgi-bin/bobby.pl",
				"http://www.starchefs.com/cgi-bin/wine.pl",
				"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")

itemURL[11] =new Array (null,
				"http://www.starchefs.com/Cookbooks/Cookbooks.html",
				"http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=CHOCOLATESHOW&Category_Code=CHOCOLATESHOW",
				"http://www.starchefs.com/wine/club/html/index.php",
				"http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=CHOCOLATESHOW&Category_Code=CHOCOLATESHOW",
				"http://www.starchefs.com/auctions/html/index.shtml")
 

itemURL[12] = new Array (null)


for (var k = 1; k <= 10; k++) {
document.write (layerStr [k-1])
document.write ("<table border='0' cellspacing='0' cellpadding='0'><tr>")

<!-- 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] = "<a href='" + itemURL[k][j] + "' onMouseOver=ClearTimeOut() onMouseOut=LayerTimeOut() class='secondtier' target='_top'>"
				+ "<b><span class='secondtier'>" + itemName[k][j]
				+ "</span></b></a>&nbsp;&nbsp;&nbsp;"

document.write (itemStr[k][j])

}

document.write ("</td>")
document.write ("</tr></table>")
document.write (layerEnd)

}


<!-- sub for menu10: recipes -->

var k=11

document.write (layerStr [k-1])

document.write ("<table border='0' cellspacing='0' cellpadding='0'><tr>")
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] = "<a href='" + itemURL[k][j] + "' onMouseOver=ClearTimeOut() onMouseOut=LayerTimeOut() class='secondtier' target='_top'>"
			+ "<b><span class='secondtier'>" + itemName[k][j]
			+ "</span></b></a>&nbsp;&nbsp;&nbsp;"

document.write (itemStr[k][j])

}

document.write("</td>")
document.write ("</tr></table>")
document.write (layerEnd)
