var first = 0;
var speed = 400;
var pause = 3500;
var interval;

$(document).ready(
function()
{
	//interval = setInterval(removeItem, pause);
}
);

function nextNewsItem()
{
	clearInterval(interval);
	removeItem();
	interval = setInterval(removeItem, pause);
}

function removeItem()
{
	first = $('ul#listticker li:first').html();
	$('ul#listticker li:first')
	.animate({opacity: 0}, speed)
	.fadeOut('fast', function() {$(this).remove();});
	addLast(first);
}

function addLast(first)
{
	last = '<li>'+first+'</li>';
	$('ul#listticker').append(last)
	$('ul#listticker li:last')
	.animate({opacity: 1}, speed)
	.fadeIn('fast')
}
