jsEventiImprese = window.jsEventiImprese || {};

jsEventiImprese.NewsTicker = function(listID) {	
	
	var pause = 8000;	
	interval = setInterval(function(){jsEventiImprese.ScrollItem(listID);} , pause);
};

jsEventiImprese.ScrollItem = function(listID) {	
	
	var speed = 500;
	var first = $('#' + listID + ' li:first'); //.html();	
	$('#' + listID + ' li:first')
		.animate({opacity: 0}, speed)
		.fadeOut('slow', function() {
			
			$('#' + listID).append( first );
			$('#' + listID + ' li:first')	
				.show()
				.css('opacity', '1');
			});	
			
}



