﻿/* 子要素の高さ調整 */

(function($) { 

$(function(){

	//汎用
	$(".heightAdjust").each(function(){
		setMaxHeight($(this).children("*"));
	});

	//直接指定
	//setMaxHeight($(".colMain ul.category-menu .wrapper"));
	

});

})(jQuery)

function setMaxHeight(obj){
	var maxHeight = 0;

	obj.each(function(){
		maxHeight = Math.max(maxHeight, $(this).height());
	});
		
	obj.each(function(){
		$(this).height(maxHeight);
	});
	
}

function resetHeight(obj){
	obj.each(function(){
		$(this).removeAttr("style");
	});
}
