function init() {
  topedge = 0;  // location of news box from top of page
  leftedge = 0;  // location of news box from left edge
  boxheight = 100;  // height of news box
  boxwidth = 176;  // width of news box
  scrollheight = (Anzahl+1)*boxheight; // total height of all data to be scrolled
  timeout = 50;
  pause = 1500;

  if ((navigator.appName =="Netscape")) {bType = "ns"; } else bType= "ie";
  stand = 0;
  stop = false;
}

function aendern(a) {
    // stop = a==0;
	if (a==0) 
	  timeout = 2000;
	else 
	  timeout = 50;
  }

function scrollnews(cliptop) {
  if (document.layers) { 
	newsDiv = document.getElementById("newsticker");
	newsDiv.clip.top = cliptop;
	newsDiv.clip.bottom = cliptop + boxheight;
	newsDiv.clip.left = 0;
	newsDiv.clip.right = boxwidth + leftedge;
	newsDiv.left = leftedge;
	newsDiv.top = topedge - cliptop;
  }
  else { 
	newsDiv = document.getElementById("newsticker").style;
	newsDiv.clip = "rect(" + cliptop + "px " + (boxwidth + leftedge) + "px " + (cliptop + boxheight) + "px 0px)";
    if (bType == "ie") {
	  newsDiv.pixelTop = topedge - cliptop;
	  newsDiv.pixelLeft = leftedge;
	} else {
	  newsDiv.top = topedge - cliptop+"px";
      newsDiv.left = leftedge+"px";
	}
  }
  cliptop = (cliptop + 1) % (scrollheight + boxheight);
  stand = cliptop-1; 
  if (cliptop==scrollheight)  {
   cliptop=-0;
  }
  newsDiv.visibility='visible';
  if(!stop) {
    if (((cliptop-1)%boxheight==0) && !(cliptop==1)) {
	  setTimeout("scrollnews(" + cliptop + ")", pause);
	} else {
	  setTimeout("scrollnews(" + cliptop + ")", timeout);
	}
  }

}
