function timer(){window.setTimeout("swapBack()",1000)}
function swap(){this.className="over";this.id="out";}
function swapBack(){window.setTimeout("swapBacktimer()",600);this.id="over";}
function swapBacktimer()
{
	if (document.getElementById("over"))
	{
		document.getElementById("over").className="trigger";	
		document.getElementById("over").id="out";
	}	
}
function swapfocus() {this.parentNode.parentNode.parentNode.className="over"}
function swapblur() {this.parentNode.parentNode.parentNode.className="trigger"}
TJKSetEvents=function(){
	if (document.getElementById){	
	var LI = document.getElementsByTagName("li");
	var zLI= LI.length;
		for(var k=0;k<zLI;k++)
		{ 
			if(LI[k].parentNode.parentNode.className=="trigger"){LI[k].firstChild.onfocus=swapfocus;LI[k].firstChild.onblur=swapblur}
			if(LI[k].className=="trigger"){LI[k].onmouseover=swap;LI[k].onmouseout=swapBack;LI[k].firstChild.onmouseover=swap;LI[k].firstChild.onmouseout=swapBack;}
		}
	}
}

window.onload=TJKSetEvents;