<!--

function changePage(mainpage,topmap,topphoto,act) {
eval("parent.mainframe.location='"+mainpage+"'");
eval("parent.topframe.map.src='"+topmap+"'");
eval("parent.topframe.photo.src='"+topphoto+"'");
for(i=0;i<obj.length;i++) {
obj[i].style.color = "rgb(20, 55, 105)";
obj[act].style.color = "rgb(255, 0, 0)";
   }
}

function changePageTitle(mainpage,topmap,topphoto,n,move,act) {
eval("parent.mainframe.location='"+mainpage+"'");
if (document.layers) {
eval("parent.topframe.layers[map].src='"+topmap+"'");
}

else if (document.all) {
eval("parent.topframe.map.src='"+topmap+"'");
}
eval("parent.topframe.photo.src='"+topphoto+"'");
for(i=0;i<obj.length;i++) {
obj[i].style.color = "rgb(20, 55, 105)";
obj[act].style.color = "rgb(255, 0, 0)";
   }
toggle(n,move); return false
}

function changeHome(mainpage,topmap,topphoto) {
eval("parent.mainframe.location='"+mainpage+"'");
eval("parent.topframe.map.src='"+topmap+"'");
eval("parent.topframe.photo.src='"+topphoto+"'");
if (lastn < 7) { //Im Startzustand oder beim 2. mal klicken keine Aenderung
menu = ('submenu' + lastn); //ab hier schliessen des Submenues
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
submenu.visibility = hidden;  //blendet submenu aus
for (var i = (lastn+1); i <= nom; i++) {   //bewegt hauptmenu nach oben
if (document.layers) {
document.layers[ttls[i]].top -= lastmove;
document.layers[subs[i]].top -= lastmove;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= lastmove;
document.all(subs[i]).style.pixelTop -= lastmove;
         }
      }
lastn=7; //nach einem Klick zurueck zum Startzustand, damit zweiter Klick nofx
   }
}

// Anfang Menusteuerung
var nom = 6; // Zahl der Hauptmenupunkte
var ttls = new Array(); // array fuer hauptmenupunkte
var subs = new Array(); // array fur submenus
var lastn;
var lastmove;

if (document.layers) {
visible = 'show';
hidden = 'hide';
}
else
if (document.all) {
visible = 'visible';
hidden = 'hidden';
}
for (var i = 1; i <= nom; i++) {
ttls[i] = ('title' + i);
subs[i] = ('submenu' +i);
}

lastn = (nom + 1);
lastmove = 0;

function lasttoggle(n,move) { //schliesst vorher geoeffnetes submenu
if (n <= nom) {
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}
if (submenu.visibility == visible) {
submenu.visibility = hidden;
for (var i = (n+1); i <= nom; i++) {
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
            }
         }
      }
   }
}

function toggle(n,move) {  //oeffnet submenues, bewegt hauptmenu
menu = ('submenu' + n);
if (document.layers) {
submenu = document.layers[menu];
}
else if (document.all) {
submenu = document.all(menu).style;
}

if (n != lastn) { // menu nur dann aendern, wenn anderes hauptmenu gewaehlt wird
if (submenu.visibility == visible) {
submenu.visibility = hidden;  //blendet submenu aus
for (var i = (n+1); i <= nom; i++) {   //bewegt hauptmenu nach oben
if (document.layers) {
document.layers[ttls[i]].top -= move;
document.layers[subs[i]].top -= move;
}
else if (document.all) {
document.all(ttls[i]).style.pixelTop -= move;
document.all(subs[i]).style.pixelTop -= move;
      }
   }
}
else {
submenu.visibility = visible; //blendet submenu ein
lasttoggle(lastn,lastmove);   //ruft lasttoggle zum schliessen des geoeffneten submenues auf
for (var i = (n+1); i <= nom; i++) {   //bewegt hauptmenu nach unten
if (document.layers) {
document.layers[ttls[i]].top += move;
document.layers[subs[i]].top += move;
}
if (document.all) {
document.all(ttls[i]).style.pixelTop += move;
document.all(subs[i]).style.pixelTop += move;
         }
      }
   }
}
lastn = n;  //stellt lastn auf derzeit geoeffnetes submenu
lastmove = move;
for(i=0;i<5000;i++) {
//Verzögerung für Opera
   }
}
//  Ende Menusteuerung


function Init() {
if(document.getElementById){
obj = document.getElementsByTagName("a");
    }
}

onload=Init;

// -->
