$(document).ready(function(){var photoheight = $('#inner_photo_large img').height();	photoheight = photoheight-1;	// fade the main photo if there are more than one.$('#inner_photo_large').height(photoheight);  $('#inner_photo_large').cycle({    fx: 'turnDown',	after: onAfter  });  });function onAfter(curr,next,opts) {	//var caption = 'Image ' + (opts.currSlide + 1) + ' of ' + opts.slideCount;	var theone = opts.currSlide + 1;	theone = theone - 1;	var pickles = $('#mycaptions').find('li:eq('+theone+')').text();		$('#inner_photo_caption').html(pickles);			}
