
// Drop down menu script for IE
<!--//--><![CDATA[//><!--
sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
//--><!]]>

// Allows language link in main header menu to connect to translation 
// of current page.
function LanguageLink() {
  var sCurURL;
  var sNewURL;
  
  // Store the URL of the current page
  sCurURL = document.URL;
  sNewURL = sCurURL;
  
  // Determine the language of the current page and change to the other language
  if (sCurURL.search("_fr") < 0) {
    // Current page doesn't include a language suffix, so it is English
    sNewURL = sNewURL.replace(".shtml", "_fr.shtml");
    sNewURL = sNewURL.replace("html_en", "html_fr");
    
  } else {
 // Current page includes the French suffix
    sNewURL = sNewURL.replace("_fr.shtml", ".shtml");
    sNewURL = sNewURL.replace("html_fr", "html_en");
  }
  
  // Navigate to the translated page
  location.replace(sNewURL);
  //return false;
}

