cSpeed = origSpeed = 1
tPos = 0
waiter = null
parent.scroll = true

function SCout(){
	waiter = clearTimeout(waiter)
	cSpeed=origSpeed
}

function speed(){
	if (cSpeed<30)cSpeed += 5
}

function scroller(direction,layername){
if (parent.scroll){
	if (NS4){
		cLayer = document.layers['scrolltxt']
		cLayer.h = cLayer.clip.height
		if (direction=="down") {
			cLayer.clip.top += cSpeed
			cLayer.clip.bottom += cSpeed
			cLayer.top -= cSpeed
		} else if (direction=="up" && cLayer.clip.top>0) {
			cLayer.clip.top -= cSpeed
			cLayer.clip.bottom -= cSpeed
			cLayer.top += cSpeed
		}
	} else {
		if (direction=="down") tPos += cSpeed
		else if (direction=="up" && tPos>0) tPos -= cSpeed
		scrolltxt.scroll(0,tPos)
	}
	waiter = setTimeout("scroller('"+direction+"')",1)
	}
}
