$(document).ready(function(){
	/*
	var first = 0;
	var speed = 1000;
	var pause = 4000;
	
		function removeFirst(){
			first = $('ul#elenco_news li:first').html();
			$('ul#elenco_news li:first')
			.animate({opacity: 0}, speed)
			.fadeOut('slow', function() {$(this).remove();});
			addLast(first);
		}
		
		function addLast(first){
			last = '<li style="display:none">'+first+'</li>';
			$('ul#elenco_news').append(last)
			$('ul#elenco_news li:last')
			.animate({opacity: 1}, speed)
			.fadeIn('slow')
		}
	
	interval = setInterval(removeFirst, pause);

*/

$(function()
{
	var ticker = function()
	{
		setTimeout(function(){
			
				$('ul#elenco_news li:first').animate( {marginTop: '-120px'}, 800, function()
				{
					$(this).detach().appendTo('ul#elenco_news').removeAttr('style');	
				});
				
					ticker();	
				
				
		
		}, 4000);
	};
	
			ticker();	
	
});

});






/*evidenza */

jQuery(window).bind("load", function() {
			jQuery("div#coda-slider").codaSlider({
				autoSlide: true,
        autoSlideInterval: 4000,
        autoSlideStopWhenClicked: true
			})
			// jQuery("div#slider2").codaSlider()
			// 360 240 etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
		});
		
