/*
(C) 1996 - 2000 by Hado Hein
You may not use or publish this code in any way without written
permission by the author.
Dieser Quelltext unterliegt dem Copyright von Hado Hein (1996-2000).
Jede Verwendung in eigenen Programmen oder Veröffentlichung bedarf der
schriftlichen Zustimmung des Autors.
FOR YOU THIS MEANS : IF YOU WANT TO USE THIS IDEAS OR CODE THEN YOU DO NEED TO
LICENSE WITH ME ! I do need the money and if you blame this I hereby put a spell on you.
*/WhatsUp = new Array("BASE","GALA","THEA","TVIS","MODE","KONZ","BEAT");
function FindArrPos(was)
{
var terug = 1; /* is holländisch und heisst zurück */
var zaehl = WhatsUp.length;
var beginn = 0;
while(terug != 0)
{
if(was == WhatsUp[ beginn ])
{ terug = 0 ;
}
else /* das war nicht der hit */
{ terug = 1;
beginn++;
}
}
return beginn; /*das ist die richtige position*/
}
function Go(wohin)
{
HierIst = window.location.href;
var FileNameStart = HierIst.lastIndexOf("/");
var FileNameEnd = HierIst.indexOf(".", FileNameStart);
var IchBin = HierIst.substring(FileNameEnd-4, FileNameEnd);
var NextStep = 0;
if(wohin >= 10) /* aah, eine direkte adressierung */
{ NextStep = wohin-10;
}
else /* war son bloeder button */
{
if(wohin == 0) /* go west, ach links */
{ NextStep = FindArrPos(IchBin);
if(NextStep == 0)
{ NextStep = WhatsUp.length-1;
}
else
{ NextStep--;
}
}
else /* wohin != 0 -- go east, ach rechts */
{ NextStep = FindArrPos(IchBin);
if(NextStep == WhatsUp.length-1)
{ NextStep = 0;
}
else
{ NextStep++;
}
}
}
/*alert("Ich bin :"+IchBin+"*** und ich gehe zu Nr."+NextStep+"*** Das ist :"+WhatsUp[NextStep]);*/
parent.src.location.href="R_"+WhatsUp[NextStep]+".htm";
parent.nav.location.href="PV_"+WhatsUp[NextStep]+".htm";
}