

// Startseite
    Normal1 = new Image();
    Normal1.src = "site/bilder/start_nav_0.jpg";
    Highlight1 = new Image();
    Highlight1.src = "site/bilder/start_nav_1.jpg";

    Normal2 = new Image();
    Normal2.src = "site/bilder/start_nav_0.jpg";
    Highlight2 = new Image();
    Highlight2.src = "site/bilder/start_nav_2.jpg";

    Normal3 = new Image();
    Normal3.src = "site/bilder/start_nav_0.jpg";
    Highlight3 = new Image();
    Highlight3.src = "site/bilder/start_nav_3.jpg";

    Normal4 = new Image();
    Normal4.src = "site/bilder/start_nav_0.jpg";
    Highlight4 = new Image();
    Highlight4.src = "site/bilder/start_nav_4.jpg";

     function Bildwechsel(Bildnr,Bildobjekt)
    {
     window.document.images[Bildnr].src = Bildobjekt.src;
    }

// PopUp

    function person(fref,fname,fmasse)
    {
    window.open(fref,fname,fmasse);
    window.location.replace("index.php");
    }

    function galerie(fref,fname,fmasse)
    {
    window.open(fref,fname,fmasse);
    window.location.replace("index.php");
    return true;
    }

function PopUp(loc,b,h,sc)
  {
      PopUpWin =
      window.open(loc, "popup_normal", "width="+b+",height="+h+",scrollbars="+sc);
      PopUpWin.focus();
  }

function PopUpOhne(loc,b,h,sc)
  {
      PopUpWin =
      window.open(loc, "popup_ohnealles", "width="+b+",height="+h+",menubar=no,locationbar=no,personalbar=no,statusbar=no,toolbar=no,scrollbars="+sc);
      PopUpWin.focus();
  }

//Anfahrtsskizze zentrieren
  function start_anfahrt(){
                  xPos = (screen.availWidth/2-150);
                  yPos = (screen.availHeight/2-100);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }


// AGBs überprüfen
function chk_agb()
{
if(document.zwerge.agb.checked != '1') {
alert('Bitte lesen Sie sich die AGB durch.');
document.zwerge.agb.focus();
return false;
}
return true;
}

// Antispam
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);}

// DropDown
function Go(x) {
 if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else if(x == "end")
   top.location.href = parent.frames[1].location;
 else {
   location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
 }
}

// Anti Spam
function AntiSpam( name, domn, text ) {
if( ! text || text == "" ) text = name + "@" + domn;
document.write( "<a href=\"mailto:" + name + "@" + domn + "\" id=dunkel >" +
text + "</a>" )
}

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 msb(x){location.href=ch1(x);}

// Fenstersprung
  function start(){
                  xPos = (screen.availWidth/2-300);
                  yPos = (screen.availHeight/2-250);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }

  function start_galerie(){
                  xPos = (screen.availWidth/2-350);
                  yPos = (screen.availHeight/2-250);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
          }
