$(document).ready(function() {
	$('#homeshow').cycle({
		fx: 'fade'
	});

	$('#home-slides').cycle({ 
		timeout: 5000,
		fx: 'fade',
	    	after: onAfter
	});
	
	function onAfter(curr, next, opts, fwd) {
	var index = opts.currSlide;
	//get the height of the current slide
	var $ht = $(this).height();
	//set the container's height to that of the current slide
	$(this).parent().animate({height: $ht});
	}

});

