function doNothing()
{
}

// Cross-browser function to add a function to the onload event.
function AddOnload(myfunc)
{
	if(window.addEventListener)	// FireFox
	{
		window.addEventListener('load', myfunc, false);
	}
	else if(window.attachEvent)	// IE
	{
		window.attachEvent('onload', myfunc);
	}
	else if (window.onload)
	{
		var func = window.onload; 
		window.onload = function()
		{
			func();
			myfunc();
		}
	}
	else
	{
		window.onload = myfunc();
	}
}


// The hover function:
//  If there is a child sub-menu, show it on mouseover, hide it on mouseout!
var sfHover = function()
{
	var menu = document.getElementById("nav");
	if (!menu)
	{
		return;
	}
	var listItems = menu.getElementsByTagName("LI");
	for (var i = 0; i < listItems.length; i++)
	{
		listItems[i].onmouseover = function()
		{
			if (this.getElementsByTagName("UL").length > 0)
			{
				// Show the sub-menu
				this.getElementsByTagName("UL").item(0).style.display = "block";
			}
		}
		listItems[i].onmouseout = function()
		{
			if (this.getElementsByTagName("UL").length > 0)
			{
				// Hide the sub-menu
				this.getElementsByTagName("UL").item(0).style.display = "none";
			}
		}
	}
}

AddOnload(sfHover);	// Activate the menus when the page loads...

function showOrHideContent(obj)
{
	if (document.getElementById("content").style.display=="none")
	{
		document.getElementById("content").style.display="block";
		document.getElementById("footer_container").style.display="block";
		document.getElementById("copyright").style.display="block";
	}
	else
	{
		document.getElementById("content").style.display="none";
		document.getElementById("footer_container").style.display="none";
		document.getElementById("copyright").style.display="none";
	}
}

function window_openWH(url, w, h)
{
	window.open(url, '_blank', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + h);
}