/*** 
    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 slideSwitch() {
    $('[id=slideshow]').each(function(){
    
   var $active = $('IMG.active',$(this));

    if ( $active.length == 0 ) $active = $('IMG:last',$(this));

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('IMG:first',$(this));

    $active.fadeOut();
    $active.removeClass('active');
    $next.fadeIn();
    $next.addClass('active');
    });

}
$(function() {
    $('[id=slideshow] IMG').fadeOut(0); 
    $('[id=slideshow] IMG.active').fadeIn(0); 
    setInterval( "slideSwitch()", 5000 );
});


