doc=document;
obrazek=new Image();
otwarte=0
function zoom(load){
	posx = ((screen.width/2)-(100));
	posy =((screen.height/2)-(100));
   windowDiff=0
	if(otwarte)noweOkno.close();	
	noweOkno = window.open('','noweOkno','resizible=no,location=no,status=no,menubar=no,toolbars=0,scrollbars=no,width=200,height=200');
	noweOkno.document.open()
	noweOkno.document.write('<html><head><title>Powiększenie</title><script>opener.otwarte=1</script><style>body{overflow:hidden}</style></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table border=0 cellpadding=0 cellspacing=0 ><tr><td width=200 height=200 align="center" valign="middle" style="font:12px Arial;color:#2F3C45;">Proszę poczekać <br> trwa ładowanie obrazka...</td></tr></table></body></html>');
	noweOkno.document.close()
	noweOkno.moveTo(posx,posy);
	obrazek.onload=cd;
	obrazek.src=load;
	function cd(){
      windowDiffX=noweOkno.document.body.offsetWidth-200
		x=obrazek.width;
		y=obrazek.height;
		posx = ((screen.width/2)-(x/2));
		posy =((screen.height/2)-(y/2));
		if(!otwarte)noweOkno = window.open('','noweOkno','resizible=no,location=no,status=no,menubar=no,toolbar=no,scrollbars=no,width='+x+',height='+y);
		noweOkno.moveTo(posx,posy);
		noweOkno.resizeTo(x+6+windowDiffX,y+30);
		noweOkno.document.open()
		noweOkno.document.write('<html><head><title>Powiększenie</title><script>opener.otwarte=1</script><style>body{overflow:hidden}</style></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><table border=0 cellpadding=0 cellspacing=0><tr><td><img src='+obrazek.src+'></td></tr></table></body></html>');
		noweOkno.document.close()
	}
}
