// Netscape és Microsoft support

var aOrigImg = new Array();
var aNewImg = new Array();

function mnuOver(_num) {
	document.images["mnu_" + _num].src = aNewImg[_num].src;
}

function mnuOut(_num) {
	document.images["mnu_" + _num].src = aOrigImg[_num].src;

}

for (a = 1; a < 7; a++) {
	aOrigImg[a] = new Image(); aOrigImg[a].src = "i/mnu_" + a + ".gif";
	aNewImg[a] = new Image(); aNewImg[a].src = "i/mnu_" + a + "_on.gif";
}

var aOrigImg_en = new Array();
var aNewImg_en = new Array();

function mnuOver_en(_num) {
	document.images["mnu_" + _num].src = aNewImg_en[_num].src;
}

function mnuOut_en(_num) {
	document.images["mnu_" + _num].src = aOrigImg_en[_num].src;

}

for (a = 1; a < 7; a++) {
	aOrigImg_en[a] = new Image(); aOrigImg_en[a].src = "i/mnu_" + a + "_en.gif";
	aNewImg_en[a] = new Image(); aNewImg_en[a].src = "i/mnu_" + a + "_on_en.gif";
}

function openpicWin (imageName,imageWidth,imageHeight,lead,space) {
	pop_up_height=imageHeight+space
	picWin = window.open("","picWin","width="+imageWidth+",height="+pop_up_height+",scrollbars=auto,left="+((screen.width/2)-(imageWidth/2))+",top="+((screen.height/2)-(imageHeight/2)-20));
	picWin.document.open();
	picWin.document.write('<html>\n<title>Tegyünk ma a holnapért</title>\n<head><LINK REL=stylesheet HREF="css/styles.php" TYPE="text/css"></head>\n<body text="#000000" link="#000000" alink="#000000" vlink="#000000" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">\n');
	picWin.document.write('\n<table cellpadding="0" cellspacing="0" border="0" background="i/bg_content.jpg" height="100%" valign="top">\n<tr>\n\t<td><a href="javascript:self.close();"><img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' border=0></a></td>\n</tr>\n<tr>\n\t<td><div align="center">'+lead+'</span><br><img src="i/s.gif" width="1" height="20" border="0" alt=""></td>\n</tr>\n<tr>\n\t<td align="center"><a href="javascript:self.close();">Bezár</a></div></td>\n</tr>\n</table>');
	picWin.document.write('\n</body>\n</html>');
	picWin.document.close();
	picWin.focus();
}

function popup (pname, pwidth, pheight) {
	window.open (pname + ".php", pname, "width=" + pwidth + ",height=" + pheight + ",scrollbars=no");
}

function popup_scroll (pname, pwidth, pheight) {
	window.open (pname + ".php", pname, "width=" + pwidth + ",height=" + pheight + ",scrollbars=yes");
}


var myimages=new Array()

function preloadimages(){

for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("mnu_1.gif","mnu_2.gif","mnu_3.gif","mnu_4.gif","mnu_5.gif","mnu_6.gif");

