_menuCloseDelay = 500;          // The time delay for menus to remain visible on mouse out
_menuOpenDelay  = 150;          // The time delay before menus open on mouse over
_subOffsetTop   =   2;
_subOffsetLeft  =  -2;

// Special effect string for IE5.5 or above
if(navigator.appVersion.indexOf("MSIE 6.0") > 0)
{
  effect1 = "Fade(duration=0.2);Alpha(style=0,opacity=88)"
  effect2 = "Fade(duration=0.2);Alpha(style=0,opacity=88)"
}
else
{
  effect1 = ""
  effect2 = ""
}

with(menuStyle=new mm_style())
{
  bordercolor    = "#000000";
  borderstyle    = "solid";
  borderwidth    = 0;
  fontfamily     = "Verdana, Geneva, Arial, helvetica, sans-serif";
  fontsize       = "11px";
  fontstyle      = "normal";
  offbgcolor     = "#000000";
  offcolor       = "#ffffff";
  onbgcolor      = "#888888";
  oncolor        = "#ffffff";
  padding        = 4;
  separatorcolor = "#000000";
  separatorwidth = 30;
}

with(milonic=new menuname("Main Menu"))
{
  alwaysvisible = 1;
  menuwidth     = "965";
  orientation   = "horizontal";
  overfilter    = effect1;
  style         = menuStyle;
  top           = 54;
  aI("type=header;text=Purchase Products ;showmenu=PurchaseProducts;");
  aI("type=header;text=Resources         ;showmenu=Resources;");
  aI("type=header;text=Company           ;showmenu=Company;");
  aI("type=header;text=Brands            ;showmenu=Brands;");
//aI("type=header;text=Applications      ;url=http://greengate.coopercontrol.com/cooperControls/applications.cfm?page=Applications;");
  aI("type=header;text=Global Markets    ;url=http://coopercontrol.com/index-uk.htm;");
  aI("type=header;text=Press Room        ;showmenu=PressRoom;");
  aI("type=header;text=&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;");
}

with(milonic=new menuname("PurchaseProducts"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=Where To Purchase      ;status=Where To Purchase      ;url=http://greengate.coopercontrol.com/cooperControls/docs/Agents_Zero88.pdf;");
  aI("text=National Accounts      ;status=National Accounts      ;url=http://greengate.coopercontrol.com/cooperControls/purchaseProducts.cfm?page=National Accounts;");
  aI("text=North American Requests;status=North American Requests;url=http://greengate.coopercontrol.com/cooperControls/purchaseProducts.cfm?page=North American Requests;");
  aI("text=Rest of World Requests ;status=Rest of World Requests ;url=http://greengate.coopercontrol.com/cooperControls/purchaseProducts.cfm?page=Rest of World Requests;");
}

with(milonic=new menuname("Resources"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=Application Guides/Notes;status=Application Guides/Notes;url=http://greengate.coopercontrol.com/cooperControls/resources.cfm?page=Application Guides;");
  aI("text=eLearning               ;status=eLearning               ;url=http://greengate.coopercontrol.com/cooperControls/resources.cfm?page=eLearning;");
  aI("text=Literature              ;status=Literature              ;url=http://greengate.coopercontrol.com/cooperControls/resources.cfm?page=Literature;");
  aI("text=Literature Request      ;status=Literature Request      ;url=http://greengate.coopercontrol.com/cooperControls/resources.cfm?page=Literature Request;");
  aI("text=Request a Product Demonstration;status=Request a Product Demonstration;url=http://greengate.coopercontrol.com/cooperControls/resources.cfm?page=Product Demonstration Request;");
}

with(milonic=new menuname("Company"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=About Cooper Controls  ;status=About Cooper Controls  ;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=About Cooper Controls;");
  aI("text=About Greengate        ;status=About Greengate        ;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=About Greengate;");
  aI("text=About iLumin           ;status=About iLumin           ;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=About iLumin;");
  aI("text=About Zero 88 & EDI    ;status=About Zero 88 & EDI    ;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=About Zero 88 and EDI;");
  aI("text=Customer Service Center;status=Customer Service Center;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=Customer Service Center;");
  aI("text=History                ;status=History                ;url=http://greengate.coopercontrol.com/cooperControls/company.cfm?page=History;");
}

with(milonic=new menuname("Brands"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=Greengate              ;status=Greengate              ;url=http://greengate.coopercontrol.com/greengate/;");
  aI("text=iLumin                 ;status=iLumin                 ;url=http://www.ilumincontrols.com;");
  aI("text=Zero 88 & EDI          ;status=Zero 88 & EDI          ;url=http://www.zero88controls.com;");
}

with(milonic=new menuname("Applications"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=Education              ;status=Education              ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Education;");
  aI("text=Industrial             ;status=Industrial             ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Industrial;");
  aI("text=Energy                 ;status=Energy                 ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Energy;");
  aI("text=Offices                ;status=Offices                ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Offices;");
  aI("text=Residential            ;status=Residential            ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Residential;");
  aI("text=Fluorescent            ;status=Fluorescent            ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Fluorescent;");
  aI("text=Recessed               ;status=Recessed               ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Recessed;");
  aI("text=Surface                ;status=Surface                ;url=http://greengate.coopercontrol.com/cooperControls/solutions.cfm?page=Surface;");
}

with(milonic=new menuname("PressRoom"))
{
  overfilter = effect2;
  style      = menuStyle;
  top        = "offset=1";
  aI("text=In the News            ;status=In The News            ;url=http://greengate.coopercontrol.com/cooperControls/pressRoom.cfm?page=In The News;");
  aI("text=Case Studies           ;status=Case Studies           ;url=http://greengate.coopercontrol.com/cooperControls/pressRoom.cfm?page=Case Studies;");
}

drawMenus();
