var anzKlick = 0;
var hoehe = 0;
var visBereich = 546;
var maxScrollUp = 0;
var weg = 0;
var del;	
var pos = 0;



function moveUp(thisID) {
	//alert('he');
	
	getHoehe();

	pos = parseInt(document.getElementById(thisID).style.top);

	weg -= 10;
	if(pos <= 0 && pos >= maxScrollUp*(-1))
	{
		document.getElementById(thisID).style.top =  weg+"px";
		del = setTimeout("moveUp('"+thisID+"')",50);
	}
}

function moveDown(thisID) {
	
	getHoehe();

	
	pos = parseInt(document.getElementById(thisID).style.top);

	weg += 10;
	if(pos < 0)
	{
		document.getElementById(thisID).style.top =  weg+"px";
		del = setTimeout("moveDown('"+thisID+"')",50);
			
	}
}

function deltimeout() {
	//alert('deltimeout');
	clearTimeout(del);
}

function getHoehe() {
	
	hoehe = parseInt(document.getElementById('slideshowTweenContent').offsetHeight);
	maxScrollUp = hoehe - visBereich;	
}

function goTop(thisID) {
	document.getElementById(thisID).style.top =  0+"px";
}
