    function slideSwitch() {
        var $active = $('#slideshow IMG.active');
     
        if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
     
        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}, 2000, function() {
                $active.removeClass('active last-active');
            });
    }
    $(function() {
        setInterval( "slideSwitch()", 5000 );
    });
	
	    function slideSwitch2() {
        var $active2 = $('#slideshow2 IMG.active');
     
        if ( $active2.length == 0 ) $active2 = $('#slideshow2 IMG:last');
     
        var $next2 =  $active2.next().length ? $active2.next()
            : $('#slideshow2 IMG:first');
     
        $active2.addClass('last-active');
     
        $next2.css({opacity: 0.0})
            .addClass('active')
            .animate({opacity: 1.0}, 2000, function() {
                $active2.removeClass('active last-active');
            });
    }
    $(function() {
        setInterval( "slideSwitch2()", 5000 );
    });
