// JavaScript Document
$(document).ready(function(){
	function fixLayout(e){
		var height = document.body.clientHeight;
		var tarHeight = $(".container").outerHeight();
		if(height < tarHeight){
			$(".container").addClass("noEnoughRoom");
		}else{
			$(".container").hasClass("noEnoughRoom")?$(".container").removeClass("noEnoughRoom"):null;
		}
	}
	$(window).load(fixLayout);
	$(window).resize(fixLayout);
})
