// JavaScript Document

//<![CDATA[
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%; overflow:auto; margin:0; padding:0; ");
	swfobject.createCSS("body", "height:100%; overflow:auto; margin:0; padding:0; text-align:center; background-color: #FFFFFF;");
	swfobject.createCSS("#container", "margin:0; padding:0; width:100%; height:100%; min-width:906px; min-height:850px; z-index:0");
	window.onresize = function() {
		var el = document.getElementById("container");
		var size = getViewportSize(); 
		el.style.width = size[0] < 906 ? "906px" : "100%";
		el.style.height = size[1] < 850 ? "850px" : "100%";
	};
	window.onresize();
}
var flashvars = {};
var params = {menu: "false", allowFullScreen: "true", bgcolor: "#FFFFFF", scale:"noscale", allowScriptAccess:"always", wmode:"transparent"};
var attributes = {id: "main", name: "content"};
swfobject.embedSWF("main.swf", "content", "100%", "100%", "9.0.1","expressInstall.swf", flashvars, params, attributes);
if (swfobject.hasFlashPlayerVersion("9.0.1")) {
	swfobject.addDomLoadEvent(createFullBrowserFlash);
}
//]]>
