//Define a variable (pos) to store the current scroll position. 
var ticker_pos = 960;

function Scroll(){
    //get the id of the scrolling text box. 
    //obj=document.getElementById('ticker_news');
	obj = $('ticker_news')
    if(obj.innerHTML == '')
		return;
    //subtract 1 from pos and check pos value using offsetHeight, which retrieves the height of the object relative to the layout. 
    ticker_pos -=1;
    if(ticker_pos < 0 - obj.offsetWidth)
	{
	  ticker_pos = 960;
	}
    //set a new height value using JavaScript style object.     
    obj.style.left = ticker_pos+"px";
    //finally the function calls itself using a timeout..
    window.setTimeout( "Scroll();" ,  10);
}



