
$('document').ready(function() {
	$('#slideshow').crossSlide({
	  fade: 1
	}, [
	  {
	    src:  'images/slideshow/slideshow01.jpg',
	    alt:  '"WICKEDLY FUNNY"<br/>N.Y. Times',
	    from: 'top left',
	    to:   'bottom left',
	    time: 5
	  }, {
	    src:  'images/slideshow/slideshow02.jpg',
	    alt:  '<span style="font-size:0.7em">"Must be the world\'s best juggler. He\'s certainly the funniest!"<br/>San Francisco Chronicle</span>',
	    from: 'top right',
	    to:   'top left',
	    time: 5
	  }, {
	    src:  'images/slideshow/slideshow03.jpg',
	    alt:  '"DEVASTATINGLY FUNNY!"<br/>Boston Herald',
	    from: 'top left',
	    to:   'bottom left',
	    time: 5
	  }	, {
	    src:  'images/slideshow/slideshow04.jpg',
	    alt:  '"COMEDIC GENIUS!"<br/>Las Vegas Magazine',
	    from: 'top left',
	    to:   'bottom left',
	    time: 5
	  }	, {
	    src:  'images/slideshow/slideshow05.jpg',
	    alt:  '"HE\'S DYNAMITE!"<br/>Johnny Carson',
	    from: 'bottom left',
	    to:   'top left',
	    time: 5
	  }	, {
	    src:  'images/slideshow/slideshow06.jpg',
	    alt:  '"AN ABSOLUTE RIOT!"<br/>Seattle Times',
	    from: 'bottom left',
	    to:   'top left',
	    time: 5
	  }	, {
	    src:  'images/slideshow/slideshow07.jpg',
	    alt:  '<span style="font-size:0.7em">"Insanely Funny! Olivier turns traditional vaudeville on its ear!"<br/>S.F. Examiner</span>',
	    from: 'bottom left',
	    to:   'top left',
	    time: 5
	  }	, {
		src:  'images/slideshow/slideshow08.jpg',
	    alt:  '<span style="font-size:0.7em">"The rightful heir to the comic tradition of vaudeville. A showstopper!"<br/>Washington Weekly</span>',
	    from: 'bottom left',
	    to:   'top left',
	    time: 5
	  }
	], function(idx, img, idxOut, imgOut) {
		
		  if (idxOut == undefined)
		  {
			// starting single image phase, put up caption
			var caption = img.alt;
	//		caption = "Frank is super duper cool.<br /><span style='float:right'>- Jimmy Carter</span";
		    $('#slideshowCaption').html(caption);
		
			if ($.startSlideshow) {
				$('#slideshowCaption').animate({ opacity: .7 });
			}
		  }
		  else
		  {
		    // starting cross-fade phase, take out caption
		    $('#slideshowCaption').animate({ opacity: 0 });
		  }

		
	});
	$('#slideshowCaption').show().css({ opacity: 0 });
});

