_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out _menuOpenDelay=150 // The time delay before menus open on mouse over _subOffsetTop=10 // Sub menu top offset _subOffsetLeft=-10 // Sub menu left offset //general styles for menus with(menuStyle=new mm_style()){ onbgcolor=""; oncolor="#ff7505"; offbgcolor=""; offcolor="#ffffff"; bordercolor="#FFFFFF"; borderstyle="solid"; borderwidth=0; separatorcolor="#000000"; separatorsize="0"; padding=7; fontsize="12px"; fontstyle="normal"; fontfamily="Myriad, Helvetica, Arial, Helvetica, Tahoma"; pagecolor=""; pagebgcolor=""; headercolor=""; headerbgcolor=""; subimage=""; subimagepadding=""; overfilter="Fade(duration=0.2);Alpha(opacity=90);"; outfilter="randomdissolve(duration=0.3)"; } with(subMenuStyle=new mm_style()){ onbgcolor="#222222"; oncolor="#ff7505"; offbgcolor="#222222"; offcolor="#ffffff"; bordercolor="#666666"; borderstyle="solid"; borderwidth=1; separatorcolor="#666666"; separatorsize="1"; padding=5; fontsize="10px"; fontstyle="normal"; fontfamily="Verdana, Arial, Helvetica, Tahoma"; pagecolor=""; pagebgcolor=""; headercolor=""; headerbgcolor=""; subimage=""; subimagepadding=""; itemwidth=120; overfilter="Fade(duration=0.1);Alpha(opacity=100);"; outfilter="randomdissolve(duration=0.1)"; } with(milonic=new menuname("Main Menu")) { style=menuStyle; alwaysvisible=1; orientation="horizontal"; position="relative"; aI("text= Startsida   ;url=category.php?categoryID=1;status=Till Startsida;pointer=pointer;"); aI("text= Upptäck A-borrning   ;showmenu=Submenu6;status=Till Upptäck A-borrning;pointer=default;"); aI("text= Projekt   ;showmenu=Submenu4;status=Till Projekt;pointer=default;"); aI("text= Vid beställning   ;showmenu=Submenu7;status=Till Vid beställning;pointer=default;"); aI("text= Kontakta oss   ;showmenu=Submenu9;status=Till Kontakta oss;pointer=default;"); aI("text= Nyheter/Press   ;url=category.php?categoryID=24;status=Till Nyheter/Press;pointer=pointer;"); } with(milonic=new menuname("Submenu6")){ style=subMenuStyle; overflow="scroll"; openstyle="down"; aI("text= Företaget ;url=category.php?categoryID=28;status=Till Företaget;"); aI("text= Affärsidé ;url=category.php?categoryID=17;status=Till Affärsidé;"); aI("text= Ekonomi ;url=category.php?categoryID=30;status=Till Ekonomi;"); aI("text= Kvalitet ;url=category.php?categoryID=20;status=Till Kvalitet;"); aI("text= Miljö ;url=category.php?categoryID=31;status=Till Miljö;"); aI("text= Arbetsmiljö ;url=category.php?categoryID=18;status=Till Arbetsmiljö;"); aI("text= Dokument ;url=category.php?categoryID=19;status=Till Dokument;"); } with(milonic=new menuname("Submenu4")){ style=subMenuStyle; overflow="scroll"; openstyle="down"; aI("text= Avslutade ;url=category.php?categoryID=25;status=Till Avslutade;"); } with(milonic=new menuname("Submenu7")){ style=subMenuStyle; overflow="scroll"; openstyle="down"; aI("text= Företag ;url=category.php?categoryID=22;status=Till Företag;"); aI("text= Privatperson ;url=category.php?categoryID=23;status=Till Privatperson;"); } with(milonic=new menuname("Submenu9")){ style=subMenuStyle; overflow="scroll"; openstyle="down"; aI("text= Företagsuppgifter ;url=category.php?categoryID=21;status=Till Företagsuppgifter;"); aI("text= Personal ;url=category.php?categoryID=8;status=Till Personal;"); aI("text= Vägbeskrivning ;url=category.php?categoryID=16;status=Till Vägbeskrivning;"); } drawMenus();