function Scroller( id, viewWidth, scrollWidth )
{
	var o = new getObj( id );
	var offset = viewWidth;

	this.animate = function ()
	{
		offset -= 2;
		o.style.left = offset + 'px';
		if (offset <= -scrollWidth) 
		{
			offset = viewWidth;
		}
	}
}

// -- the global scroller array

var scrollers = Array();

function addScroller(obj)
{
	scrollers[scrollers.length] = obj;
}

function animateScrollers()
{
	for( i=0; i<scrollers.length; i++)
	{
		scrollers[i].animate();
	}
}

window.setInterval('animateScrollers()',50);
