/// <reference path="dpr.global.js"/>
/// <reference path="dpr.util.js"/>

/// <summary>functions to facilitate flash/page interaction</summary>
dpr.flash = {};

dpr.flash.resize = function (objID, newWidth, newHeight)
{
	var theObj = document.getElementById(objID);
	theObj.style.width = newWidth + 'px';
	theObj.style.height = newHeight + 'px';
	
	// safari 3.1 doesn't respect flash 100% height, therefore we need to force it (JM, 7/4/08)
	if (theObj.childNodes && 
		theObj.childNodes.length != 0 && 
		theObj.childNodes[0].type == "application/x-shockwave-flash" && 
		theObj.childNodes[0].offsetHeight < newHeight)
	{
		theObj.childNodes[0].style.position = "relative";
	}
}