function slideSwitch() {
    var $active = jQuery('#slideshow DIV.active');
	var $activeCallout = jQuery('#calloutrotator DIV.active');
	var $activeWhyWeGo = jQuery('#slideshowWhyWeGo DIV.active');

    if ( $active.length == 0 ) $active = jQuery('#slideshow DIV:last');
	if ( $activeCallout.length == 0 ) $activeCallout = jQuery('#calloutrotator DIV:last');
	if ( $activeWhyWeGo.length == 0 ) $activeWhyWeGo = jQuery('#slideshowWhyWeGo DIV:last');

    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : jQuery('#slideshow DIV:first');
	var $nextCallout =  $activeCallout.next().length ? $activeCallout.next()
	: jQuery('#calloutrotator DIV:first');
	var $nextWhyWeGo =  $activeWhyWeGo.next().length ? $activeWhyWeGo.next()
	: jQuery('#slideshowWhyWeGo DIV:first');

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


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

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
		
	$nextCallout.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 1000, function() {
		$activeCallout.removeClass('active last-active');
	});
		
	$nextWhyWeGo.css({opacity: 0.0})
	.addClass('active')
	.animate({opacity: 1.0}, 1000, function() {
		$activeWhyWeGo.removeClass('active last-active');
	});
}

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


