// JavaScript Document

var defaultStep=2;

var step=defaultStep;

var timerUp,timerDown;



scrollDivDown = function (id)

{

	stopMe();

	document.getElementById(id).scrollTop+=step;

	timerDown=setTimeout("scrollDivDown('"+id+"')",10);

}



scrollDivUp = function (id)

{

	stopMe();

	document.getElementById(id).scrollTop-=step;

	timerUp=setTimeout("scrollDivUp('"+id+"')",10);

}



toTop = function (id){

	document.getElementById(id).scrollTop=0;

}





toBottom = function (id)

{

	document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight;

}



toPoint = function (id)

{

	document.getElementById(id).scrollTop=100;

}





stopMe = function()

{

	clearTimeout(timerDown);

	clearTimeout(timerUp);

} 
