/*
 * script modified by Andrew (code was placed into a function)
 * This code fixes an IE nuance that causes the user
 * to have to click on a Flash object or Java applet to give it focus
 * before being able to interact with it. Without this fix,
 * if a button or link on a Flash movie is clicked by the user, it will
 * not respond on the intial click because the initial click only gives the 
 * object focus (Or if an object is to respond to a mouse-over event, the object
 * would first have to be clicked before it could respond). The code was placed into 
 * a function because otherwise it will cause the page to appear to 'hang' (page and 
 * Flash object would load fine and script would fix the focus problem, but the page load progress bar
 * would never complete on initial page load. This script should be included in the <head> section of 
 * a webpage, and the activateObject method should be called by the <body> tag's onload() event.
 * 
 */
function NoIEActivate(){
	n=navigator.userAgent;
    w=n.indexOf("MSIE");
	if((w>0)&&(parseInt(n.charAt(w+5))>5)){
		T=["object","embed","applet"];
		for(j=0;j<2;j++){
			E=document.getElementsByTagName(T[j]);
			for(i=0;i<E.length;i++){
				P=E[i].parentNode;
				H=P.innerHTML;
				P.removeChild(E[i]);
				P.innerHTML=H;
			}
		}
		return;
	}
}