function init(){ if(!window.standards) return; if(window.inited) return; ////////////////////////////////// GLOBAL OFFSET VARIABLES ////////////////////////////// if(bw.wIE || bw.ns){ menuOffsetTop = 3; // first level menu. smaller number is more up menuOffsetLeft = 2; // first level menu. smaller number is more right. } else if(bw.mIE){ menuOffsetTop = -1; // first level menu. smaller number is more right menuOffsetLeft = -6; // first level menu. smaller number is more right } submenuOffsetTop = -14 ;// smaller number is closer to top if(bw.wIE) submenuOffsetLeft = -12; // left-side menu. smaller number is closer to menu else if(bw.mIE) submenuOffsetLeft = -4; // left-side menu. smaller number is closer to menu submenuOffsetRight = 0;// right-side menu. smaller number is closer to menu. ////////////////////////////////// GLOBAL OFFSET VARIABLES ////////////////////////////// var uiMenubar = new Menubar(); uiMenubar.add(gmsMenu = new Menu('Games')); uiMenubar.add(tvsMenu = new Menu('T.V')); uiMenubar.add(mvsMenu = new Menu('Movies')); uiMenubar.add(wthMenu = new Menu('Weather')); uiMenubar.add(plmMenu = new Menu('News')); plmProdMenu = new Menu('general'); plmProdMenu.help="Windows, Menus, Tabs, Scrollers";//appears in statusbar plmProdMenu.add(new MenuItem('reuters','http://www.reuters.com/')); plmProdMenu.add(new MenuItem('yahoo','http://news.yahoo.com/')); plmProdMenu.add(new MenuItem('bloomberg','http://www.bloomberg.com/')); plmMenu.add(plmProdMenu); plmMenu.addSeparator("#000388"); plmProdMenu = new Menu('global'); plmProdMenu.help="Windows, Menus, Tabs, Scrollers";//appears in statusbar plmProdMenu.add(new MenuItem('BBC','http://news.bbc.co.uk/')); plmProdMenu.add(new MenuItem('F/P','http://globalnews.foreignpolicy.com/')); plmMenu.add(plmProdMenu); plmMenu.addSeparator("#000388"); plmProdMenu = new Menu('science'); plmProdMenu.help="Windows, Menus, Tabs, Scrollers";//appears in statusbar plmProdMenu.add(new MenuItem('science daily','http://www.sciencedaily.com/news/')); plmProdMenu.add(new MenuItem('wired','http://www.wired.com/')); plmMenu.add(plmProdMenu); plmMenu.addSeparator("#000388"); uiMenubar.add(sclMenu = new Menu('Social')); uiMenubar.add(webMenu = new Menu('Poetry')); webProdMenu = new Menu('my poetry'); webProdMenu.add(new MenuItem('my poetry','http://the.black.wid0w.tripod.com/poetry.html')); webMenu.add(webProdMenu); webMenu.addSeparator("#000388") webProdMenu = new Menu('classic'); webProdMenu.add(new MenuItem('classic','http://www.world-english.org/poetry.htm')); uiMenubar.add(webMenu); webMenu.add(webProdMenu); webMenu.addSeparator("#000388") wqpMenu = new Menu('Art'); wqpMenu.add(new MenuItem('Web marketing plan','http://webquestpro.com/web_marketing.html')); wqpMenu.add(new MenuItem('Targeted design','http://webquestpro.com/mdesign.htm')); wqpMenu.add(new MenuItem('Online marketing','http://webquestpro.com/mmarketing.htm')); wqpMenu.add(new MenuItem('Online success','http://webquestpro.com/msuccess.htm')); uiMenubar.add(wqpMenu); uiMenubar.add(phtMenu = new Menu('Photos')); uiMenubar.add(lnkMenu = new Menu('Links')); uiMenubar.add(tlsMenu = new Menu('Tools')); uiMenubar.add(webMenu); uiMenubar.useMouseOver(); document.body.appendChild(uiMenubar); // setWidth method added april 2, 2002. uiMenubar.setWidth("auto",900); window.inited = true; }