function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
d = document.getElementById;
function chImages(id, img)
{
	d = document.getElementById;
	d(id).src = img;
}

function chClass(id,nev)
{
	d = document.getElementById;
	d(id).className = nev;
}

function chOwnClass(obj,nev)
{
	obj.className = nev;
}

function navigal(urlke)
{
	document.location = urlke;	
}

function oszlopWidth(obj,id)
{
	l = ((document.body.clientWidth-760)/2)+167;
	h = obj.offsetTop+161;
	document.getElementById(id).style.top = h;
	document.getElementById(id).style.left = l;
}
// Lehullo layer
var oldShow;
var oldNev;
function showMenu(n,nev) {
	if(oldShow!=undefined)
	{			
		document.getElementById(oldNev+""+oldShow).style.display = "none";
	}
	divId = nev+""+n;
	if (document.getElementById(divId).timer)
	{
		clearTimeout(document.getElementById(divId).timer);
	}
	document.getElementById(divId).style.display = "";
	oldShow = n;
	oldNev = nev;
}
function realHide(divId) {
	document.getElementById(divId).style.display = "none";
}	
function hideMenu(n,nev) {
	divId = nev+""+n;
	document.getElementById(divId).timer = setTimeout('realHide("'+divId+'")',50);
}
function initMenu(n,nev) {
	var aktMenu = document.getElementById(nev+""+n);
	aktMenu.onmouseover = new Function("showMenu("+n+",'"+nev+"')");
	aktMenu.onmouseout = new Function("hideMenu("+n+",'"+nev+"')");
	aktMenu.timer = null;
}
function deb(src)
{
	document.getElementById("bugger").innerText = src;
}