/* PluginDetect v0.1.3 by Eric Gerds */
var PluginDetect={firstobj:null,digit:0,id:0,head:null,plugin:null,version:[],ActiveXEnabled:null,getNum:function(A){if(!A){return null}var m=/[\d][\d\.\_,-]*/.exec(A);return m?m[0].replace(/[\.\_-]/g,","):null},hasMimeType:function(_3){var _4=new RegExp(name,"i"),s,t,z,M=_3.constructor==String?[_3]:_3;for(z=0;z<M.length;z++){s=navigator.mimeTypes[M[z]];if(s&&s.enabledPlugin){t=s.enabledPlugin;if(t.name&&t.description){return s}}}return null},findNavPlugin:function(N,_6){var i,re=new RegExp(N.constructor==String?N:N.join(".*"),"i");var _8=new RegExp(_6===false?".":"\\d","i");var _9=navigator.plugins;for(i=0;i<_9.length;i++){if((re.test(_9[i].description)&&_8.test(_9[i].description))||(re.test(_9[i].name)&&_8.test(_9[i].name))){return _9[i]}}return null},getAXO:function(_a){var _b,e;try{_b=new ActiveXObject(_a);return _b}catch(e){}return null},num:function(A){return (typeof A!="string"?false:(/\d/).test(A))},compareNums:function(_d,_e){if(!this.num(_d)||!this.num(_e)){return 0}var m1=_d.split(","),m2=_e.split(","),x,p=parseInt;for(x=0;x<m1.length;x++){if(p(m1[x],10)>p(m2[x],10)){return 1}if(p(m1[x],10)<p(m2[x],10)){return -1}}return 0},formatNum:function(num){if(!this.num(num)){return null}var n=num.replace(/[\.\_]/g,","),i;n=n.split(",").concat(["0","0","0","0"]);return n.slice(0,4).join(",")},init:function(_12){var $=this,IE;_12=_12.toLowerCase().replace(/\s/g,"");if(!$[_12]){return false}$.plugin=$[_12];if(typeof $.plugin.minversion=="undefined"){$.plugin.minversion={}}if(typeof $.plugin.version=="undefined"){$.plugin.version=null}if(typeof $.plugin.installed=="undefined"){$.plugin.installed=null}$.isIE=(/*@cc_on!@*/false);$.IEver=-1;if($.isIE){IE=(/msie\s*\d\.{0,1}\d*/i).exec(navigator.userAgent);if(IE){$.IEver=parseFloat((/\d.{0,1}\d*/i).exec(IE[0]),10)}if($.ActiveXEnabled==null){var _14=["Msxml2.XMLHTTP","Microsoft.XMLDOM","Msxml2.DOMDocument","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary"],x;$.ActiveXEnabled=false;for(x=0;x<_14.length;x++){if($.getAXO(_14[x])){$.ActiveXEnabled=true;break}}}if(!$.ActiveXEnabled){return false}}if($.IEver>=5.5){$.head=document.getElementsByTagName("head")[0];if(!$.head.firstChild){$.head.appendChild(document.createElement("object"))}$.firstobj=$.head.firstChild}return true},isMinVersion:function(_15,_16){var $=PluginDetect;if(!$.init(_15)||!$.num(_16)){return null}var p=$.plugin,m=p.minversion;_16=$.formatNum(_16);if(typeof m["a"+_16]=="undefined"){if($.IEver>=5.5&&p.getCodeBaseVersion){m["a"+_16]=$.isActiveXObject(_16)?true:false}else{if(p.installed==null){p.getVersion()}m["a"+_16]=p.version==null?null:($.compareNums(p.version,_16)>=0?true:false)}}$.cleanup();return m["a"+_16]},getVersion:function(_19){},cleanup:function(){var $=this,x,r=false;if($.firstobj){for(x=0;x<1000;x++){if($.firstobj.previousSibling){if($.firstobj.previousSibling.getAttribute("readyState")!=4){r=true}$.head.removeChild($.firstobj.previousSibling)}else{break}}}if(r&&typeof window.CollectGarbage!="undefined"){window.CollectGarbage()}$.firstobj=null},isActiveXObject:function(_1d){var $=this,result=false,obj,q="AAZA243";obj=document.createElement("object");$.head.insertBefore(obj,$.head.firstChild);obj.outerHTML="<object width=\"1\" height=\"1\" "+"id=\""+q+$.id+"\" "+"classid=\""+$.plugin.classID+"\" "+$.plugin.getCodeBaseVersion(_1d)+">"+($.plugin.HTML?$.plugin.HTML:"")+"</object>";if(document.getElementById(q+$.id)){result=document.getElementById(q+$.id).getAttribute("object")?true:false}$.id++;return result},search:function(_1f,min,max){},dummy1:0};PluginDetect.java={mimeType:"application/x-java-applet",classID:"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93",JavaVersions:["1.7.0.15","1.6.0.15","1.5.0.12","1.4.2.13","1.3.1.18"],searchJava:function(M){if(!M){return null}var G,e,x3,x4;var AXO=ActiveXObject;var T=M.split("."),J="JavaPlugin."+T[0]+T[1],v=T[0]+"."+T[1]+".";for(x3=T[2];x3>=0;x3--){for(x4=T[3];x4>=0;x4--){G=x4<10?"0"+x4:x4;try{new AXO(J+x3+"_"+G);return v+x3+"_"+G}catch(e){}}if(J+x3=="JavaPlugin.131"){return null}try{new AXO(J+x3);return v+x3}catch(e){}}return null},HTML:"<param name=\"code\" value=\"\" />",getCodeBaseVersion:function(v){var r=this.getDigits(v),$=PluginDetect;if($.compareNums(v,"1,4,1,02")<0){v=r[0]+","+r[1]+","+r[2]+","+r[3]}else{if($.compareNums(v,"1,5,0,02")<0){v=r[0]+","+r[1]+","+r[2]+","+r[3]+"0"}else{v=Math.round((parseFloat(r[0]+"."+r[1],10)-1.5)*10+5)+","+r[2]+","+r[3]+"0"+",0"}}return "codebase=\"#version="+v+"\""},getDigits:function(n){/([\d]+)[,_\.]([\d]+)[,_\.]([\d]+)[,_\.]([\d]+)/.test(n);return [RegExp.$1,RegExp.$2,RegExp.$3,RegExp.$4]},queryJava:function(){var e,j=window.java;try{if(j&&j.lang&&j.lang.System){return (j.lang.System.getProperty("java.version")+" ")}}catch(e){}return null},getVersion:function(){var _2e=null,$=PluginDetect;if(!$.isIE){var p1,p,mt;p=$.findNavPlugin(["Java","Plug-in"]);mt=$.hasMimeType(this.mimeType);this.installed=(mt||p)&&navigator.javaEnabled()?true:false;if(p){p1=$.getNum(p.description)}if(p1&&mt&&navigator.javaEnabled()){_2e=p1}if(!_2e&&(this.installed||!/firefox/i.test(navigator.userAgent))){p=this.queryJava();if(p){_2e=p;this.installed=true}}}else{var x,tmp=null;if($.IEver>=5.5){_2e=$.search()}else{for(x=0;x<this.JavaVersions.length;x++){tmp=this.searchJava(this.JavaVersions[x]);if(tmp){_2e=tmp;break}}}this.installed=_2e?true:false}this.version=$.formatNum($.getNum(_2e))}};