$(document).ready(function(){ 
	
	$('#slideshow').cycle({
		fx:'fade', 
		speed:'300', 
		timeout: 0, 
		next:'#next,#slideshow', prev:'#prev',
		after: onAfter,
	});

	
	
	function onAfter(curr,next,opts) {
		var caption = (opts.currSlide + 1) + '/' + opts.slideCount;
		$('#slide_count').html(caption);
	};
	
	
	$('#info_detail').hide();
	$('#info_close').hide();
	$('#credits_detail').hide();
	$('#credits_close').hide();


	$('#info').click(function () {
		infoClick();
	});

	
	$('#info_close').click(function () {
		infoClose();
	});

	function infoClick() {
      $('#info_detail').show("fast");
      $('#info_close').show("fast");
      $('#info').hide("fast");
      return false;	
	};

	function infoClose() {
		$('#info_detail').hide("fast");
		$('#info_close').hide("fast");
		$('#info').show("fast");
		return false;	
	};

});


