/*
        ** external JavaScript-functions **
        by Axel Hahn * http://www.axel-hahn.de/

        Feel free to use and modify this code
        for your own page.
*/

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Bildbetrachter
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function zoom(sPicture, sDescription, sPretitle)
{
   var oPopup;
   var iWidth=800;
   var iHeight=600;

   // oPopup=window.open('', 'start', 'width=' + (screen.availWidth) + ',height=' + (screen.availHeight) + ',scrollbars=1,status=0,menu=0,resizeable=1,top=0,left=0');
   oPopup=window.open('', 'start', 'width=' + iWidth + ',height=' + iHeight + ',scrollbars=0,statusbar=0,menu=0,resizable=1,top=0,left=0');

   if (oPopup.outerHeight)
   {
      oPopup.moveTo((screen.availWidth-oPopup.outerWidth)/2, (screen.availHeight-oPopup.outerHeight)/2);
   }
   else
   {
      oPopup.moveTo((screen.availWidth-iWidth)/2, (screen.availHeight-iHeight)/2);
   }
   oPopup.document.open();
   oPopup.document.write("<HTML>\n");
   oPopup.document.write("<HEAD>\n");
   oPopup.document.write('  <TITLE>Bild-Betrachter</TITLE>\n');
   oPopup.document.write('  <link rel="STYLESHEET" type="text/css" href="/axel/css/showimage.css">\n');
   oPopup.document.write('  <META HTTP-EQUIV="imagetoolbar" CONTENT="no">\n');
   oPopup.document.write("</HEAD>\n");
   oPopup.document.write('<body OnBlur="javascript:self.close();" >\n');
   // oPopup.document.write('<IMG id="loader" SRC="/axel/images/loadingpic_01.gif" WIDTH="800" HEIGHT="600"></A>\n');
   oPopup.document.write('<IMG id="photo" SRC="' + sPicture + '" ALT="" BORDER="0" WIDTH="800" HEIGHT="600" >');
   oPopup.document.write('<A HREF="#" class="headline" OnClick="javascript:self.close();">' + sPretitle + '</a>');
   if (sDescription) oPopup.document.write('<A HREF="#" class="description" OnClick="javascript:self.close();">' + sDescription + '</A>');
   oPopup.document.write('<A HREF="#" OnClick="javascript:self.close();"><IMG SRC="/axel/images/rahmen_800x600_05.gif" CLASS="imgframe" ALT="zum Schliessen Bild anklicken." BORDER="0" WIDTH="800" HEIGHT="600"></A>\n');
   oPopup.document.write('</BODY></HTML>');
   oPopup.document.write("\n\n\n<!-- this HTML code was generated with javascript -- http://www.axel-hahn.de/ -->");
   oPopup.document.close();
   oPopup.focus();

}


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// EOF * info@Axel-Hahn.de
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~