var disableAFC;
var brAgt=navigator.appName;
//The following code disables this script on the lcdtv page.
//Put the URL in a variable
var lcdtvcheck = document.location;
var lcdtvcheckResult = false;
//Change casting of variable to string
lcdtvcheck = lcdtvcheck.toString();
//Break up URL into segments
lcdtvcheckArr = lcdtvcheck.split("/");
//Checks if user is in the /displaytechnologies/discover_lcd site
//old code: [if (lcdtvcheckArr[3]=="lcdtv"){]
if (lcdtvcheckArr[4]=="discover_lcd"){
	if (lcdtvcheckArr[5]==""){
		lcdtvcheckResult = true;
	}else{
		//Removes query string so it doesn't confuse the value
		lcdtvcheckForQuery = lcdtvcheckArr[5].split("?");
		if (lcdtvcheckForQuery[0]=="index.aspx"){
			lcdtvcheckResult = true;
		}
	}
}
/* The following checks for 3 conditions before it follows through and replaces all object code:
	1. Is the hosting browser IE?
	2. Is the page being displayed /displaytechnologies/discover_lcd/index.aspx?
	3. Is this page using renderFlash.js to load flash movies? RenderFlash.js is programmed to set the variable, "disableAFC=true" to disable the script below. */
if((brAgt=="Microsoft Internet Explorer")&&(lcdtvcheckResult!=true)&&(disableAFC!=true)) {
	var aArr = new Array("object","embed","applet");
    for(n=0;n<aArr.length;n++){
        spObj=document.getElementsByTagName(aArr[n]);
	    for(i=0;i<spObj.length;i++){
	        pObj=spObj[i].parentNode;tmpHTML=pObj.innerHTML;pObj.removeChild(spObj[i]);pObj.innerHTML=tmpHTML;
	    }
    }
}




