startList = function() {

	// code for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (var i=0; i<array.length; i+=2) {
			img = null; var n = array[i];
			if (d.images) {img = d.images[n];}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (img) {img.src = array[i+1];}
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

window.onload=startList;

function openSitemapWindow() {
        w = 700;
        h = 580;
        window.open('index.php?sitemap,hu','popup','left='+((screen.width/2)-(w/2))+',top='+((screen.height/2)-(h/2))+',width='+w+',height='+h);
        return false;
}

function openEonWordWindow() {
        w = 790;
        h = 455;
        window.open('index.php?e.on_world','popup','left='+((screen.width/2)-(w/2))+',top='+((screen.height/2)-(h/2))+',width='+w+',height='+h);
        return false;
}

function openContactWindow() {
        w = 300;
        h = 460;
        window.open('index.php?kapcsolat','popup','left='+((screen.width/2)-(w/2))+',top='+((screen.height/2)-(h/2))+',width='+w+',height='+h);
        return false;
}


