

//Layers
var bld1, bld1b, navi1, navi1b, n2, text;
//BrowserVersion=BV
var BV;
//Timer für Aufruf
var timerLauft = false;
var timerLauftB = false;
var time = 1000;
var timeB = 100;

var IE = document.all?true:false;

if (!IE)  document.captureEvents(Event.MOUSEMOVE); document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;

function layerDef2(){
if (document.getElementById)
     {
       //Oprera und Netscape 6, IE5
       BV="OP";
        bld1=document.getElementById("bld1").style;
       navi1=document.getElementById("navi1").style;
          n2=document.getElementById("n2").style;
        text=document.getElementById("text").style;
       bld1b=document.getElementById("bld1b").style;
      navi1b=document.getElementById("navi1b").style;
            }
else if (document.layers)
     {
       BV="NS4";
        bld1=window.document.bld1;
       navi1=window.document.navi1;
      n2=window.document.n2;
       text=window.document.text;
      bld1b=window.document.bld1b;
      navi1b=window.document.navi1b;
      }
else if (document.all.tags)
     {
      BV="IE4";
         bld1=bld1.style;
         navi1=navi1.style;
      n2=n2.style;
       text=text.style;
      bld1b=bld1b.style;
     navi1b=navi1b.style;
       }
navi1.visibility="visible";
if ((tnr =="r1"))
{time=5000;}
startTimer();
     }
function getMouseXY(e)
     {
      if (IE)
          { // grab the x-y pos.s if browser is IE
   tempX = event.clientX + document.body.scrollLeft;
   tempY = event.clientY +  document.body.scrollTop;
          }
     else
        { // grab the x-y pos.s if browser is NS
       tempX = e.pageX;
       tempY = e.pageY; }

    if (tempX < 0)
       {tempX = 0;}
    if (tempY < 0)
       {tempY = 0;}
           return true;
    }

function layerDef(){
frameTK();
layerDef2();
//getMouseXY(e);
}

function checkTimer() {
        if (timerLauft) {
                clearTimeout(timerLauft);
                timerLauft = false;
        }
}

function startTimer()
      {
       timerLauft = setTimeout("b1Show();",time);
      }

//Hintergundnavigation setz sich in Vordergund nach time
function checkTimerB() {
        if (timerLauftB) {
                clearTimeout(timerLauftB);
                timerLauftB = false;
        }
}

function startTimerB()
      {
       timerLauftB = setTimeout("n1Show();",timeB);
      }

function b1hd()
 {
 n1Show();
 parent.ifsKap.bldl1Show();
   }

function n1hd()
 {
 b1Show();
 parent.ifsKap.gliedShow();
 }

function n1Show()
 {
  timerLauft = false;
 navi1.visibility="visible";
 n2.visibility="hidden";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 parent.ifsKap.bldl1Show();
 }
function n2Show(xyz)
 {
 checkTimerB();
 checkTimer();
if (browser_variable!="Opera")
 {
  xyz.left=tempX;
  xyz.top=tempY;
 }
 navi1b.visibility="hidden";
 navi1.visibility="visible";
 xyz.visibility="visible";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.gliedShow();
 }
function b1Show()
 {
 timerLauft = false;
 bld1.visibility="visible";
 navi1.visibility="hidden";
 navi1b.visibility="visible";
 n2.visibility="hidden";
 bld1b.visibility="visible";
 parent.ifsKap.gliedShow();
 }

function keinNZ()
{
n2.visibility="hidden";
}
