		<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		<!-- ---------------- -->
		function getWindowWidth() {
			var windowWidth = 0;
			if (typeof(window.innerWidth) == 'number') {
				windowWidth = window.innerWidth;
			}
			else {
				if (document.documentElement && document.documentElement.clientWidth) {
					windowWidth = document.documentElement.clientWidth;
				}
				else {
					if (document.body && document.body.clientWidth) {
						windowWidth = document.body.clientWidth;
					}
				}
			}
			return windowWidth;
		}
		<!-- ---------------- -->
		function setContent() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				var windowWidth = getWindowWidth();
				
				if (windowHeight > 0) {
					var contentElement = document.getElementById('content');
					var SlideBox = document.getElementById('slidebox');					
					var contentMinHeight = 650;
				    var contentMaxHeight = 840;
				
					
					if (windowHeight > contentMaxHeight) {
						contentElement.style.top = ((windowHeight - contentMaxHeight) / 2) + 'px';
						contentElement.style.height = contentMaxHeight +'px';
						SlideBox.style.top = 0 + 'px';
					}
					else if (windowHeight > contentMinHeight) {
						contentElement.style.top = 0 + 'px';
						contentElement.style.height = windowHeight +'px';
						SlideBox.style.top = ((windowHeight - contentMaxHeight) / 2) + 'px';
					}
					else {
						contentElement.style.top = 0 + 'px';
						contentElement.style.height = contentMinHeight +'px';
						SlideBox.style.top = ((windowHeight - contentMaxHeight) / 2) + 'px';
					}
				}
				
				if (windowWidth > 0) {
					var contentElement = document.getElementById('content');
					
					var contentMinWidth = 1024;
					var contentMaxWidth = 1280;
					
					if (windowWidth > contentMaxWidth) {
						contentElement.style.left = ((windowWidth - contentMaxWidth) / 2) + 'px';
						contentElement.style.width = contentMaxWidth +'px';
						SlideBox.style.left = 0 + 'px';
					}
					else if (windowWidth > contentMinWidth) {
						contentElement.style.left = 0 + 'px';
						contentElement.style.width = windowWidth +'px';
						SlideBox.style.left = ((windowWidth - contentMaxWidth) / 2) + 'px';
					}
					else {
						contentElement.style.left = 0 + 'px';
						contentElement.style.width = contentMinWidth +'px';
						SlideBox.style.left = ((windowWidth - contentMaxWidth) / 2) + 'px';
					}	
					
					
					
					
				}
			}
		}
		window.onload = function() {
			setContent();
			
		}
		window.onresize = function() {
			setContent();
		}