///////////////////////////////////////////////////////////
// Piranha-Design Website                                //
///////////////////////////////////////////////////////////
//                                                       //
// this code is just designed for the website of         //
// piranha-design. you are not allowed to copy or        //
// redesign the this without ask me for permision.       //
//                                                       //
///////////////////////////////////////////////////////////
// thanks for you cooperation.      niklaus winterberger //
///////////////////////////////////////////////////////////



/*-------------------------------------------------------*/
// Globale Variablen und Objekte definieren              //
/*-------------------------------------------------------*/

var Element;
var Picture;
var Status;
var HTML;
var Lang;
var Hoch;




/*-------------------------------------------------------*/
// Alle Seiten laden sich immer im Hauptfenster          //
/*-------------------------------------------------------*/

if (parent.location.href != self.location.href) {
  parent.location.href = self.location.href;
}



/*-------------------------------------------------------*/
// Bilder zum voraus laden                               //
/*-------------------------------------------------------*/

var bild00 = new Image();
var bild01 = new Image();
var bild02 = new Image();
var bild03 = new Image();
var bild04 = new Image();
var bild05 = new Image();
var bild06 = new Image();
var bild07 = new Image();
var bild08 = new Image();
var bild09 = new Image();
var bild10 = new Image();
var bild11 = new Image();
var bild12 = new Image();
var bild13 = new Image();

bild00.src = "http://" + window.location.hostname + "/images/abbrechen_a.jpg";
bild01.src = "http://" + window.location.hostname + "/images/abbrechen_d.jpg";
bild02.src = "http://" + window.location.hostname + "/images/abbrechen_i.jpg";
bild03.src = "http://" + window.location.hostname + "/images/blank.gif";
bild04.src = "http://" + window.location.hostname + "/images/bottom.jpg";
bild05.src = "http://" + window.location.hostname + "/images/linie1.jpg";
bild06.src = "http://" + window.location.hostname + "/images/linie2.jpg";
bild07.src = "http://" + window.location.hostname + "/images/linie3.jpg";
bild08.src = "http://" + window.location.hostname + "/images/schliessen_a.jpg";
bild09.src = "http://" + window.location.hostname + "/images/schliessen_d.jpg";
bild10.src = "http://" + window.location.hostname + "/images/schliessen_i.jpg";
bild11.src = "http://" + window.location.hostname + "/images/senden_a.jpg";
bild12.src = "http://" + window.location.hostname + "/images/senden_d.jpg";
bild13.src = "http://" + window.location.hostname + "/images/senden_i.jpg";




/*-------------------------------------------------------*/
// MouseOver, MouseDown, MouseUp, MouseOut der Buttons   //
/*-------------------------------------------------------*/

function Button(Element,Picture) {
  if (Element == 0) {
    document.Abbrechen.src = "http://" + window.location.hostname + "/images/" + Picture;
  } else {
    document.Senden.src = "http://" + window.location.hostname + "/images/" + Picture;
  }
}



/*-------------------------------------------------------*/
// Statuszeile mit einem Text versehen                   //
/*-------------------------------------------------------*/

function StatusText(Status) {
  status = Status;
}



/*-------------------------------------------------------*/
// Definiertes Popup-Fenster öffnen                      //
/*-------------------------------------------------------*/

function PopUp(HTML,Lang,Hoch) {
  Sb = "no";
  if (navigator.appName == "Netscape") {
    if (Sb == "no") {
      Lang = Lang + 26;
      Hoch = Hoch + 60;
    } else {
      Lang = Lang + 26;
      Hoch = Hoch + 60;
    }
  } else {
    if (Sb == "no") {
      Lang = Lang + 26;
      Hoch = Hoch + 90;
    } else {
      Lang = Lang + 44;
      Hoch = Hoch + 84;
    }
  }
  Lt = (screen.width / 2) - (Lang / 2);
  Tp = (screen.height / 2) - (Hoch / 2);

  Fenster  = "toolbar=no";
  Fenster += ",location=no";
  Fenster += ",directories=no";
  Fenster += ",menubar=no";
  Fenster += ",resizable=no";
  Fenster += ",status=no";
  Fenster += ",scrollbars=" + Sb;
  Fenster += ",width=" + Lang;
  Fenster += ",height=" + Hoch;
  if (navigator.appName == "Netscape") {
    Fenster += ",screenX=" + Lt + ",screenY=" + Tp;
  } else {
    Fenster += ",left=" + Lt + ",top=" + Tp;
  }
  PopUpWindow = window.open(HTML,"nik",Fenster);
}

