/*
	topBrand一覧用script
*/

function timer(){
	timerID = setTimeout("heights()", 500);
}



function heights(){

	$(function(){			
		var sets = [], temp = [];
		$('#nav_brand_list li').each(function(i) {
			temp.push(this);
			if (i % 9 == 8) {
				sets.push(temp);
				temp = [];				
			}
		});
		
		if (temp.length) sets.push(temp);		
		/* 各組ごとに高さ揃え */
		$.each(sets, function() {$(this).flatHeights();});
		
		heights2();	

	});		

}

function heights2(){
	$(function(){	
		$('#nav_brand_list li').wrapInner('<p></p>');	
		$('#nav_brand_list li').css({"position":"relative"});
		$('#nav_brand_list li p').css({"position":"absolute"});
		$('#nav_brand_list li p').css({"bottom":"0"});
		$('#nav_brand_list li p').css({"left":"0"});
	});	
}
