fenster = null;
function show(Bild0,Breite0,Hoehe0)
{	
	Bild	= Bild0;
	Breite	= Breite0;
	Hoehe	= Hoehe0;
	weg();
	setTimeout("top(Bild,Breite,Hoehe)",500);
}
function top(Bild,Breite,Hoehe)
{  
	fBreite	= Breite>800 ? 800 : Breite+4;
	fHoehe	= Hoehe >600 ? 600 : Hoehe+4;
	posX	= (screen.width/2)-(fBreite/2);
	posY	= (screen.height/2)-(fHoehe/2);	
	Optionen= 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,height='+fHoehe+',width='+fBreite+',screenX='+posX+',screenY='+posY+',left='+posX+',top='+posY+' ';
	fenster = window.open(Bild,'Foto',Optionen);
	with (fenster) 
	{
		Breite>Hoehe ? hintergrund='background="images/hintergrund_show_horizontal.gif"' : hintergrund='background="images/hintergrund_show_vertikal.gif"';
		hintergrund = ""; // für Hintergrund diese Zeile auskommentieren
		document.writeln('<html><headD><title>Gro&szlig;es Foto</TITLE><meta http-equiv="imagetoolbar" content="no"></head>');
		document.writeln('<body bgcolor="#FFFFFF" '+hintergrund+' style=\"margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:100%;overflow:auto;\">');
		document.writeln('<div align="center">');
		document.writeln('<a href="javaScript:window.close()"><img src="'+Bild+'" width='+Breite+' height='+Hoehe+' border="0" alt="Fenster schliessen"></a>');
		document.writeln('</div></body></html>');
	}
}
function weg()
{
	if (fenster != null)
	{
		if (!fenster.closed)
		{
			fenster.close();
		}
	}
}