function popTerkep() {
  window.open('images/terkep.jpg','Térkép','width=690,height=580,toolbar=no,status=no,resizable=no,scrollbars=no');
}

moz=document.getElementById&&!document.all
mozHeightOffset=20

function resize_iframe(){
document.getElementById("main_id").height="700" // required for Moz bug, value can be "", null, or integer. Ez a minimum méret. Nem méretezi kisebbre
document.getElementById('main_id').height=window.frames["iframe_main"].document.body.scrollHeight+(moz?mozHeightOffset:0)
}

//------------------------- Menu buttons ---------------------------------------

menu_1_on = new	Image(); menu_1_on.src = "gfx/menu_r2_c3_f2.jpg";
menu_1_off = new Image(); menu_1_off.src = "gfx/menu_r2_c3.jpg";
menu_1_push = new Image(); menu_1_push.src = "gfx/menu_r2_c3_f2.jpg";

menu_2_on = new	Image(); menu_2_on.src = "gfx/menu_r2_c4_f2.jpg";
menu_2_off = new Image(); menu_2_off.src = "gfx/menu_r2_c4.jpg";
menu_2_push = new Image(); menu_2_push.src = "igfx/menu_r2_c4_f2.jpg";

menu_3_on = new	Image(); menu_3_on.src = "gfx/menu_r2_c5_f2.jpg";
menu_3_off = new Image(); menu_3_off.src = "gfx/menu_r2_c5.jpg";
menu_3_push = new Image(); menu_3_push.src = "gfx/menu_r2_c5_f2.jpg";

menu_4_on = new	Image(); menu_4_on.src = "gfx/menu_r2_c6_f2.jpg";
menu_4_off = new Image(); menu_4_off.src = "gfx/menu_r2_c6.jpg";
menu_4_push = new Image(); menu_4_push.src = "gfx/menu_r2_c6_f2.jpg";

menu_5_on = new Image(); menu_5_on.src = "gfx/menu_r2_c7_f2.jpg";
menu_5_off = new Image(); menu_5_off.src = "gfx/menu_r2_c7.jpg";
menu_5_push = new Image(); menu_5_push.src = "gfx/menu_r2_c7_f2.jpg";

//------------------------- Rollover code ---------------------------------------

function Icon_on(imgname)
{	document[imgname].src=eval(imgname+"_on.src");
	}

function Icon_ps(imgname)
{	document[imgname].src=eval(imgname+"_push.src");
	}

function Icon_off(imgname)
{	document[imgname].src=eval(imgname+"_off.src");
	}

//------------------------------- legördulő menü --------------------------------

startMenu = function() {
if (document.all&&document.getElementById) {
cssmenu = document.getElementById("csstopmenu");
for (i=0; i<cssmenu.childNodes.length; i++) {
node = cssmenu.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function(){                  
this.className=this.className.replace(" over", "")
}
}
}
}
}

