(function($) { // Use a closure because WordPress' jQuery is set to noConflict by default
	$(document).ready(function() {
		// slideshow with play/pause
			var slideShow = $('.playPauseExample').slideShow({
				interval: 3
			});
			// now add logic to play/pause button
			$('.playPauseExample a.togglePlayback').click(function() {
				if (slideShow.isPlaying()) {
					$(this).html('play');
				} else {
					$(this).html('stop');
				}
				slideShow.togglePlayback();
			});
	});
})(jQuery);
