/*
062_Amuse-W2C V4.1[CF0081] 2010/05/10 T.Suzuki        UpdatePanelの更新時、Jsファイルの再読み込み対応
*/
$(function ams_jq_list(){
	/***********
	list box
	***********/
	
	var sets = [], temp = [];
	$('#listwrap_box > dl dd .tit_cat').each(function(i) {
			temp.push(this);
			if (i % 4 == 3) {
					sets.push(temp);
					temp = [];
			}
	});
	if (temp.length) sets.push(temp);

	/* 各組ごとに高さ揃え */
	$.each(sets, function() {
			$(this).flatHeights();
	});
	
	
	var sets1 = [], temp1 = [];
	$('#listwrap_box > dl dt').each(function(i) {
			temp1.push(this);
			if (i % 4 == 3) {
					sets1.push(temp1);
					temp1 = [];
			}
	});
	if (temp1.length) sets1.push(temp1);
	/* 各組ごとに高さ揃え */
	$.each(sets1, function() {
			$(this).flatHeights();
	});


var sets2 = [], temp2 = [];
	$('#listwrap_box > dl dd .tit').each(function(i) {
			temp2.push(this);
			if (i % 4 == 3) {
					sets2.push(temp2);
					temp2 = [];
			}
	});
	if (temp2.length) sets2.push(temp2);
	/* 各組ごとに高さ揃え */
	$.each(sets2, function() {
			$(this).flatHeights();
	});


	var sets3 = [], temp3 = [];
	$('#listwrap_box > dl').each(function(i) {
			temp3.push(this);
			if (i % 4 == 3) {
					sets3.push(temp3);
					temp3 = [];
			}
	});
	if (temp3.length) sets3.push(temp3);
	/* 各組ごとに高さ揃え */
	$.each(sets3, function() {
			$(this).flatHeights();
	});

	var sets4 = [], temp4 = [];
	$('#listwrap_box > dl dd .data').each(function(i) {
			temp4.push(this);
			if (i % 4 == 3) {
					sets4.push(temp4);
					temp4 = [];
			}
	});
	if (temp4.length) sets4.push(temp4);
	/* 各組ごとに高さ揃え */
	$.each(sets4, function() {
			$(this).flatHeights();
	});
	
	
	var sets5 = [], temp5 = [];
	$('#listwrap_box > dl dd .tit_name').each(function(i) {
			temp5.push(this);
			if (i % 4 == 3) {
					sets4.push(temp4);
					temp4 = [];
			}
	});
	if (temp5.length) sets5.push(temp5);
	/* 各組ごとに高さ揃え */
	$.each(sets5, function() {
			$(this).flatHeights();
	});
	
	
	//edit fsi
	var sets6 = [], temp6 = [];
	$('#listwrap_box > dl dd .soldoutText').each(function(i) {
			temp6.push(this);
			if (i % 4 == 3) {
					sets6.push(temp6);
					temp6 = [];
			}
	});
	if (temp6.length) sets6.push(temp6);
	
	$.each(sets6, function() {
			var parentHeight = parseInt($(this).parent().parent().css("height"));
			parentHeight += 14; 
			$(this).parent().parent().css("height",parentHeight+"px");
	});
	
	
	
	
	
});

