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

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

function slideSwitch3() {
    var $active = $('#logofade2 IMG.active');
    if ( $active.length == 0 ) $active = $('#logofade2 IMG:last');
    var $next =  $active.next().length ? $active.next() : $('#logofade2 IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 0.9}, 2000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
//   setInterval( "slideSwitch()", 1650 );
    setInterval( "slideSwitch2()", 550 );
    //    setInterval( "slideSwitch3()", 550 );
});



