

var Scroll = function(e, a, o) {
	this.container = o.container;
	this.content = o.content;
	
	var region = YAHOO.util.Dom.getRegion(this.content);
	//console.log('container: '+this.container);
	var width = region.right;
	
	//compute speed
	var speed = width * .03;
	
	//console.log('WIDTH: ' + width );
	function scrollIt() { 
		var attributes = {
			scroll: { to: [width, 0] }
		};
	    this.anim = new YAHOO.util.Scroll(this.container, attributes, speed);
		//console.log('GO');
	   this.anim.animate();
	}
	scrollIt();

}

Scroll.prototype = {
		pause: function(){
			//console.log('PAUSE');
			anim.stop();
		}
}
