$().ready(function() {
	
	// FIFTH
	// =============================================================
	
	// Set the hight of each collection list row based on the tallest column in the row.
	$('.collectionList .fifth').each(function() {
		var jThis = $(this);
		var maxHeight = 0;

		// Find max height.
		var check = jThis;
		do {
			if (check.height() > maxHeight)
				maxHeight = check.height();	
			check = check.next();
		} while (check.is('.collectionList > li') && !check.is('.fifth'));

		// Apply max height to all elements in the row.
		check = jThis;
		do {
			check.height(maxHeight);
			check = check.next();
		} while (check.is('.collectionList > li') && !check.is('.fifth'));

	});



/* 20100421 - Jason Martin - img heights set in css, no longer need to adjust height w/ js */
/*
	// FOURTH
	// =============================================================
	
	// Set the hight of each collection list row based on the tallest column in the row.
	$('.photoGalleryList .fourth').each(function() {
		var jThis = $(this);
		var maxHeight = 0;

		// Find max height.
		var check = jThis;
		do {
			if (check.height() > maxHeight)
				maxHeight = check.height();	
			check = check.next();
		} while (check.is('.photoGalleryList > li') && !check.is('.fourth'));

		// Apply max height to all elements in the row.
		check = jThis;
		do {
			check.height(maxHeight);
			check = check.next();
		} while (check.is('.photoGalleryList > li') && !check.is('.fourth'));

	});
	
	$('.photoGalleryList').addClass('jsSetHeight');
*/
	$('.collectionList').addClass('jsSetHeight');
	
});
