PositionX = 25;
PositionY = 25;
defaultWidth  = 50;
defaultHeight = 50;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL){
if (isNN){imgWin=window.open('about:blank','',optNN);} else
if (isIE){imgWin=window.open('about:blank','',optIE);} else
imgWin=window.open('about:blank','',optNN);
with (imgWin.document){
writeln('<html><head><title>£aduje foto</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);} else');
writeln('{');
writeln('window.innerWidth=document.images["George"].width;');
writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="Obrazek";}');
writeln('</sc'+'ript>');
writeln('</head><meta http-equiv="imagetoolbar" content="no"><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()" onmousedown="if (event.button==2) { alert(\' AMBER\');return false;" oncontextmenu="alert(\'AMBER\');return false;">');
writeln('<img onclick="self.close()" alt="Kliknij, aby zamkn±ę" name="George" src='+imageURL+' style="display:block;cursor: pointer"></body></html>');
close();
}}
/*function popImage( szURL )
{
  wnd = window.open( szURL, "", "alwaysRaised=yes, dependent=yes, directories=no, \
    height="+dwHeight+", width="+dwWidth+", menubar=no,	location=no, resizable=no, \
    screenX=0, screenY=0, scrollbars=no, status=no, titlebar=yes, toolbar=no, z-lock=yes" );
  
  return true;     
}*/
