
	var timer = "";
	var fade = 0;
	
	sfHover = function()
	{
		var sfEls = document.getElementById("nav").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(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	
	sfFade = function()
	{
		var sfEls = document.getElementById("nav").firstChild;
		do
		{
			sfEls.onmouseover = function()
			{
				var sublist = this.lastChild;
				if (sublist.tagName == "UL")
				{
					alert("heelo");
					//timer = setInterval("sfMenuFade(" + this + ", 1)", 1);
				}
			} 
			sfEls.onmouseout = function()
			{
				var sublist = this.lastChild;
				if (sublist.tagName == "UL")
				{
					//clearTimeout(timer);
				}
			}
			if (sfEls = document.getElementById("nav").lastChild)
			{
				break;
			}
			else
			{
				sfEls = sfEls.nextSibling;
			}
		}
		while (true)
	}
	
	function sfMenuFade(obj, step)
	{
		var target = ("undefined" == typeof(event))?e.target:event.target || event.srcElement;
		obj.lastChild.style.opacity = fade + step;
		if (fade + step > 99)
		{
			fade = 0;
			clearInterval(timer);
		}
	}
	
	if (window.attachEvent) window.attachEvent("onload", sfHover); 
	//if (window.attachEvent) window.attachEvent("onload", sfFade); 

