﻿
//css is required for this jq to work properly
// <reference path="../kunder/partnere.css" />

$(document).ready(function() {

    var first = 0;
    var speed = 700;
    var pause = 15000;

    function removeFirst() {
        first = $('ul#listticker li:first').html();

        $('ul#listticker li:first')
			.animate({ opacity: 0 }, speed)
			.fadeOut('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);


});
