

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;


with(mainStyle=new mm_style()){
oncolor="#FFFFFF";
pagecolor="#FFFFFF";
offcolor="#FFFFFF";
pagebgcolor="#294858";
bordercolor="";
borderstyle="solid";
borderwidth=0;
separatorcolor="";
separatorsize="0";
padding=0;
fontsize="13px";
fontstyle="normal";
fontweight="normal";
fontfamily="century gothic";
valign="middle";
itemheight=26;
rawcss="padding-left:10px; padding-right:10px;";
}


with(subStyle=new mm_style()){
itemwidth=140;
itemheight=17;
valign="middle";
onbgcolor="#294858";
oncolor="#ffffff";
pagecolor="#FFFFFF";
offbgcolor="#86a2b1";
offcolor="#FFFFFF";
bordercolor="#ffffff";
borderstyle="solid";
borderwidth=1;
separatorcolor="#666666";
separatorsize="0";
padding=2;
fontsize="32px";
fontstyle="normal";
fontfamily="century gothic";
overfilter="Fade(duration=0.2);Alpha(opacity=80);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
rawcss="padding-left:2px;";
}


with(milonic=new menuname("Main Menu")){
style=mainStyle;
top=120;
left=-1000;
alwaysvisible=1;
orientation="horizontal";


aI("text=Forside;url=/Forside.html;showmenu=menu1;offbgcolor=transparent;onbgcolor=#294858");


aI("text=Betingelser;url=/Betingelser.html;showmenu=menu37;offbgcolor=transparent;onbgcolor=#294858");


aI("text=Kontakt os;url=/Kontakt%20os.html;showmenu=menu34;offbgcolor=transparent;onbgcolor=#294858");


aI("text=Om os;url=/Om%20os.html;showmenu=menu50;offbgcolor=transparent;onbgcolor=#294858");
}


drawMenus();

function setLeftPosOfTopMenu() {
	var ie4_check = (document.all && !document.getElementById) ? 	true : false;
	var ie5_check = (document.all && document.getElementById) ? 	true : false;
	if (ie4_check || ie5_check) {
		width = document.body.clientWidth;
		} 
	else {
		width = window.innerWidth;
	}
	intLeftPos = width/2-450
	intLeftPos = intLeftPos + 200
	spos(gmobj("menu" + getMenuByName("Main Menu")),null,intLeftPos,null,null);
}

window.onload = setLeftPosOfTopMenu;
window.onresize = setLeftPosOfTopMenu;﻿

