// JavaScript Document

function heightInputTop(){
$(function (){
aa = $("#leftWrapContents").height() + 80;
bb = $("#rightWrapContentsTop").height() + 80;
if(aa > bb){
$("#leftWrap").css("min-height", aa +"px");
$("#rightWrap").css("min-height", aa +"px");
$("#bodyWrap").css("min-height", aa +"px");
};
if(bb > aa){
$("#leftWrap").css("min-height", bb +"px");
$("#rightWrap").css("min-height", bb +"px");
$("#bodyWrap").css("min-height", bb+"px");
};
$("#footerWrap").css("display","block");
});
}

function heightInput(){
$(window).load(function(){
setTimeout(function(){
heightInputKasou();
},800);
});
}

function heightInputKasou(){

aa = $("#leftWrapContents").height() + 80;
bb = $("#rightWrapContents").height() + 80;
cc = $("#centerWrapContents").height() + 80;

if(aa > bb){
if(aa > cc){
$("#leftWrap").css("min-height", aa +"px");
$("#rightWrap").css("min-height", aa +"px");
$("#centerWrap").css("min-height", aa +"px");
$("#bodyWrap").css("min-height", aa +"px");
} else if(cc > bb) {
$("#leftWrap").css("min-height", cc +"px");
$("#rightWrap").css("min-height", cc +"px");
$("#centerWrap").css("min-height", cc +"px");
$("#bodyWrap").css("min-height", cc +"px");
} else {
$("#leftWrap").css("min-height", bb +"px");
$("#rightWrap").css("min-height", bb +"px");
$("#centerWrap").css("min-height", bb +"px");
$("#bodyWrap").css("min-height", bb +"px");
}
}

if(bb > aa){
if(bb > cc){
$("#leftWrap").css("min-height", bb +"px");
$("#rightWrap").css("min-height", bb +"px");
$("#centerWrap").css("min-height", bb +"px");
$("#bodyWrap").css("min-height", bb +"px");
} else if(cc > aa) {
$("#leftWrap").css("min-height", cc +"px");
$("#rightWrap").css("min-height", cc +"px");
$("#centerWrap").css("min-height", cc +"px");
$("#bodyWrap").css("min-height", cc +"px");
} else {
$("#leftWrap").css("min-height", aa +"px");
$("#rightWrap").css("min-height", aa +"px");
$("#centerWrap").css("min-height", aa +"px");
$("#bodyWrap").css("min-height", aa +"px");
}
}

$("#footerWrap").css("display","block");

}
