function slideSwitch() {
    var $active = $('#autoSlideShow DIV.active_photo');

    if ( $active.length == 0 ) $active = $('#autoSlideShow DIV:last');

    var $next =  $active.next().length ? $active.next()
        : $('#autoSlideShow DIV:first');

    $active.addClass('last_active_photo');

    $next.css({opacity: 0.0})
        .addClass('active_photo')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active_photo last_active_photo');
        });
}

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

