var tmr1;
var tmr2;
var speed = 1;

function init() {
	DynLayerInit()

	// find offsetHeight
	windowHeight = scrollWindow.h
	contentHeight = (is.ns)? scrollContent.doc.height : scrollContent.event.scrollHeight
	offsetHeight = contentHeight - windowHeight
}

function up() {
	if (scrollContent.y < 0) scrollContent.moveBy(0,1)
clearTimeout(tmr2);
tmr1 = setTimeout("up()", speed);

}

function down() {
	if (scrollContent.y > -offsetHeight) scrollContent.moveBy(0,-1)
clearTimeout(tmr1);
tmr2 = setTimeout("down()", speed);

}


function stop() {
clearTimeout(tmr1);
clearTimeout(tmr2);
}


