type = navigator.appName;
vers = parseInt(navigator.appVersion);

if (vers >= 3)
    goforit = 1;
else
    goforit = 0;

if (goforit == 1)
{

home = new Image();
home.src = "images/buttons/button01off.gif";
pickhome = new Image();
pickhome.src = "images/buttons/button01on.gif";

pruefstand = new Image();
pruefstand.src = "images/buttons/button02off.gif";
pickpruefstand = new Image();
pickpruefstand.src = "images/buttons/button02on.gif";

powercommander = new Image();
powercommander.src = "images/buttons/button03off.gif";
pickpowercommander = new Image();
pickpowercommander.src = "images/buttons/button03on.gif";

tunning = new Image();
tunning.src = "images/buttons/button04off.gif";
picktunning = new Image();
picktunning.src = "images/buttons/button04on.gif";

vergaser = new Image();
vergaser.src = "images/buttons/button05off.gif";
pickvergaser = new Image();
pickvergaser.src = "images/buttons/button05on.gif";

auspuff = new Image();
auspuff.src = "images/buttons/button06off.gif";
pickauspuff = new Image();
pickauspuff.src = "images/buttons/button06on.gif";

zubehoer = new Image();
zubehoer.src = "images/buttons/button07off.gif";
pickzubehoer = new Image();
pickzubehoer.src = "images/buttons/button07on.gif";

renndienst = new Image();
renndienst.src = "images/buttons/button08off.gif";
pickrenndienst = new Image();
pickrenndienst.src = "images/buttons/button08on.gif";

links = new Image();
links.src = "images/buttons/button09off.gif";
picklinks = new Image();
picklinks.src = "images/buttons/button09on.gif";

kontakt = new Image();
kontakt.src = "images/buttons/button10off.gif";
pickkontakt = new Image();
pickkontakt.src = "images/buttons/button10on.gif";

impressum = new Image();
impressum.src = "images/buttons/button11off.gif";
pickimpressum = new Image();
pickimpressum.src = "images/buttons/button11on.gif";

}

function lighten(NameOfPic,NewPic,message)
{
 self.status=message;
 if (goforit == 1)
 {
  document.images[NameOfPic].src = eval(NewPic + ".src");
 }
 return true;
}
