



_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=-5              // Sub menu top offset
_subOffsetLeft=5            // Sub menu left offset

with(mainStyle=new mm_style()){
oncolor="#FFFEFC";
offcolor="#C4C2C5";
bordercolor="";
borderstyle="solid";
borderwidth=0;
separatorcolor="#000000";
separatorsize="0";
padding=1;
fontsize="11";
fontstyle="normal";
fontweight="normal";
fontfamily="tahoma";
pagecolor="#FFFEFC";
valign="middle";
itemheight=20;
rawcss="padding-right:15px;";
}


with(subStyle=new mm_style()){
itemwidth=140;
itemheight=17;
valign="middle";
onbgcolor="#638392";
oncolor="#ffffff";
offbgcolor="#ffffff";
offcolor="#000000";
bordercolor="#A1B3BD";
borderstyle="solid";
borderwidth=1;
separatorcolor="#666666";
separatorsize="0";
padding=2;
fontsize="11";
fontstyle="normal";
fontfamily="tahoma";
pagecolor="#ffffff";
overfilter="Fade(duration=0.2);Alpha(opacity=90);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=139;
left=0;
alwaysvisible=1;
orientation="horizontal";

aI("text=Velkommen;url=/1/60/velkommen.html;showmenu=menu60");

aI("text=Profil;url=/1/17/profil.html;showmenu=menu17");

aI("text=Kontakt os;url=/1/27/kontakt-os.html;showmenu=menu27");

}





with(milonic=new menuname("menu60")){
style=subStyle;
overflow="scroll";
left="offset=0";
top="offset=5";



}









with(milonic=new menuname("menu17")){
style=subStyle;
overflow="scroll";
left="offset=0";
top="offset=5";



}









with(milonic=new menuname("menu27")){
style=subStyle;
overflow="scroll";
left="offset=0";
top="offset=5";



}












drawMenus();


function setLeftPosOfMainMenu() {

	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-380
	intLeftPos = intLeftPos + 145

	spos(gmobj("menu" + getMenuByName("Main Menu")),null,intLeftPos,null,null);
}

onload = setLeftPosOfMainMenu;
onresize = setLeftPosOfMainMenu;