function CNSScroller(RootID, Interval)
{
	this.ID = RootID; 
	this.Container = $(RootID);
	this.Container.Scroller = this;
	this.Interval = Interval;

	setTimeout('$(\'' + this.ID + '\').Scroller.scroll()', this.Interval);
};


CNSScroller.prototype.scroll = function() 
{
	var c = this.Container.firstChild;
	var first = null;
	while (c)
	{
		if (c.tagName == 'LI')
		{
			first = c;
			break;
		}
		c = c.nextSibling;
	}
	
	var nodeSize = 78;
	var px = 0;
	
	nodeSize = first.clientWidth;
	
	if (first.style.marginLeft != '')
	{
		px = parseInt(first.style.marginLeft);
	}
	
	first.style.marginLeft = ( px - 1 ) + 'px';
	
	if (parseInt(first.style.marginLeft) <= -(nodeSize))
	{
		first.style.marginLeft = '0';
		
		this.Container.removeChild(first);
		this.Container.appendChild(first);
	}
	
	setTimeout('$(\'' + this.ID + '\').Scroller.scroll()', this.Interval);	
};

CNSScroller.prototype.Dispose = function() 
{
	this.Container.Scroller = null;
	this.Container = null;
	this.ID = null; 
	this.Interval = null; 
};