/* Picture Popups */
function BildAnsicht(imageName,imageWidth,imageHeight,alt,caption)
{
   if (caption)
   {
      var caption = unescape(caption);
   }
   if (imageWidth > 800)
   {
      var multiplier = imageWidth / imageHeight;
      var imageWidth = 800;
      var imageHeight = Math.ceil(imageWidth / multiplier);
   }
   if (imageHeight > 600)
   {
      var multiplier = imageHeight / imageWidth;
      var imageHeight = 600;
      var imageWidth = Math.ceil(imageHeight / multiplier);
   }

   var posLeft = (screen.width - imageWidth) / 2;
   var posTop = (screen.height - imageHeight) / 2;

   if (caption != '') var popupHeight = imageHeight + 50;
   else               var popupHeight = imageHeight;
   var popupWidth  = imageWidth;

   newWindow = window.open("","newWindow","width="+popupWidth+",height="+popupHeight+",left="+posLeft+",top="+posTop);
   newWindow.document.open();
   newWindow.document.write('<html><head><title>'+alt+'</title><style type="text/css" media="screen">body, td { font-family: verdana, tahoma, georgia, sans-serif; font-size: 11px; background: #FFDFC3; }</style></head><body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" style="overflow:hidden;" onBlur="self.close()">');
   newWindow.document.write('<a href="#" onMouseDown="self.close()" title="Bildansicht schließen">');
   newWindow.document.write('<img border=0 src='+imageName+' width='+imageWidth+' height='+imageHeight+' title="Bildansicht schließen" alt='+alt+' />');
   newWindow.document.write('</a>');
   newWindow.document.write('<table width="100%" class="popuptext" cellspacing="5" cellpadding="0"><tr><td height="40" align="center" valign="middle">'+caption+'</td></tr></table>');
   newWindow.document.write('</body></html>');
   newWindow.document.close();
   newWindow.focus();
}