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
//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 widths
// Set maxWidth same as totalWidth if layout is fixed to top corner
// Set maxWidth to 0 if layout is centered
totalWidth = 930;
maxWidth = 0;
mainItemSeparator = " "
// CSS style settings
mainStyle = "toplinks1";
menuBarColor = menucolor;
subMenuColor = subcolor;
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.showMenu = showMenu;
this.mainPaneBorder = 0;
this.subMenuPaneBorder = 0;
this.menuBarHeight = 23;
this.mainmenumargin = 10;
rightY = 0;
leftY = 0;
leftX = 0;
HTMLstr = "";
HTMLstr += "\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";
}
function addItem(idItem, text, hint, location, altLocation)
{
var MENUitem = "";
if (n)
{
MENUitem += "";
MENUitem += text;
MENUitem += "" + mainItemSeparator;
}
if (ie||ns6)
{
MENUitem += "\n";
MENUitem += "";
MENUitem += text;
MENUitem += "" + mainItemSeparator;
MENUitem += " | \n";
}
MENUitem += "\n";
HTMLstr = HTMLstr.replace("\n", MENUitem);
}
function showMenu()
{
document.writeln(HTMLstr);
}