if (document.all) {n=0;ie=1;ns6=0;fShow="visible";fHide="hidden";} if (document.getElementById&&!document.all) {n=0;ie=0;ns6=1;fShow="visible";fHide="hidden";} if (document.layers) {n=1;ie=0;ns6=0;fShow="show";fHide="hide";} opr6=ie&&navigator.userAgent.indexOf("Opera")!=-1; //alert(opr6); /* --------------------------------------------------------------- Top Nav Bar I v2- By Constantin Kuznetsov Jr. (script@esolutiononline.com) Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002 Modified by Sulatto Technologies Oy to integrate script with other components ------------------------------------------------------------------*/ window.onerror=new Function("return true") /* G L O B A L P A R A M E T E R S */ /* ---------------------------------------------------------------*/ rightX = 0; // Menubar and submenu widths // Set maxWidth same as totalWidth if layout is fixed to top corner // Set maxWidth to 0 if layout is centered totalWidth = 774; maxWidth = 0; subWidth = 170; //Menubars distance from browser top edge submenuOffsetIE = 20; submenuOffsetNS = 18; //Finetuning submenus place leftBiasIE = 5; leftBiasNS = 4; //Finetuning ns6 submenus to right place var ns6offset = ns6?15:0; mainItemSeparator = "   " // CSS style settings mainStyle = "toplinks1"; subStyle = "toplinks11"; menuBarColor = menucolor; subMenuColor = subcolor; if (sitepath=="/common/") commonpath=""; else commonpath = sitepath; function Menu() { /*Menubar static links*/ /* ---------------------------------------------------------------*/ if (lang==1) staticLinks = "Etusivu" + mainItemSeparator; else if (lang==2) staticLinks = "Ingång" + mainItemSeparator; else staticLinks = "Home" + mainItemSeparator; /* ---------------------------------------------------------------*/ this.bgColor = menuBarColor; this.subColor = subMenuColor; this.addItem = addItem; this.addSubItem = addSubItem; this.showMenu = showMenu; this.mainPaneBorder = 0; this.subMenuPaneBorder = 0; this.mainmenumargin = 10; this.subMenuPaneWidth = subWidth; lastMenu = null; rightY = 0; leftY = 0; leftX = 0; HTMLstr = ""; HTMLstr += "\n"; HTMLstr += "\n"; if (ie) HTMLstr += "
\n"; // if (n) HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "
"; if (ie||ns6) HTMLstr += ""; if (n) HTMLstr += " 
 "; if (ie||ns6) HTMLstr += "" HTMLstr += staticLinks; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; if (n) HTMLstr += "
"; if (ie||ns6) HTMLstr += "
\n"; // HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; HTMLstr += "\n"; // HTMLstr += "\n"; if (ie) HTMLstr+= "
\n"; // if (n) HTMLstr+= "\n"; HTMLstr += "\n"; } function addItem(idItem, text, hint, location, altLocation) { var Lookup = ""; if (HTMLstr.indexOf(Lookup) != -1) { alert(idParent + " already exist"); return; } var MENUitem = ""; MENUitem += "\n\n"; if (n) { MENUitem += ""; MENUitem += ""; //MENUitem += "| "; MENUitem += text; MENUitem += "" + mainItemSeparator; MENUitem += ""; } if (ie||ns6) { MENUitem += "\n"; MENUitem += "
\n"; MENUitem += "\n\n"; MENUitem += "\n"; HTMLstr = HTMLstr.replace("\n", MENUitem); } function addSubItem(idParent, text, hint, location) { var MENUitem = ""; Lookup = ""; if (HTMLstr.indexOf(Lookup) == -1) { alert(idParent + " not found"); return; } Lookup = ""; if (HTMLstr.indexOf(Lookup) == -1) { if (n) { MENUitem += "\n"; MENUitem += "\n"; MENUitem += "\n"; MENUitem += "\n"; MENUitem += "
\n"; MENUitem += "
\n"; MENUitem += "\n"; } if (ie||ns6) { MENUitem += "\n"; //MENUitem += "