function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    $active.siblings().hide();

    var $next =  $active.next().length ? $active.next() : $('#slideshow IMG:first');

    $active.fadeOut(5000).removeClass('active');
    $next.fadeIn(5000).addClass('active');
}

 $(function() {
    setInterval( "slideSwitch()", 6000 );
});
