function ieupdate(){
	var strBrowser = navigator.userAgent.toLowerCase();
	if (strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0) {
		var theObjects = document.getElementsByTagName('object');
		var theObjectsLen = theObjects.length;
		var theOuterHTML = new Array(theObjectsLen);
		
		for (var i = 0; i < theObjectsLen; i++) {
			if (theObjects[i].outerHTML) {
				if(theObjects[i].data) {
					theObjects[i].removeAttribute('data');
				}
				
				// Find the flash vars
				theChildNodes = theObjects[i].childNodes;
				theFlashVars = ""; 
				for (var k = 0; k < theChildNodes.length; k++) {
					theAttributes = theChildNodes[k].attributes;
					
					isFlashVars = false;
					for (var m = 0; m < theAttributes.length; m++) {
						if (theAttributes[m].nodeName.toLowerCase() == "value") {
							theFlashVars = theAttributes[m].nodeValue;
						}
						if ((theAttributes[m].nodeName.toLowerCase() == "name") && (theAttributes[m].nodeValue.toLowerCase() == "flashvars")) {
							isFlashVars = true;
							
						}
					}
					if (isFlashVars)
						break;
					else
						theFlashVars = "";
				}
				
				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 (var i = 0; i < objs.length; i++) {
			objs[i].outerHTML = "";
		}
	}
}