function resize() {
	
	var body = $("body");
	
	var container = $("#site");
	
	container.css("height", "auto");
	body.css("height", "auto");
	
	var documentWidth = $(window).width();
	var documentHeight = $(document).height();
	var windowHeight = $(window).height();
	
	if(documentWidth < 1208) {
		
		if(documentWidth < 950 ) {
		
			body.css("padding-left", 74);
			container.css("width", 876);
		} else {
		
			body.css("padding-left", documentWidth - 876);
			container.css("width", 876);
		}
	} else {
		
		body.css("padding-left", "25%");
		container.css("width", "100%");
	}
	
	
	if(windowHeight > documentHeight) {	
		container.css("height", windowHeight);
		body.css("height", windowHeight);
	}
	else {
		container.css("height", documentHeight);
		body.css("height", documentHeight);
	}
}

$(function() {
	
	resize();
	window.onresize = resize;
});