(function ($) {
	// Greatest Common Column Plugin
	$.fn.GCColumn = function () {
		var heights = [];

		$(this).each(function () {
			heights.push($(this).height());
		});

		heights.sort(function (a, b) {
			return b - a;
		});

		return this.each(function () {
			$(this).height(heights[0]);
		});
	};

	// Ready
	$(function () {
		$('.sf-menu').superfish();
		$('#slideshow').cycle();

		$('#content, #sidebar-left, #sidebar-right').GCColumn();
		
		// hack for cforms title
		$('.widgetcform h2').width($('.widgetcform h2').width() + 2);
	});
})(jQuery);
