

//Layers
var bld1, bld1b, bld2, bld2b, navi0, navi0b, navi2, navi2b, text;
//BrowserVersion=BV
//BrowserVersion=BV
var BV;
//Timer für Aufruf
var timerLauft = false;
var timerLauftB = false;
var timerLauft2 = 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;
        bld2=document.getElementById("bld2").style;
       navi0=document.getElementById("navi0").style;
       navi2=document.getElementById("navi2").style;
        text=document.getElementById("text").style;
       bld1b=document.getElementById("bld1b").style;
       bld2b=document.getElementById("bld2b").style;
      navi0b=document.getElementById("navi0b").style;
      navi2b=document.getElementById("navi2b").style;

           }
else if (document.layers)
     {
       BV="NS4";
        bld1=window.document.bld1;
       bld2=window.document.bld2;
      navi0=window.document.navi0;
      navi2=window.document.navi2;
       text=window.document.text;
      bld1b=window.document.bld1b;
      bld2b=window.document.bld2b;
     navi0b=window.document.navi0b;
     navi2b=window.document.navi2b;

                  }
else if (document.all.tags)
     {
      BV="IE4";
         bld1=bld1.style;
       bld2=bld2.style;
      navi0=navi0.style;
      navi2=navi2.style;
       text=text.style;
      bld1b=bld1b.style;
      bld2b=bld2b.style;
     navi0b=navi0b.style;
     navi2b=navi2b.style;
     }
navi0.visibility="visible";
navi0b.visibility="hidden";
navi2.visibility="visible";
navi2b.visibility="hidden";
bld1.visibility="hidden";
bld1b.visibility="visible";
parent.ifsKap.ugliedShow();

if ((tnr =="t8"))
{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("n0Show();",timeB);
      }
//Hintergundnavigation setz sich in Vordergund nach time
function checkTimer2() {
        if (timerLauft2) {
                clearTimeout(timerLauft2);
                timerLauft2 = false;
        }
}

function startTimer2()
      {
       timerLauft2 = setTimeout("n2Show();",timeB);
      }


function b1hd()
 {
 b2Show();
 parent.ifsKap.gliedShow();
   }
function b2hd()
 {
 b1Show();
   }


function n2hd()
 {
 b1Show();
 }

function n0Show()
 {
  timerLauft = false;
 navi0.visibility="visible";
 navi0b.visibility="hidden";
 navi2b.visibility="visible";
 navi2.visibility="hidden";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 bld2b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.gliedShow();
 }
function n2Show()
 {
  timerLauft = false;
 navi0.visibility="visible";
 navi0b.visibility="hidden";
 navi2.visibility="visible";
 navi2b.visibility="hidden";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 bld2b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.ugliedShow();
 }
function n02Show()
 {
 checkTimerB();
 checkTimer();
if (browser_variable!="Opera")
 {
  navi2.top=tempY+10;
  navi2b.top=tempY+10;
 }
 navi0b.visibility="hidden";
 navi0.visibility="visible";
 navi2b.visibility="hidden";
 navi2.visibility="visible";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 bld2b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.ugliedShow();
 }
function b1Show()
 {
 timerLauft = false;
 bld1.visibility="visible";
 navi0.visibility="hidden";
 navi0b.visibility="visible";
 navi2.visibility="hidden";
 navi2b.visibility="visible";
 bld1b.visibility="visible";
 bld2b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.bldl1Show();
 }
function b2Show()
 {
 timerLauft = false;
 navi0.visibility="hidden";
 navi0b.visibility="visible";
 navi2.visibility="hidden";
 navi2b.visibility="visible";
 bld1.visibility="hidden";
 bld1b.visibility="visible";
 bld2.visibility="visible";
 bld2b.visibility="hidden";
 parent.ifsKap.bldl2Show();
 }
function n2Hide()
 {
 timerLauft = false;
 navi0b.visibility="hidden";
 navi0.visibility="visible";
 navi2.visibility="hidden";
 navi2b.visibility="visible";
 bld1b.visibility="hidden";
 bld1.visibility="visible";
 bld2b.visibility="visible";
 bld2.visibility="hidden";
 parent.ifsKap.gliedShow();
 }
