fixMozillaZIndex=false; //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;

with(menuStyle=new mm_style()){
bordercolor="#AEAFB1";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";
fontsize="70%";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#333366";
offcolor="#ffffff";
onbgcolor="#3F9BF0";
oncolor="#ffffff";
//outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
padding=3;
pagebgcolor="";
pagecolor="white";
separatorcolor="#333366";
separatorsize=1;
subimage="";
subimagepadding=2;
align="center";
}

with(menuStyle2=new mm_style()){
bordercolor="#AEAFB1";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";
fontsize="70%";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#8d9298";
offcolor="#ffffff";
onbgcolor="#67696C";
oncolor="#ffffff";
//outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
padding=3;
pagebgcolor="";
pagecolor="white";
separatorcolor="#8d9298";
separatorsize=1;
subimage="";
subimagepadding=2;
align="center";
}

with(menuStyleSM1=new mm_style()){
bordercolor="#3F9BF0";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";
fontsize="70%";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#3F9BF0";
offcolor="#ffffff";
onbgcolor="#2B85D9";
oncolor="#ffffff";
//outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
padding=3;
pagebgcolor="";
pagecolor="white";
separatorcolor="#1C63E1";
separatorsize=1;
subimage="";
subimagepadding=2;
align="left";
}

with(menuStyleSM2=new mm_style()){
bordercolor="#67696C";
borderstyle="solid";
borderwidth=1;
fontfamily="Arial";
fontsize="70%";
fontstyle="normal";
fontweight="normal";
headerbgcolor="#ffffff";
headercolor="#ffffff";
offbgcolor="#67696C";
offcolor="#ffffff";
onbgcolor="#8d9298";
oncolor="#ffffff";
//outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
padding=3;
pagebgcolor="";
pagecolor="black";
separatorcolor="#96999C";
separatorsize=1;
subimage="";
subimagepadding=2;
align="left";
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
orientation="horizontal";
style=menuStyle;
position="relative";
menuwidth="100%";
//itemwidth="100%";
aI("showmenu=about_us;text=ABOUT US;itemwidth=152;");
aI("showmenu=products;text=PRODUCTS;itemwidth=162;");
aI("text=CASE STUDIES;url=Case_Studies/Case_Studies.html;itemwidth=162;");
aI("separatorcolor=#8d9298;showmenu=news;text=NEWS AND EVENTS;itemwidth=202;");
aI("offbgcolor=#8d9298;onbgcolor=#67696C;separatorcolor=#8d9298;text=CLIENT LOG-IN;url=Log-in/Login.php;itemwidth=162;");
aI("offbgcolor=#8d9298;onbgcolor=#67696C;separatorcolor=#8d9298;text=HOME;url=index.html;itemwidth=142;");
aI("offbgcolor=#8d9298;onbgcolor=#67696C;separatorcolor=#8d9298;showmenu=contact;text=CONTACT US;itemwidth=162;");
aI("offbgcolor=#8d9298;onbgcolor=#67696C;separatorcolor=#8d9298;showmenu=language;text=LANGUAGE;itemwidth=152;");
}

with(milonic=new menuname("about_us")){
alwaysvisible=0;
orientation="vertical";
style=menuStyleSM1;
//position="relative";
top=20;
left=0;
aI("text=Overview;url=About/Distech_Controls.html;itemwidth=132;");
aI("text=Management Profiles;url=About/Management.html;itemwidth=132;");
aI("text=Awards;url=About/Awards.html;itemwidth=132;");
aI("text=News and Events;url=News_Events/News_Events.html;itemwidth=132;");
aI("text=Contact Us;url=Contact/Contact.html;itemwidth=132;");
aI("text=Careers;url=About/Careers.html;itemwidth=132;");
aI("text=Associations;url=About/Associations.html;itemwidth=132;");
aI("text=Feedback Center;url=Feedback/index.php;itemwidth=132;");
}

with(milonic=new menuname("products")){
alwaysvisible=0;
orientation="vertical";
style=menuStyleSM1;
//position="relative";
top=20;
left=108;
aI("text=Overview;url=Products/Building_automation.html;itemwidth=162;");
aI("text=Building Automation System;url=Products/Building_automation_system.html;itemwidth=162;");
aI("text=LONWORKS HVAC Controllers;url=Controllers/Lonworks_controllers.html;itemwidth=162;");
aI("text=BACnet HVAC Controllers;url=bacnet/index.html;itemwidth=162;");
aI("text=Web Building Controllers;url=Controllers/EC-Net_controllers.html;itemwidth=162;");
aI("offbgcolor=#86B54F;onbgcolor=#6F9540;text=Open-to-Wireless;url=Wireless/Open-to-Wireless.html;itemwidth=162;");
aI("text=Lighting Control;url=Lighting/Lighting.html;itemwidth=162;");
aI("text=Sensors;url=Sensors/Overview.html;itemwidth=162;");
aI("text=Peripherals;url=Products/Peripherals.html;itemwidth=162;");
aI("text=Product Certifications;url=Products/Certifications.html;itemwidth=162;");
aI("text=Products Tutorials;url=Products/Tutorials.html;itemwidth=162;");
}

with(milonic=new menuname("news")){
alwaysvisible=0;
orientation="vertical";
style=menuStyleSM1;
//position="relative";
top=20;
left=345;
aI("text=News;url=News_Events/News_Events.html;itemwidth=128;");
aI("text=Events;url=News_Events/News_Events.html#events;itemwidth=128;");
aI("text=Archived News;url=News_Events/News_Archive.html;itemwidth=128;");
}

with(milonic=new menuname("contact")){
alwaysvisible=0;
orientation="vertical";
style=menuStyleSM2;
//position="relative";
top=20;
left=693;
aI("text=Head Office;url=Contact/Contact.html;itemwidth=162;");
aI("text=Our Offices;url=Contact/Contact_Europe.html;itemwidth=162;");
aI("text=Our Local Representatives;url=Contact/Local_Contact.html;itemwidth=162;");
aI("text=Need More Informations?;url=Forms/more-info.php;itemwidth=162;");
}

with(milonic=new menuname("language")){
alwaysvisible=0;
orientation="vertical";
style=menuStyleSM2;
//position="relative";
top=20;
left=812;
aI("text=English;url=index.html;itemwidth=112;");
aI("text=Français;url=fr/index.html;itemwidth=112;");
}

drawMenus();