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 setDiv() {
	var windowHeight = getWindowHeight();
	if (windowHeight > 0) {
		document.getElementById('container5').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content5').style.marginTop = ((windowHeight / 2) - 200) + 'px';
		document.getElementById('container4').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content4').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 1) + 'px';
		document.getElementById('container3').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content3').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 2) + 'px';
		document.getElementById('container2').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content2').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 3) + 'px';
		document.getElementById('container1').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content1').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 4) + 'px';
		document.getElementById('container0').style.height = (windowHeight - 20) + 'px';
		document.getElementById('content0').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 5) + 'px';
		document.getElementById('content').style.marginTop = (((windowHeight / 2) - 200) + windowHeight * 5) + 'px';
	}
	var windowWidth = getWindowWidth();
	if (windowWidth > 0) {
		document.getElementById('content5').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content4').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content3').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content2').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content1').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content0').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
		document.getElementById('content').style.marginLeft = ((windowWidth / 2) - 300) + 'px';
	}
	document.getElementById('images').style.display = 'block';
}
window.onload = function() {
	setDiv();
}
window.onresize = function() {
	setDiv();
}