﻿$(document).ready(function() {
    //show first
    $(".promo:first").show().addClass("currentpromo");
    setTimeout(moveNext,7000);
});

function moveNext() {
    //visible one
    $(".currentpromo").fadeOut(300, function() {
        if ($(this).next().is("li"))
            $(this).next().fadeIn(600).addClass("currentpromo");
        else
            $(this).parent().children(":first").fadeIn(600).addClass("currentpromo");
        setTimeout(moveNext, 7000);
    }).removeClass("currentpromo");
}
