var module = {};

if(window.attachEvent){
	if (typeof document.documentElement.style.msInterpolationMode == "undefined") module.oldIE = true;
	module.IE = true;
}


//jQuery Start
(function($){ //コードブロック内で他のライブラリの$ショートカットを使用不可にする処理


//----------------------------------------------------------//
// BOX LINE
//----------------------------------------------------------//

module.boxline = function(){
		
	$('#r-result div#res0-block div.unit-i').each(function(){
		
		var heightA = 0;
		
		$(this).find('div.in-unit').each(function(){

			var elmh = $(this).find('div.inner').height();
		
			if(elmh > heightA){
				heightA = elmh;
			}	
		
		});

	
		$(this).find('div.in-unit').each(function(){

			if(module.IE){
			 $(this).find('div.inner').css('height',heightA);
			}else{
			 $(this).find('div.inner').css('minHeight',heightA);
			}
	
		});

	});



	$('#r-result div#res1-block').each(function(){
		
		var heightB = 0;
		
		$(this).find('div.in-unit').each(function(){

			var elmh = $(this).find('div.inner').height();
		
			if(elmh > heightB){
				heightB = elmh;
			}	
		
		});

	
		$(this).find('div.in-unit').each(function(){

			if(module.IE){
			 $(this).find('div.inner').css('height',heightB);
			}else{
			 $(this).find('div.inner').css('minHeight',heightB);
			}
	
		});

	});


	$('#pick-section div.breis-a').each(function(){
																						
		var heightC = 0;
		
		$(this).find('div.inner').each(function(){

			var elmh = $(this).height();
		
			if(elmh > heightC){
				heightC = elmh;
			}	
		
		});
		
		$(this).find('div.inner').each(function(){

			if(module.IE){
			 $(this).css('height',heightC);
			}else{
			 $(this).css('minHeight',heightC);
			}
	
		});

	});

}

$(function(){ //onLoad処理
	module.boxline();
});


})(jQuery);
//jQuery End


