initNav = function() {
	var navRoot = document.getElementById("nav");
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		lis[i].onmouseover = function()
		{
			this.className += " hover";
		}
		lis[i].onmouseout = function()
		{
			this.className = this.className.replace("hover", "");
		}
	}
}
if (navigator.appVersion.indexOf("Safari") != -1)
     window.addEventListener("load", initNav, false);
else if (window.attachEvent)
     window.attachEvent("onload", initNav)		


function _buttons() {
	var buttons = document.getElementsByTagName("a");
	for(k = 0; k<buttons.length; k++){
		buttons[k].onmousedown = function()
		{
			if (this.className.indexOf("push") == -1)
			{
				this.className += " onclick";
			}
			return true;
		}
		buttons[k].onmouseout = function()
		{
			this.className = this.className.replace("onclick", "");
			return true;
		}
		buttons[k].onmouseup = function()
		{
			this.className = this.className.replace("onclick", "");
			return true;
		}
	}

}

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