function swap(){this.className="sfhover"}
function swapBack(){this.className="trigger"}
function swapfocus() {this.parentNode.parentNode.parentNode.className="sfhover"}
function swapblur() {this.parentNode.parentNode.parentNode.className="trigger"}
function SetEvents(){
if (document.getElementById){ 
var LI = document.getElementsByTagName("li");
var zLI= LI.length;
for(var i=0;i<zLI;i++){ 
if(LI[i].parentNode.parentNode.className=="trigger"){
LI[i].firstChild.onfocus=swapfocus;LI[i].firstChild.onblur=swapblur
}
if(LI[i].className=="trigger"){LI[i].onmouseover=swap;LI[i].onmouseout=swapBack}
}
}
}
window.onload = SetEvents; 

sfHover_vert = function() {
	var sfEls = document.getElementById("vert_nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfHover_vert";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfHover_vert\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover_vert);
