// Reload NS4 fix 

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Layer Script

function menu_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=menu_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function menue_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}

function menu_show() { //v3.0A Modified by Al Sparber and Massimo Foti for NN6 Compatibility
  var i,p,v,obj,args=menu_show.arguments;if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){ obj=menue_findObj(args[i]);v=args[i+2];
   v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;}} else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=menu_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }}
}

// Mouseover Script

var base= "images/menu_"
var nrm = new Array();
var omo = new Array();
var stuff = new Array('home','agenda','intern','member','bobrun','contact','shop','bobsport','galerie','links');
var loaded = (!(navigator.userAgent.indexOf('Netscape6')+1));
var ocl = new Array();
var select = -1;
var name2 = "";
var temp = 0;

if (document.images)
{
        for (i=0;i<stuff.length;i++)
        {
                nrm[i] = new Image;
                nrm[i].src = base + stuff[i] + ".gif"
                omo[i] = new Image;
                omo[i].src = base + stuff[i] + "2.gif";
				ocl[i] = new Image;
				ocl[i].src = base + stuff[i] + "2.gif";

        }
}

function over(no)
{
        if (document.images && select != no && loaded)
        {
                document.images[stuff[no]].src = omo[no].src
        }
}

function out(no)
{
        if (document.images && select != no && loaded)
        {
                document.images[stuff[no]].src = nrm[no].src
        }
}



function bobbahn(a) {
	for (x=1; x<=16 ;x++) {
	menu_show('legende'+x,'','hide')
	}
	menu_show('legende'+a,'','show')
	
	for (x=1; x<=16; x++) {
	menu_show('sektor'+x,'','hide')
	}
	menu_show('sektor'+a,'','show')
}