/* Anmerkung: Variablen in index.html zur Anpassung der Buttonzahl die Variable 'hauptfelder' auf die gewuenschte Anzahl der Hauptbuttons (minus 1) setzen; die Variable 'unterfelder' auf die gewuenschte maximale Anzahl der Unterbuttons (minus 1) setzen; im  html-Bereich im unteren Teil der Datei einfach an gewuenschter Stelle Tabellenzeile kopieren und einfuegen, Text aendern und WICHTIG die Zahlen aendern! 1.Ziffer  bedeutet Nummer der grossen Buttons, 2. Ziffer Nummer der kleinen (z.Bsp.: 0.1  -2.Unterbutton, 2.0 -3.Oberbutton etc...) */
 
var url, beute, xx, yy;
function wechsel(url,xx,yy)
 {
 top.ax = xx; top.ay = yy;
 top.ap1 = top.ab[top.ax][top.ay]; top.ap2 = top.ab[top.ax][0];
 top.aap1 = top.ab[top.aax][top.aay]; top.aap2 = top.ab[top.aax][0];
 if(top.ax!=top.aax)
  {
  if(top.ay!=0) { window.document.images[top.ap1].src = top.untenn[4].src;
    window.document.images[top.ap2].src = top.untenn[1].src; }
  if(top.ay==0) { window.document.images[top.ap2].src = top.untenn[1].src; }
  if(top.aay!=0) { window.document.images[top.aap1].src = top.untenn[3].src;
   window.document.images[top.aap2].src = top.untenn[0].src; }
  if(top.aay==0) { window.document.images[top.aap2].src = top.untenn[0].src; }
  }
 if(top.ax==top.aax)
  {
  if(top.ay!=0) { window.document.images[top.ap1].src = top.untenn[4].src; }
  if(top.aay!=0) { window.document.images[top.aap1].src = top.untenn[3].src; }
  }
 top.aax = top.ax; top.aay = top.ay; top.aap1 = top.ap1; top.aap2 = top.ap2;
 parent.main.location.href = url;
 }

function cambio()
 {
 if(top.dat==1&&top.seb==0) 
 {
 top.seb = 1;
 top.ap1 = top.ab[top.datx][top.daty]; top.ap2 = top.ab[top.datx][0];
 top.aap1 = top.ab[top.aax][top.aay]; top.aap2 = top.ab[top.aax][0];
 if(top.datx!=top.aax)
  {
  if(top.daty!=0) { window.document.images[top.ap1].src = top.untenn[4].src;
   window.document.images[top.ap2].src = top.untenn[1].src; }
  if(top.daty==0) { window.document.images[top.ap2].src = top.untenn[1].src; }
  if(top.aay!=0) { window.document.images[top.aap1].src = top.untenn[3].src;
   window.document.images[top.aap2].src = top.untenn[0].src; }
  if(top.aay==0) { window.document.images[top.aap2].src = top.untenn[0].src; }
  }
 if(top.datx==top.aax)
  {
  if(top.daty!=0) { window.document.images[top.ap1].src = top.untenn[4].src; }
  if(top.aay!=0) { window.document.images[top.aap1].src = top.untenn[3].src; }
  }
 top.aax = top.datx; top.aay = top.daty; top.aap1 = top.ap1; top.aap2 = top.ap2;
  }
 }

function mausa(beute)
 { if(beute==top.aap1 || beute==top.aap2) {}
 else { window.document.images[beute].src = top.untenn[4].src; } }

function katzea(beute)
 { if(beute==top.aap1 || beute==top.aap2) {}
 else { window.document.images[beute].src = top.untenn[3].src; } }

function maus(beute)
 { if(beute==top.aap1 || beute==top.aap2) {}
 else { window.document.images[beute].src = top.untenn[2].src; } }

function katze(beute)
 { if(beute==top.aap1 || beute==top.aap2) {}
 else { window.document.images[beute].src = top.untenn[0].src; } }

