var requiredMajorVersion = 9;
var requiredMinorVersion = 0;
var requiredRevision = 1;

window.onload = init;
window.onresize = resize;

var mwidth = 1239;
var mheight = 723;

function init() {
	resize();
}

function resize() {
	var dim = getClientDimensions();
	var o = document.getElementById("spiritofspace");
	if(o) {

		if(dim.height > mheight) {
			o.style.height = Math.round((dim.height - mheight) / 2) + "px";
		}else{
			o.style.height = "1px";
		}
	}
}



function getClientDimensions() {
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	return {width:x, height:y}
}
