//This file contains the jQuery for the slideshow
function slideSwitch() {
//Slideshow1
    var $active = $('#rotateImage a.active');

    if ( $active.length == 0 ) $active = $('#rotateImage a:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#rotateImage a:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
	
//Slideshow2
	/*var $active2 = $('#rotateImage2 a.active');

    if ( $active2.length == 0 ) $active2 = $('#rotateImage2 a:last');

    // use this to pull the images in the order they appear in the markup
    var $next2 =  $active2.next().length ? $active2.next()
        : $('#rotateImage2 a:first');

    $active2.addClass('last-active');

    $next2.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active2.removeClass('active last-active');
        });*/


}//End Slide Switch

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