function initNav()
{
	var navRoot = document.getElementById("navigation");
	var lis = navRoot.getElementsByTagName("li");
	for (var i=0; i<lis.length; i++)
	{
		lis[i].onmouseover = function()
		{
			if(this.className.indexOf("hover") == -1)
				{
					this.className += " hover";
				}
		}
		lis[i].onmouseout = function()
		{
			this.className = this.className.replace("hover", "");
		}
	}
}

if (document.all && !window.opera)
{
	window.attachEvent("onload", initNav);
}

function showOrHide(eId, state) {
	if (e = document.getElementById(eId)) {
		if (state == null) {
			state = e.style.display == 'none';
			e.style.display = (state ? '' : 'none');
		}
	}
}

function popUp(URL) { 
	day = new Date(); 
	id = day.getTime(); 
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=480,left = 240,top = 212');");
}

function reloadCaptcha() {
	date_obj = new Date();
	document.getElementById("captcha_image").src = 'captcha.php?rnd=' + date_obj.getTime();
}
