function init() {
	if (!document.getElementById) return
	var imgOriginSrc
	var imgTemp = new Array()
	var imgarr = document.getElementsByTagName('img')
	for (var i = 0; i < imgarr.length; i++) {
		if (imgarr[i].getAttribute('hsrc')) {
				imgTemp[i] = new Image()
				imgTemp[i].src = imgarr[i].getAttribute('hsrc')
				imgarr[i].onmouseover = function() {
						imgOriginSrc = this.getAttribute('src')
						this.setAttribute('src',this.getAttribute('hsrc'))
				}
				imgarr[i].onmouseout = function() {this.setAttribute('src',imgOriginSrc)}
		}
	}
}
onload=init;


var tinActiveImg = new Image();
tinActiveImg.src = "/images/inaktht.gif";
var tactiveImg = new Image();
tactiveImg.src = "/images/aktht.gif";

function settBG(tdID, activeState)
{
	
	if (activeState == 1)
	{
		if (document.all) //IE
			document.getElementById(tdID).background = tactiveImg.src;
			else
				if (document.getElementById && !document.all) //NS6+
					document.getElementById(tdID).style.backgroundImage = "url(" + tactiveImg.src + ")";
	} else
	  {
			if (document.all) //IE
				document.getElementById(tdID).background = tinActiveImg.src;
				else
					if (document.getElementById && !document.all) //NS6+
						document.getElementById(tdID).style.backgroundImage = "url(" + tinActiveImg.src + ")";
	  }	
}


function showmenu(elmnt)
{
	document.all(elmnt).style.visibility="visible";
}

function hidemenu(elmnt)
{
	document.all(elmnt).style.visibility="hidden";
}

function go()
{
	box = document.forms[0].navi;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}



function popupp(w, h, page)
{
	var top  = ((screen.availHeight-h)/2);
	var left = ((screen.availWidth-w)/2);
	var nyit = window.open(page,"popup","fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,left="+left+",top="+top+",width="+w+",height="+h);
}
