
//Layers
var glied, bldl1, bld1, bld1b, navi1, navi1b,  text, af, gh, il, mr, sc, tw;
var n1, n2, n3, n4 ,n5, n6, n7, n8, n9, n10;
//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;
       text=document.getElementById("text").style;
       bld1b=document.getElementById("bld1b").style;
      navi1b=document.getElementById("navi1b").style;
         af=document.getElementById("naviABCa").style;
         gh=document.getElementById("naviABCg").style;
         il=document.getElementById("naviABCi").style;
         mr=document.getElementById("naviABCm").style;
         sc=document.getElementById("naviABCs").style;
         tw=document.getElementById("naviABCt").style;
         n1=document.getElementById("n1").style;
         n2=document.getElementById("n2").style;
         n3=document.getElementById("n3").style;
         n4=document.getElementById("n4").style;
         n5=document.getElementById("n5").style;
         n6=document.getElementById("n6").style;
         n7=document.getElementById("n7").style;
         n8=document.getElementById("n8").style;
         n9=document.getElementById("n9").style;
         n10=document.getElementById("n10").style;
                  }
else if (document.layers)
     {
       BV="NS4";
        bld1=window.document.bld1;
       navi1=window.document.navi1;
       text=window.document.text;
      bld1b=window.document.bld1b;
      navi1b=window.document.navi1b;
       af=window.document.naviABCa;
       gh=window.document.naviABCg;
       il=window.document.naviABCi;
       mr=window.document.naviABCm;
       sc=window.document.naviABCs;
       tw=window.document.naviABCt;

       n1=window.document.n1;
       n2=window.document.n2;
       n3=window.document.n3;
       n4=window.document.n4;
       n5=window.document.n5;
       n6=window.document.n6;
       n7=window.document.n7;
       n8=window.document.n8;
       n9=window.document.n9;
       n10=window.document.n10;

      }
else if (document.all.tags)
     {
      BV="IE4";
         bld1=bld1.style;
       navi1=navi1.style;
      text=text.style;
      bld1b=bld1b.style;
     navi1b=navi1b.style;
        af=naviABCa.style;
        gh=naviABCg.style;
        il=naviABCi.style;
        mr=naviABCm.style;
        sc=naviABCs.style;
        tw=naviABCt.style;
        n1=n1.style;
        n2=n2.style;
        n3=n3.style;
        n4=n4.style;
        n5=n5.style;
        n6=n6.style;
        n7=n7.style;
        n8=n8.style;
        n9=n9.style;
        n10=n10.style;
       }
navi1.visibility="visible";
if (tnr =="p1")
   {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);
}

//Bildleiste setzt sich in Vordergund
function checkTimer() {
        if (timerLauft) {
                clearTimeout(timerLauft);
                timerLauft = false;
        }
        keinNZ();
        }

function startTimer()
      {
       timerLauft = setTimeout("b1Show();",time);
      }
//Hintergundnavigation setzt sich in Vordergund nach time
function checkTimerB() {
        if (timerLauftB) {
                clearTimeout(timerLauftB);
                timerLauftB = false;

        }
}

function startTimerB()
      {
       timerLauftB = setTimeout("n1Show();",timeB);
      }



function b1hd()
 {
 n1Show();
   }

function n1hd()
 {
 b1Show();
 }


function n1Show()
 {
  keinABC();
  checkTimerB();
  checkTimer();
  navi1.visibility="visible";
  bld1.visibility="hidden";
  bld1b.visibility="visible";
  parent.ifsKap.gliedShow();
 }

function b1Show()
 {
 keinNZ();
 keinABC();
 checkTimer();
 checkTimerB();
 bld1.visibility="visible";
 navi1.visibility="hidden";
 bld1b.visibility="visible";
 parent.ifsKap.bldl1Show();
 }
function keinABC()
{
af.visibility="hidden";
gh.visibility="hidden";
il.visibility="hidden";
mr.visibility="hidden";
sc.visibility="hidden";
tw.visibility="hidden";
}

function showABC(xyz)
{
if (xyz == null)
{xyz=af;}
checkTimerB();
checkTimer();
keinNZ();
keinABC();
xyz.visibility="visible";
navi1.visibility="hidden";
parent.ifsKap.ugliedShow();
}
function keinNZ()
{
n1.visibility="hidden";
n2.visibility="hidden";
n3.visibility="hidden";
n4.visibility="hidden";
n5.visibility="hidden";
n6.visibility="hidden";
n7.visibility="hidden";
n8.visibility="hidden";
n9.visibility="hidden";
n10.visibility="hidden";
}

function showNav(xyz)
{
checkTimerB();
checkTimer();
//keinABC();
keinNZ();
if (browser_variable!="Opera")
 {
  xyz.left=tempX;
  xyz.top=tempY;
 }
xyz.visibility="visible";
parent.ifsKap.gliedShow();

}
