function set_menu_above() {

var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
if (isNS) {
wwidth = window.innerWidth;
wheight = window.innerHeight;
          }
else{
wwidth = document.documentElement.clientWidth;
wheight = document.documentElement.clientHeight;
    }


screenmiddle=parseInt(wwidth/2);

document.getElementById('menu_above').style.left=parseInt(screenmiddle-490) + "px";

window.parent.document.getElementById('menu_stretch').style.left=window.parent.document.getElementById('menu_above').style.left;

document.getElementById('iframelajjer').style.left=parseInt(parseInt(document.getElementById('menu_above').style.left)+231) + "px";
document.getElementById('iframe1').style.left=parseInt(parseInt(document.getElementById('menu_above').style.left)+231) + "px";

window.parent.document.getElementById('baliframelajjer').style.left=parseInt(parseInt(document.getElementById('menu_above').style.left)+3) + "px";



document.getElementById('bottompic').style.left=parseInt(screenmiddle-490) + "px";

}



//***********************************************************************************************************

function meret(){
/*	
var isNS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4));
if (isNS) 
wheight = window.parent.innerHeight+9;
          
else*/
wheight = window.parent.document.documentElement.clientHeight;


   //honnan indul az iras
   var mag=240;

   //also sav teteje
   var aljateteje = parseInt(wheight-23);
   

   //bal menu merete
   var menu=window.parent.baliframe.document.getElementById('lapmenu').offsetHeight+10;
   //iframe merete
   var ifra=document.getElementById('lap').offsetHeight+10;
   //ablak merete
   var abl=parseInt(wheight-mag);


   //melyik a legnagyobb
   maxelem=2;
   //iframe a legnagyobb
   if(ifra>=abl && ifra>menu) maxelem=1;
   //ablak a legnagyobb
   if(abl>=ifra && abl>menu) maxelem=2;
   //bal menu a legnagyobb
   if(menu>=abl && menu>ifra) maxelem=3;

   //ha az ablak a legnagyobb
   if(maxelem==2) {
    	window.parent.document.getElementById("iframelajjer").style.height=eval(parseInt(aljateteje)-parseInt(229)) + 'px';
    	window.parent.document.getElementById("iframe1").style.height=eval(parseInt(aljateteje)-parseInt(229)) + 'px';
		window.parent.document.getElementById("bottompic").style.top=parseInt(aljateteje-3) + 'px';
        var hatteralja=parseInt(window.parent.document.getElementById("bottompic").style.top);
        window.document.getElementById('oldalhatter').style.height=eval(parseInt(hatteralja)-parseInt(339)) + 'px';

		window.parent.document.getElementById("bottompic").style.top=parseInt(aljateteje-6) + 'px';
                                  }

   //ha az iframe a legnagyobb
   else if(maxelem==1) {
    	window.parent.document.getElementById("iframelajjer").style.height=eval(ifra) + 'px';
    	window.parent.document.getElementById("iframe1").style.height=eval(ifra) + 'px';
    	window.parent.document.getElementById("bottompic").style.top=parseInt(ifra+226) + 'px';
        var hatteralja=parseInt(ifra+229);
        window.document.getElementById('oldalhatter').style.height=eval(parseInt(hatteralja)-parseInt(339)) + 'px';
                                  }

   //ha a bal menu  a legnagyobb
   else if(maxelem==3) {
    	window.parent.document.getElementById("iframelajjer").style.height=eval(menu) + 'px';
    	window.parent.document.getElementById("iframe1").style.height=eval(menu) + 'px';
        var hatteralja=eval(parseInt(menu)+parseInt(220));
    	window.parent.document.getElementById("bottompic").style.top=eval(hatteralja-3) + 'px';
        window.document.getElementById('oldalhatter').style.height=eval(parseInt(hatteralja)-parseInt(339)) + 'px';
                                  }
								  
//alert(maxelem + ' ' + window.document.getElementById('oldalhatter').style.height + ' ' + window.parent.document.getElementById("iframelajjer").style.height + ' ' + window.parent.document.getElementById("iframe1").style.height);

  

  //a menu nyulasanak merteke
  window.parent.document.getElementById('menu_stretch').style.height=eval(parseInt(hatteralja)-parseInt(344)) + 'px';
  
  window.parent.document.getElementById('iframelajjer').style.visibility='visible';
}




//***********************************************************************************************************


function meret_balmenu(){
   //menu merete
   var men=document.getElementById('lapmenu').offsetHeight;
   window.parent.document.getElementById("baliframelajjer").style.height=parseInt(men) + 'px';
   window.parent.document.getElementById("baliframe").style.height=parseInt(men) + 'px';
   

}


//***********************************************************************************************************



function showmenu(oldalnev,menunum){
 	  document.getElementById('iframe1').src=oldalnev;
 	  document.getElementById('baliframe').src='balmenu.php?menunum=' + menunum;
}

//***********************************************************************************************************

function spitout(){
	document.getElementById('menu_above').style.visibility='visible';
	document.getElementById('iframelajjer').style.visibility='visible';
	document.getElementById('baliframelajjer').style.visibility='visible';
	document.getElementById('bottompic').style.visibility='visible';
	document.getElementById('menu_stretch').style.visibility='visible';
	document.getElementById('iframe1').style.visibility='visible';
}
