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(tvsMenu); uiMenubar.add(tvsMenu = new Menu('T.V')); 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"); webMenu = new Menu('poetry'); webProdMenu = new Menu('my poetry'); webProdMenu.add(new MenuItem('mpoetry','http://the.black.wid0w.tripod.com/poetry.html')); 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.useMouseOver(); document.body.appendChild(uiMenubar); // setWidth method added april 2, 2002. uiMenubar.setWidth("auto",0); window.inited = true; }