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();

	var stbMenu = new Menu('SimplytheBest');
	uiMenubar.add(stbMenu);
	stbMenu.add(new MenuItem('Main index','http://simplythebest.net'));
	stbMenu.add(new MenuItem('Blogs','http://blogs.simplythebest.net/'));
	stbMenu.add(new MenuItem('Free games','http://games.simplythebest.net/'));

	stbMenu.addSeparator("#000388");
	stbDHTMLMenu = new Menu('DHTML scripts');
	stbDHTMLMenu.add(new MenuItem('Main index','http://simplythebest.net/scripts/categories.php?cid=4'));
	stbDHTMLMenu.add(new MenuItem('Animation','http://simplythebest.net/scripts/categories.php?cid=100'));
	stbDHTMLMenu.add(new MenuItem('Background scripts','http://simplythebest.net/scripts/categories.php?cid=101'));
	stbDHTMLMenu.add(new MenuItem('Buttons','http://simplythebest.net/scripts/categories.php?cid=103'));
	stbDHTMLMenu.add(new MenuItem('Calculators','http://simplythebest.net/scripts/categories.php?cid=104'));
	stbDHTMLMenu.add(new MenuItem('E-mail scripts','http://simplythebest.net/scripts/categories.php?cid=107'));
	stbDHTMLMenu.add(new MenuItem('Enhancements','http://simplythebest.net/scripts/categories.php?cid=108'));
	stbDHTMLMenu.add(new MenuItem('Forms','http://simplythebest.net/scripts/categories.php?cid=109'));
	stbDHTMLMenu.add(new MenuItem('Image rotations','http://simplythebest.net/scripts/categories.php?cid=110'));
	stbDHTMLMenu.add(new MenuItem('Menus','http://simplythebest.net/scripts/categories.php?cid=111'));
	stbDHTMLMenu.add(new MenuItem('Messages','http://simplythebest.net/scripts/categories.php?cid=112'));
	stbDHTMLMenu.add(new MenuItem('Password protection','http://simplythebest.net/scripts/categories.php?cid=115'));
	stbDHTMLMenu.add(new MenuItem('Scrollers','http://simplythebest.net/scripts/categories.php?cid=117'));
	stbMenu.add(stbDHTMLMenu);
	stbMenu.addSeparator("#000388");

	stbMenu.add(new MenuItem("Free fonts",'http://simplythebest.net/fonts/'));
	stbMenu.add(new MenuItem("Free sounds",'http://simplythebest.net/sounds/'));
	stbMenu.add(new MenuItem("Music directory",'http://simplythebest.net/music/'));
	stbMenu.add(new MenuItem("PHP scripts",'http://simplythebest.net/scripts/categories.php?cid=3'));
	stbMenu.add(new MenuItem("Software",'http://simplythebest.net/software/'));

	uiMenubar.add(plmMenu = new Menu('PlanMagic'));
	plmMenu.add(new MenuItem('Main page','http://planmagic.com'));
	
	plmMenu.addSeparator("#000388");
	plmProdMenu = new Menu('Business software');
	plmProdMenu.help="Windows, Menus, Tabs, Scrollers";//appears in statusbar

	plmProdMenu.add(new MenuItem('Business plan','http://planmagic.com/business_plan.html'));
	plmProdMenu.add(new MenuItem('Marketing plan','http://planmagic.com/marketing_plan.html'));
	plmProdMenu.add(new MenuItem('Financial plan','http://planmagic.com/financial_plan.html'));
	plmProdMenu.add(new MenuItem('Media plan','http://planmagic.com/media_plan.html'));
	plmProdMenu.add(new MenuItem('Restaurant plan','http://plan-a-restaurant.com'));
	plmProdMenu.add(new MenuItem('Hotel plan','http://planmagic.com/business_plan/hotel_business_plan.html'));
	plmMenu.add(plmProdMenu);
	plmMenu.addSeparator("#000388");
	
	plmMenu.add(new MenuItem('Download page','http://planmagic.com/download.html'));
	plmMenu.add(new MenuItem('Register','http://planmagic.com/register.html'));
	plmMenu.add(new MenuItem('Contact','http://planmagic.com/contact.html'));	

	webMenu = new Menu('WebBuilder');
	webMenu.add(new MenuItem('Main index','http://simplythebest.net/'));
	webMenu.add(new MenuItem('Design','http://simplythebest.net/'));
	webMenu.add(new MenuItem('Marketing','http://simplythebest.net/'));
	webMenu.add(new MenuItem('Promotion','http://simplythebest.net/'));
	webMenu.add(new MenuItem('E-commerce','http://simplythebest.net/'));
	webMenu.add(new MenuItem('Programming','http://simplythebest.net/'));
	uiMenubar.add(webMenu);

	uiMenubar.useMouseOver();
	document.body.appendChild(uiMenubar);
	
	// setWidth method added april 2, 2002.
	uiMenubar.setWidth("auto",0);

	window.inited = true;
}

