var mouseDown = 0;
var posx = 0;
var posy = 0;
var posyold = 0;

//var aktiv = setInterval("getpos()", 5000);


//function setpos() {
//  document.getElementById("banner").style.marginTop = document.documentElement.scrollTop + "px";
//}

function getpos () {
  var tmp = document.getElementById("banner").style.marginTop;
  tmp = tmp.replace(/px/gi, "");
  var ist = parseInt(tmp);
  var soll = document.documentElement.scrollTop;
  //var soll = document.body.scrollTop; // abhängig von doc declaration siehe http://de.selfhtml.org/navigation/suche/index.htm?Suchanfrage=scrollTop
  //var soll = 500;
  //alert(ist + " " + soll);
  var diffvar = Math.abs(soll - ist);
  if (diffvar > 400) {
  movesub(ist,soll);
   }
 // move(ist,soll);
}

function movesub(a,b) {
   if (a > b) {a = a -40;};
   if (a < b) {a = a +40;};
   window.document.getElementById("banner").style.marginTop = a - 30 + "px";
   var diffvar = Math.abs(a - b);
   //alert("a");
   if (diffvar > 50) {
   window.setTimeout("movesub("+a+","+b+")", 1);
   }
}
