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

