// Function to show an image in a separate Popup-Window
// (c) 2001 bikefreaks
// /www.bikefreaks.de

var fenster = null;
function Bild(url, neuW, neuH, titel){
  if (fenster && !fenster.closed){
    if (neuW==altW && neuH==altH) {
      fenster.document.open('text/html','replace');
    }else{
      fenster.close();
      fenster = null;
    }
  }

  if (!fenster || fenster.closed){
    properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+neuW+",height="+neuH;
    if (navigator.appName.indexOf("icrosoft") == -1) {
      properties = properties+",screenX="+((screen.width-neuW)/2)+",screenY="+((screen.height-neuH)/2);
    }else{
      properties = properties+",left="+((screen.width-neuW)/2)+",top="+((screen.height-neuH)/2);
    }
    fenster = window.open('', '', properties);
    fenster.document.open();
  }
  fenster.document.write('<html><head><meta http-equiv="imagetoolbar" content="no"><title>'+titel+'</title></head>');
  fenster.document.write('<body bgcolor="#000000" marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
//  fenster.document.write('<a href="javascript:self.close()"><img src="../fotos/'+url+'" hspace="0" vspace="0" border="0"></a>');
  fenster.document.write('<a href="javascript:self.close()"><img src="./'+url+'" hspace="0" vspace="0" border="0"></a>');
  fenster.document.write('</body></html>');
  fenster.document.close();
  fenster.focus();
  altW = neuW;
  altH = neuH;
}