function _scroller(DIV_TO_SCROLL){
	var th=this
	window._scroller=this
	this.paused=false
	this.speed=1
	
	window.addEvent('domready', function(){th.init()})
	
	this.iterate=function(){
		if(!this.paused){
			this.div.scrollLeft+=this.speed
			if(this.div.scrollLeft>=this.div.scrollWidth / 2){				
				this.div.scrollLeft=0
			}
		}
		window.setTimeout('_scroller.iterate()', 40)
	}
	this.init=function(){

		this.div=document.getElementById(DIV_TO_SCROLL)

		$(this.div).addEvent('mouseover',function(){th.paused=true})
		$(this.div).addEvent('mouseout',function(){th.paused=false})
		
		var SCROLLER_HTML=this.div.innerHTML
		this.div.innerHTML = "<DIV style='white-space:nowrap;' ID='SCROLLER_BODY'></DIV>"
		document.getElementById("SCROLLER_BODY").innerHTML = SCROLLER_HTML
		if(this.div.scrollWidth<=document.getElementById(DIV_TO_SCROLL).offsetWidth){
			this.div.innerHTML = SCROLLER_HTML
			this.div.style.visibility="visible"
			return
		}
		document.getElementById("SCROLLER_BODY").innerHTML = SCROLLER_HTML+SCROLLER_HTML
		this.div.style.visibility="visible"
		this.iterate()
	}
}
