var oFlashDetectionManager = new EstateWeb_Objects_FlashDetectionManager();
	oFlashDetectionManager.FlashTargetVersion = 6;
	
	function Page_Flash_OnLoad(){
		// event fires when page loads
		switch ( oFlashDetectionManager.Detect() ) {
			case true:
				Page_OnFlashDetectResult_Success();
				break;
			default:
				Page_OnFlashDetectResult_Failure();
				break;
		}
	}
	
	function Page_OnFlashDetectResult_Success(){
		var oFlashObject = new EstateWeb_Objects_FlashObjectManager(oFlashDetectionManager);
		oFlashObject.MovieWidth = "446";
		oFlashObject.MovieHeight = "132";
		oFlashObject.MovieURL = "swf/flash.swf";
		oFlashObject.Parameters.Add(new EstateWeb_Objects_FlashParameterItem("movie", "swf/flash.swf"));
		oFlashObject.Parameters.Add(new EstateWeb_Objects_FlashParameterItem("quality", "high"));
		oFlashObject.Parameters.Add(new EstateWeb_Objects_FlashParameterItem("wmode", "transparent"));
		oFlashObject.Render("pnlFlashMovie");
		document.getElementById('pnlFlashMovie').style.display = "block";
	}
	
	function Page_OnFlashDetectResult_Failure(){
		document.getElementById('pnlNonFlash').style.display = "block";
	}