// JavaScript Document

$(function(){
	/* div要素を3つずつの組に分ける */
	var sets = [], temp = [];
	$('.threeCategoryLink .item').each(function(i) {
		temp.push(this);
		if (i % 3 == 2) {
			sets.push(temp);
			temp = [];
		}
	});
	if (temp.length) sets.push(temp);

	/* 各組ごとに高さ揃え */
	$.each(sets, function() {
		$(this).flatHeights();
	});
});
