// animatie om de damwand van rechts naar links te bewegen

var oudeBrowser = 0;
var dx = -5;
var dy = 0;
var steps = 201;
var delay = 1;
var isNetscape = navigator.appName=="Netscape";

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

function initPositions() {
if (!isNetscape) {
  strTop = document.all.afb.style.top;
  strTop = strTop.substring(0, strTop.length - 2);  
  strLeft = document.all.afb.style.left;
  strLeft = strLeft.substring(0, strLeft.length - 2); 

  document.all.afb.style.top = (parseInt(strTop) - (steps * dy)) + "px"; 
  document.all.afb.style.left = (parseInt(strLeft) - (steps * dx)) + "px";
  document.all.afb.style.visibility = "visible";
  } else {
  document.layers[0].moveBy(-steps * dx, -steps * dy);
  document.layers[0].visibility = "visible";
  }

}

function fixPositions() {

if (!isNetscape) {
  strTop = document.all.afb.style.top;
  strTop = strTop.substring(0, strTop.length - 2);
  strLeft = document.all.afb.style.left;
  strLeft = strLeft.substring(0, strLeft.length - 2);

  document.all.afb.style.top = (parseInt(strTop) + dy)  + "px";  
  document.all.afb.style.left = (parseInt(strLeft) + dx)  + "px";
  } else {
  document.layers[0].moveBy(dx, dy);
  }

  if (steps > 1) {
    steps--;
    setTimeout("fixPositions()", delay*35);
    }
}

function runAnimation() {
    initPositions(); 
    fixPositions();
}

function runDelayAnimation() {
  setTimeout("runAnimation()", 1000);
}
