// Script copyright by Michael Praast, webmaster@praast.de http://www.praast.de
// *********** AB HIER NICHTS MEHR ÄNDERN !!! ***********
// Variablen deklarieren
var x=0;var y=0; var h=0;

function oeffne(bild,hoehe,weite,text){
// UMRECHNUNGEN:
// für NN-Fenster muss ein größeres Window aufgebaut werden, da der kein CSS2 kann:
if (document.layers) {y=(Number(weite)+15);x=(Number(weite)+15);h=(Number(hoehe)+105)}

// für IE übernehmen wir einfach die Höhe (+50px für Button) und Breite
else {x=hoehe;h=(Number(hoehe)+100);y=(Number(weite)+10);}

if (!text)
{
text="&lt;-- no comment --&gt;";
}
// nun das seperate Fenster oeffnen:
mywin=window.open("","Detailansicht","height="+h+",width="+y+",top=0,left=0,screenX=0,screenY=0,scrollbars=yes");
	mywin.document.open('text/html', 'replace');
	mywin.document.write('<html><head><title>Detailansicht<\/title><link rel="stylesheet" href="/screen.css.php" type="text/css"><style type="text/css">html, body{margin:0;padding:0;}<\/style><\/head>');
	mywin.document.write('<body>');
	mywin.document.write('<p align="center" style="padding:5px;" class="copyright"><img src=');
	mywin.document.write(bild);
	mywin.document.write(' width="');
	mywin.document.write(weite);
	mywin.document.write('" HEIGHT="');
	mywin.document.write(x);
	mywin.document.write('" border="0" vspace="0" hspace="0" alt="Lade Bild. Einen Moment bitte!" title=""><br>');
	mywin.document.write(text);
	mywin.document.write('<\/p>');
	// mywin.document.write('<CENTER><FORM><INPUT TYPE="BUTTON" VALUE="SCHLIESSEN" onClick="self.close\(\);"><\/FORM><\/CENTER>');
	// mywin.document.write('<p align="center"><a href="#" style="font-weight:bold;font-family:VERDANA,ARIAL;color:blue" onClick="self.close\(\);">[ Fenster schließen ]<\/a><\/p>');
	hs=hoehe+20;
	//mywin.document.write('<span style="font-family:Arial,sans-serif;font-size:0.7em;color:#008080;position:absolute;top:'+hs+'px;left:10px;">Script created &amp\; &copy\; by<br> <a href="http:/'+'/www.praast.de/" target="_blank">Michael Praast</a>.</span>');
	mywin.document.write('<\/BODY>');
	mywin.document.close();
	mywin.focus();
}
// alte Fensterrefferenz und auch das Fenster entsorgen:
onfocus=myCloser;
function myCloser()
{
    if(self.mywin && !self.mywin.closed)
    {
        self.mywin.close();  self.mywin = null;   
    }
}