﻿
//-----Main-menu------------------------------------------------------------------------------------>
 MenuHover = function() {
    var sfEls = document.getElementById("Menu").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() { this.className+=" Menuhover"; }
      sfEls[i].onmouseout=function()  { this.className=this.className.replace(new RegExp(" Menuhover\\b"), "");}
    }
  }
//----------------------------------------------------------------------------------------->
 
if (window.addEventListener){ window.addEventListener("load", MenuHover, false) ;} //DOM method for binding an event
else if (window.attachEvent){ window.attachEvent("onload", MenuHover);}  //IE exclusive method for binding an event
else if (document.getElementById) {window.onload=MenuHover}  //support older modern browsers
  
  
//----------------------------------------------------------------------------------------->

