$(document).ready(function(){
     
    var first = 0;
    var speed = 700;
    var pause = 3500;

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

    function addLast(first){
            last = '<li style="display:none">'+first+'</li>';
            $('ul#newsticker').append(last)
            $('ul#newsticker li:last')
            .animate({opacity: 1}, speed)
            .fadeIn('slow')
    }

    interval = setInterval(removeFirst, pause);
});
