if (!window.Spark) Spark=new Object(); Spark.__namespace=true;
if (!window.Spark.Web) Spark.Web=new Object(); Spark.Web.__namespace=true;
if (!window.Spark.Web.UI) Spark.Web.UI=new Object(); Spark.Web.UI.__namespace=true;
if (!window.Spark.Web.UI.WebControls) Spark.Web.UI.WebControls=new Object(); Spark.Web.UI.WebControls.__namespace=true;
if (!window.Spark.Web.UI.WebControls.Media) Spark.Web.UI.WebControls.Media=new Object();

Spark.Web.UI.WebControls.Media.OnFlashUrlChange=function(evt)
{
	if (!evt) evt=window.event;
	var Source=(evt.srcElement?evt.srcElement:evt.target);
	if (evt.propertyName=="src")
	{
		Source.innerHTML=Spark.Web.HttpRequest.BuildFlash(Source.getAttribute("src"),
			(Source.style.width!=""?parseInt(Source.style.width.replace(/\D/g,"")):Source.scrollWidth),
			(Source.style.height!=""?parseInt(Source.style.height.replace(/\D/g,"")):Source.scrollHeight));
	}
}