var ourInterval;

function scrollStart(direction, divID, elementID){
// REPEATED CALL EITHER scrollUp OR scrollDown
ourInterval = setInterval("scroll"+direction+"('"+divID+"')", 100);
}
function scrollEnd(which){
// STOP CALLING THE SCROLL FUNCTION
clearInterval(ourInterval);
}
function scrollUp(which){
// SET THE SCROLL TOP
document.getElementById(which).scrollTop = document.getElementById(which).scrollTop - 25;
}
function scrollDown(which){
// SET THE SCROLL TOP
document.getElementById(which).scrollTop = document.getElementById(which).scrollTop + 25;
}

function startShow(no){
	if(no<7){
		setTimeout("document.getElementById('button"+no+"').onclick();",0);
		no = no+1;
		setTimeout("startShow("+no+");",5000);
	} else {
		setTimeout("document.getElementById('button1').onclick();",0);
	}
}
