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:"+swfobject_config.height+";");
	swfobject.createCSS("body", "height:"+swfobject_config.height+";");
	swfobject.createCSS("#container", "margin:0; width:"+swfobject_config.width+"; height:"+swfobject_config.height+"; min-width:"+swfobject_config.minWidth+"px; min-height:"+swfobject_config.minHeight+"px;");
	window.onresize = function() {
		var el = document.getElementById("container");
		var size = getViewportSize(); 
		el.style.width = size[0] < swfobject_config.minWidth ? swfobject_config.minWidth+"px" : swfobject_config.width;
		el.style.height = size[1] < swfobject_config.minHeight ? swfobject_config.minHeight+"px" : swfobject_config.height;
	};
	window.onresize();
}

window.onload = function() {
	if (typeof swfobject_config == "undefined") return;
	swfobject.embedSWF(swfobject_config.src, swfobject_config.id, swfobject_config.width, swfobject_config.height, swfobject_config.version, swfobject_config.expressInstall, swfobject_config.flashvars, swfobject_config.params, swfobject_config.attributes);
}

if (swfobject.hasFlashPlayerVersion("6.0.0")) {
	swfobject.addDomLoadEvent(createFullBrowserFlash);
}

