<!--
//Buttons der Mega-Link Seiten bewegen
//Gianmarco Niedermeyr
//Stand: 2002-01-27

images1loaded = false;
images2loades = false;
anzahlgifs = 9;

vss = false;
browser_ok = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3))
                || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=3)));

if (true){
   buttons = new String();
   buttons[0] = "backbutton";
   buttons[1] = "startbutton";
   buttons[2] = "indexbutton" ;
   buttons[3] = "homebutton";
   buttons[4] = "mailgif";
   buttons[5] = "paragraphbutton";
   buttons[6] = "sword1";
   buttons[7] = "sword2";
   buttons[8] = "sword3";
   buttons[9] = "sword4";

   statustext = new String();
   statustext[buttons[0]] = "Eine Ebene nach oben";
   statustext[buttons[1]] = "Zur Mega-Link Startseite";
   statustext[buttons[2]] = "Zum Mega-Link Index";
   statustext[buttons[3]] = "Zurück zu Giannis Castle";
   statustext[buttons[4]] = "Neuer/veralteter/ärgerlicher Link? Bitte mailen!";
   statustext[buttons[5]] = "Disclaimer: Wichtige rechtliche Informationen!";
   statustext[buttons[6]] = "";
   statustext[buttons[7]] = "";
   statustext[buttons[8]] = "";
   statustext[buttons[9]] = "";

   filenames_o = new String();
   filenames_o[buttons[0]] = "gif/zurueck_oben.gif";
   filenames_o[buttons[1]] = "gif/startbutton_oben.gif";
   filenames_o[buttons[2]] = "gif/index_oben.gif";
   filenames_o[buttons[3]] = "gif/home_oben.gif";
   filenames_o[buttons[4]] = "gif/write.gif";
   filenames_o[buttons[5]] = "gif/paragraph_oben.gif";
   filenames_o[buttons[6]] = "gif/sword.gif";
   filenames_o[buttons[7]] = "gif/sword.gif";
   filenames_o[buttons[8]] = "gif/sword.gif";
   filenames_o[buttons[9]] = "gif/sword.gif";

   filenames_u = new String();
   filenames_u[buttons[0]] = "gif/zurueck_unten.gif";
   filenames_u[buttons[1]] = "gif/startbutton_unten.gif";
   filenames_u[buttons[2]] = "gif/index_unten.gif";
   filenames_u[buttons[3]] = "gif/home_unten.gif";
   filenames_u[buttons[4]] = "gif/buch.gif";
   filenames_u[buttons[5]] = "gif/paragraph_unten.gif";
   filenames_u[buttons[6]] = "gif/sword_turn.gif";
   filenames_u[buttons[7]] = "gif/sword_turn.gif";
   filenames_u[buttons[8]] = "gif/sword_turn.gif";
   filenames_u[buttons[9]] = "gif/sword_turn.gif";

   vss = true;
}

if (vss){
   imagearray = new Image();
   for(var i = 0; i <= anzahlgifs;i++){
     imagearray[buttons[i]] =  new Image();
     imagearray[buttons[i]].src = filenames_o[buttons[i]];
   }
   images1loaded = true;
}
 else{alert("Vss nicht erfüllt!");
}

if ((vss)&&(images1loaded)){
   imagearray2 = new Image();
   for(var i = 0; i <= anzahlgifs;i++){
     imagearray2[buttons[i]] =  new Image();
     imagearray2[buttons[i]].src = filenames_u[buttons[i]];
   }
   images2loaded = true;
}

function flip_u(imagename){
  if (images2loaded){
   document.images[imagename].src = filenames_u[imagename];
   window.status = statustext[imagename];
  }
}

function flip_o(imagename){
  if (images1loaded){
   document.images[imagename].src = filenames_o[imagename];
   window.status = '';
  }
}

// -->