function initPage()
{
	var nav = document.getElementById("navigation");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("li");
		for (var i = 0; i < nodes.length; i++)
		{		
				nodes[i].onclick = function () 
				{
					if (this.className.indexOf("active") != -1) {
						this.className = this.className.replace("active", "");
						return false;
					}
					for (var j = 0; j < nodes.length; j++) {
						nodes[j].className = nodes[j].className.replace("active", "");
					}
						this.className += " active";
				}
		}
	}
}

if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
