// Favicon
document.write('<link rel="shortcut icon" href="http://www.st-petri-huesten.de/favicon.ico">')

// 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 sph_antispam(x){location.href=ch1(x);}

// ***********************************************************
// MouseOver Hochaltar
// ***********************************************************

    Normal1 = new Image();
    Normal1.src = "../bilder/ha_00.jpg";
    Highlight1 = new Image();
    Highlight1.src = "../bilder/ha_02.jpg";

    Normal2 = new Image();
    Normal2.src = "../bilder/ha_00.jpg";
    Highlight2 = new Image();
    Highlight2.src = "../bilder/ha_03.jpg";

    Normal3 = new Image();
    Normal3.src = "../bilder/ha_00.jpg";
    Highlight3 = new Image();
    Highlight3.src = "../bilder/ha_01.jpg";

    Normal4 = new Image();
    Normal4.src = "../bilder/ha_00.jpg";
    Highlight4 = new Image();
    Highlight4.src = "../bilder/ha_04.jpg";

    Normal5 = new Image();
    Normal5.src = "../bilder/ha_00.jpg";
    Highlight5 = new Image();
    Highlight5.src = "../bilder/ha_06.jpg";

    Normal6 = new Image();
    Normal6.src = "../bilder/ha_00.jpg";
    Highlight6 = new Image();
    Highlight6.src = "../bilder/ha_07.jpg";

    Normal7 = new Image();
    Normal7.src = "../bilder/ha_00.jpg";
    Highlight7 = new Image();
    Highlight7.src = "../bilder/ha_05.jpg";

     function Bildwechsel(Bildnr,Bildobjekt)
    {
     window.document.images[Bildnr].src = Bildobjekt.src;
    }

// ***********************************************************
// Popup Fenster
// ***********************************************************

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();
  }


// ***********************************************************
// Vergroesserungen beim Start
// ***********************************************************
  function start_anfahrt(){
                  xPos = (screen.availWidth/2-355);
                  yPos = (screen.availHeight/2-250);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
                }

  function start_bildstoecke(){
                  xPos = (screen.availWidth/2-300);
                  yPos = (screen.availHeight/2-200);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
                }

  function start_gebaeude(){
                  xPos = (screen.availWidth/2-300);
                  yPos = (screen.availHeight/2-240);

                  setTimeout('window.moveTo(xPos,yPos);',100);
                  setTimeout('window.focus();',100);
                }

// ***********************************************************
// Dropdown Menue
// ***********************************************************

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();
 }
}