//Verhinderung des Einzelseitenaufrufs
startok=true;
//Weiterleitung auf anhang
linkziel='';
linkziel=window.location.search.slice(1);

//Regie ber die Buttons
stelle='a';
buttonfeld=new Array();
//Zustnde: 0-normal, 1-Maus drauf, 2-gedrckt, 3-aktive Seite
buttonfeld[0]=new Array('a','3');
buttonfeld[1]=new Array('b','0');
buttonfeld[2]=new Array('c','0');
buttonfeld[3]=new Array('d','0');
buttonfeld[4]=new Array('e','0');
buttonfeld[5]=new Array('f','0');
//buttonfeld[6]=new Array('g','0');
buttonfeld[6]=new Array('h','0');
buttonfeld[7]=new Array('i','0');
buttonfeld[8]=new Array('j','0');

//Aktionen: 1-mouseover, 2-onclick, 3-onmouseout, 4-Verweis

function buttonaktuell(bild,aktion)
  {
  x1=bild;
  x2=aktion;
  if (top.frames["Steuerung"].document["bbild"+buttonfeld[bild][0]])
    {
    if (buttonfeld[bild][1]!=3)
      {
      if (aktion==1)
        {
        buttonfeld[bild][1]=1;
        top.frames["Steuerung"].document["bbild"+buttonfeld[bild][0]].src = eval('"Buttons/Button'+buttonfeld[bild][0]+'1.gif"');
        }
      if (aktion==2)
        {
        stelle=buttonfeld[bild][0];
        buttonfeld[bild][1]=2;
        top.frames["Steuerung"].document["bbild"+buttonfeld[bild][0]].src = eval('"Buttons/Button'+buttonfeld[bild][0]+'2.gif"');
        }
      if (aktion==3)
        {
        if (buttonfeld[bild][0]!=stelle)
          {
          buttonfeld[bild][1]=0;
          top.frames["Steuerung"].document["bbild"+buttonfeld[bild][0]].src = eval('"Buttons/Button'+buttonfeld[bild][0]+'0.gif"');
          }
        if (buttonfeld[bild][0]==stelle)
          {
          for (i=0; i<buttonfeld.length; i++) buttonfeld[i][1]=0;
          buttonfeld[bild][1]=3;
          position=bild;
          for (i=0; i<buttonfeld.length; i++) top.frames["Steuerung"].document["bbild"+buttonfeld[i][0]].src = eval('"Buttons/Button'+buttonfeld[i][0]+buttonfeld[i][1]+'.gif"')
          }
        }
      if (aktion==4)
        {
        stelle=buttonfeld[bild][0];
        for (i=0; i<buttonfeld.length; i++) buttonfeld[i][1]=0;
        buttonfeld[bild][1]=3;
        for (i=0; i<buttonfeld.length; i++) top.frames["Steuerung"].document["bbild"+buttonfeld[i][0]].src = eval('"Buttons/Button'+buttonfeld[i][0]+buttonfeld[i][1]+'.gif"')
        }
      }
    }
  else window.setTimeout("buttonaktuell(x1,x2)",1);
  }



