/*
SON OF SUCKERFISH
http://www.htmldog.com/articles/suckerfish/dropdowns/
*/

sfHover = function()
{
	// FOR TOP NAV
	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"), "");
		}
	}
	// FOR ADMIN TOP NAV
	if (document.getElementById("adminav"))
	{
		var sfElsAdmin = document.getElementById("adminav").getElementsByTagName("LI");
		for (var j=0; j<sfElsAdmin.length; j++)
		{
			sfElsAdmin[j].onmouseover=function()
			{
				this.className+=" sfhover";
			}
			sfElsAdmin[j].onmouseout=function()
			{
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);