function slideSwitch() {
    var $active = $('#slideshow DIV.active');
    if ( $active.length == 0 ) $active = $('#slideshow DIV:last');
    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow DIV:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
		
    var $active2 = $('#slideshow2 DIV.active');
    if ( $active2.length == 0 ) $active2 = $('#slideshow2 DIV:last');
    // use this to pull the divs in the order they appear in the markup
    var $next2 =  $active2.next().length ? $active2.next()
        : $('#slideshow2 DIV:first');
    $active2.addClass('last-active');
    $next2.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active2.removeClass('active last-active');
        });
		
    var $active3 = $('#slideshow3 DIV.active');
    if ( $active3.length == 0 ) $active3 = $('#slideshow3 DIV:last');
    // use this to pull the divs in the order they appear in the markup
    var $next3 =  $active3.next().length ? $active3.next()
        : $('#slideshow3 DIV:first');
    $active3.addClass('last-active');
    $next3.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active3.removeClass('active last-active');
        });
		
    var $active4 = $('#slideshow4 DIV.active');
    if ( $active4.length == 0 ) $active4 = $('#slideshow4 DIV:last');
    // use this to pull the divs in the order they appear in the markup
    var $next4 =  $active4.next().length ? $active4.next()
        : $('#slideshow4 DIV:first');
    $active4.addClass('last-active');
    $next4.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active4.removeClass('active last-active');
        });
}

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