function ablak(cim,sentlink)
{
nw=window.open('pop.htm','','outerHeight=200,outerWidth=200,top=0,left=0,location=no,directories=no,status=no,toolbar=no,menubar=no,resizable=no,fullscreen=no,scrollbars=yes');
with (nw.document)
	{
	write("<html><head><title>");
	write(cim);
	write("</title><META HTTP-EQUIV='imagetoolbar' CONTENT='no'>");
	write("<script language='javascript'> ");
	write("function resize() {");
	write("var NS = (navigator.appName=='Netscape')?true:false;");
	write('if (!NS) {window.resizeTo(screen.availWidth,screen.availHeight);} if (NS) {window.outerHeight = screen.availHeight; window.outerWidth = screen.availWidth;}'); 
	write("iWidth = (NS)?window.innerWidth-20:document.body.clientWidth;iHeight = (NS)?window.innerHeight:document.body.clientHeight;");
	write("if (iWidth<document.images[0].width) {eval('document.images[0].width=iWidth');}");
	write("} </script");
	write("></head>");
	write("<body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onLoad=resize();>");
	write("<div><table height='100%' align='center' cellspacing='0' cellpadding='0'><tr valign='middle'><td><img src='");
	write(sentlink);
	write("' style='cursor:hand;cursor:pointer;' OnClick='self.close();' alt='Ablak bezárása'>");
	write("</td></tr></table></div><div style='position:absolute;text-align:right;top:0px;width:100%;z-index:2;'><a href='javascript:self.close();' style='font: 11px Arial, Verdana, Sans-Serif; color:#000000;'>Ablak bezárása</a></div>");
	write("</body></html>");
	}
nw.document.close();
}

// Tooltip Javascript
function Mouse(evnt){
y = (ns||n6)?evnt.pageY+20 - window.pageYOffset:event.y+20;
x = (ns||n6)?evnt.pageX+10:event.x+10;

NSS = (navigator.appName=='Netscape')?true:false;
scrwdth=(NSS)?window.innerWidth-30:document.body.clientWidth;
if (x>scrwdth/2+75 && x<scrwdth/2+345) x=x-(x-(scrwdth/2+75));
if (x>=scrwdth/2+345) x-=280;


var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
  }

  
if (NSS) y+=scrOfY;
if (!NSS) y+=scrOfY;

document.getElementById("pop").style.left = x +'px';
document.getElementById("pop").style.top = y +'px';
}

function popUP(num)
{
/*document.getElementById("pop").innerHTML=tartalom[num] */;
if (num>-1) idea=tartalom[num]; else idea=tartalom[parseInt(this.id)];
document.getElementById("pop").innerHTML=idea;
if (document.getElementById("pop").innerHTML=='undefined') document.getElementById("pop").innerHTML='Nincs adat';
document.getElementById("pop").style.width="280px";
document.getElementById("pop").style.borderWidth="1px";
document.getElementById("pop").style.visibility="visible";

}

function popDOWN()
{
document.getElementById("pop").innerHTML="";
document.getElementById("pop").style.visibility="hidden";
document.getElementById("pop").style.width="0px";
document.getElementById("pop").style.borderWidth="0px";
}

//A main container magasság beállítása ha kisebb mint a bal menü
function mainheight()
	{
	NSS = (navigator.appName=='Netscape')?true:false;
	if (NSS) 
		{
		document.getElementById("footer").style.marginLeft=0;
		document.getElementById("nav").style.background="url('/images/transnotie.png')";
		}
		
	mainhg=document.getElementById("main").offsetHeight;
	navhg=document.getElementById("nav").offsetHeight;	
	if (mainhg<navhg) 
		{
		mainhg=navhg;
		document.getElementById("main").style.height=mainhg+'px';		
		}
	}

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function doFontSize(d) {
	var css = document.body.style;
	var size = parseInt(css.fontSize) || 12;
	if (size+d<16 && size+d>9) {css.fontSize = (size + d) + 'px';}
	mainheight();
}


MM_preloadImages('/images/bem_on.gif','/images/ceg_on.gif','/images/akt_on.gif','/images/kam_on.gif','/images/muv_on.gif','/images/hirek_on.gif','/images/arc_on.gif','/images/kapcs_on.gif');
var num=-5;
window.onload = mainheight;
