//layer hiddener
function shSec(id)
{
	if(!document.getElementById) return;
	var o=document.getElementById(id);
	if(o)
	{
		if(o.style.display=="block")
			o.style.display="none";
		else
			o.style.display="block";
	}
}

//popup opener
function go(wintype,w,h,command)
{
  st=new String("toolbar=no,directories=no,status=no,scrollbars=no,menubar=no,width="+w+",height="+h);
  picture=window.open(wintype+command,"picture",st);
  picture.window.focus();
}

//image popup
function newWin(imgName,winName,imgWdth,imgHght,top,left)
{
var oImg = window.open("",winName,"status=yes,width="+ imgWdth +",height="+ imgHght +",top="+((screen.height-imgHght)/5)+",left="+((screen.width-imgWdth)/2.1));
var markup = (
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n' +
'<html>\n<head>\n<title></title>\n' +
'<meta http-equiv="imagetoolbar" content="no" />\n' +
'<style type="text/css">\n' +
'<!--\n\nhtml, body  {margin: 0px;background-color: rgb(255,255,255);}\n\n//-->\n' +
'</style>\n' +
'<script type="text/javascript">\n' +
'<!--\n\n' +
'x = 0;\n\n' +
'function getCnt()' +
'{\n\n' +
'var doc = document;\n' +
'if(doc.images[0].complete){\n' +
'clearInterval(setInt);\n' +
'doc.title = "Az ablak bezárásához kattintson a képre!";\n' +
'}else{\n' +
'doc.title = "Loading: [" + x + "]";\n' +
'x++;\n}\n}\n' +
'var setInt = setInterval(getCnt,10);\n\n' +
'//-->\n' +
'<\/script>\n</head>\n' +
'<body onload="self.focus();">\n\n' +
'<img src="'+ imgName +'" border="0" width="'+ imgWdth +'" height="'+ imgHght +'" alt="Bezárás." onclick="self.close();" onerror="document.title=\'A kép nem található!\';alert(\'A kép nem található!\');self.close();" style="cursor:pointer;" />\n\n' +
'</body>\n</html>');
oImg.document.write(markup);
oImg.document.close();
}
