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=0;
_subOffsetLeft=0;

function larghezza_schermo(){
	var larghezza= document.documentElement.clientWidth;
}



with(horizStyle=new mm_style()){

bordercolor="#999999";
borderstyle="solid";
borderwidth=0;
fontfamily="arial, tahoma";
fontsize="11px";
fontweight='bold';
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
offbgcolor="#ddd";
offcolor="#000000";
//onbgcolor="#FEFAD2";
onborder="1px solid #999999";
oncolor="#000000";
//onsubimage="http://www.milonic.com/menuimages/on_downboxed.gif";

padding=8;
pagebgcolor="#999";
pagecolor="#fff";
//pageimage="http://www.milonic.com/menuimages/db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorwidth=1;
//subimage="http://www.milonic.com/menuimages/downboxed.gif";
}

with(vertStyle=new mm_style()){
styleid=1;
bordercolor="#999999";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="11px";
fontweight='normal';
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
//image="http://www.milonic.com/menuimages/18_blank.gif";
imagepadding=0;
//menubgimage="img/backoff_green.gif";
offbgcolor="transparent";
offcolor="#000000";
//onbgcolor="#ccccff";
//onborder="1px solid #999999";
align="left";
oncolor="#000000";
onsubimage="http://www.milonic.com/menuimages/on_13x13_greyboxed.gif";
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=3)";
padding=3;
//pagebgcolor="#000066";
pagecolor="#000066";
pageimage="http://www.milonic.com/menuimages/db_red.gif";
//separatoralign="right";
separatorcolor="#999999";
separatorpadding=0;
//separatorwidth="10px";
//subimage="http://www.milonic.com/menuimages/black_13x13_greyboxed.gif";
menubgcolor="#ddd";

}

with(vertStyle2=new mm_style()){
styleid=2;
bordercolor="#999999";
borderstyle="solid";
borderwidth=0;
fontfamily="arial, tahoma";
fontsize="11px";
fontweight='bold';
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
//image="http://www.milonic.com/menuimages/18_blank.gif";
imagepadding=3;
//menubgimage="img/backoff_green.gif";
offbgcolor="transparent";
offcolor="#000000";
//onbgcolor="#FEFAD2";
//onborder="1px solid #999999";
align="center";
oncolor="#000000";
onsubimage="http://www.milonic.com/menuimages/on_13x13_greyboxed.gif";
outfilter="randomdissolve(duration=0.2)";
//overfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=3)";
padding=8;
//pagebgcolor="#CFE2D1";
pagecolor="#000066";
//pageimage="http://www.milonic.com/menuimages/db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorpadding=1;
separatorwidth="10px";
//subimage="http://www.milonic.com/menuimages/black_13x13_greyboxed.gif";
menubgcolor="transparent";

}

with(milonic=new menuname("Sample mainmenu")){
alwaysvisible=1;
position='absolute';
screenposition='center';
top=105;


orientation="horizontal";
style=horizStyle;

aI("text=HOME;url=index.php;");
aI("showmenu=Azienda;text=COMPANY");

aI("text=CREATE YOUR PRODUCT;url=costruisci.php;");
aI("text=DELIVERY TIMES;url=consegna.php;");
aI("showmenu=Prodotti;text=PRODUCTS");
aI("text=IN-HOUSE DESIGN ENGINEERING;url=progettazione.php;");
aI("text=NEWS AND TRADE SHOWS;url=news.php;");
aI("text=CONTACTS;url=contatti.php;");
}


with(milonic=new menuname("azienda")){
margin=3;
style=vertStyle;
top="offset=2";
aI("text=PROFILE;url=azienda.php;");
aI("text=CERTIFICATIONS;url=certificazioni.php;");


}



with(milonic=new menuname("benne")){
margin=3;
style=vertStyle;
top="offset=2";
aI("showmenu=pala;text=SHOVEL BUCKETS;url=prodotti.php?tipo=1;");
aI("showmenu=escavatore;text=EXCAVATOR BUCKETS;url=prodotti.php?tipo=2;");


}



