function WindowWidth () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function WindowHeight () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function Refresh () {
  if (Weite != WindowWidth() || WinHeight != WindowHeight())
    location.href = location.href;
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = Refresh;
  Weite = WindowWidth();
  Hoehe = WindowHeight();
}

function Vars()
{
z=WindowWidth();
w=document.all.Ticker.offsetWidth;
if (document.all.Navi_left_Link) {
	x=document.all.Navi_left_Link.offsetLeft;
	y=document.all.Navi_left_Link.offsetTop;
	} else {
	x=0;
	y=0;
	}
}

function Ticker()
{
document.getElementById("Ticker").style.left=z;
z--;
if(z<-w)z=WindowWidth();
if(z<-w) alert(z);
setTimeout("Ticker()",50);
}

function Navi2()
{
document.getElementById("Navi_center_1").style.left=x+230+"px";
document.getElementById("Navi_center_1").style.top=y-6+"px";
document.getElementById("Navi_center_2").style.left=x+250+"px";
document.getElementById("Navi_center_2").style.top=y-6+"px";
}

function Navi3()
{
document.getElementById("Navi_right_1").style.left=x+480+"px";
document.getElementById("Navi_right_1").style.top=y-6+"px";
document.getElementById("Navi_right_2").style.left=x+500+"px";
document.getElementById("Navi_right_2").style.top=y-6+"px";
}

function ShowLeftArrow()
{
document.getElementById("Navi_left_Arrow").style.backgroundImage="url(pics/green_one_px.gif)";
document.getElementById("Navi_left_Arrow").style.backgroundRepeat="repeat-x";
document.getElementById("Navi_left_Arrow").style.backgroundPosition="center";
}



function ShowCenterArrow()
{
document.getElementById("Navi_center_Arrow").style.backgroundImage="url(pics/green_one_px.gif)";
document.getElementById("Navi_center_Arrow").style.backgroundRepeat="repeat-x";
document.getElementById("Navi_center_Arrow").style.backgroundPosition="center";
}
