// JavaScript Document

sfHover = function() {
	var sfEls = document.getElementById("TopNav").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"), "");
		}
	}
}

<!--workaround to deal with flash content on safari-->
onloadIncompetentBrowsers = function() {

	var sfEls = document.getElementById("TopNav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			if(document.getElementById('WelcomeImgHP')) {
				document.getElementById('WelcomeImgHP').style.visibility='hidden';
			}
		}
		sfEls[i].onmouseout=function() {
			if(document.getElementById('WelcomeImgHP')) {
				document.getElementById('WelcomeImgHP').style.visibility='visible';
			}
		}
	}
}

if(navigator.vendor == 'KDE' || (document.childNodes && !document.all && !navigator.taintEnabled)) {
	window.addEventListener('load', onloadIncompetentBrowsers, false)
} else if(document.addEventListener && (navigator.userAgent.toLowerCase().indexOf('opera') + 1) || (window.opera && document.child)) {
	document.addEventListener('load', onloadIncompetentBrowsers, false)	
} else if (window.attachEvent) {
	window.attachEvent("onload", sfHover);
}

<!--javascript hyperlinks-->
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}