$(document).ready(function() {
	$('ul.layoutGridCols').each(function(colsIndex) {


		// --- H2 Element --- //
		// Loop through all the elements and get the largest height
		var height = 0;
		$('li.layoutGridCol h2', this).each(function(colIndex) {
			if($(this).height() > height) {
				height = $(this).height();
			}
		});
		// Loop through the elements a second time and set the height
		$('li.layoutGridCol h2', this).each(function(colIndex) {
				$(this).height(height);
		});



		// --- IMG Element --- //
		// Loop through all the elements and get the largest height
		var height = 0;
		$('li.layoutGridCol div.img', this).each(function(colIndex) {
			if($(this).height() > height) {
				height = $(this).height();
			}
		});
		// Loop through the elements a second time and set the height
		$('li.layoutGridCol div.img', this).each(function(colIndex) {
			$(this).height(height);
		});
	});
});