// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.
// ===============================

// Opera support added by Maestro / nET#47
// Resizable value added by Maestro / nET#47
// ===============================

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 50;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 1020;
defaultHeight = 700;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = false;

// Set reSizable to 'yes' or 'no'													// Maestro / nET#47
var reSizable = 'no';															// Maestro / nET#47

// Do not edit below this line... - bo co? jak nie obsługiwali¶cie opery :P						// Maestro / nET#47
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
  var isNN=(navigator.appName=="Netscape")?1:0;
  var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
if (!isNN && !isIE) {															// Maestro / nET#47
  var isOP=true;																// Maestro / nET#47
}																		// Maestro / nET#47


var optNN='scrollbars=no,resizable='+reSizable+',width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,resizable='+reSizable+',width=150'          +',height=100'           +',left='+PositionX+',top='+PositionY;
var optOP='scrollbars=no,resizable='+reSizable+',width=150'          +',height=100'           +',left='.PositionX+',top='+PositionY;
																	// ^---- Maestro / nET#47


function popImage(imageURL,imageTitle) {
  if (isNN) {
    imgWin=window.open('about:blank','',optNN);
  } else if (isIE) {
    imgWin=window.open('about:blank','',optIE);
  } else if (isOP) {															// Maestro / nET#47
    imgWin=window.open('about:blank','',optOP);											// Maestro / nET#47
  }
  with (imgWin.document) {
    writeln('<html>');
    writeln('  <head>');
    writeln('    <title>[S± Gorsi - Ładuję...]</title>');
    writeln('    <base href="http://sagorsi.art.pl/">');
    writeln('    <style>');
    writeln('      body {');
    writeln('        margin:0px;');
    writeln('        padding:0px;');
    writeln('      }');
    writeln('    </style>');

    writeln('    <sc'+'ript>');
    writeln('      var isNN, isIE, isOP;');												// Maestro / nET#47
    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('      }');
    writeln('      if (!isNN && !isIE) {');												// Maestro / nET#47
    writeln('        isOP=true;');													// Maestro / nET#47
    writeln('      }');															// Maestro / nET#47
    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);');
    writeln('        }');
    writeln('        if (isNN) {');
    writeln('          window.innerWidth=document.images["George"].width;');
    writeln('          window.innerHeight=document.images["George"].height;');
    writeln('        }');
    writeln('        if (isOP) {');													// Maestro / nET#47
    writeln('          window.resizeTo(100,100);');											// Maestro / nET#47
    writeln('          width=96-(document.body.clientWidth-document.images[0].width);');				// Maestro / nET#47 // 112
    writeln('          height=84-(document.body.clientHeight-document.images[0].height);');				// Maestro / nET#47
    writeln('          window.resizeTo(width,height);');										// Maestro / nET#47
    writeln('        }');															// Maestro / nET#47
    writeln('      }');
    writeln('      function doTitle() {');
    writeln('        document.title="'+imageTitle+'";');
    writeln('      }');
    writeln('    </sc'+'ript>');

    writeln('    <link rel="stylesheet" href="style/style1.css" TYPE="text/css">');					// Maestro / nET#47

    writeln('  </head>');
    write('  <body style="margin:0px;padding:0px;" scroll="no" onload="reSizeToImage();doTitle();self.focus()"');
    if (AutoClose) {
      write(' onblur="self.close()"');
    }
    writeln('>');

    writeln('    <img name="George" src='+imageURL+' style="display:block;margin:0px;" onClick="self.close()">');
    writeln('  </body>');
    writeln('</html>');

    close();
  }
}

