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);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function fenster(link,breite,hoehe) {
	var win = window.open(link,"Kindfenster","width="+breite+",height="+hoehe+",copyhistory=no.directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no");
}

//Bildseite
var neues_Fenster;
//neues_Fenster = null;

function Zeigen(Bild0,Titel0,Breite0,Hoehe0,Bu0,Bux0)
{
   Bild = Bild0;
   Titel = Titel0;
   Breite = Breite0;
   Hoehe = Hoehe0;
   Bu = Bu0;
   Bux = Bux0;
  // zu();
   setTimeout("sichtbar()",1000);
}

function sichtbar()
{
	zu();
if (Hoehe >= Breite) {
	
   Fenster_Hoehe = Hoehe + 100;
   Fenster_Breite = Breite + 240;
   Optionen = 'scrollbars=no,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=yes,height='+Fenster_Hoehe+',width='+Fenster_Breite+',screenX=10,screenY=10';
     neues_Fenster = window.open('','',Optionen);
     with (neues_Fenster) 
   {
document.writeln('<HTML><HEAD><TITLE>' + Titel + '</TITLE>');
document.writeln('</HEAD>');
document.writeln('<body bgcolor="#000000" link="#000000"  alink="#000000" vlink="#000000" onLoad="parent.window.focus()">');
document.writeln('<table border="0" width="100%" cellpadding="10" bgcolor="#FF9900" cellspacing="0">');
document.writeln('<tr><td valign="top" rowspan="2"><a href="#" onclick="window.close()">');
document.writeln('<IMG SRC="'+Bild+'" WIDTH='+Breite+' HEIGHT='+Hoehe+' BORDER=0 ALT="schlie&szlig;en"></a>');
document.writeln('<td valign="bottom" align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#4C4C4C">'+Bu+''+Bux+'</font></td>');
document.writeln('</TR></TABLE></DIV></BODY></HTML>');
   }
   }

if (Breite > Hoehe) {

   Fenster_Hoehe = Hoehe + 140;
   Fenster_Breite = Breite + 45;
   Optionen = 'scrollbars=no,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=yes,height='+Fenster_Hoehe+',width='+Fenster_Breite+',screenX=10,screenY=10';
   neues_Fenster = window.open('','',Optionen);
   with (neues_Fenster) 
   {
document.writeln('<HTML><HEAD><TITLE>' + Titel + '</TITLE>');
document.writeln('</HEAD>');
document.writeln('<body bgcolor="#000000" link="#000000"  alink="#000000" vlink="#000000" onLoad="parent.window.focus()">');
document.writeln('<table border="0" width="100%" cellpadding="10" bgcolor="#FF9900" cellspacing="0">');
document.writeln('<tr><td valign="top"><a href="#" onclick="window.close()">');
document.writeln('<IMG SRC="'+Bild+'" WIDTH='+Breite+' HEIGHT='+Hoehe+' BORDER=0 ALT="schlie&szlig;en"></a></TR>');
document.writeln('<tr><td valign="bottom" align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#4C4C4C">'+Bu+''+Bux+'</font></td>');
document.writeln('</TR></TABLE></DIV></BODY></HTML>');
   }
   }
   neues_Fenster.moveTo(40,40)

}

function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
       neues_Fenster.close();
}
