//Rotate items in the news ticker
$(function() {
	var timer = setInterval(removeFirst, 8000);			
	var first = 0;
	var speed = 700;
	
	function removeFirst(){
		first = $('ul#news_ticker li:first').html();
		$('ul#news_ticker li:first').fadeOut('slow', function() {$(this).remove();});
		$('ul#news_ticker li:nth-child(2)').fadeIn('slow');
		addLast(first);
	}
	
	function addLast(first){
			last = '<li style="display:none">'+first+'</li>';
			$('ul#news_ticker').append(last);
		}
	
});

