   var $jQuery = jQuery.noConflict();
   
   function JsMenuKill()
   {
//       jQuery("#menu").stopAll();
   }
         
   function JsMenuHeritage()
   {
       document.getElementById('menu').innerHTML='<a href=\'heritage.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Heritage</a><BR><BR> <a href=\'businesscars.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>The Business Cars</a><BR><BR> <a href=\'legacy.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Legacy of the Railway</a><BR><BR><a href=\'guests.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Historical Guests</a><BR><BR>';
       jQuery("#menu").effect("slide", { direction: "left" }, 600);
   }
   
   function JsMenuLuxury()
   {
       document.getElementById('menu').innerHTML='<a href=\'luxury.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Luxury Rail Tours</a><BR><BR> <a href=\'rockiesexperience.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Royal Canadian      Rockies   Experience</a><BR><BR> <a href=\'flyfishing.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Royal Fly Fishing Adventure</a><BR><BR> <a href=\'royalpacificexpress.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Royal Pacific Express</a><BR><BR> <a href=\'schedule.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Schedule & Rates</a><BR><BR>';
       jQuery("#menu").effect("slide", { direction: "left" }, 600);
   }
   
   function JsMenuPrivate()
   {
       document.getElementById('menu').innerHTML='<a href=\'private.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Private Bookings</a><BR><BR><a href=\'dining.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Private Railcar Dining</a><BR><BR><a href=\'dinnertrain.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Royal Banff Dinner Train</a><BR><BR><a href=\'excursions.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Multi-Day Excursions</a><BR><BR><a href=\'function.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Meeting Facilities</a><BR><BR><a href=\'schedule.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Schedule & Rates</a><BR><BR>';
       jQuery("#menu").effect("slide", { direction: "left" }, 600);
   }
   
   function JsMenuExp()
   {
       document.getElementById('menu').innerHTML='<a href=\'experience.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>The Experience</a><BR><BR><a href=\'service.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Service</a><BR><BR> <a href=\'culinary.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Culinary</a><BR><BR><a href=\'accommodations.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Accommodations</a><BR><BR><a href=\'offtrain.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Off-Train Activities</a><BR><BR><a href=\'wildlife.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Scenery & Wildlife</a><BR><BR><a href=\'maps.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Route Maps</a><BR><BR>';
       jQuery("#menu").effect("slide", { direction: "left" }, 600);
   }
   
   function JsMenuPlan()
   {
       document.getElementById('menu').innerHTML='<a href=\'journey.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Plan Your Journey</a><BR><BR><a href=\'travel.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>Travel and Transportation</a><BR><BR> <a href=\'faq.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>FAQs</a><BR><BR><a href=\'howto.html\' class=\'menusublinks\' style=\'color: #5F3918;\'>How To Book</a><BR><BR>';
       jQuery("#menu").effect("slide", { direction: "left" }, 600);
   }

   

   
   
   function jsRolloverHome()
   {
      document.getElementById('row_home_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_home_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }
   
   function jsRolloverHeritage()
   {
      document.getElementById('row_heritage_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_heritage_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }
   
   function jsRolloverLuxury()
   {
      document.getElementById('row_luxury_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_luxury_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }
   
   function jsRolloverPrivate()
   {
      document.getElementById('row_private_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_private_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }

   function jsRolloverExp()
   {
      document.getElementById('row_exp_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_exp_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }
   
   function jsRolloverPlan()
   {
      document.getElementById('row_plan_left').style.backgroundImage = 'url(../images/select3.gif)';
      document.getElementById('row_plan_right').style.backgroundImage = 'url(../images/select3_right.gif)';
   }
   
   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 CheckBrowserName()
   {
      return navigator.appName;
   }

   function CheckBrowserVersion()
   {
      var iVer = navigator.appVersion;
      iVer = iVer.substring(0,4);

      return iVer;
   }

   function CheckBrowserPlatform()
   {
      return navigator.platform;
   }   

   function CheckBrowser(sURL)
   {
      if (CheckBrowserName() != "Microsoft Internet Explorer" || CheckBrowserPlatform() != "Win32")
      {
         alert ('You must have Internet Explorer under Windows to use this option.');
      }
      else
      {
         location.href = sURL;
      }
   }

  function addLoadEvent(func) 
  {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') 
    {
          window.onload = func;
    }
    else 
    {
           window.onload = function() 
           {
             oldonload();
             func();
          }
     }
  }
  
  addLoadEvent(fnStartup);

