var scrolling_text = document.getElementById("scrolling_content");
var content_height = scrolling_text.offsetHeight;

function movedown( speed )
{
	if ( parseInt( content_height ) > 250 )
	{
		if ( window.moveupvar ) clearTimeout( moveupvar );
		if ( parseInt( scrolling_text.style.top ) >= ( content_height*(-1)+210 ) ) scrolling_text.style.top = parseInt( scrolling_text.style.top ) - speed + "px";

		movedownvar=setTimeout( "movedown(" + speed + ")", 20 );
	}
}

function moveup( speed )
{
	if ( parseInt( content_height ) > 250 )
	{
		if ( window.movedownvar ) clearTimeout( movedownvar );
		if ( parseInt( scrolling_text.style.top ) <=0 ) scrolling_text.style.top = parseInt( scrolling_text.style.top ) + speed + "px";

		moveupvar = setTimeout( "moveup(" + speed + ")", 20 );
	}
}

function stopscroll()
{
	if ( window.moveupvar ) clearTimeout( moveupvar );
	if ( window.movedownvar ) clearTimeout( movedownvar );
}

function get_content_height()
{
	content_height = scrolling_text.offsetHeight;
}
