function Lageplan()
{
 window.open('gross.htm','planinfo','width=960,height=640,scrollbars=no');
}

function Navi(Name)
{
 if (Name!='')
  Name='-'+Name;
 window.document.images[1].src='bilder/navi'+Name+'.gif';
}

function Verschieben() 
{
 location.reload();
 return false;
}

if(document.layers)window.captureEvents(Event.RESIZE);
 window.onresize=Verschieben;

var ie=((document.all)&&(window.offscreenBuffering))?true:false;
var isNS=((document.captureEvents)&&(!document.getElementById))?true:false;
var mz=((document.getElementById)&&(!document.all)&&(document.documentElement))?true:false;
var op=((document.getElementById)&&(navigator.userAgent.indexOf('Opera')!=-1))?true:false;

x=0;
y=0;
weiter=0;

function Testen() 
{
 br=0;
 if (ie)
 {
  br=2;
  schicht='document.all["';stil='"].style';
 }
 if (isNS)
 {
  schicht='document.layers.scrollWindowDiv.document.layers["';stil='"]';
 }
 if (mz)
 {
  schicht='document.getElementById("';stil='").style';
 }
 if (op)
 {
  schicht='document.getElementById("';stil='").style';
 }
}

function Starten()
{
 VerschiebenVertical(-394-y);
 VerschiebenHorizontal(-360-x);
}

function VerschiebenVertical(wert)
{
 test=y;
 y+=wert;
 if (y<-788||y>0)
  y=test;
 eval(schicht+'LageplanInhalt'+stil+'.top="'+y+'"');
 a=wert;
 if ((weiter)&&(y<0))
  setTimeout("VerschiebenVertical(a)",1);
}

function VerschiebenHorizontal(wert) 
{
 test=x;
 x+=wert;
 if (x<-720||x>0)
  x=test;
 eval(schicht+'LageplanInhalt'+stil+'.left="'+x+'"');
 a=wert;
 if ((weiter)&&(x<0))
  setTimeout("VerschiebenHorizontal(a)",1);
}

function Legende(Nr)
{
 window.document.images[0].src='bilder/legende'+Nr+'.gif';
}
