// Netventure, http://www.netventure.pl/

function zoom(image,width,height) {
    zoomWindow = null;
    if (window.screen) { awidth = screen.availWidth; aheight = screen.availHeight; } else { awidth = 640; aheight = 480; }
    params = 'width='+width+',height='+height+','
           + 'top='+(aheight-height)/2+',left='+(awidth-width)/2+','
           + 'menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no';
    zoomWindow = window.open('','zoom',params);
    zoomWindow.document.writeln('<?xml version="1.0" encoding="utf-8"?>');
    zoomWindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
    zoomWindow.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">');
    zoomWindow.document.writeln('  <head>');
    zoomWindow.document.writeln('    <title>Powiększenie</title>');
    zoomWindow.document.writeln('    <meta http-equiv="content-type" content="text/html; charset=utf-8" />');
    zoomWindow.document.writeln('  </head>');
    zoomWindow.document.writeln('  <body style="padding: 0px; margin: 0px;" onload="this.focus()">');
    zoomWindow.document.writeln('    <img style="display: block;" src="'+image+'" alt="zamknij" onclick="self.close()" />');
    zoomWindow.document.writeln('  </body>');
    zoomWindow.document.writeln('</html>');
    zoomWindow.document.close();
}

function zoom2(image,width,height,desc) {
    zoomWindow = null;
    if (window.screen) { awidth = screen.availWidth; aheight = screen.availHeight; } else { awidth = 640; aheight = 480; }
    height = height + 36;
    params = 'width='+width+',height='+height+','
           + 'top='+(aheight-height)/2+',left='+(awidth-width)/2+','
           + 'menubar=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no';
    zoomWindow = window.open('','zoom',params);
    zoomWindow.document.writeln('<?xml version="1.0" encoding="utf-8"?>');
    zoomWindow.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
    zoomWindow.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">');
    zoomWindow.document.writeln('  <head>');
    zoomWindow.document.writeln('    <title>Powiększenie</title>');
    zoomWindow.document.writeln('    <meta http-equiv="content-type" content="text/html; charset=utf-8" />');
    zoomWindow.document.writeln('  </head>');
    zoomWindow.document.writeln('  <body style="background: #FFF9EA; padding: 0px; margin: 0px;" onload="this.focus()">');
    zoomWindow.document.writeln('    <img style="display: block;" src="'+image+'" alt="zamknij" onclick="self.close()" />');
    zoomWindow.document.writeln('    <div style="margin-left: 5px; font-family: Tahoma, MS Sans Serif, Arial, Helvetica, sans-serif; font-size: 8pt;">'+desc+'</div>');
    zoomWindow.document.writeln('  </body>');
    zoomWindow.document.writeln('</html>');
    zoomWindow.document.close();
}
