function initPage()
{
	var nav = document.getElementById("side-nav");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
			if (nodes[i].id != 'intro')
			{
				nodes[i].onmouseover = function () 
				{
					this.className += " hover";
					this.parentNode.className = " simple";
				}
				nodes[i].onmouseout = function ()
				{
					this.className = this.className.replace(" hover", "");
					this.parentNode.className = " bg";
				}
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);