//var TITLE_WIDTH = 383;
//var TITLE_HEIGHT = 130;
var GAME_WIDTH = 760;
var GAME_HEIGHT = 520;

function placeContent(){
	var windowWidth = getWindowWidth();
	var windowHeight = getWindowHeight();
	
	var mainTable = document.getElementById("stage");
	var mainLeft = Math.max((windowWidth - GAME_WIDTH) / 2, 0)
	var mainTop = Math.max((windowHeight - GAME_HEIGHT) / 2, 0);
	mainTable.style.left = mainLeft + "px";
	mainTable.style.top = mainTop + "px";
}
		
function getWindowWidth(){
	var winW = -1;
	if (self.innerWidth) {
		winW = self.innerWidth;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		winW = document.documentElement.clientWidth;
	}
	return winW
}
function getWindowHeight(){
	var winH = -1;
	if (self.innerHeight) {
		winH = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		winW = document.documentElement.clientHeight;
	}
	return winH;
}
