
// <script language="JavaScript" type="text/javascript" src="http://www.w-e-b-manager.nl/global/resources/jvs/activex.js"></script>

//ediy v2
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;
}}}


/*
---- NoIEActivate v0.1 ----

Short 238 byte workaround requiring minimal HTML source changes to get rid of the
IE Activate warning and allow the user to interact with an applet without an
extra click.  Get rid of the problem without wasting and paying for too much extra
traffic because a silly workaround for a patent.

---- Instructions for use ----

Use

<script language="JavaScript" type="text/javascript" src="NoIEActivate.js"></script>

In your HTML source that refers to a flash applet add this line near the end
of the file, following the ActivationTest.html source.

You can place the NoIEActivate.js source in a folder if you update the file
path.

-------------------------------------------------------------------------------------
NOTE:    This script will make Internet Explorer display a security warning if you
         run it as a file from your local computer. Upload to your hosts server
         to get rid of the warning.
-------------------------------------------------------------------------------------

Contact: E-Mail "NoIEActivate (at) ediy (dot) co (dot) nz" if you find problems
         or have a suggestion regarding this script.

http://www.ediy.co.nz/internet-explorer-flash-applet-activation-fix-xidc19237.html

*/