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%; background-color:#dcdbdb");
	swfobject.createCSS("#container", "margin:0; width:100%; height:100%; min-width:1000px; min-height:700px;");
	swfobject.createCSS("*", "margin:0; padding:0");
	
	window.onresize = function() {
		var el = document.getElementById("container");
		var size = getViewportSize(); 
		el.style.width = size[0] < 770 ? "1000px" : "100%";
		el.style.height = size[1] < 390 ? "600px" : "100%";
	};
	window.onresize();
}

			var flashvars = {};
			
			var params = {};
			params.play = "false";
			params.menu = "false";
			params.salign = "tl";	
			//params.wmode = "transparent";
			params.allowscriptaccess = "always";
			params.allowFullScreen = "true";
		    var attributes = {};
		    attributes.id = "container";
					
			swfobject.embedSWF("index2.swf", "container", "100%", "100%", "8.0.0", "expressInstall/expressinstall.swf", flashvars, params, attributes);
		
		
if (swfobject.hasFlashPlayerVersion("8.0.0")) {
	swfobject.addDomLoadEvent(createFullBrowserFlash);
}