var slideTimeBetweenSteps = 20;


var iTimer_ID;

function slideContent( containerId, sDirection )
{
	var obj = document.getElementById( containerId );

	if ( sDirection == 'up' )
	{
		obj.scrollTop += 2; //obj.clientHeight;
	}
	else
	{
		obj.scrollTop -= 2;
	}

	//document.getElementById( 'message1' ).innerHTML = obj.scrollHeight;

}

function stopSliding( containerId )
{
	clearInterval( iTimer_ID );
}

function startSliding( containerId, sDirection )
{
	iTimer_ID =
		setInterval( "slideContent( '" + containerId + "', '" + sDirection + "' );", slideTimeBetweenSteps );
}
