// JavaScript Document<script type="text/javascript">
function getWindowHeight() {
if (self.innerHeight) {
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
} else if (document.body) {
windowHeight = document.body.clientHeight;
}
return windowHeight;
}

function alignContent() {
var containerName = "container";
if (document.getElementById) {
if (getWindowHeight() > 0) {
if (getWindowHeight() - document.getElementById(containerName).offsetHeight > 0) {
document.getElementById(containerName).style.position = "relative";
document.getElementById(containerName).style.top = getWindowHeight() / 2 - document.getElementById(containerName).offsetHeight / 2 + "px";
}
else {
document.getElementById(containerName).style.position = "static";
}
}
}
}

window.onload = function() {
alignContent();
}

window.onresize = function() {
alignContent();
}