function AddFlashObjectToElement(element, name, url, flashVersion, height, width, alternativeContent)
{
	//if (flashDetect() >= flashVersion)
	//{
	var fo = new FlashObject(url, name, width, height, flashVersion);
		fo.addVariable("thePath", "/education/ladybuglife/");
		if (url == 'Files/mof_airship/intro.swf') {
			fo.addParam("base", "/Files/mof_airship/");
		}
		fo.write(element.getAttribute("id"));
		//var scriptStr = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+flashVersion+",0,0,0\" width=\""+width+"\" height=\""+height+"\" id=\""+name+"\"><param name=\"movie\" value=\""+url+"\"/> <param name=\"menu\" value=\"false\"/><param name=\"WMode\" value=\"transparent\"/> <param name=\"quality\" value=\"high\"/> <param name=\"bgcolor\" value=\"#FFFFFF\"/> <embed src=\"" + url + "\" menu=\"false\" quality=\"high\" bgcolor=\"#FFFFFF\" wmode=\"transparent\" width=\""+width+"\" height=\""+height+"\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed></object>";
		//element.innerHTML = scriptStr;
	//}
	//else
	//{
	//element.innerHTML = alternativeContent;
	//}
}
