    var iMenuType = 0;

    function Popup(theURL,winName,features)
   {
      // onClick="Popup('file.html','name','menubar=no,scrollbars=no,resizable=no,width=500,height=450'); return false;"
      window.open(theURL,winName,features);
   }

   function showmenu_hideall()
   {
          document.getElementById("menuHotel").innerHTML = "<a href='niagara-on-the-lake-hotel.html' class='toplink_hotel' onMouseover='showmenu_hotel()'>HOTEL</a>";
          document.getElementById("menuConference").innerHTML = "<a href='niagara-conference-centre.html' class='toplink_hotel' onMouseover='showmenu_conference()'>CONFERENCING</a>";
          document.getElementById("menuClub").innerHTML = "<a href='niagara-fitness-club.html' class='toplink_hotel' onMouseover='showmenu_club()'>CLUB</a>";
          document.getElementById("menuDining").innerHTML = "<a href='niagara-on-the-lake-dining.html' class='toplink_hotel' onMouseover='showmenu_dining()'>DINING</a>";
          document.getElementById("menuSpa").innerHTML = "<a href='niagara-spa.html' class='toplink_spa' onMouseover='showmenu_spa()'>SPA</a>";
          document.getElementById("menuWedding").innerHTML = "<a href='niagara-on-the-lake-weddings.html' class='toplink_hotel' onMouseover='showmenu_wedding()'>WEDDINGS</a>";
   }

   function menulink()
   {
       GB_showCenter('White Oaks Resort Feedback Form', 'http://www.whiteoaks.computan.com/form_feedback.aspx?id=41', 490, 740);
   }

   function menulink2()
   {
       GB_showCenter('Conference RFP Form', '/niagara-conference-planning.html', 490, 740);
   }

   function menulink3()
   {
       GB_showCenter('Conference RFP Form', '/niagara-wedding-inquiries.html', 490, 740);
   }


   function showmenu_hotel() { iMenuType = 1; showmenu_hideall(); document.getElementById("menuHotel").innerHTML = "<a href='niagara-hotel-rooms.html' class='toplink_hotel'>Rooms</a><BR><a href='https://booking.ihotelier.com/istay/istay.jsp?hotelid=73828' target='_blank' class='toplink_hotel'>Availability</a><BR><a href='niagara-packages.html' class='toplink_hotel'>Packages</a><BR><a href='niagara-golf-packages.html' class='toplink_hotel'>Golf</a><BR><a href='http://shop.whiteoaksresort.com' target='_blank' class='toplink_hotel'>Wo Boutique</a><BR><a href='javascript:menulink();' class='toplink_hotel'>Feedback Form</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-on-the-lake-hotel.html' class='toplink_hotel'>HOTEL</a>"; }
  
  
  function showmenu_conference() { iMenuType = 2; showmenu_hideall(); document.getElementById("menuConference").innerHTML = "<a href='javascript:menulink2();' class='toplink_conf'>RFP</a><BR><a href='niagara-on-the-lake-conference.html' class='toplink_conf'>Conferences</a><BR><a href='niagara-meeting-rooms.html' class='toplink_conf'>Day Meetings</a><BR><a href='niagara-banquet.html' class='toplink_conf'>Banquets</a><BR><a href='learning-institute.html' class='toplink_conf'>Learning Institute</a><BR><a href='grouplogin.html' class='toplink_conf'>Group Login</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-conference-centre.html' class='toplink_conf'>CONFERENCING</a>"; }
   function showmenu_club() { iMenuType = 3; showmenu_hideall(); document.getElementById("menuClub").innerHTML = "<a href='club-memberships.html' class='toplink_club'>Memberships</a><BR><a href='club-contact.html' class='toplink_club'>Hours</a><BR><a href='niagara-club-services.html' class='toplink_club'>Services</a><BR><a href='fitness-health-club.html' class='toplink_club'>Fitness</a><BR><a href='niagara-tennis.html' class='toplink_club'>Tennis</a><BR><a href='niagara-squash.html' class='toplink_club'>Squash</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-fitness-club.html' class='toplink_club'>CLUB</a>"; }
   function showmenu_dining() { iMenuType = 4; showmenu_hideall(); document.getElementById("menuDining").innerHTML = "<a href='liv-restaurant.html' class='toplink_dining'>LIV Restaurant</a><BR><a href='play.html' class='toplink_dining'>Play Urban Cafe</a><BR><a href='starbucks.html' class='toplink_dining'>Starbucks</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-on-the-lake-dining.html' class='toplink_dining'>DINING</a>"; }
   
    function showmenu_spa() { iMenuType = 5; showmenu_hideall(); document.getElementById("menuSpa").innerHTML = "<a href='niagara-spa-experience.html' class='toplink_spa'>About Us</a><BR><a href='niagara-spa-treatments.html' class='toplink_spa'>Experiences</a><BR><a href='niagara-spa-packages.html' class='toplink_spa'>Packages</a><BR><a href='spa-photo-gallery.html'  class='toplink_spa'>Gallery</a><BR><a href='spahours.html' class='toplink_spa'>Hours</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-spa.html' class='toplink_spa'>SPA</a>"; }
   
   function showmenu_wedding() { iMenuType = 6; showmenu_hideall(); document.getElementById("menuWedding").innerHTML = "<a href='javascript:menulink3();' class='toplink_wedding'>Inquiries (RFP)</a><BR><a href='wedding-in-niagara.html' class='toplink_wedding'>Facilities</a><BR><a href='niagara-wedding-packages.html' class='toplink_wedding'>Package Details</a><BR><a href='wedding-photo-gallery.html' class='toplink_wedding'>Photo Gallery</a><BR><div style='font-size:0;height:5px;'></div><a href='niagara-on-the-lake-weddings.html' class='toplink_wedding'>WEDDINGS</a>"; }

   function funcScrollbarWidth()
   {
       var scr = null;
       var inn = null;
       var wNoScroll = 0;
       var wScroll = 0;

       // Outer scrolling div
       scr = document.createElement('div');
       scr.style.position = 'absolute';
       scr.style.top = '-1000px';
       scr.style.left = '-1000px';
       scr.style.width = '100px';
       scr.style.height = '50px';
       // Start with no scrollbar
       scr.style.overflow = 'hidden';

       // Inner content div
       inn = document.createElement('div');
       inn.style.width = '100%';
       inn.style.height = '200px';

       // Put the inner div in the scrolling div
       scr.appendChild(inn);
       // Append the scrolling div to the doc

       document.body.appendChild(scr);

       // Width of the inner div sans scrollbar
       wNoScroll = inn.offsetWidth;
       // Add the scrollbar
       scr.style.overflow = 'auto';
       // Width of the inner div width scrollbar
       wScroll = inn.offsetWidth;

       // Remove the scrolling div from the doc
       document.body.removeChild(
       document.body.lastChild);

       // Pixel width of the scroller
       return (wNoScroll - wScroll);
   }

