$(document).ready(function(){
	
	var first = 0;
	var speed = 200;
	var pause = 5000;
	
		function removeFirst(){
			first = $('ul#newsTicker li:first').html();
			$('ul#newsTicker li:first')
			.animate({opacity: 1}, speed)
			.slideUp(speed, function() {$(this).remove();});
			addLast(first);
		}
		
		function addLast(first){
			last = '<li>'+first+'</li>';
			$('ul#newsTicker').append(last)
			$('ul#newsTicker li:last')
			.animate({opacity: 1}, speed)
			.fadeIn('slow', function() {$(this).get(0).style.removeAttribute('filter');});
		}	
	interval = setInterval(removeFirst, pause);
});