function load() {
  soopaSetup();
  preload();
}

function load_2() {
  soopaSetup();
  preload();
}

/*******************************************************************
 * soopa-rollovers.js
 * 7/28/2001
 * www.youngpup.net
 *
 * easiest rollovers on earth, baby!
 * see www.youngpup.net for documentation.
 *******************************************************************/


function soopaSetup() {
  var img, sh, sn, sd
  for (var i = 0; (img = document.images[i]); i++) {
    if (img.getAttribute) {

      sn = img.getAttribute("src");
      sh = img.getAttribute("hsrc");
      sd = img.getAttribute("dsrc");

      if (sn != "" && sn != null)
      {
        img.n = new Image();
        img.n.src = img.src;
      
        if (sh != "" && sh != null)
        {
          img.h = new Image();
          img.h.src = sh;
          img.onmouseover = soopaSwapOn
          img.onmouseout  = soopaSwapOff
        }

        if (sd != "" && sd != null)
        {
          img.d = new Image();
          img.d.src = sd;
          img.onmousedown = soopaSwapDown
        }
      }
    }
  }
}

function soopaSwapOn() {
  this.src = this.h.src;
}

function soopaSwapOff() {
  this.src  = this.n.src;
}

function soopaSwapDown() {
  this.src  = this.d.src;
  this.temp = typeof(document.onmouseup) != 'undefined' && typeof(document.onmouseup) != 'unknown' ? document.onmouseup : "";
  soopaSwapUp.img = this;
  document.onmouseup = soopaSwapUp;
}

function soopaSwapUp() {
  var ths = soopaSwapUp.img;
  ths.src = ths.n.src;
  if (ths.temp) document.onmouseup = ths.temp;
}

/*******************************************************************
 * preload
 * 11/22/2004
 *
 * www.pointproduction.com
 *
 * preload images for menu mouseover.
 *******************************************************************/
 
function preload()
{
  image1 = new Image();
  image1.src = "images/menu/aktuelles_on.gif";
  
  image2 = new Image();
  image2.src = "images/menu/restaurant_on.gif";
  
  image3 = new Image();
  image3.src = "images/menu/biergarten_on.gif";
  
  image4 = new Image();
  image4.src = "images/menu/va_on.gif";
  
  image5 = new Image();
  image5.src = "images/menu/bunterg_on.gif";
  
  image6 = new Image();
  image6.src = "images/menu/kontakt_on.gif";
  
  image7 = new Image();
  image7.src = "images/pp_icon/pp_icon_on.gif";
}

/*******************************************************************
 * PopUp for all HTML Docs that need a new window
 * 11/21/2004
 *
 * www.pointproduction.com
 *
 * See whatever you want as printable Text in new window.
 *******************************************************************/

function wild_pop() {
  window.open("karten/wild_pop.html", "Wildkarte", "width=500,height=600,resizable=no,scrollbars=yes");
}

function speisen_pop() {
  window.open("karten/speisen_pop.html", "Speisenkarte", "width=500,height=650,resizable=no,scrollbars=yes");
}

function hochzeiten_pop() {
  window.open("karten/hochzeiten.html", "Hochzeitsarrangements", "width=500,height=650,resizable=no,scrollbars=yes");
}

function tagungen_pop() {
  window.open("karten/tagungen.html", "Tagungen / Seminare / Kongresse", "width=500,height=650,resizable=no,scrollbars=yes");
}

function valentinstag_pop() {
  window.open("karten/valentinstag_pop.html", "Valentinstag", "width=500,height=650,resizable=no,scrollbars=yes");
}

function ostern_pop() {
  window.open("karten/ostermenue.html", "Ostern", "width=430,height=650,resizable=no,scrollbars=yes");
}

function wbuffet_pop() {
  window.open("karten/wbuffet_pop.html", "Weihnachten", "width=500,height=650,resizable=no,scrollbars=yes");
}

function wmenue_pop() {
  window.open("karten/wmenue_pop.html", "Weihnachten", "width=500,height=550,resizable=no,scrollbars=yes");
}

function smenue_pop() {
  window.open("karten/smenue_pop.html", "Silvester", "width=500,height=670,resizable=no,scrollbars=yes");
}

function pfifferlinge_pop() {
  window.open("karten/pfifferlinge_pop.html", "Speisenkarte", "width=500,height=650,resizable=no,scrollbars=yes");
}

function wein_pop() {
  window.open("karten/wein_pop.html", "Weinkarte", "width=500,height=650,resizable=no,scrollbars=yes");
}

function grund_og1() {
  window.open("html/grund_og1.html", "Grundriss_OG", "width=800,height=560,resizable=no,scrollbars=no");
}

function grund_og2() {
  window.open("html/grund_og2.html", "Grundriss_OG", "width=800,height=560,resizable=no,scrollbars=no");
}

function bunterg_pop() {
  window.open("html/bunter_garten.html", "Bunter_Garten", "width=470,height=550,resizable=no,scrollbars=no");
}

function qt360(fileName) {
  window.open("qt/" + fileName + ".html", "QT360", "width=800,height=540,resizable=yes,scrollbars=no");
}
