ie5 = (document.getElementById && document.all) ? true:false;
ie4 = (document.all && !document.getElementById) ? true:false;
ns6 = (document.getElementById && !document.all) ? true:false;
ns4 = (document.layers) ? true:false;
op5 = (document.getElementById && !document.styleSheets) ? true:false;

var timer = null;
var myheight = 210;

function scroll(dir,speed,loop) {
	if (ie5 || ns6) { inhalt = document.getElementById('divScroll').style; num = (myheight - document.getElementById('divScroll').offsetHeight); }
	if (op5) { inhalt = document.getElementById('divScroll').style; num = (myheight - 2500); }
	if (ie4) { inhalt = document.all.divScroll.style; num = (myheight - document.all.divScroll.offsetHeight); }
	if (ns4) { inhalt = document.layers.divListe.document.layers.divScroll; num = (myheight - inhalt.document.height); }

	if(loop == 1) {
		if((dir == 1) && (parseInt(inhalt.top) > num)) inhalt.top = (parseInt(inhalt.top) - speed);
		else if((dir == 2) && (parseInt(inhalt.top) < 0)) inhalt.top = (parseInt(inhalt.top) + speed);
		timer = setTimeout('scroll(' + dir + ',' + speed + ',' + loop  + ')', 2);
	}
	else if((loop == 0) && (dir == 3)) inhalt.top = 0;
}