/*** 
    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() {
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}, 1000, function() {
$active.removeClass('active last-active');
});
}	

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}, 1000, function() {
$active2.removeClass('active last-active');
});
}

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

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