window.onresize = setSize;
window.onload = setSize;

var minW = 960;
var minH = 540;

function setSize() {
	var screenH = document.body.clientHeight;
	var screenW = document.body.clientWidth;
	var H = "100%";
	var W = "100%";
	
	if (screenH <= minH) H = minH + "px";
	if (screenW <= minW) W = minW + "px";

	if (document.layers) obj = document.layers['flashcontent'];
	if (document.all) obj = document.all.flashcontent.style;
	if (document.getElementById &&!document.all) obj = document.getElementById('flashcontent').style;

	obj.height = H;
	obj.width = W;
}

function setStage(h){
	minH = h;
	setSize();
}