var speed=5;
var crossobj=document.getElementById? document.getElementById("textContent") : document.all.textContent;
if (crossobj) {
	var contentheight=crossobj.offsetHeight;
}

function scrollDown(){
	if (window.moveupvar) {
		clearTimeout(moveupvar);
	}
	if (parseInt(crossobj.style.top)>=(contentheight*(-1)+100)) {
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
	}
	movedownvar=setTimeout("scrollDown()",30);
}

function scrollUp(){
	if (window.movedownvar) {
		clearTimeout(movedownvar);
	}
	if (parseInt(crossobj.style.top)<=0) {
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px";
	}
	moveupvar=setTimeout("scrollUp()",30);
}

function scrollStop(){
	if (window.moveupvar){
		clearTimeout(moveupvar);
	}
	if (window.movedownvar) {
		clearTimeout(movedownvar);
	}
}

function getcontent_height(){
	if (crossobj) {
		contentheight=crossobj.offsetHeight;
	}
}