function ieupdate(){
	 var strBrowser = navigator.userAgent.toLowerCase();
	 if(strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0)
	 {
		  var span = document.getElementById('javamessage');
		  var theObjects = document.getElementsByTagName('object');
		  var theObjectsLen = theObjects.length;
		  var count = 0;
		  for (var i = 0; i < theObjectsLen; i++) 
		  {
			   if(theObjects[i].outerHTML)
			   {
					if(theObjects[i].data)
						 theObjects[i].removeAttribute('data');
					var theParams = theObjects[i].getElementsByTagName("param");
					var theParamsLength = theParams.length;
					var theFlashVars = "";
					var c = 0;
					for (var j = 0; j < theParamsLength; j++)
					{
			  			//span.innerHTML = span.innerHTML + theParams[j].name + " : " + theParams[j].value + "<br>";

						  if(theParams[j].name.toLowerCase() == 'flashvars')
						  {
								theFlashVars = theParams[j].value;
								if(count==c)
								{
									count++;
									break;
								}
								c++;
						  }
					}
					//span.innerHTML = span.innerHTML + "<br><br>";
					var theOuterHTML = theObjects[i].outerHTML;
					var re = /<param name="FlashVars" value="">/ig;
					theOuterHTML = theOuterHTML.replace(re,"<param name='FlashVars' value='" + theFlashVars + "'>");
					theObjects[i].outerHTML = theOuterHTML;
			   }
		  }
	 }
}

window.onunload = function() {
 if (document.getElementsByTagName) {
  var objs = document.getElementsByTagName("object");
  for (i=0; i<objs.length; i++) {
   objs[i].outerHTML = "";
  }
 }
}