function initHeight()
{
	var box = document.getElementById("menu");
	var box2 = document.getElementById("inspire");
	var box3 = document.getElementById("issues");
	var container = document.getElementById("container");
	if(box && box2 && box3 && container)
	{
		if(box.clientHeight > box2.clientHeight)
		{
			box2.style.height = box.clientHeight - 11 + "px";
			box3.style.height = container.clientHeight - box.clientHeight + "px";
		}
		else
		{
			box.style.height = box2.clientHeight - 33 + "px";
			box3.style.height = container.clientHeight - box.clientHeight + "px";
	
		}
	}
}
function initNav()
{
	var _active = -1;
	var nav = document.getElementById("nav");
	if (nav) {
		var nodes = nav.getElementsByTagName("li");
		for (var i=0; i<nodes.length; i++) {
			if(nodes[i].className.indexOf('active') != -1) { _active = i;}
			nodes[i].onmouseover = function() 
			{
				if(nodes[_active]) {
					nodes[_active].className = nodes[_active].className.replace('active','');
				}
				this.className += ' hover ';
			}
			nodes[i].onmouseout = function()
			{
				this.className = this.className.replace('hover', '');
				if(nodes[_active]) {
					if(nodes[_active].className.indexOf('active') == -1){
						nodes[_active].className +=' active ';
					}
				}
			}
		}
	}
}
if (window.addEventListener){
	window.addEventListener("load", initNav, false);
	window.addEventListener("load", initHeight, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initNav);
	window.attachEvent("onload", initHeight);
}
