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=ETUSIVU - ANYTEC;url=index.shtm;");

aI("text=UUTISET;url=nyheter.shtm;");

aI("showmenu=modeller;text=KAIKKI MALLIT;url=batar.shtm;");

aI("text=JÄLLEENMYYJÄT - EDUSTAJAT;url=lankar.shtm;");

aI("showmenu=media;text=MEDIA;");

aI("text=YHTEYSTIEDOT;url=kontaktaoss.shtm");

}



with(milonic=new menuname("modeller")){

overflow="scroll";

style=menuStyle;

aI("text=KAIKKI MALLIT;url=batar.shtm;")

aI("image=../bilder/meny/1230_sm.jpg;text=ANYTEC 1230 CC RIB;url=1230cab.shtm;")

aI("image=../bilder/meny/960_sm.jpg;text=ANYTEC 960 RIB;url=960cab.shtm;")

aI("image=../bilder/meny/840_sm.jpg;showmenu=840;text=ANYTEC 840 Serie;url=840.shtm;")

aI("image=../bilder/meny/795cab_sm.jpg;text=ANYTEC 795 CAB;url=795cab.shtm;")

aI("image=../bilder/meny/780brcab_sm.jpg;text=ANYTEC 780 BR CAB;url=780brcab.shtm;")

aI("image=../bilder/meny/750spd_sm.jpg;showmenu=750;text=ANYTEC 750 sarja;url=750.shtm;")

aI("image=../bilder/meny/622sp_sm.jpg;showmenu=622;text=ANYTEC 622 sarja;url=622-serie.shtm;")

aI("image=../bilder/meny/530sp_sm.jpg;text=ANYTEC 530 SP;url=530sp.shtm;")

}



with(milonic=new menuname("aterforsaljare")){

style=menuStyle;

aI("text=A-Ö;url=aterforsaljare_a-o.shtm;");

aI("text=MAP;url=aterforsaljare_karta.shtm;");

}





with(milonic=new menuname("media")){

style=menuStyle;

aI("text=OHJEKIRJA;url=media-manualer.shtm;");

aI("text=KUVAT;url=media-bilder.shtm;");

aI("text=LOGOJEN TYYPIT;url=media-logotyper.shtm;");

aI("text=ESITTEET;url=media-produktblad.shtm;");

}



with(milonic=new menuname("840")){

style=menuStyle;

aI("image=../bilder/meny/840cab_sm.jpg;text=ANYTEC 840 CAB;url=840cab.shtm;")

aI("image=../bilder/meny/840cc_sm.jpg;text=ANYTEC 840 CC;url=840cc.shtm;")

aI("image=../bilder/meny/840fb_sm.jpg;text=ANYTEC 840 FB;url=840fb.shtm;")

aI("image=../bilder/meny/840_sm.jpg;text=ANYTEC 840 FBF;url=840fbf.shtm;")

}



with(milonic=new menuname("750")){

style=menuStyle;

aI("image=../bilder/meny/750spi_sm.jpg;text=ANYTEC 750 SPI;url=750spi.shtm;")

aI("image=../bilder/meny/750spd_sm.jpg;text=ANYTEC 750 SPD;url=750spd.shtm;")

aI("image=../bilder/meny/750sp_sm.jpg;text=ANYTEC 750 SP;url=750sp.shtm;")

}



with(milonic=new menuname("622")){

style=menuStyle;

aI("image=../bilder/meny/622spd_sm.jpg;text=ANYTEC 622 SPD;url=622spd.shtm;")

aI("image=../bilder/meny/622sp_sm.jpg;text=ANYTEC 622 SP;url=622sp.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);

}

//Växla bilder

function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}