// JavaScript Document

// Calls on malsup.jquery.cycle.all.js


// Handles the changes of the images
$(document).ready(function() {
	$('.slideshow p').cycle({
		fx:     'fade',
		speed:   600, 
		timeout: 6000,
		pause:   1, 
		pager:  '#imageNav',
        after:   onAfter
	});
});


// Shows the alt text as a caption
function onAfter() {
    $('.sliderText').html(this.alt);
	
if ($('.sliderText').is(':empty')) {$('.sliderText').hide(); }
else {$('.sliderText').show();}



}
