function zoom(plik, size_x, size_y, scroll, loc, stat, posX, posY){

  size_x += 14;
  size_y += 32;
  
	if (posX == null) posX = Math.round(((screen.availWidth-size_x)/2)-5);
	if (posY == null) posY = Math.round(((screen.availHeight-size_y)/2)-14);

	if (scroll == null) scroll = 0;
	if (loc == null) loc = 0;
	if (stat == null) stat = 0;

	popup="width="+size_x+",height="+size_y+",left="+posX+",top="+posY+",toolbar=no,location="+loc+",directories=no,status="+stat+",menubar=no,scrollbars="+scroll+",resizable=no";
	opener = window.open( plik, 'zoom', popup);
}

function open_image(x){
 with(open('','f','width=494,height=434,left=50,top=50,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no')){
document.write('<html><head><meta http-equiv="imagetoolbar" content="no" /><title>Apartamenty Jasny Brzeg</title>');
document.write('<script type="text/javascript">function L(I){I.parentNode.style.visibility="visible";focus();resizeTo(I.width+6,I.height+45);moveTo((screen.width/2)-I.width/2,(screen.height/2)-I.height/2);}</script></head>');
document.write('<body style="background-color: #fff; height: 100%; padding:0; margin:0;" />');
document.write('<div style="font:normal bold 12px Verdana;color:#bbb;position:relative;top:50%;" /><center>trwa wczytywanie obrazka, prosze czekać...</center></div>');
document.write('<div style="overflow:hidden;position:absolute;visibility:hidden;left:0px;top:0px;" />');
document.write('<img alt="Zamknij okno" onclick="javascript: window.close();" style="cursor: pointer;" onerror="L=parentNode.previousSibling;L.innerHTML='+
'\'Błąd ładowania obrazka...\';L.style.backgroundColor=\'white\'" onload="L(this)" src="'+x+'" /></div>');
document.write('</body></html>');
document.close() }
}