sfHover1 = function() {
    if (document.getElementById("nav1"))
    {
    	var sfEls = document.getElementById("nav1").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", sfHover1);

sfHover2 = function() {
    if (document.getElementById("nav2"))
    {
    	var sfEls = document.getElementById("nav2").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", sfHover2);

function swap(sender, img)
{
   if (navigator.appVersion.substring(0, 1) >= 3)
   {
      document.images[sender].src = eval(img + ".src");
   }
}
