﻿jQuery.noConflict()(function($) {

    var first = 0;
    var speed = 3000;
    var pause = 6500;

    function removeFirst() {
        first = $('ul#banners li:first').html();
        //$('ul#banners li:first').animate({ opacity: 0 }, speed).fadeOut('fast', function() { $(this).remove(); });
        $('ul#banners li:first').fadeOut('slow', function() { $(this).remove(); });
        addLast(first);
    }

    function addLast(first) {
        last = '<li style="display:none">' + first + '</li>';
        $('ul#banners').append(last);
        //$('ul#banners li:last').animate({ opacity: 1 }, speed).fadeIn('slow')
        $('ul#banners li:last').fadeIn('slow')
    }

    interval = setInterval(removeFirst, pause);
});
