//alert('start navmenu');
sfHover = function() {
	//alert('setting sfhover');
	var sfEls, i, j, menus=[];
	var divs = document.getElementsByTagName('div');
	for (i=0;i<divs.length;i++) {
		if (divs[i].className.search('vmenu') != -1 || divs[i].className.search('hmenu') != -1) {
			menus[menus.length] = divs[i];
		}
	}
  for (j=0;j<menus.length;j++) {
    sfEls = menus[j].getElementsByTagName("LI");
		for (i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
        this.className+=" sfhover";
				var uls = this.getElementsByTagName('ul');
				if (uls.length > 0) uls[0].style.left = 'auto';
      }
      sfEls[i].onmouseout=function() {
        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        var uls = this.getElementsByTagName('ul');
				if (uls.length > 0) uls[0].style.left = '-999em';
      }
    }
  }
//alert('sfhover complete');
}
if (window.attachEvent)/*{alert('yes')}else{alert('no')}*/ window.attachEvent("onload", sfHover);
//alert('navmenu complete');

startList = function () {
if (document.all && document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
  node = navRoot.childNodes[i];
  if (node.nodeName=="LI") {
  node.onmouseover=function() {
  this.className+=" over";
    }
  node.onmouseout=function() {
  this.className=this.className.replace
      (" over", "");
   }
   }
  }
 }
}
window.onload=startList;


