var promoScroller;
var scrollingTextWidth;
var scrollPosition = 575;
var scrollerInner;

function addScrollingPromo(activate, text){
    	if (!parseInt(activate)) return;
    	jqScrollerInner = $('#scroller_inner');
    	jqScrollerInner.empty().append(unescape(text));
    	scrollerInner = jqScrollerInner.get(0);
    	scrollingTextWidth = text.length * 5; // because each CHAR is about 5px wide
    	
    	if (promoScroller)
    	{
    		clearInterval(promoScroller);
    		scrollPosition = 575;
    	}
    	
    	
    	setInterval(function(){
    		scrollPosition = scrollPosition - 2;
    		scrollerInner.style.marginLeft = scrollPosition + "px";
    		if (scrollPosition < -scrollingTextWidth)
    		{
    			scrollPosition = 575;
    		}
    	}, 100);
} // addScrollingPromo