function slideSwitch_1() 
{
    var $active = $('#slideshow_1 IMG.active');

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

    var $next =  $active.next().length ? $active.next() : $('#slideshow_1 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 slideSwitch_2() 
{
    var $active = $('#slideshow_2 IMG.active');

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

    var $next =  $active.next().length ? $active.next() : $('#slideshow_2 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 slideSwitch_3() 
{
    var $active = $('#slideshow_3 IMG.active');

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

    var $next =  $active.next().length ? $active.next() : $('#slideshow_3 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_1()", 3000 );
	setInterval( "slideSwitch_2()", 3000 );
	setInterval( "slideSwitch_3()", 3000 );

});

