// ***********************************************************
// Favicon
// ***********************************************************
document.write('<link rel="shortcut icon" href="http://www.gertraud-wackerbauer.de/site/bilder/favicon.ico">')

// ***********************************************************
// Löschen
// ***********************************************************
function aktuelles_loeschen(head,id)
  {
    Check = confirm('Die Nachricht ' + head + ' wirklich löschen? \n\n');
    if(Check != false) self.location.href='aktuelles_austrag.php?id=' + id ;
  }

function konzert_loeschen(head,id)
  {
    Check = confirm('Das Konzert in ' + head + ' wirklich löschen? \n\n');
    if(Check != false) self.location.href='konzert_austrag.php?id=' + id ;
  }

// ***********************************************************
// Antispam Mail
// ***********************************************************
function ch1(x){var yy=2;var z=0;var xx="";for(var y=0;y<x.length;y++){z=x.charCodeAt(y);xx+=String.fromCharCode(z-yy);}return xx;}function antispam(x){location.href=ch1(x);}

// ***********************************************************
// Startseite Bildwechsel
// ***********************************************************

    Normal1 = new Image();
    Normal1.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_konzerte_inaktiv.gif";
    Highlight1 = new Image();
    Highlight1.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_konzerte_aktiv.gif";

    Normal2 = new Image();
    Normal2.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_uebermich_inaktiv.gif";
    Highlight2 = new Image();
    Highlight2.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_uebermich_aktiv.gif";

    Normal3 = new Image();
    Normal3.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_malreinhoeren_inaktiv.gif";
    Highlight3 = new Image();
    Highlight3.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_malreinhoeren_aktiv.gif";

    Normal4 = new Image();
    Normal4.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_malreinschauen_inaktiv.gif";
    Highlight4 = new Image();
    Highlight4.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_malreinschauen_aktiv.gif";

    Normal5 = new Image();
    Normal5.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_indenmedien_inaktiv.gif";
    Highlight5 = new Image();
    Highlight5.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_indenmedien_aktiv.gif";

    Normal6 = new Image();
    Normal6.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_kontakt_inaktiv.gif";
    Highlight6 = new Image();
    Highlight6.src = "http://www.gertraud-wackerbauer.de/site/bilder/start_kontakt_aktiv.gif";

     function Bildwechsel(Bildnr,Bildobjekt)
    {
     window.document.images[Bildnr].src = Bildobjekt.src;
    }

// ***********************************************************
// Popup Fenster
// ***********************************************************

function PopUp(loc,b,h,sc,sb)
  {
      PopUpWin =
      window.open(loc, "popup_player", "width="+b+",height="+h+",scrollbars="+sc+",statusbar="+sb+"");
      PopUpWin.focus();
  }


// ***********************************************************
// Vergroesserungen beim Start
// ***********************************************************
  function start(){
                  xPos = (screen.availWidth/2-100);
                  yPos = (screen.availHeight/2-10);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }

// ***********************************************************
// Aktuelles und Konzerte aufklappen
// ***********************************************************
function toggle(control)
	{
	var elem = document.getElementById(control);
	if(elem.style.display == "none")
	{
	elem.style.display = "block";
	}
	else
	{
	elem.style.display = "none";
	}
	}
