// JavaScript Document
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 subSwapFocus() {this.parentNode.parentNode.parentNode.parentNode.parentNode.className="sfhover"; this.parentNode.parentNode.parentNode.className="sfhover"}
function subSwapBlur() {this.parentNode.parentNode.parentNode.parentNode.parentNode.className="trigger"; 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].parentNode.parentNode.parentNode.parentNode.className=="trigger" && LI[i].parentNode.parentNode.className=="trigger") {
LI[i].firstChild.onfocus=subSwapFocus;
LI[i].firstChild.onblur=subSwapBlur;
}
if(LI[i].className=="trigger"){
LI[i].onmouseover=swap;
LI[i].onmouseout=swapBack
}
}
}
}
window.onload = SetEvents;


