var i, n, s, p;
 document.write('<link rel="stylesheet" type="text/css" href="../code/style_jsnavi.css">');

function start(i) {
 og = eval(document.getElementById("logo"));
 au = eval(document.getElementById("lampeaus"));
 an = eval(document.getElementById("lampean"));
 p = 525-(i*105);
 au.style.right = p + "px";
 au.style.visibility = "visible";
 an.style.visibility = "hidden";
}

function over(i) {
 au.style.visibility = "visible";
 an.style.visibility = "hidden";
 n = 525-(i*105);
 s = ((n-p)/105)*5;
 if (n > p) { steigt(); }
 if (n < p) { faellt(); }
 if (p == n) {
   an.style.right = p + "px";
   an.style.visibility = "visible";
   au.style.visibility = "hidden";
 }
}

function steigt() { 
 p = p + s;
 au.style.right = p + "px";
 if (p < n) {
   setTimeout("steigt()", 1);
 } else {
   p = n;
   an.style.right = p + "px";
   an.style.visibility = "visible";
   au.style.visibility = "hidden";
 }
}

function faellt() { 
 p = p + s;
 au.style.right = p + "px";
 if (p > n) {
   setTimeout("faellt();", 1);
 } else {
   p = n;
   an.style.right = p + "px";
   an.style.visibility = "visible";
   au.style.visibility = "hidden";
 }
}

function out(i) {
 p = 525-(i*105);
 au.style.right = p + "px";
 au.style.visibility = "visible";
 an.style.visibility = "hidden";
}


function logoan() {
 og.style.background = "url(../bilder/logo-a.jpg)";
}

function logoaus() {
 og.style.background = "url(../bilder/logo.jpg)";
}

