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=5;
_subOffsetLeft=-10;




with(menuStyle=new mm_style()){
styleid=1;
bordercolor="#66BAD9";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Arial";
fontsize="11px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="";
headercolor="";
image="";
imagepadding=0;
offbgcolor="#F0F5F7";
offcolor="#2e478b";
onbgcolor="#F0F5F7";
oncolor="#ff0000";
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=5)";
overimage="";
padding=4;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#66BAD9";
separatorsize=1;
subimage="";
subimagepadding=4;
}

with(submenuStyle=new mm_style()){
bordercolor="#66BAD9";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Arial";
fontsize="11px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="";
headercolor="";
offbgcolor="#F0F5F7";
offcolor="#2e478b";
onbgcolor="#F0F5F7";
oncolor="#ff0000";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=5)";
padding=4;
pagebgcolor="";
pagecolor="";
separatorcolor="#66BAD9";
separatorsize=1;
subimage="http://www.trivista.co.uk/images/arrow.gif";
subimagepadding=2;
}

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=4;
orientation="horizontal";
style=menuStyle;
top=15;
aI("text=Home;url=http://www.trivista.co.uk;target=_parent");
aI("text=Company Profile;url=http://www.trivista.co.uk/profile.htm;target=_parent");
aI("text=Why Us?;url=http://www.trivista.co.uk/whyus.htm;target=_parent");
aI("showmenu=Services;text=Services;");
aI("text=Case Studies;url=http://www.trivista.co.uk/casestudy.htm;target=_parent");
aI("text=Outsourcing;url=http://www.trivista.co.uk/outsourcing/outsourcing.htm;target=_parent");
aI("showmenu=contact;text=Contact Us;");
aI("text=Site Map;url=http://www.trivista.co.uk/sitemap.htm;target=_parent");
}

with(milonic=new menuname("Services")){
margin=0;
style=submenuStyle;
aI("text=Overview;url=http://www.trivista.co.uk/services.htm;target=_parent");
aI("showmenu=FEA;text=FEA;");
aI("showmenu=CFD;text=CFD;");
aI("showmenu=engineering;text=Engineering Design;target=_parent");
}

with(milonic=new menuname("china")){
margin=0;
style=submenuStyle;
aI("text=Outsourcing to China;url=http://www.trivista.co.uk/outsourcing.htm;target=_parent");
aI("text=Sourcing from China;url=http://www.trivista.co.uk/sourcing.htm;target=_parent");
}

with(milonic=new menuname("contact")){
margin=0;
style=submenuStyle;
aI("text=How to find us;url=http://www.trivista.co.uk/findus.htm;target=_parent");
aI("text=Contact;url=http://www.trivista.co.uk/form.htm;target=_parent");
}

with(milonic=new menuname("FEA")){
margin=0;
style=submenuStyle;
aI("text=Overview;url=http://www.trivista.co.uk/fea.htm;target=_parent");
aI("text=Structural;url=http://www.trivista.co.uk/structural.htm;target=_parent");
aI("text=Thermal;url=http://www.trivista.co.uk/thermal.htm;target=_parent");
aI("text=Dynamic & Rotordynamic;url=http://www.trivista.co.uk/dynamic.htm;target=_parent");
aI("text=Assemblies & Coupled fields;url=http://www.trivista.co.uk/assyfields.htm;target=_parent");
}

with(milonic=new menuname("CFD")){
margin=0;
style=submenuStyle;
aI("text=Overview;url=http://www.trivista.co.uk/cfd.htm;target=_parent");
aI("text=Turbomachinery;url=http://www.trivista.co.uk/turbomachinery.htm;target=_parent");
aI("text=External flows;url=http://www.trivista.co.uk/externalflows.htm;target=_parent");
aI("text=Internal flows;url=http://www.trivista.co.uk/internalflows.htm;target=_parent");
aI("text=Pumps & fans;url=http://www.trivista.co.uk/pumpsfans.htm;target=_parent");
}

with(milonic=new menuname("engineering")){
margin=0;
style=submenuStyle;
aI("text=Overview;url=http://www.trivista.co.uk/engineeringdesign.htm;target=_parent");
aI("text=Rotating Systems;url=http://www.trivista.co.uk/rotating.htm;target=_parent");
}

drawMenus();

