SetupEvents();

function swap() {
	this.className="msie"
	}
	
function swapBack() {
	this.className="dropdown"
	}
	
function swapfocus() {
	this.parentNode.parentNode.parentNode.className="msie"
	}
	
function swapblur() {
	this.parentNode.parentNode.parentNode.className="dropdown"
	}
	
function SetupEvents() {
	if (document.getElementById){
		
		var menuLI = document.getElementsByTagName("li");
		var allmenuLI= menuLI.length;
		
		for(var x=0;x<allmenuLI;x++){ 
			if(menuLI[x].parentNode.parentNode.className=="dropdown")
				{
					menuLI[x].firstChild.onfocus=swapfocus;
					menuLI[x].firstChild.onblur=swapblur;
				}
				
			if(menuLI[x].className=="dropdown")	
				{
					menuLI[x].onmouseover=swap;
					menuLI[x].onmouseout=swapBack;
				}
		}
	}
	
}

