window.addEvent('domready', function(){ 
	var stepTime 			= 3000;
  var increment			= 33;
  var totIncrement	= 0 - increment;
			
	var myList = $('scroll_news');
	var arrList = $$('scroll_news');
		
	var fx = new Fx.Tween(myList, {
		duration: 1000,
		transition: Fx.Transitions.Back.easeInOut,
		wait: true
	});
	
	$('scroll_news').getElements('li').addEvent(
		'mouseenter',function(e) {
			//fx.pause();
			$clear(timeScroller);
		}
	);

	$('scroll_news').getElements('li').addEvent(
		'mouseleave',function(e) {
			timeScroller = doScroll.periodical(stepTime);
		}
	);
	
	function doMany() 
	{
		this.pause()
		myList.getFirst().inject(myList);
  	this.set('margin-top', 0);
	}


	function doScroll()
	{
		totIncrement = 0 - increment;
		fx.start('margin-top', totIncrement).addEvent('onComplete', doMany );
	}
	
	
	timeScroller = doScroll.periodical(stepTime);

});

