	$(window).load( function ()
	{
		news_box_player();

	});
	
	function news_box_player()
	{
		var box = $('#news_box');
		if ( !box.attr('id') ) return;
		var scroller = $('#news_scroller');
		var totnews = box.find('.news_row').length-1;
		var left = scroller.css('margin-left').replace('px', '').replace('-','')-0;
		var width = box.width();
		var max = (width*(totnews));
		
		var newleft = left + width;
		
		if ( newleft > max )
		{
			scroller.animate({'marginLeft' : '0px' }, 0, function () { news_box_player(); });
		}else{
			scroller.delay(5000).animate({'marginLeft' : '-'+newleft+'px' }, 600, function () { news_box_player(); });
		}
		
	}

