neues_Fenster = null;

function Zeigen(Bild0,Titel0,Breite0,Hoehe0)
{
   Bild = Bild0;
   Titel = Titel0;
   Breite = Breite0;
   Hoehe = Hoehe0;
   zu();
   setTimeout("sichtbar()",0);
}

function sichtbar()
{
   Fenster_Hoehe = Hoehe + 30;
   Fenster_Breite = Breite + 30;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open('','',Optionen)
   with (neues_Fenster)
   {
      document.writeln('<HTML><HEAD><TITLE>' + Titel + '</TITLE></HEAD>');
      document.writeln('<BODY BGCOLOR="#333333" TEXT="#FFD700"><DIV ALIGN=CENTER><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 VALIGN="MIDDLE"><TR><TD>');
      document.writeln('<a href="javascript:close()"><IMG SRC="'+Bild+'" WIDTH='+Breite+' HEIGHT='+Hoehe+' BORDER=0></a></TD>');
      document.writeln('</TR></TABLE></DIV></BODY></HTML>');
   }
   
   var globalLeft = (screen.width - Fenster_Breite) / 2;
   var globalTop  = (screen.height - Fenster_Hoehe) / 2;
   neues_Fenster.moveTo(globalLeft, globalTop);
   neues_Fenster.focus();
}

function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
       neues_Fenster.close();
}

function doButtons(picimage) {
document['picture'].src=picimage;
}

// preloading
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// pop-up
function popup(url) {
 fenster=window.open(url, "popupwindow", "width=570,height=300,resizable=yes");
 fenster.focus();
 return false;
}
