function slideSwitch() {
    var Jactive = J('#rotating_home a.active');

    if ( Jactive.length == 0 ) Jactive = J('#rotating_home a.last');

    var Jnext =  Jactive.next().length ? Jactive.next()
        : J('#rotating_home a.first');

    Jactive.addClass('last-active');

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

J(function() {
    setInterval( "slideSwitch()", 5000 );
});

