function getPageSize(){
	var xScroll = (document.body.scrollWidth) ? document.body.scrollWidth : document.body.offsetWidth;
	var yScroll = (window.innerHeight + window.scrollMaxY) ? window.innerHeight + window.scrollMaxY : (document.body.scrollHeight) ? document.body.scrollHeight : document.body.offsetHeight;
	var windowWidth = (self.innerWidth) ? self.innerWidth : (document.body.clientWidth) ? document.body.clientWidth : document.documentElement.clientWidth;
	var windowHeight = (self.innerHeight) ? self.innerHeight : (document.body.clientHeight) ? document.body.clientHeight : document.documentElement.clientHeight;
	var pageHeight = (yScroll < windowHeight) ? windowHeight : yScroll;
	var pageWidth = (xScroll < windowWidth) ? windowWidth : xScroll;
	return arr = [pageWidth,pageHeight,windowWidth,windowHeight];
};

function fixPage(){
	var page = getPageSize();
	if(page[1]<570){
		$('html, body, #wrap').css({ 'height':570 });
	};
	$(window).resize(function(){
		if(page[1]<570){
			$('html, body, #wrap').css({ 'height':570 });
		};
	});
}