// JScript source code
<!--
var rf, step;

speed = 10;
step = 0;
stepsElastic = 32;

function DicStarter()
{
	dicriserID=setInterval("RollUp();",50);
}
function DicStoper()
{
	clearInterval(dicriserID)
	step=0;
}
function IncStarter()
{
	incriserID=setInterval("RollDown();",50);
}
function IncStoper()
{
	clearInterval(incriserID)
	step=0;
}
function RollUp() 
{
    step++;
    v = step/stepsElastic;
    rf = speed*(1 - Math.exp(-v));
    oDiv.scrollTop+=parseInt(rf);
}
function RollDown() 
{
    step++;
    v = step/stepsElastic;
    rf = speed*(1 - Math.exp(-v));
    oDiv.scrollTop-=parseInt(rf)
}
//-->
