function sonantesmail(){
    var ScreenWidth=window.screen.width;
    var ScreenHeight=window.screen.height;
    var movefromedge=0;
    placementx=(ScreenWidth/2)-((765)/2);
    placementy=(ScreenHeight/2)-((310+50)/2);
    var PopUpUrl="../uzenet.php"
    WinPop=window.open(PopUpUrl,"","width=765,height=310,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
   }
function hidestatus(){
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEDOWN)
document.onmouseover=hidestatus
document.onmousedown=hidestatus
function htmlopen(oldal)
{
    var ScreenWidth=window.screen.width;
    var ScreenHeight=window.screen.height;
    var movefromedge=0;
    placementx=(ScreenWidth/2)-((740)/2);
    placementy=(ScreenHeight/2)-((520+100)/2);
    WinPop=window.open(oldal,"","width=740,height=520,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
   }
function flashfull()
{
window.open('../hu/flash.htm','','toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,fullscreen=yes')
}
function htmlfull()
{
window.open('../hu/probaframe.htm?lang=hu','','toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,fullscreen=yes')
}
function htmlengfull()
{
window.open('../en/probaframe.htm?lang=en','','toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,fullscreen=yes')
}
function flashengfull()
{
window.open('../en/flash.htm','','toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,fullscreen=yes')
}
function belso()
{
window.open('belso.htm','','toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,status=no,fullscreen=yes')
}
function loadImages() { 
	for (i = 0; i < yourImages.length; i++) { 
		preImages[i] = new Image()
		preImages[i].src = yourImages[i]
	}
	for (i = 0; i < preImages.length; i++) { 
		loaded[i] = false
	}
	checkLoad()
}
function checkLoad() {
	if (currCount == preImages.length) { 
		location.replace(locationAfterPreload)
		return
	}
	for (i = 0; i <= preImages.length; i++) {
		if (loaded[i] == false && preImages[i].complete) {
			loaded[i] = true
			eval("document.img" + currCount + ".src=dots[1].src")
			currCount++
		}
	}
	timerID = setTimeout("checkLoad()",10) 
}
// end hiding -->
var message="A tartalom nem lementhető.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

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) { //v3.0
  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); 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 sonanteskep(){
    var ScreenWidth=window.screen.width;
    var ScreenHeight=window.screen.height;
    var movefromedge=0;
    placementx=(ScreenWidth/2)-((500)/2);
    placementy=(ScreenHeight/2)-((420+50)/2);
    var PopUpUrl="../hu/kepek/kep1.htm"
    WinPop=window.open(PopUpUrl,"","width=500,height=430,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
   }
function publicgal(i) {
with (document) {
open();
writeln('<HTML><HEAD>');
writeln('<TITLE>' + "Galéria" + '</TITLE>');
writeln('<meta http-equiv="Content-Type" content="no-cache; text/html; charset=windows-1250">');
writeln('<script language="JavaScript">');
writeln('\<\!\-\-');
writeln('var totalPictures = ' + 11);
writeln('var currentPicture = ' + i);
writeln('function previousImage() {');
writeln('if (currentPicture != 1) {');
writeln('currentPicture--;');
writeln('document.mainimage.src = "show" + currentPicture + ".jpg";');
writeln('document.next.src = "' + "../publnyil.jpg" + '";');
writeln('if (currentPicture == 1) {');
writeln('document.previous.src = "' + "../publure.jpg" + '"');
writeln('}}}');
writeln('function nextImage() {');
writeln('if (currentPicture != 11) {');
writeln('currentPicture++');
writeln('document.mainimage.src = "show" + currentPicture + ".jpg"');
writeln('document.previous.src = "' + "../publnyiv.jpg" + '"');
writeln('if (14 == currentPicture) {');
writeln('document.next.src = "' + "../publure.jpg" + '"');
writeln('}}}');
writeln('\/\/ \-\->');
writeln('<\/script>');
writeln('</head>');
writeln('<body  bgcolor="#BFCBD9" text="#C0C0C0">');
writeln('<div align=center>');
writeln('<table width=100 border=0 cellspacing=0 cellpadding=3>');
writeln('<tr>');
writeln('<td bgcolor="#BFCBD9"><img src="show' + i + '.jpg" name=mainimage></td>');
writeln('</tr>');
writeln('<tr valign=middle align=center>');
leftarrow = (i == 1) ? "../publure.jpg" : "../publnyiv.jpg";
writeln('<td bgcolor="#BFCBD9"><center><a href="javascript:previousImage();"><img src="' + leftarrow + '" alt= "Előző" width=50 height=25 border=0 name=previous></a>');
writeln('         ');
rightarrow = (i == 14) ? "../publure.jpg" : "../publnyil.jpg";
writeln('<a href="javascript:nextImage();"><img src="' + rightarrow + '" alt= "Következő" width=50 height=25 border=0 name=next></a></center></td>');
writeln('</tr></table>');
writeln('</div>');
writeln('</body>');
writeln('</html>');
close();
   }
}
