var HttpManager = new EstateWeb_Objects_HTTPManager();
	//init
	
	var oFlashDetectionManager = new EstateWeb_Objects_FlashDetectionManager();
	oFlashDetectionManager.FlashTargetVersion = 6;
	
	function Page_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 = "700";
		oFlashObject.MovieHeight = "198";
		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("pnlFlashMenu");
		
		
		document.getElementById("pnlFlashMenu").style.display = "block";
	}
	
	function Page_OnFlashDetectResult_Failure(){
		document.getElementById("pnlNonFlashMenu").style.display = "block";
	}