var contador
function init() {
	DynLayerInit()
	windowHeight = SW.h
	contentHeight = (is.ns)? SC.doc.height : SC.event.scrollHeight
	offsetHeight = contentHeight - windowHeight
	abaixo()
}

function rola_acima () {
	if (SC.y < 0) SC.moveBy(0,2)
}

function acima() {
	clearInterval(contador)
	contador=setInterval("rola_acima()",15)
}

function subir() {
	clearInterval(contador)
	contador=setInterval("subindo()",15)
}

function subindo () {
	if (SC.y < 5) SC.moveBy(0,-2)
}

function rola_abaixo() {
	if (SC.y > -offsetHeight){
	SC.moveBy(0,-2)
	if (SC.y <= -offsetHeight){
		SC.y = 0}
		}
}

function abaixo() {
	contador=setInterval("rola_abaixo()",60)
}

function segue() {
        clearInterval(contador)
        init()
}

function pausado() {
	clearInterval(contador)
}