sfHover = function()
{
var sfEls = document.getElementById("mainnav").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("sfhover","");
		}
	sfEls[i].onfocusin=function()
		{
		this.className+=" sfhover";
		}
	sfEls[i].onfocusout=function()
		{
		this.className=this.className.replace("sfhover","");
		}
	sfEls[i].onfocus=function()
		{
		this.className+=" sfhover";
		}
	sfEls[i].onblur=function()
		{
		this.className=this.className.replace("sfhover","");
		}
	}
}

if (window.addEventListener) //DOM method for binding an event
window.addEventListener("load", sfHover, false);
else if (window.attachEvent) //IE exclusive method for binding an event
window.attachEvent("onload", sfHover);