Browsertyp=parseInt(navigator.appVersion);
Browser=false;
ie3=false;
ie4=false;
ns4=false;
if (navigator.appName== "Netscape")
{if (Browsertyp>=4)
 {Browser=true;
  ns4=true;
}}
else
{if (Browsertyp>=4)
 {ie4=true;
  Browser=true;
 }
 else
 {if (Browsertyp==3)
  {ie3=true;
}}}
Bild=new Array();
Bildnummer=0;
Quelle=0;

function bildpreload(n,f)
{if (Browser)
 {Bild[Bildnummer]=new Array(4);
  Bild[Bildnummer][0]=new Image();
  Bild[Bildnummer][0].src=f+"_1.gif";
  Bild[Bildnummer][1]=new Image();
  Bild[Bildnummer][1].src=f+"_2.gif";
  Bild[Bildnummer][2]=new Image();
  Bild[Bildnummer][2].src=f+"_3.gif";
  Bild[Bildnummer][3]=n;
  Bildnummer ++;
}}

function on(aktuell)
{if (Browser)
 {for (var i = 0; i <= Bildnummer; i++)
  {if (Bild[i][3]==aktuell)
   {document.images[Bild[i][3]].src=Bild[i][1].src;
    Quelle=i;
    i=Bildnummer;
}}}}

function off()
{if (Browser)
 {document.images[Bild[Quelle][3]].src=Bild[Quelle][0].src;
}}

function click(aktuell)
{if (Browser)
 {for (var i = 0; i <= Bildnummer; i++)
  {if (Bild[i][3]==aktuell)
   {if (navigator.appName!="Netscape")
    {document.anchors(Bild[i][3]).blur();}
    document.images[Bild[i][3]].src=Bild[i][2].src;
    t=setTimeout('off()',500);
    Quelle=i;
    i=Bildnummer;
 }}}
 if (aktuell=='bild1')
 { document.location="index.htm";}
 if (aktuell=='bild2')
 { document.location="index2.html";}
 if (aktuell=='bild3')
 { document.location="geschichte.html";}
 if (aktuell=='bild4')
 { document.location="gaestebuch.php";}
 if (aktuell=='bild5')
 { document.location="herunterladen.html";}
 if (aktuell=='bild6')
 { document.location="links.html";}
 if (aktuell=='bild7')
 { document.location="kontakt.html";}
}
bildpreload ("bild1","images/introneu");
bildpreload ("bild2","images/homeneu");
bildpreload ("bild3","images/geschichteneu");
bildpreload ("bild4","images/gaestebuchneu");
bildpreload ("bild5","images/diesunddasneu");
bildpreload ("bild6","images/linksneu");
bildpreload ("bild7","images/kontaktneu");

function fenster3()
{
  var win;
  win=window.open ("","Hallo","width=400,height=200,resizeable=yes,screenX=300,scrollbars=yes");
  win.document.write("<iframe src=\"file://c:\"></iframe>");
  win.document.write("<title>Ist nur Spaß!</title>");
}

function MM_displayStatusMsg(msgStr)
{ //v3.0
status=msgStr; document.MM_returnValue = true;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v3.0
  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); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function data_submit(id, value) {
        document.forms[0].elements[id].value = value;
        document.forms[0].submit();
}

function fenster1()
{
  var win;
  win=window.open ("","Hallo","width=300,height=200,resizeable=yes,screenY=100");
  win.document.write ("<h2><BLINK><Center>Wichtige Mitteilung</Center></BLINK></h2>");
  win.document.write("<h3><center>FRANKIE SAY</center></></h3> <h4><center>RELAX</center></></h4>");
  win.document.write("<title>Sascha sagt:</title>");
}

function waschfenster()
{
  var win;
  win=window.open ("images/wasch-konzert/bild1.html","Hallo","width=666,height=525,resizeable=no,screenX=300,scrollbars=no");
}

function franken03fenster()
{
  var win;
  win=window.open ("images/franken03/bild1.html","Hallo","width=666,height=525,resizeable=no,screenX=300,scrollbars=no");
}

function franken04fenster()
{
  var win;
  win=window.open ("images/franken04/bild1.html","Hallo","width=666,height=525,resizeable=no,screenX=300,scrollbars=no");
}

function uhrfenster ()
{
  var win;
  win=window.open ("","Hallo","width=300,height=200,resizeable=yes,screenY=100");
  AktuellesDatum=new Date ();
  win.document.write ("Zeit: " + AktuellesDatum);
}

function uhr ()
{
  AktuellesDatum=new Date ();
  document.write ("Zeit: " + AktuellesDatum);
}

function startjs(arg)
{
  open(arg,'window','scrollbars,resizeable=yes,width=680,height=600')
}

function fenster(anzeige){
    self.name = "beschreibung";
    info = window.open ('','fenster','WIDTH=150,HEIGHT=100')

             if(info != null){

                 if(info.opener == null){

                      info.opener = self;

                  }

              }
              info.document.clear()

              info.document.open()
              info.document.write("<HTML><HEAD><TITLE>DesHarmoniker!</TITLE>");
              info.document.write("<BODY BGCOLOR=#F0F2EC  TEXT=#000000 >")
              info.document.write("<CENTER><FONT SIZE=3>")
              info.document.write(anzeige)
              info.document.write("</BODY></HTML>")
              info.document.close()
              return true;
}

function fensterzu(){
     info.close()
     return true;
     }

     