/* generic onload */
function genericOnLoad(call) {
	if(typeof window.addEventListener != 'undefined') {window.addEventListener('load', call, false);}
	else if(typeof document.addEventListener != 'undefined') {document.addEventListener('load', call, false);}
	else if(typeof window.attachEvent != 'undefined') {window.attachEvent('onload', call);}
	else {
		if(typeof window.onload == 'function') {var existing = onload;window.onload = function() {existing();call;};} 
		else {window.onload = call;}
	}
}
genericOnLoad(ie_activex_fix);

function ie_activex_fix() {
	if(!document.getElementsByTagName) {return;}
	var b = navigator.userAgent.toLowerCase();
	if(b.indexOf("msie") > -1 && b.indexOf("mac") < 0){
		if(parseInt(b.charAt(b.indexOf("msie")+5)) >= 6){
			o = document.getElementsByTagName("OBJECT");
			for(var i=0;i<o.length;i++) {
				o[i].outerHTML = o[i].outerHTML;
			}
		}
	}
}