with(milonic=new menuname("forche")){
margin=3;
style=vertStyle;
top="offset=2";
aI("text=BLOCK;url=prodotti.php?id=13;");
aI("text=PALLET;url=prodotti.php?id=14;");
aI("text=LOG GRAPPLES;url=prodotti.php?id=15;");


}



with(milonic=new menuname("blocchi")){
margin=3;
style=vertStyle;
top="offset=2";
aI("text=RAKE;url=prodotti.php?id=17;");
aI("text=BREAKET TINE;url=prodotti.php?id=18;");



}



with(milonic=new menuname("riparazioni")){
margin=3;
style=vertStyle;
top="offset=2";
aI("text=SPARE PARTS;url=prodotti.php?id=19;");




}


with(milonic=new menuname("pala")){
margin=3;
style=vertStyle;
aI("text=HEAVY DUTY;url=prodotti.php;url=prodotti.php?id=1;");
aI("text=ROCK;url=prodotti.php;url=prodotti.php?id=2;");
aI("text=BLOCK;url=prodotti.php;url=prodotti.php?id=3;");
aI("text=STEELWORKS;url=prodotti.php;url=prodotti.php?id=4;");
aI("text=LIGHT MATERIAL;url=prodotti.php;url=prodotti.php?id=5;");
aI("text=GARBAGE;url=prodotti.php;url=prodotti.php?id=20;");
aI("text=COAL;url=prodotti.php;url=prodotti.php?id=21;");
aI("text=SKELETON;url=prodotti.php;url=prodotti.php?id=6;");
aI("text=SIDE DUMPING;url=prodotti.php;url=prodotti.php?id=7;");

}





with(milonic=new menuname("escavatore")){
margin=3;
style=vertStyle;
aI("text=ROCK;url=prodotti.php;url=prodotti.php?id=8;");
aI("text=APUANIA;url=prodotti.php;url=prodotti.php?id=9;");
aI("text=COASTAL ROCK;url=prodotti.php;url=prodotti.php?id=10;");
aI("text=MATERIAL SORTING;url=prodotti.php;url=prodotti.php?id=11;");
aI("text=HIGH-CAPACITY;url=prodotti.php;url=prodotti.php?id=12;");
}




with(milonic=new menuname("prodotti2")){
alwaysvisible=1;
position='absolute';
screenposition='center';
left= (document.documentElement.clientWidth / 2) - 422;
top = 158;
orientation="verical";
style=vertStyle2;

aI("showmenu=benne;text=BUCKETS;image=http://www.lameter.it/img/home_Page_1_Image_0010.jpg;imageposition=top;imageheight=60;");
aI("showmenu=forche;text=FORKLIFTS;image=http://www.lameter.it/img/home_Page_1_Image_0011.jpg;imageposition=top;imageheight=60;");
aI("text=QUICK COUPLERS;image=http://www.lameter.it/img/home_Page_1_Image_0012.jpg;imageposition=top;imageheight=60;url=prodotti.php?id=16;");
aI("showmenu=blocchi;text=BLOCK<br/>EQUIPMENT;image=http://www.lameter.it/img/home_Page_1_Image_0013.jpg;imageposition=top;imageheight=60;");
aI("showmenu=riparazioni;text=REPAIRS;image=http://www.lameter.it/img/home_Page_1_Image_0014.jpg;imageposition=top;imageheight=60;");

}

with(milonic=new menuname("prodotti")){
orientation="verical";
style=vertStyle;

aI("showmenu=benne;text=BUCKETS;");
aI("showmenu=forche;text=FORKLIFTS;");
aI("text=QUICK COUPLERS;url=prodotti.php?id=16;");
aI("showmenu=blocchi;text=BLOCK EQUIPMENT;");
aI("showmenu=riparazioni;text=REPAIRS;");

}


drawMenus();