//trap onload event
//window.onload = function ()
//{
	//OS Detect for Windows Platform
	var os_type = navigator.platform;
	myMatch = new RegExp("win","i");
	os_type = os_type.match(myMatch);

	//Determine browser, we only need this for Internet Explorer
	if (os_type!=null && (os_type.length>0) && (navigator.appName == "Microsoft Internet Explorer"))
	{
		//set object for brevity
		var arrElements = new Array(2);
		arrElements[0] = "object";
		arrElements[1] = "embed";

		for(x=0; x < arrElements.length; x++)
		{
			var replaceObj = document.getElementsByTagName(arrElements[x]);

			//loop over element objects returned
			for (i = 0; i < replaceObj.length; i++ )
			{
				//set parent object for brevity
				parentObj = replaceObj[i].parentNode;

				//grab the html inside of the element before removing it from the DOM
				var newHTML ='';

				flashType=replaceObj[i].type;
				flashHeight=replaceObj[i].height;
				flashWidth=replaceObj[i].width;
				flashData=replaceObj[i].data;
				flashClassID=replaceObj[i].classid;
				flashCodebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0';
				flashID=replaceObj[i].id;

				newHTML+='<object';
				
				if(flashType.length>0)
					newHTML+=' type="'+flashType+'"';
				
				if(flashHeight.length>0)
					newHTML+=' height="'+flashHeight+'"';

				if(flashWidth.length>0)
					newHTML+=' width="'+flashWidth+'"';
					
				if(flashData.length>0)
					newHTML+=' data="'+flashData+'"';

				if(flashClassID.length>0)
					newHTML+=' classid="'+flashClassID+'"';

				if(flashID.length>0)
					newHTML+=' id="'+flashID+'"';

				newHTML+='>';

				var flashVars='';
				tParams = new Array(replaceObj[i].childNodes.length);
				for(n = 0; n < replaceObj[i].childNodes.length; n++)
				{
					paramType=replaceObj[i].childNodes[n].nodeName;
					paramName=replaceObj[i].childNodes[n].name;
					paramValue=replaceObj[i].childNodes[n].value;

					newHTML+='<param name="'+paramName+'" value="'+paramValue+'"/>';
				}

				newHTML+='</object>';

				//Return New Data
				//alert(newHTML);
				parentObj.innerHTML=newHTML;
			}
		}
	}
//}
