window.onload = function(){
	// Mark Bennett
	// Code to rewrite the swfs for the msie update
	// only affects ie on a pc
	var strBrowser = navigator.userAgent.toLowerCase();
	if(strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0){
		var theObjects = document.getElementsByTagName('object');
		var theObjectsLen = theObjects.length;
		for (var i = 0; i < theObjectsLen; i++) {
			if(theObjects[i].outerHTML){
			
				// does the object use the 'data' attribute?
				// if so msie completely ignores any <param> in the outerHTML
				// so lets ditch it, as msie doesn't use it, only mozilla etc
				if(theObjects[i].data){
					theObjects[i].removeAttribute('data');
				}
				
				theObjects[i].outerHTML = theObjects[i].outerHTML;
			}
		}
	}
}
