function slideSwitch() {
    var $active = $('.slideshow DIV.active');
    var $active2 = $('.slideshow2 DIV.active2');
    var $active3 = $('.slideshow3 DIV.active3');
    var $active_certificacoes = $('.slideshow_certificacoes DIV.active_certificacoes');
    
    if ( $active.length == 0 ) $active = $('.slideshow DIV:last');
    var $next =  $active.next().length ? $active.next()
        : $('.slideshow DIV:first');
   
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
        
        
    if ( $active2.length == 0 ) $active2 = $('.slideshow2 DIV:last');
    var $next =  $active2.next().length ? $active2.next()
        : $('.slideshow2 DIV:first');
   
    $active2.addClass('last-active2');
    $next.css({opacity: 0.0})
        .addClass('active2')
        .animate({opacity: 1.0}, 1000, function() {
            $active2.removeClass('active2 last-active2');
        });
        
    if ( $active3.length == 0 ) $active3 = $('.slideshow3 DIV:last');
    var $next =  $active3.next().length ? $active3.next()
        : $('.slideshow3 DIV:first');
   
    $active3.addClass('last-active3');
    $next.css({opacity: 0.0})
        .addClass('active3')
        .animate({opacity: 1.0}, 1000, function() {
            $active3.removeClass('active3 last-active3');
        });
    if ( $active_certificacoes.length == 0 ) $active_certificacoes = $('.slideshow_certificacoes DIV:last');
    var $next =  $active_certificacoes.next().length ? $active_certificacoes.next()
        : $('.slideshow_certificacoes DIV:first');
   
    $active_certificacoes.addClass('last-active_certificacoes');
    $next.css({opacity: 0.0})
        .addClass('active_certificacoes')
        .animate({opacity: 1.0}, 1000, function() {
            $active_certificacoes.removeClass('active_certificacoes last-active_certificacoes');
        });
}
$(function() {
    setInterval( "slideSwitch()", 2500 );
});


