var texttop1 = 294; 		// Startposition der News von Oben
var scrollerHeight1 = 0;	// Nix machen!
var clipTop1 = 0;		// The initial value of clip 1: rect(top)
var clipHeight = 159;		// Höhe der News
var amount = 2;			// Scrollgeschwindigkeit


function move(which, direction)
{
	if (direction == 'up') {
		clipAmount = -amount;
	} else if (direction == 'down') {
		clipAmount = amount;
	}
	if(document.all) {
		stylePath = document.all[which].style;
	} else if(document.layers){
		stylePath = document.layers[which];
	} else {
		stylePath = document.getElementById(which).style;
	}
	if(which == "news1") {
		clipTop1 += clipAmount;
		clipTop = clipTop1;
		clipBottom = clipTop + clipHeight;
		texttop1 -= clipAmount;
		texttop = texttop1;
	}

	if(document.all || document.getElementById) {
		var clipstring = 'rect('+clipTop+',310,'+clipBottom+',0)';
		stylePath.clip = clipstring;
	} else if(document.layers) {
		with(stylePath.clip) {
			top = clipTop;
			bottom = clipBottom;
		}
	}
	stylePath.top = texttop;
}

function goUp() {
		if (clipTop1 >= amount) {
			move("news1",'up');
		}
	timerID=setTimeout('goUp()', 10);
}

function goDown() {
		if (clipTop1 + clipHeight <= scrollerHeight1) {
			move("news1",'down');
	}
	timerID=setTimeout('goDown()', 10);
}

function LoadHomePage() {
	if(document.all) {
		arrowPath1 = document.all["buttons"].style;
		scrollerHeight1 = document.all["news1"].scrollHeight;
	} else if(document.layers) {
		arrowPath1 = document.layers["buttons"];
		scrollerHeight1 = document.layers["news1"].document.height;
	} else {
		arrowPath1 = document.getElementById("buttons").style;
		scrollerHeight1 = document.getElementById("news1").offsetHeight;
	}
	if(scrollerHeight1 <= clipHeight)
		arrowPath1.visibility = "hidden";

}