jQuery(function( $ ){
	/* SERGIO'S ATTEMPT */
	var first = 0;
	var speed = 600;
	var pause = 3000;
	//setInterval(removeFirst(), 2000);
	
	function removeFirst(){
		first = $('div#newsticker div:first').html();
		$('div#newsticker').animate({top:'-111px'},600,function(){
			$('div#newsticker div:first').remove();
			document.getElementById('newsticker').style.top='0px';
			addLast(first);
		});
		
	}
	
	function addLast(first){
		last = '<div>'+first+'</div>';
		$('div#newsticker').append(last);
	}
	interval = setInterval(removeFirst, 10000);
	
	$('div#newsticker_container').mouseenter(function(){
		$('div#newsticker').stop();
	});
	
	$('div#newsticker_container').mouseleave(function(){
		//removeFirst();
	});
});
