function initMenu()
{
	var nodes = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (window.attachEvent && !window.opera){window.attachEvent("onload", initMenu);}



function clearInput(){
	var _list = document.getElementsByTagName('input');
	for(var i = 0; i < _list.length; i++){
		if(_list[i].type == 'text' || _list[i].type == 'password')
		{
			_list[i]._val = _list[i].value;
			_list[i].onfocus = function()
			{
				if(this.value == this._val) this.value = '';
			}
			_list[i].onblur = function()
			{
				if(this.value == '') this.value = this._val;
			}
		}
	}
}
if (window.addEventListener) window.addEventListener("load", clearInput, false);
else if (window.attachEvent && !window.opera) window.attachEvent("onload", clearInput);


