$(document).ready(function() {
	
largeSlide(0);	
	
function largeSlide(currentPhoto) {
		var numPhotos = $('#imageWrap img').length;
		currentPhoto = currentPhoto % numPhotos;
		
		$('#imageWrap img').eq(currentPhoto).fadeOut(2000, function() {
			
			$('#imageWrap img').each(function(i) {
				$(this).css( 'zIndex', ((numPhotos - i) + currentPhoto) % numPhotos );
			});
			
			$(this).show(1000);
			setTimeout(function() {largeSlide(++currentPhoto);}, 5000);
		});
}

});
