
	  
	  
	  /*** 
    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 slideSwitcher() {
    var jQueryactive = jQuery('#tslideshow IMG.active');

    if ( jQueryactive.length == 0 ) jQueryactive = jQuery('#tslideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var jQuerynext =  jQueryactive.next().length ? jQueryactive.next()
        : jQuery('#tslideshow IMG:first');

    // uncomment below to pull the divs randomly
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    jQueryactive.addClass('last-active');

    jQuerynext.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 3000, function() {
            jQueryactive.removeClass('active last-active');
        });
}
function pslideSwitcher() {
    var jQueryactive2 = jQuery('#pslideshow IMG.active');

    if ( jQueryactive2.length == 0 ) jQueryactive2 = jQuery('#pslideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var jQuerynext =  jQueryactive2.next().length ? jQueryactive2.next()
        : jQuery('#pslideshow IMG:first');

    // uncomment below to pull the divs randomly
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    jQueryactive2.addClass('last-active');

    jQuerynext.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 3000, function() {
            jQueryactive2.removeClass('active last-active');
        });
}

jQuery(function() {
    setInterval( "slideSwitcher()", 5000 );
    setInterval( "pslideSwitcher()", 5000 );
	});
