function slideSwitch() {
    var $active = $('#slideshow-container IMG.slideshow-active');

    if ( $active.length == 0 ) $active = $('#slideshow-container IMG:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow-container IMG:first');

    $active.addClass('slideshow-lastactive');

    $next.css({opacity: 0.0})
        .addClass('slideshow-active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('slideshow-active slideshow-lastactive');
            setTimeout( "slideSwitch()", 5000 );
        });
}

//$(function() {
	setTimeout( "slideSwitch()", 5000 );
//});
