////////////////////////////////////////////////////////////////////////// //////////// ////////////// //////////// StarChefs Navigation Bar Update Sheet ////////////// //////////// (to update, please follow the few steps ////////////// //////////// listed below) ////////////// //////////// ////////////// /////////////////////////////////////////////// Feb. 2002 ////////////// /////// please use NON-DREAMWEAVER text editor to modify this sheet ////////////////////////////////////////////////////////////////////////// // // // IMAGES: // // // // // // 1. Create a folder within the directory "/includes/images": // // http://www.starchefs.com/includes/images/AAA // // // // Note that the name of the folder "AAA" should be either a // // color or a season's name that is the same as the "colorScheme" // // value at the end of this sheet. // // // // // // 2. Upload these images sliced from ImageReady: // // // // topnav_logo.gif 202*77 pixels // // topnav_up.gif 360*51 pixels // // topnav_grad.gif 538*26 pixels // // // // menu1.gif -- ask the experts 89*20 pixels // // menu1_over.gif 89*20 pixels // // menu2.gif -- chefs 41*20 pixels // // menu2_over.gif 41*20 pixels // // menu3.gif -- wine 35*20 pixels // // menu3_over.gif 35*20 pixels // // menu4.gif -- community 67*20 pixels // // menu4_over.gif 67*20 pixels // // menu5.gif -- features 54*20 pixels // // menu5_over.gif 54*20 pixels // // menu6.gif -- news 37*20 pixels // // menu6_over.gif 37*20 pixels // // menu7.gif -- jobfinder 59*20 pixels // // menu7_over.gif 59*20 pixels // // menu8.gif -- business tools 84*20 pixels // // menu8_over.gif 84*20 pixels // // menu9.gif -- shop 36*20 pixels // // menu9_over.gif 36*20 pixels // // menu10.gif -- recipes 53*20 pixels // // menu10_over.gif 53*20 pixels // // // // upright_home.gif 33*51 pixels // // upright_home_over.gif 33*51 pixels // // upright_feedback.gif 47*51 pixels // // upright_feedback_over.gif 47*51 pixels // // upright_email.gif 33*51 pixels // // upright_email_over.gif 33*51 pixels // // upright_help.gif 27*51 pixels // // upright_help_over.gif 27*51 pixels // // upright_split1.gif 9*51 pixels // // upright_split2.gif 9*51 pixels // // upright_split3.gif 8*51 pixels // // // // // // 3. Don't forget to make a "HELP WANTED. HELP FOUND." gif // // image with the correct color. Then put it in the same folder. // // // // The file: "helpwantedhelpfound.gif" (167*15 pixels) // // // ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// // // // Update topnav COLORS: please replace the color values in "". // // // // color1 -- 2nd row, background color // // color2 -- 2nd row, right side, one pixel line at top // // color3 -- 2nd row, stibes // // (be sure that in the design there're exactly 3 stribes // // from the bottom, if no stribe at all, please put // // in the same value as color1) // // color4 -- 3rd row, background color // // // ////////////////////////////////////////////////////////////////////////// var color1 = "#02669C"; var color2 = "#000000"; var color3 = "#02669C"; var color4 = "#002F62"; ////////////////////////////////////////////////////////////////////////// // // // Replace the color scheme value in "". It's the same value as // // the "AAA" folder name described above. // // // ////////////////////////////////////////////////////////////////////////// var colorScheme = "blue"; ////////////////////////////////////////////////////////////////////////// // // // lastly, please modify the STYLE SHEET color values // // according to the new navbar look & feel. // // http://www.starchefs.com/site_stylesheets/navstyle.css // // // // usually it only needs 2 color values: text and hover. ('link', // // 'active', and 'visited' can be the same) // // // ////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// end of sheet // ______________________ preload navbar images MM_preloadImages ('/includes/images/' + colorScheme + '/topnav_logo.gif', '/includes/images/' + colorScheme + '/topnav_grad.gif', '/includes/images/' + colorScheme + '/topnav_up.gif', '/includes/images/' + colorScheme + '/upright_home_over.gif', '/includes/images/' + colorScheme + '/upright_home.gif', '/includes/images/' + colorScheme + '/upright_split1.gif', '/includes/images/' + colorScheme + '/upright_feedback_over.gif', '/includes/images/' + colorScheme + '/upright_feedback.gif', '/includes/images/' + colorScheme + '/upright_split2.gif', '/includes/images/' + colorScheme + '/upright_email_over.gif', '/includes/images/' + colorScheme + '/upright_email.gif', '/includes/images/' + colorScheme + '/upright_split3.gif', '/includes/images/' + colorScheme + '/upright_help_over.gif', '/includes/images/' + colorScheme + '/upright_help.gif', '/includes/images/' + colorScheme + '/menu1_over.gif', '/includes/images/' + colorScheme + '/menu1.gif', '/includes/images/' + colorScheme + '/menu2_over.gif', '/includes/images/' + colorScheme + '/menu2.gif', '/includes/images/' + colorScheme + '/menu3_over.gif', '/includes/images/' + colorScheme + '/menu3.gif', '/includes/images/' + colorScheme + '/menu4_over.gif', '/includes/images/' + colorScheme + '/menu4.gif', '/includes/images/' + colorScheme + '/menu5_over.gif', '/includes/images/' + colorScheme + '/menu5.gif', '/includes/images/' + colorScheme + '/menu6_over.gif', '/includes/images/' + colorScheme + '/menu6.gif', '/includes/images/' + colorScheme + '/menu7_over.gif', '/includes/images/' + colorScheme + '/menu7.gif', '/includes/images/' + colorScheme + '/menu8_over.gif', '/includes/images/' + colorScheme + '/menu8.gif', '/includes/images/' + colorScheme + '/menu9_over.gif', '/includes/images/' + colorScheme + '/menu9.gif', '/includes/images/' + colorScheme + '/menu10_over.gif', '/includes/images/' + colorScheme + '/menu10.gif', '/includes/images/' + colorScheme + '/helpwantedhelpfound.gif') // __________________________________ 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=" } //_____________________________________________________ construct layers according to browser layerStr = new Array (); Z = new Array ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"); W = new Array ("600", "600", "600", "600", "700", "600", "600", "600", "700", "640"); if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) < 5))) { for (var i=0; i<=10; i++) { layerStr [i] = "" } layerEnd = "" } else { for (var i=0; i<=10; i++) { layerStr [i] = "
" } layerEnd = "
" } var k=10 //______________________ k: menu length //___________________________________________________ turn on the sub-menu/turn off the previous function show(n) { eval (showStr1 + n + showStr2 + "'visible'"); for(var i=0; i") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("
") document.write ("") document.write ("
") document.write ("") document.write ("
") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("
") document.write ("") document.write ("") document.write ("") document.write (" 
") document.write ("
") document.write ("
") document.write ("") document.write ("") document.write ("") document.write ("
") document.write('') document.write('') document.write('') //////// _____________________ create stribes (*3) for(var i=1; i<= 3; i++) { document.write('') document.write('') } document.write('
') document.write('') document.write('
') document.write('') document.write('
') document.write('') document.write('
') document.write('') document.write('
') document.write ("
") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("") document.write ("
") document.write ("") document.write ("") menuStr = new Array(); menuWidth = new Array(null, 89, 41, 35, 67, 54, 37, 59, 84, 36, 53); menuURL = new Array(null, "http://starchefs.com/ask_the_expert/index.shtml", "http://starchefs.com/chefs/html/index.shtml", "http://starchefs.com/wine/html/index.shtml", "http://starchefs.com/community/html/index.shtml", "http://starchefs.com/features/html/index.shtml", "http://starchefs.com/news/html/index.shtml", "http://www.starchefsjobfinder.com/", "http://starchefs.com/business_tools/html/index.html", "http://store.starchefs.com/index.shtml", "http://starchefs.com/search.php"); for (var j = 1; j <= menuWidth.length - 1; j++) { menuStr[j] = "" document.write (menuStr[j]) } document.write ("
 " + "
") if (document.layers) { document.write (''); } else { document.write (''); } cate = new Array (null, "ask", "chefs", "wine", "community", "features", "news", "jobfinder", "b_tools", "shop", "recipes"); itemSpace = new Array(null, 9, 0, 80, 90, 114, 84, 11, 330, 307, 170); itemStr = new Array(); itemWidth = new Array(); itemURL = new Array(); subItem = 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(); itemWidth[1] = new Array (null, 99, 99, 140) // _______________ ask the experts itemWidth[2] = new Array (null) // _________ chefs itemWidth[3] = new Array (null, 77, 37, 68, 100) // _________________ wine itemWidth[4] = new Array (null, 87, 104, 103, 82, 100) // _________ community itemWidth[5] = new Array (null, 50, 160, 67, 90) // ___________________ features itemWidth[6] = new Array (null, 130, 140, 100, 120) // __________ news itemWidth[7] = new Array (null, 42, 78, 84, 92, 120, 50, 120) // ______________________ jobfinder itemWidth[8] = new Array (null, 120, 120) // ______ business tools itemWidth[9] = new Array (null, 84, 74, 94) // ______________________ shop itemWidth[10] = new Array (null, 100, 120, 84, 120) // ______________recipes itemWidth[11] = new Array(null); subItem[1] = new Array(null, "ask bobby flay", "ask sommelier", "ask peter") subItem[2] = new Array(null) subItem[3] = new Array(null, "sommelier", "tips", "features", "newsgroups") subItem[4] = new Array(null, "james beard", "culinary schools", "culinary events", "newsgroups", "resources") subItem[5] = new Array(null, "foods", "holidays & special events", "seasonal", "trends") subItem[6] = new Array(null, "press releases", "rumbles & murmurs", "bloomberg radio", "newsletter") subItem[7] = new Array(null, "log in", "search jobs", "post resume", "career center", "employer resource", "pricing", "new account") subItem[8] = new Array(null, "learning materials", "business services") subItem[9] = new Array(null, "gift baskets", "cookbooks", "chefs products") subItem[10] = new Array(null, "top 10 recipes", "secret ingredients", "quick meals", "recipe search") subItem[11] = new Array(null) itemURL[1] = new Array (null, "http://starchefs.com/cgi-bin/bobby.pl", "http://starchefs.com/cgi-bin/wine.pl", "http://starchefs.com/PLanglois/html/index.shtml") itemURL[2] = new Array (null) itemURL[3] = new Array (null, "http://starchefs.com/cgi-bin/wine.pl", "http://starchefs.com/wine/tips/html/index.shtml", "http://starchefs.com/wine/features/html/index.shtml", "#") itemURL[4] = new Array (null, "http://www.jamesbeard.org", "http://starchefs.com/community/html/schools.shtml", "http://starchefs.com/community/html/events.shtml", "http://starchefs.com/boardtopic.html", "http://starchefs.com/community/html/resources.shtml") itemURL[5] = new Array (null, "http://starchefs.com/features/html/foods.shtml", "http://starchefs.com/features/html/holiday.shtml", "http://starchefs.com/features/html/seasonal.shtml", "http://starchefs.com/features/html/trends.shtml") itemURL[6] = new Array (null, "http://www.starchefs.com/news/press_releases/html/index.shtml", "http://www.starchefs.com/news/rumbles_murmurs/html/index.shtml", "http://www.starchefs.com/bloomberg/html/index.shtml", "http://www.starchefs.com/news/newsletter/starchefs/html/index.shtml") itemURL[7] = new Array (null, "http://www.starchefsjobfinder.com//acct_login.php", "http://www.starchefsjobfinder.com//joblist.php", "http://www.starchefsjobfinder.com//candidatelogin.php", "http://starchefs.com/CulinarySchools.html", "http://www.starchefsjobfinder.com//employer_resource/employer_resource.php", "http://www.starchefsjobfinder.com//job_price.php", "http://www.starchefsjobfinder.com//acct_reg.php") itemURL[8] = new Array (null, "http://starchefs.com/business_tools/learning_materials/html/index.html", "http://starchefs.com/business_tools/business_services/html/index.html") itemURL[9] = new Array (null, "http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=Store&Category_Code=GIFTBASKETS", "http://starchefs.com/Cookbooks/Cookbooks.html", "http://store.starchefs.com/Merchant2/merchant.mv?Screen=CTGY&Store_Code=Store&Category_Code=JEANGEORGES") itemURL[10] = new Array (null, "http://starchefs.com/recipes/html/top_10_recipes.shtml", "http://starchefs.com/secretingredients.html", "http://quickmeals.starchefs.com/", "http://starchefs.com/search.php") itemURL[11] = new Array (null) for (var k = 1; k <= 9; k++) { document.write (layerStr [k-1]) document.write ("") document.write ("") // ________________________________________________________ sub menus for (var j = 1; j <= itemWidth[k].length - 1; j++) { itemStr[k][j] = "" document.write (itemStr[k][j]) } document.write ("
 " + "" + subItem[k][j] + "
") document.write (layerEnd) } var k=10 document.write (layerStr [k-1]) document.write ("") document.write ("") for (var j = 1; j <= itemWidth[k].length - 1; j++) { itemStr[k][j] = "" document.write (itemStr[k][j]) } document.write ("
 " + "" + subItem[k][j] + "
") document.write (layerEnd) //___________________________________________________ regular swapping images /* Function that swaps images. */ function swap(id, newSrc) { var theImage = FWFindImage(document, id, 0); if (theImage) { theImage.src = newSrc; } } /* Functions that track and set toggle group button states. */ function FWFindImage(doc, name, j) { var theImage = false; if (doc.images) { theImage = doc.images[name]; } if (theImage) { return theImage; } if (doc.layers) { for (j = 0; j < doc.layers.length; j++) { theImage = FWFindImage(doc.layers[j].document,name,0); if (theImage) { return (theImage); } } } return (false); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i