// JavaScript Document
var current=1
var next=2

function newsTicker() {
	x=document.getElementById("message"+current).style
	y=document.getElementById("message"+next).style
	x.top=parseInt(x.top)-5+"px"
	y.top=parseInt(y.top)-5+"px"
	if(parseInt(x.top) > -100) {
		timer=setTimeout("newsTicker()",50)
		} else {
			y.top="0px"
			x.top="100px"
			current=next
			next++
		if(next>3) {
			next=1
		}
		timer=setTimeout("newsTicker()",5000)
	}
}
function pauseTicker() {
	clearTimeout(timer)
}
