var goList1Image;


var giScrollDelay = 25;
var giScrollStepSize = 3;

var gbStopScrollUp = false;
var gbStopScrollDown = false;



function initScroll() {
	goList1Image = document.getElementById('listOne_img');
}

function scrollUp() {
	//  kann nach oben gescrollt werden ?
	
	
	if (gbStopScrollUp == true) {
		return;
	}
	
	var ltTopValue = goList1Image.style.top;	
	var liTopValue = parseInt(ltTopValue.substring(0,ltTopValue.length - 2));
		
	if (liTopValue <= COUNTRY_LIST_MIN_TOP) {
		return;
	}
	
	// alles um eins nach oben verschieben
	move(goList1Image,-giScrollStepSize);
		
	setTimeout('scrollUp()', giScrollDelay);
}

function scrollUpStop() {
	gbStopScrollUp = true;
}


function scrollDown() {

	//  kann nach unten gescrollt werden ?
	if (gbStopScrollDown == true) {
		return;
	}
		
	var ltTopValue = goList1Image.style.top;
	var liTopValue = parseInt(ltTopValue.substring(0,ltTopValue.length - 2));
	
	if (liTopValue >= 0) {
		return;
	}
	
	// alles um eins nach unten verschieben
	move(goList1Image,giScrollStepSize);

	setTimeout('scrollDown()', giScrollDelay);
}


function scrollDownStop() {
	gbStopScrollDown = true;
}



function move(poNode, piY) {

	var ltTopValue = poNode.style.top;
	var liTopValue = parseInt(ltTopValue.substring(0,ltTopValue.length - 2));
		
	poNode.style.top = (liTopValue + piY) + "px";
}

