fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=100;
_subOffsetTop=-2;
_subOffsetLeft=0;




with(menuStyle=new mm_style()){
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="11px";
fontstyle="bold";
headerbgcolor="#3E7698";
headercolor="#000000";
offbgcolor="#56719A";
offcolor="#FFFFFF";
onbgcolor="#071C49";
oncolor="#FFFFFF";
//outfilter="randomdissolve(duration=0.1)";
//overfilter="Fade(duration=0.3);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=5)";
//overfilter="GradientWipe(WipeStyle=0, size=1.00, motion='Forward', duration=0.2)";
padding=3;
pagebgcolor="#82B6D7";
pagecolor="#000000";
separatorcolor="#FFFFFF";
separatorsize=1;
subimage="/bilder/nav-right.gif";
subimagepadding=2;
imagepadding=0;
overfilter="Shadow(color='#333333', direction=135, strength=3)";
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=0;
overflow="scroll";
style=menuStyle;
top=0;
position="relative";
itemwidth=156;
aI("text=HEM - ANYTEC;url=http://www.anytec.se;");
aI("text=NYHETER;url=http://www.anytec.se/nyheter.shtm;");
aI("showmenu=modeller;text=MODELLER;url=http://www.anytec.se/batar.shtm;");
aI("text=ÅTERFÖRSÄLJARE;url=http://www.anytec.se/lankar.shtm;");
aI("text=BEGAGNAT;url=http://www.anytec.se/begagnat.shtm;");
aI("showmenu=media;text=MEDIA;url=http://www.anytec.se/media.shtm;");
aI("text=KONTAKTA OSS;url=http://www.anytec.se/kontaktaoss.shtm");
}

with(milonic=new menuname("modeller")){
overflow="scroll";
style=menuStyle;
aI("text=ANYTEC ALLA MODELLER;url=batar.shtm;")
aI("image=bilder/meny/1230_sm.jpg;text=ANYTEC 1230 CAB;url=http://www.anytec.se/1230cab.shtm;")
aI("image=bilder/meny/960_sm.jpg;text=ANYTEC 960 CAB;url=http://www.anytec.se/960cab.shtm;")
aI("image=bilder/meny/840_sm.jpg;showmenu=840;text=ANYTEC 840 Serien;url=http://www.anytec.se/840.shtm;")
aI("image=bilder/meny/795cab_sm.jpg;text=ANYTEC 795 CAB;url=http://www.anytec.se/795cab.shtm;")
aI("image=bilder/meny/780brcab_sm.jpg;text=ANYTEC 780 BR CAB;url=http://www.anytec.se/780brcab.shtm;")
aI("image=bilder/meny/750spd_sm.jpg;showmenu=750;text=ANYTEC 750 Serien;url=http://www.anytec.se/750.shtm;")
aI("image=bilder/meny/622sp_sm.jpg;showmenu=622;text=ANYTEC 622 Serien;url=http://www.anytec.se/622-serien.shtm;")
//aI("image=bilder/meny/622sp_sm.jpg;text=ANYTEC 622 SP;url=http://www.anytec.se/622sp.shtm;")
aI("image=bilder/meny/530st_sm.jpg;showmenu=530;text=ANYTEC 530 Serien;url=http://www.anytec.se/530-serien.shtm;")
}

with(milonic=new menuname("aterforsaljare")){
style=menuStyle;
aI("text=A-Ö;url=aterforsaljare_a-o.shtm;");
aI("text=KARTA;url=aterforsaljare_karta.shtm;");
}

with(milonic=new menuname("media")){
style=menuStyle;
aI("text=BILDARKIV;url=http://www.anytec.se/media-bilder.shtm;");
aI("text=MANUALER;url=mhttp://www.anytec.se/edia-manualer.shtm;");
aI("text=LOGOTYPER;url=http://www.anytec.se/media-logotyper.shtm;");
aI("text=KATALOGER;url=http://www.anytec.se/media-produktblad.shtm;");
}

with(milonic=new menuname("840")){
style=menuStyle;
aI("image=bilder/meny/840cab_sm.jpg;text=ANYTEC 840 CAB;url=http://www.anytec.se/840cab.shtm;")
aI("image=bilder/meny/840cc_sm.jpg;text=ANYTEC 840 CC;url=http://www.anytec.se/840cc.shtm;")
aI("image=bilder/meny/840fb_sm.jpg;text=ANYTEC 840 FB;url=http://www.anytec.se/840fb.shtm;")
aI("image=bilder/meny/840_sm.jpg;text=ANYTEC 840 FBF;url=http://www.anytec.se/840fbf.shtm;")
}

with(milonic=new menuname("750")){
style=menuStyle;
//aI("image=bilder/meny/750br_sm.jpg;text=ANYTEC 750 BR;url=http://www.anytec.se/750br.shtm;")
aI("image=bilder/meny/750spi_sm.jpg;text=ANYTEC 750 SPI;url=http://www.anytec.se/750spi.shtm;")
aI("image=bilder/meny/750spd_sm.jpg;text=ANYTEC 750 SPD;url=http://www.anytec.se/750spd.shtm;")
aI("image=bilder/meny/750sp_sm.jpg;text=ANYTEC 750 SP;url=http://www.anytec.se/750sp.shtm;")
}
with(milonic=new menuname("622")){
style=menuStyle;
aI("image=bilder/meny/622spd_sm.jpg;text=ANYTEC 622 SPD;url=http://www.anytec.se/622spd.shtm;")
aI("image=bilder/meny/622sp_sm.jpg;text=ANYTEC 622 SP;url=http://www.anytec.se/622sp.shtm;")
}

with(milonic=new menuname("530")){
style=menuStyle;
aI("image=bilder/meny/530sp_sm.jpg;text=ANYTEC 530 SP;url=http://www.anytec.se/530sp.shtm;")
aI("image=bilder/meny/530st_sm.jpg;text=ANYTEC 530 ST;url=http://www.anytec.se/530st.shtm;")
}

drawMenus();


//Skrivut-funktion för tabell-id infotext
function skrivut()
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
  var content_vlue = document.getElementById("infotext").innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>ANYTEC AB</title>'); 
   docprint.document.write('<link rel="stylesheet" href="anytec_skrivut.css" type="text/css">'); 
   docprint.document.write('</head><body bgcolor="#FFFFFF" onLoad="self.print()"><center>');          
   docprint.document.write(content_vlue);          
   docprint.document.write('</center></body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}


//Ändra på ram runt minibilder
var currentId = 'ab0';

function mouseOver(imageId) 
{ if (currentId!=imageId)  document.getElementById(imageId).style.border =  '1px dotted #000000'; }

function mouseOut(imageId) 
{ if (currentId!=imageId)  document.getElementById(imageId).style.border =  '1px solid #999999'; }

//Flytande lager
function pageOffset() {
    if (document.layers) {
        document.layers['flagga'].pageX = window.pageXOffset + 10;
        document.layers['flagga'].pageY = window.pageYOffset + 10;
    }
    else if (document.all) {
        document.all['flagga'].style.posLeft = document.body.scrollLeft + 10;
        document.all['flagga'].style.posTop = document.body.scrollTop + 10;
    }
    setTimeout('pageOffset()',100);
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}