$(function () {
	new function () {
		// 高さ補正 
		if (!$('.groupLeveled').length) return;
		var groupLeveled = function () {
			var group, pos, max;
			var init = function () {
				group = [];
				pos = 0;
				max = 0;
			};
			init();
			$('.groupLeveled').each(function () {
				$(this).children().each(function () {
					var self = $(this);
					var top = self.offset().top;
					var height = self.height() || 0;
					if (!pos) pos = top;
					if (!max) max = height;
					if (pos == top) {
						if (max < height) max = height;
						return group.push(this);
					};
					$(group).height(max);
					init();
					pos = self.offset().top;
					max = self.height();
					group.push(this);
				});
				if (group.length) $(group).height(max);
			});
		};
		groupLeveled();
		setInterval(groupLeveled, 1000);
	};
})(jQuery);

