function promoSlideSwitch_side() {
    var $active = $('#promoslideshowside DIV.promo-active');

    if ( $active.length == 0 ) $active = $('#promoslideshowside DIV:last');

    var $next =  $active.next().length ? $active.next()
        : $('#promoslideshowside DIV:first');

    $active.addClass('promo-last-active');

    $next.css({opacity: 0.0})
        .addClass('promo-active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('promo-active promo-last-active');
        });
}

function promoSlideSwitch_side2() {
    var $active = $('#promoslideshowside2 DIV.promo-active');

    if ( $active.length == 0 ) $active = $('#promoslideshowside2 DIV:last');

    var $next =  $active.next().length ? $active.next()
        : $('#promoslideshowside2 DIV:first');

    $active.addClass('promo-last-active');

    $next.css({opacity: 0.0})
        .addClass('promo-active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('promo-active promo-last-active');
        });
}

$(function() {
    setInterval( "promoSlideSwitch_side()", 4000 );
    setInterval( "promoSlideSwitch_side2()", 4000 );
});

