
/* ----- cog7menu.js ----- */
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);

//activateMenu = function(nav) {
//  if (document.all && document.getElementById(nav).currentStyle) {    /* currentStyle restricts the Javascript to IE only */
//    var navroot = document.getElementById(nav);
//    var lis=navroot.getElementsByTagName("LI");                       /* Get all the list items within the menu */
//    for (i=0; i<lis.length; i++) {
//      if(lis[i].lastChild.tagName=="UL"){                             /* If the LI has another menu level */
//        lis[i].lastChild.style.marginLeft="120px";
//        lis[i].onmouseover=function() {	                              /* assign the function to the LI */
//          this.lastChild.style.display="block";                       /* display the inner menu */
//          }
//        lis[i].onmouseout=function() {                       
//          this.lastChild.style.display="none";
//          }
//        }
//      }
//    }
//  }
//
//window.onload = function() {
//  activateMenu('nav');
//  /* pass the function the id of the top level UL */
//  /* remove one, when only using one menu */
//  /* activateMenu('vertnav'); */
//  }
