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

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

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow 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 $active2 = $('#slider-left IMG.active2');

    if ( $active2.length == 0 ) $active2 = $('#slider-left IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active2.next().length ? $active2.next()
        : $('#slider-left IMG:first');

    $active2.addClass('last-active2');

    $next.css({opacity: 0.0})
        .addClass('active2')
        .animate({opacity: 1.0}, 1000, function() {
            $active2.removeClass('active2 last-active2');
        });
}

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

