$(document).ready( function(){

var homeCollections = $('.innerfade-item');
		
if(homeCollections.size() > 0)
{
	var maxHeight = 0;
	
	homeCollections.each(
		function()
		{
			maxHeight = Math.max(maxHeight, $(this).height());
		}
		);
	
	var ContainerHeight = maxHeight + 'px';
}

	$('#innerfade').innerfade({
		speed: 'slow',
		timeout: 6000,
		type: 'sequence',
		containerheight: ContainerHeight
	});
	
});
