function slideSwitch() {

    var $active = $('#box-customers IMG.active');
    if ( $active.length == 0 ) $active = $('#box-customers IMG:last');
    var $next =  $active.next().length ? $active.next()
        : $('#box-customers IMG:first');
 $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });

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

function slideSwitch2() {
    var $active = $('#box-partners IMG.active');
    if ( $active.length == 0 ) $active = $('#box-partners IMG:last');
    var $next =  $active.next().length ? $active.next()
        : $('#box-partners IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
       .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');

        });

}
$(function() { setInterval( "slideSwitch2()", 5000 );});

function ssSwitch() {
    var $active = $('#box-success-stories DIV.active');
    if ( $active.length == 0 ) $active = $('#box-success-stories DIV:last');
    var $next =  $active.next().length ? $active.next()
        : $('#box-success-stories DIV:first');
 $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });

}
$(function() { setInterval( "ssSwitch()", 5000 );});

function tSwitch() {
    var $active = $('#latest_tweet DIV.active');
    if ( $active.length == 0 ) $active = $('#latest_tweet DIV:last');
    var $next =  $active.next().length ? $active.next()
        : $('#latest_tweet DIV:first');
 $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });

}
$(function() { setInterval( "tSwitch()", 5000 );});