function getViewportSize() {
	var size = [0, 0];
	if (typeof window.innerWidth != "undefined") {
		size = [window.innerWidth, window.innerHeight];
	}
	else if (typeof document.documentElement != "undefined" && typeof document.documentElement.clientWidth != "undefined" && document.documentElement.clientWidth != 0) {
		size = [document.documentElement.clientWidth, document.documentElement.clientHeight];
	}
	else {
		size = [document.getElementsByTagName("body")[0].clientWidth, document.getElementsByTagName("body")[0].clientHeight];
	}
	return size;
}

function createFullBrowserFlash() {
	swfobject.createCSS("html", "height:100%;");
	swfobject.createCSS("body", "height:100%;");
	swfobject.createCSS("#flashcontent", "margin:0; width:100%; height:100%; min-width:" + minWidth + "px; min-height:" + minHeight + "px;");
	window.onresize = function() {
		var el = document.getElementById("container");
		var size = getViewportSize();
		el.style.width = size[0] < minWidth ? minWidth + "px" : "100%";
		el.style.height = size[1] < minHeight ? minHeight + "px" : "100%";
	};
	window.onresize();
}