addHover = function(e)
{
	if(!e)
	{
		return;
	}
	if(window.attachEvent)
	{ // IE
		for(var i=0; i < e.length; i++)
		{
			if(e[i].id != "active_topic")
			{
				e[i].onmouseover=function()
				{
					if(!this.oldClass)
					{
						this.oldClass= this.className;
					}
					if(this.className == this.oldClass)
					{
						this.className = this.oldClass + " NavHover";
					}
				}
				e[i].onmouseout=function()
				{
					this.className= this.oldClass;
				}
			}
		}
	}
	else
	{
		for(var i=0; i<e.length; i++)
		{
			e[i].onmouseover=function()
			{					
				this.style.display="block";
			}
		}
	}
}
nh=function()
{
	var e=document.getElementById("nav");
	if(e)
	{
		var eList = e.getElementsByTagName("li");
		addHover(eList);
	}
	var e=document.getElementById("tabs");
	if(e)
	{
		var eList = e.getElementsByTagName("li");
		addHover(eList);
	}
	addHover(e);
}


fixIFrames = function()
{
	var e=document.getElementById("nav");
	if(e)
	{
		var eList = e.getElementsByTagName("ul");
		addHover(eList);
	}

	var e=document.getElementById("tabs");
	if(e)
	{
		var eList = e.getElementsByTagName("ul");
		addHover(eList);
	}
}

if(window.attachEvent)
{
	nh();
}
else
{
	fixIFrames();
}
