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


with (TopMenuStyle=new mm_style()) {
styleid=1;	
bordercolor="#ACABAB";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
if (screen.width <800) {
  alert("This web page is best viewed with a screen width resolution of 1024x768. However, we support screen width resolutions of 800x600, 1024x728, 1280x1024. Your current screen width resolution is "+screen.width+".  Your pages may not display properly.  If possible please change your resolution. Your pages may not display properly.");
  fontsize="0.75em";
  image="images/square_dust.jpg";
  overimage="images/square_blue.jpg";
  imagepadding=2;  
}
else if (screen.width ==800) {
  fontsize="0.75em";
  image="images/square_dust.jpg";
  overimage="images/square_blue.jpg";
  imagepadding=2;
}
else if (screen.width <=1024) {
  fontsize="0.94em";
  image="images/square_dust.jpg";
  overimage="images/square_blue.jpg";
  imagepadding=6;
}
else if (screen.width <=1280) {
  fontsize="1.25em";
  image="images/square_dust.jpg";
  overimage="images/square_blue.jpg";
  imagepadding=6;
}
else if (screen.width >1280) {
  alert("This web page is best viewed with a screen width resolution of 1024x768. However, we support screen width resolutions of 800x600, 1024x728, 1280x1024. Your current screen width resolution is "+screen.width+".  Your pages may not display properly.  If possible please change your resolution. Your pages may not display properly.");
  fontsize="1.25em";
  image="images/square_dust.jpg";
  overimage="images/square_blue.jpg";
  imagepadding=2; 
}
fontstyle="normal";
fontweight="bold";
offbgcolor="#2693CC";
offcolor="#ffffff";
onbgcolor="#82B6D7";
oncolor="#0000ff";
outfilter="Fade(Overlap=1.00)";
padding=5;
separatorsize=0;
subimagepadding=8;
}	

with(LeftMenuStyle=new mm_style()){
styleid=2;
bordercolor="#296488";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
if (screen.width <=800) {
   fontsize="0.69em";
}
else if (screen.width <=1024) {
  fontsize="0.94em";	
}
else if (screen.width <=1280) {
  fontsize="1.13em";	
}
else if (screen.width >1280) {
	fontsize="1.13em";	
}
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
offbgcolor="#202f4e";
offcolor="#ffffff";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#2693cc', Direction=135, Strength=5)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimagepadding=2;
}

with(submenuStyle=new mm_style()){
styleid=3;
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
if (screen.width <=800) {
  fontsize="0.69em";
  overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=5)";
  offcolor="#515151";
}
else if (screen.width <=1024) {
  fontsize="0.94em";	
  overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=5)";
  offcolor="#515151";
}
else if (screen.width <=1280) {
  fontsize="1.13em";	
  overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=5)";
  offcolor="#515151";
}
else if (screen.width >1280) {
  fontsize="1.13em";	
  overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color=#777777', Direction=135, Strength=5)";
  offcolor="#515151";
}
fontstyle="normal";
headerbgcolor="#4F8EB6";
headercolor="#ffffff";
offbgcolor="#DCE9F0";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#2D729D";
separatorsize=1;
subimagepadding=2;
}

with(milonic=new menuname("Top Menu")){
alwaysvisible=1;
overflow="scroll";
screenposition="left";
if (screen.width <=800) {
  left=225;
  top=72;
}
else if (screen.width <=1024) {
  left=340;
  top=90;
}
else if (screen.width <=1280) {
  left=350;
  top=110;
}
else if (screen.width >1280) {
  left=350;
  top=110;
}
orientation="horizontal";
style=TopMenuStyle;
aI("text=Home;url=eng/indexen.php;");
aI("text=How to use our site;url=eng/menubar/howtouse.php;");
aI("text=Contact Us;url=eng/contact/wnghcontact.php;");
aI("text=Fran&#xE7;ais;url=fr/indexfr.php;");
}

with(milonic=new menuname("Left Menu")){
alwaysvisible=1;
orientation="vertcal";
style=LeftMenuStyle;
screenposition="left";
if (screen.width <=800) {
  left="offset=+5";
  top=145;
}
else if (screen.width <=1024) {
  left="offset=+7";
  top=175;
}
else if (screen.width <=1280) {
  left="offset=+10";
  top=200;
}
else if (screen.width >1280) {
  left="offset=+10";
  top=200;
}

aI("showmenu=AboutUs;text=About Us;");
aI("showmenu=PatientInfo;text=Patient & Visitor <br>Information;");
aI("showmenu=Career;text=Career Opportunities;");
aI("showmenu=Reporting;text=Public Reporting;");
aI("showmenu=Links;text=Link of Interest;");
aI("text=Website Feedback;url=eng/contact/webfeedback.php;");
}

