sfHover = function() {
 var sfEls = document.getElementById("nav").getElementsByTagName("LI");    
 var sfEl2 = document.getElementById("nav2").getElementsByTagName("LI");
 var sfEl3 = document.getElementById("nav3").getElementsByTagName("LI");
 
 for (var i=0; i<sfEls.length; i++) {
 sfEls[i].onmouseover=function() {
 this.className+=" hover";
 }
 sfEls[i].onmouseout=function() {
 this.className=this.className.replace(new RegExp(" hover\\b"), "");
 }
 }
 
 
  for (var i=0; i<sfEl2.length; i++) {
 sfEl2[i].onmouseover=function() {
 this.className+=" hover";
 }
 sfEl2[i].onmouseout=function() {
 this.className=this.className.replace(new RegExp(" hover\\b"), "");
 }
 }
 
 
  for (var i=0; i<sfEl3.length; i++) {
 sfEl3[i].onmouseover=function() {
 this.className+=" hover";
 }
 sfEl3[i].onmouseout=function() {
 this.className=this.className.replace(new RegExp(" hover\\b"), "");
 }
 }
}


if (window.attachEvent) window.attachEvent("onload", sfHover);

