   var buttons = new Array();
   var currentButton = 0;

   initButton(0, "./img/menu/buttonnormalStartseite.gif", "./img/menu/buttondrueberStartseite.gif");
   initButton(1, "./img/menu/buttonnormalJasmin.gif", "./img/menu/buttondrueberJasmin.gif");
   initButton(2, "./img/menu/buttonnormalUnterricht.gif", "./img/menu/buttondrueberUnterricht.gif");
   initButton(3, "./img/menu/buttonnormalFotos.gif", "./img/menu/buttondrueberFotos.gif");
   initButton(4, "./img/menu/buttonnormalStundenplan.gif", "./img/menu/buttondrueberStundenplan.gif");
   initButton(5, "./img/menu/buttonnormalPreise.gif", "./img/menu/buttondrueberPreise.gif");
   initButton(6, "./img/menu/buttonnormalAuftritte.gif", "./img/menu/buttondrueberAuftritte.gif");
   initButton(7, "./img/menu/buttonnormalAnfahrt.gif", "./img/menu/buttondrueberAnfahrt.gif");
   initButton(8, "./img/menu/buttonnormalKontakt.gif", "./img/menu/buttondrueberKontakt.gif");


   function initButton(buttonNr, offImgSrc, onImgSrc){
         buttons[buttonNr] = new Object();
         buttons[buttonNr].onImg = new Image(); buttons[buttonNr].onImg.src = onImgSrc;
         buttons[buttonNr].offImg = new Image(); buttons[buttonNr].offImg.src = offImgSrc;
         return true;
   }

   function setButtonOn(buttonNr, menuFrameNr){
         frames[menuFrameNr].document.images[buttonNr].src = buttons[buttonNr].onImg.src;
         return true;
   }

   function setButtonOff(buttonNr, menuFrameNr){
        if (buttonNr == currentButton){
           return true;
        }
           frames[menuFrameNr].document.images[buttonNr].src = buttons[buttonNr].offImg.src;
         return true;
   }


   function setButtonOffForce(buttonNr, menuFrameNr){
           frames[menuFrameNr].document.images[buttonNr].src = buttons[buttonNr].offImg.src;
           currentButton = -1;
         return true;
   }


   function buttonClicked(buttonNr, menuFrameNr){
         var tmp = currentButton;
         currentButton = buttonNr;
            if ( tmp > -1 ){
            	setButtonOff(tmp, 1);
            }
            frames[menuFrameNr].document.images[buttonNr].src = buttons[buttonNr].onImg.src;
         return true;
   }

