function sizeBox() {
			var w = $(window).width();
			var h = $(window).height();
			$('#main_container').css('position', 'absolute');
			if (window.innerHeight) {
				theHeight=window.innerHeight;
			} else if (document.documentElement.clientHeight) {
				theHeight=document.documentElement.clientHeight;
			} else if (document.body) {
				theHeight=document.body.clientHeight;
			}
			if (theHeight > 666) {
				$('#main_container').css('top', h/2-($('#main_container').height()/2));
			}
			$('#main_container').css('left', w/2-($('#main_container').width()/2));
			
		}
 

		function sizePage() {
			sizeBox();
			bod = document.getElementById("main_container");
			bod.style.display="block";
			init_scroll();
		}

		$(window).resize(function() {
			sizeBox();
		});
		
		window.onload = sizePage;

