/*
	theObjects = document.getElementsByTagName("object"); 
	for (var i = 0; i < theObjects.length; i++) { 
		theObjects[i].outerHTML = theObjects[i].outerHTML; 
	}
*/

/*******************************************************
 * usages: 
  <script language="javascript" src="ieupdate.js"></script>
  <script language="javascript">
	  playObject( flashfilePath/name, width, height );
  </script>
 *******************************************************/

function playObject( sObjSrc, nWidth, nHeight, sWMode ){
  document.write("<object id='myFlash' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
  document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0' ");
  //document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' ");
  document.write("width='" + nWidth + "' height='" + nHeight + "'>");
  document.write("<param name='movie' value='" + sObjSrc + "'>");
  document.write("<param name='quality' value='high'>");
  if( sWMode == "1" ) document.write("<param name='wmode' value='transparent'>");
  document.write("<embed src='" + sObjSrc + "' ");
  document.write("quality='high' ");
  document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' ");
  document.write("type='application/x-shockwave-flash' ");
  document.write("width='" + nWidth + "' height='" + nHeight + "'></embed> ");
  document.write("</object>");
}
