bildfenster=null;

function Zeige(Bild_,Breite_,Hoehe_,Kommentar_)
{
Bild = Bild_;
Breite = Breite_;
Hoehe = Hoehe_;
Kommentar = Kommentar_;
FensterSchliessen();
setTimeout("FensterOeffnen()",100);
}

function FensterOeffnen()
{
if(window.outerWidth)
{
var left =(window.outerWidth-Breite)/2;
var top =(window.outerHeight-Hoehe)/2;
}

else
{
var left =(document.body.clientWidth-Breite)/2;
var top =(document.body.clientHeight-Hoehe)/2;
}

Fenster_Hoehe = Hoehe + 25;
//Fenster_Breite = Breite + 30;
Fenster_Breite = 360;
if (Kommentar != null)
{
Fenster_Hoehe = Hoehe + 55;
}
Optionen = "dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height="+Fenster_Hoehe+",width="+Fenster_Breite;
bildfenster = window.open("","",Optionen);
bildfenster.moveTo(left,top);
with(bildfenster.document){
write("<html><head><title>Deutsch Langhaar Zwinger „von Heek“</title></head>");
write("<style type=\"text/css\">");
write("body.showpic{font-family: Arial, Helvetica, sans-serif;}");
write("body.showpic{background-image: none;background-color : #E0DDBA;}");
write("body.showpic {text-align: center;margin: 0px;padding: 0px;}");
write("body.showpic p {margin: 5px; padding: 0px;text-align: center;}");
//write("body.showpic img {margin: 0px;padding: 0px;}");
//write("body.showpic img{background-image: url(./images/sanduhr_drehend.gif);background-position: center;background-repeat: no-repeat;}");
write("</style>");
write("<body class=\"showpic\">");
write("<p>");
write("<a href=\"javascript:self.close()\">");
write("<img src=\"" + Bild + "\" border=\"0\" title=\"CLICK to close this window! || Fenster schließen per KLICK!\" alt=\"CLICK to close this window! || Fenster schließen per KLICK!\" width=\"" + Breite + "\" height=\"" +Hoehe+ "\" ></a>");
write("</p>");
if (Kommentar != null)
write("<p align=\"center\">"+Kommentar+"</p>");
write("</body></html>");
}
}

function FensterSchliessen()
{
if (bildfenster != null)
if (!bildfenster.closed)
bildfenster.close();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
