/*
 *	jsSlideshow.js
 *
 *  This file simply does the setup of options and executes the
 *  jQuery plugin called Cycle Lite (http: *jquery.malsup.com/cycle/lite/)
 *  to do a simple slideshow on each page.  See that page for available parameters.
 *  If more flexibility is needed use the full "Cycle" plugin instead.
 *
 *  Dependencies:  jQuery and jquery.cycle.lite.1.0.min.js
 */

(function($){
	$(document).ready(function() {
		// Swap longdesc and src after page has initially loaded yet prior to calling slideshow
		// Technique used to make sure page is loaded quickly and then slideshow secondly
		$('#slideshow img').each(function() {
			$(this).attr("src",$(this).attr("longdesc"));
			$(this).removeAttr("longdesc");
		});
	
		$('#slideshow').cycle({
			fit: 1,
			pause: 1
		});
	});
})(jQuery);

