//---------------------------------------------------------------------------------------------
//                                                                                             
//  Berlinger Mühle - JavaScript   (berlingermuehle.js)                            
//                                                                                             
//  Author       Holger Stein                                                                  
//  Version      2.1a                                                                       
//  Date         2002/03/21                                                                    
//  Copyright    ©2002 Arcticstones.com                                                        
//                                                                                             
//---------------------------------------------------------------------------------------------


  var ball = new Array("out","over");





//---------------------------------------------------------------------------------------------

  function intro()
  {
    // nach 3 Sekunden werden folgende Bilder geladen um eine schnellere Performance zu erreichen

    var iPath = new imagePath("../wwwsys/images/");

    var preLoadImage01 = new Image(); preLoadImage01.src = iPath.navigator + "ball_out.gif";
    var preLoadImage02 = new Image(); preLoadImage02.src = iPath.navigator + "ball_over.gif";
    var preLoadImage03 = new Image(); preLoadImage03.src = iPath.navigator + "background_navigator.jpg";
    var preLoadImage04 = new Image(); preLoadImage04.src = iPath.frame     + "logo.gif";
    var preLoadImage05 = new Image(); preLoadImage05.src = iPath.navigator + "intro.gif";
    var preLoadImage06 = new Image(); preLoadImage06.src = iPath.navigator + "hotel.gif";
    var preLoadImage07 = new Image(); preLoadImage07.src = iPath.navigator + "restaurant.gif";
    var preLoadImage08 = new Image(); preLoadImage08.src = iPath.navigator + "angebote.gif";
    var preLoadImage09 = new Image(); preLoadImage09.src = iPath.navigator + "umgebung.gif";
    var preLoadImage10 = new Image(); preLoadImage10.src = iPath.navigator + "impressum.gif";
  }





//---------------------------------------------------------------------------------------------


  function swap(imgName, imgID)
  {
    var xT = " ";
    eval("document." + imgName + ".src='../wwwsys/images/navigator/ball_"+ball[imgID]+".gif'");

    if (imgID == 1)
    {
      if (imgName == "za") { xT = "Intro"; }
      if (imgName == "aa") { xT = "Hotel"; }
      if (imgName == "ab") { xT = "Ausstattung"; }
      if (imgName == "ac") { xT = "Anreise"; }
      if (imgName == "ba") { xT = "Gaumenfreuden"; }
      if (imgName == "bb") { xT = "R"+String.fromCharCode(228)+"umlichkeiten"; }
      if (imgName == "ca") { xT = "Zimmerpreise"; }
      if (imgName == "cb") { xT = "arragements"; }
      if (imgName == "cc") { xT = "Spezialit"+String.fromCharCode(228)+"tenwochen"; }
      if (imgName == "cd") { xT = "Festtagswochen"; }
	  if (imgName == "ce") { xT = "Kontaktformular"; }
      if (imgName == "da") { xT = "Bad T"+String.fromCharCode(246)+"lz"; }
      if (imgName == "db") { xT = "Eisstadion"; }
      if (imgName == "dc") { xT = "Touring"; }
      if (imgName == "dd") { xT = "Locations"; }
      if (imgName == "ea") { xT = "Impressum"; }
    }    
    window.status = xT;
    return true;
  }





//---------------------------------------------------------------------------------------------


  function disps(id)
  {
    var xT = new Array(" ","Hotel","Umgebung / Lage","Restaurant","Angebote / Preise","Email an das Schloessl");

    if(isNaN(id) == true) { id = 0; }
    window.status = xT[id];
    return true;
  }





//---------------------------------------------------------------------------------------------


  function imagePath(xPath)
  {
    this.frame      = xPath+"frame/";
    this.hotel      = xPath+"hotel/";
    this.impressum  = xPath+"impressum/";
    this.intro      = xPath+"intro/";
    this.navigator  = xPath+"navigator/";
    this.restaurant = xPath+"restaurant/";
    this.umgebung   = xPath+"umgebung/";
  }


