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;
			}
		}
	}
}

//When the page loads:
/*window.onload = function()
{	
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = objs[i].outerHTML; //Get the HTML content of each object tag and replace it with itself.
		}
	}
}*/
//When the page unloads:
window.onunload = function()
{
	if (document.getElementsByTagName) {
		var objs = document.getElementsByTagName("object"); //Get all the tags of type object in the page.
		for (i=0; i<objs.length; i++)
		{
			objs[i].outerHTML = ""; //Clear out the HTML content of each object tag to prevent an IE memory leak issue.
		}
	}
}
