/*
activateActiveX
---------------
License:
activateActiveX is Copyright (C) 2006 Jason Baker (therippa AT gmail.com). It is available as open source code from:
http://therippa.blogspot.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
*/


if (navigator.appName == "Microsoft Internet Explorer") {

var arrElements = new Array(3);
arrElements[0] = "object";
arrElements[1] = "embed";
arrElements[2] = "applet";


for (n = 0; n < arrElements.length; n++) {

replaceObj = document.getElementsByTagName(arrElements[n]);

for (i = 0; i < replaceObj.length; i++ ) {

parentObj = replaceObj[i].parentNode;

newHTML = parentObj.innerHTML;

parentObj.removeChild(replaceObj[i]);

parentObj.innerHTML = newHTML;

}
}
}
