/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

function slideSwitch3() {
    var $active3 = $('.slideshow3 IMG.active3');

    if ( $active3.length == 0 ) $active3 = $('.slideshow3 IMG:last3');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active3.next().length ? $active3.next()
        : $('.slideshow3 IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
//     var $sibs3  = $active3.siblings();
//     var rndNum3 = Math.floor(Math.random() * $sibs3.length );
//     var $next3  = $( $sibs3[ rndNum3 ] );


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

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

$(function() {
    setInterval( "slideSwitch3()", 5000 );
});