with(milonic=new menuname("AboutUs")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=About Us;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("text=Accessibiliy;url=eng/accessibility/accessibility.php;");
aI("text=Annual Report;url=eng/about_us/annual.php;");
aI("text=Leadership;url=eng/about_us/board.php;");
aI("text=Message from the Chair;url=eng/about_us/boardchair.php;");
aI("text=Message from the CEO;url=eng/about_us/execdir.php;");
aI("text=Message from the Chief of Staff;url=eng/about_us/cos.php");
aI("text=Our Vision;url=eng/about_us/vision.php;");
aI("text=Strategic Directions;url=eng/about_us/strategic.php;");
}

with(milonic=new menuname("Links")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=Links of interest;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("target=_new;text=Drug and Alcohol Registry of Treatment;url=http://www.dart.on.ca/DART/owalive/dart_dir_multi_v2.select_by_multi;");
aI("target=_new;text=Local Health Integrations Network (LHINS);url=http://www.lhins.on.ca/home.aspx?LangType=4105;");
aI("target=_new;text=Mental Health Service Information Ontario;url=http://www.mhsio.on.ca/DART/owalive/mhsio_dir_multi_v2.select_by_multi;");
aI("target=_new;text=Ministry Of Health and Long Term Care;url=http://www.health.gov.on.ca/;");
aI("target=_new;text=Municipality of West Nipissing;url=http://www.westnipissingouest.ca/home.html;");
aI("target=_new;text=Nipissing First Nation;url=http://www.nfn.ca/home.php;");
aI("target=_new;text=One Kids Place;url=http://www.onekidsplace.ca/english/home.html;");
aI("target=_new;text=Ontario Health Association;url=http://www.oha.com/;");
aI("target=_new;text=Ontario Self-help Network;url=http://www.selfhelp.on.ca/oshnet.html;");
aI("target=_new;text=The Ontario Problem Gambling Helpline;url=http://www.opgh.on.ca/DART/owalive/opgh_dir_multi_v2.select_by_multi;");
aI("target=_new;text=Womens Health Matters;url=http://www.womenshealthmatters.ca/index.cfm;");
}

with(milonic=new menuname("PatientInfo")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=Patient & Visitor Information;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("text=Patient Health Information;url=eng/patient_info/personalhealthinfo.php;");
aI("text=Patient Safety;url=eng/patient_info/patientsafety.php;");
aI("text=Visiting Hours;url=eng/patient_info/visithours.php;");
}

with(milonic=new menuname("Career")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=Career Opportunities;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("text=Physicians;url=eng/career/physicians.php;");
}

with(milonic=new menuname("Programs")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=Programs & Services;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("text=Ambulance;url=eng/programs_services/ambulance.php;");
aI("text=Diabetes Centre - Nipissing District;url=eng/programs_services/dcnd.php;");
aI("text=Diagnostic Imaging;url=eng/programs_services/di.php;");
aI("text=ECU - Enhanced Care Unit;url=eng/programs_services/ecu.php;");
aI("text=IT - Information Technology;url=eng/programs_services/it.php;");
aI("text=Laboratory;url=eng/programs_services/lab.php;");
aI("text=Telemedicine - Telehealth;url=eng/programs_services/telmed.php");
}

with(milonic=new menuname("Reporting")){
left="offset=15";
style=submenuStyle;
aI("align=center;text=Public Reports;type=header;");
aI("image=images/goingdown.jpg;itemheight=15;type=header;");
aI("text=Central-Line Primary Blood Stream Infection (CLI);url=eng/reports/cli.php;");
aI("text=Clostridium Difficile (C. DIFFICILE);url=eng/reports/Cdifficile.php;");
aI("text=Hand Hygiene Compliance Among all Health Care Providers (HCP);url=eng/reports/hcp.php;");
aI("text=Hospital Standardized Mortality Rates (HSMR);url=eng/reports/hsmr.php;");
aI("text=Methicillin-Resistant Staphylococcus Aureus (MRSA);url=eng/reports/mrsa.php;");
aI("text=Surgical Site Infection (SSI) Prevention;url=eng/reports/ssi.php;");
aI("text=Vancomycin-Resistant Enterococci (VRE);url=eng/reports/vre.php;");
aI("text=Ventilator-Associated Pneumonia (VAP);url=eng/reports/vap.php;");
}

drawMenus();


