/* PluginDetect v0.5.0 [ QT Flash WMP ] by Eric Gerds www.pinlady.net/PluginDetect */ 
if(!PluginDetect){
var PluginDetect={getNum:function(A,_2){
if(!this.num(A)){
return null;
}
var m;
if(typeof _2=="undefined"){
m=/[\d][\d\.\_,-]*/.exec(A);
}else{
m=(new RegExp(_2)).exec(A);
}
return m?m[0].replace(/[\.\_-]/g,","):null;
},hasMimeType:function(_4){
if(PluginDetect.isIE){
return null;
}
var s,t,z,M=_4.constructor==String?[_4]:_4;
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,_7){
var _8=N.constructor==String?N:N.join(".*"),numS=_7===false?"":"\\d";
var i,re=new RegExp(_8+".*"+numS+"|"+numS+".*"+_8,"i");
var _a=navigator.plugins;
for(i=0;i<_a.length;i++){
if(re.test(_a[i].description)||re.test(_a[i].name)){
return _a[i];
}
}
return null;
},getAXO:function(_b){
var _c,e;
try{
_c=new ActiveXObject(_b);
return _c;
}
catch(e){
}
return null;
},num:function(A){
return (typeof A!="string"?false:(/\d/).test(A));
},compareNums:function(_e,_f){
if(!this.num(_e)||!this.num(_f)){
return 0;
}
if(this.plugin&&this.plugin.compareNums){
return this.plugin.compareNums(_e,_f);
}
var m1=_e.split(","),m2=_f.split(","),x,p=parseInt;
for(x=0;x<Math.min(m1.length,m2.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 x,n=num.replace(/\s/g,"").replace(/[\.\_]/g,",").split(",").concat(["0","0","0","0"]);
for(x=0;x<4;x++){
if(/^(0+)(.+)$/.test(n[x])){
n[x]=RegExp.$2;
}
}
return n[0]+","+n[1]+","+n[2]+","+n[3];
},initScript:function(){
var $=this,IE;
$.isIE=/*@cc_on!@*/false;
$.IEver=-1;
$.ActiveXEnabled=false;
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);
}
var _14,x;
_14=["ShockwaveFlash.ShockwaveFlash","Msxml2.XMLHTTP","Microsoft.XMLDOM","Msxml2.DOMDocument","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];
for(x=0;x<_14.length;x++){
if($.getAXO(_14[x])){
$.ActiveXEnabled=true;
break;
}
}
}
if($.isIE){
$.head=typeof document.getElementsByTagName!="undefined"?document.getElementsByTagName("head")[0]:null;
}
},init:function(_15){
if(typeof _15!="string"){
return -3;
}
_15=_15.toLowerCase().replace(/\s/g,"");
var $=this,IE,p;
if(typeof $[_15]=="undefined"){
return -3;
}
p=$[_15];
$.plugin=p;
if(typeof p.installed=="undefined"){
p.installed=null;
p.version=null;
p.getVersionDone=null;
}
$.garbage=false;
if($.isIE&&!$.ActiveXEnabled){
return -2;
}
return 1;
},isMinVersion:function(_17,_18,_19){
;
return -3;
},getVersion:function(_1c,_1d){
;
var $=PluginDetect,i=$.init(_1c);
if(i<0){
return null;
}
var p=$.plugin;
if(typeof _1d=="undefined"){
_1d=null;
}
if(p.getVersionDone!=1){
p.getVersion(null,_1d);
if(p.getVersionDone==null||p.version!=null){
p.getVersionDone=1;
}
}
$.cleanup();
return p.version;
;
return null;
},cleanup:function(){
;
var $=this;
if($.garbage&&typeof window.CollectGarbage!="undefined"){
window.CollectGarbage();
}
;
},isActiveXObject:function(_21){
;
var $=this,result,e,s="<object width=\"1\" height=\"1\" "+"style=\"display:none\" "+$.plugin.getCodeBaseVersion(_21)+">"+$.plugin.HTML+"</object>";
if($.head.firstChild){
$.head.insertBefore(document.createElement("object"),$.head.firstChild);
}else{
$.head.appendChild(document.createElement("object"));
}
$.head.firstChild.outerHTML=s;
try{
$.head.firstChild.classid=$.plugin.classID;
}
catch(e){
}
result=false;
try{
if($.head.firstChild.object){
result=true;
}
}
catch(e){
}
try{
if(result&&$.head.firstChild.readyState<4){
$.garbage=true;
}
}
catch(e){
}
$.head.removeChild($.head.firstChild);
return result;
;
},codebaseSearch:function(min){
var $=this;
if(typeof min!="undefined"){
return $.isActiveXObject(min);
}
;
var _25=[0,0,0,0],x,y,A=$.plugin.digits,t=function(x,y){
var _28=(x==0?y:_25[0])+","+(x==1?y:_25[1])+","+(x==2?y:_25[2])+","+(x==3?y:_25[3]);
return $.isActiveXObject(_28);
};
var _29,tmp;
var _2a=false;
for(x=0;x<A.length;x++){
_29=A[x]*2;
_25[x]=0;
for(y=0;y<20;y++){
if(_29==1&&x>0&&_2a){
break;
}
if(_29-_25[x]>1){
tmp=Math.round((_29+_25[x])/2);
if(t(x,tmp)){
_25[x]=tmp;
_2a=true;
}else{
_29=tmp;
}
}else{
if(_29-_25[x]==1){
_29--;
if(!_2a&&t(x,_29)){
_2a=true;
}
break;
}else{
if(!_2a&&t(x,_29)){
_2a=true;
}
break;
}
}
}
if(!_2a){
return null;
}
}
return _25.join(",");
;
},dummy1:0};
}
PluginDetect.initScript();
PluginDetect.onJavaDetectionDone=function(f,jar){
var $=this,j=$.java,z;
if(j.getVersionDone!=1){
z=$.isMinVersion("Java","0",jar);
if(z==-3){
z=$.getVersion("Java",jar);
}
}
if(j.installed!=null&&j.installed!=-0.5&&j.installed!=0.5){
if(typeof f=="function"){
f();
}
return;
}
;
};
PluginDetect.onWindowLoaded=function(f){
;
};
;
PluginDetect.quicktime={mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:"<param name=\"src\" value=\"A14999.mov\" /><param name=\"controller\" value=\"false\" />",getCodeBaseVersion:function(v){
var r=v.replace(/[\.\_]/g,",").split(","),$=PluginDetect;
if($.compareNums(v,"7,5,0,0")>=0){
v=r[0]+","+r[1]+r[2]+","+r[3];
}
return "codebase=\"#version="+v+"\"";
},digits:[16,16,16,0],clipTo3digits:function(v){
if(v==null||typeof v=="undefined"){
return null;
}
var t;
t=v.split(",");
return t[0]+","+t[1]+","+t[2]+",0";
},getVersion:function(){
var _35=null,p,$=PluginDetect;
var _36=true;
if(!$.isIE){
if(navigator.platform&&(/linux/i).test(navigator.platform)){
_36=false;
}
if(_36){
p=$.findNavPlugin(["QuickTime","(Plug-in|Plugin)"]);
if(p&&p.name&&$.hasMimeType(this.mimeType)){
_35=$.getNum(p.name);
}
}
this.installed=_35?1:-1;
}else{
var obj;
if($.IEver>=this.minIEver&&$.getAXO(this.progID0)){
_35=$.codebaseSearch();
}else{
obj=$.getAXO(this.progID);
if(obj&&obj.QuickTimeVersion){
_35=obj.QuickTimeVersion.toString(16);
_35=_35.charAt(0)+"."+_35.charAt(1)+"."+_35.charAt(2);
}
}
this.installed=_35?1:($.getAXO(this.progID0)?0:-1);
}
this.version=this.clipTo3digits($.formatNum(_35));
}};
;
PluginDetect.flash={mimeType:["application/x-shockwave-flash","application/futuresplash"],progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){
var _71=function(A){
if(!A){
return null;
}
var m=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(A);
return m?m[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null;
};
var p,$=PluginDetect,e,i,version=null,AXO=null,majV=null;
if(!$.isIE){
p=$.findNavPlugin("Flash");
if(p&&p.description&&$.hasMimeType(this.mimeType)){
version=_71(p.description);
}
}else{
for(i=15;i>2;i--){
AXO=$.getAXO(this.progID+"."+i);
if(AXO){
majV=i.toString();
break;
}
}
if(majV=="6"){
try{
AXO.AllowScriptAccess="always";
}
catch(e){
return "6,0,21,0";
}
}
try{
version=_71(AXO.GetVariable("$version"));
}
catch(e){
}
if(!version&&majV){
version=majV;
}
}
this.installed=version?1:-1;
this.version=$.formatNum(version);
return true;
}};
;
PluginDetect.instantiate=function(_76,_77,_78,div){
var s=function(_7b){
var c=_7b.style;
c.border="0px";
c.width="1px";
c.height="1px";
c.padding="0px";
c.margin="0px";
c.visibility="hidden";
};
var e,d=document,tag1="<"+_76+" width=\"1\" height=\"1\" "+_77+">"+_78+"</"+_76+">",body=(d.getElementsByTagName("body")[0]||d.body);
if(typeof div=="undefined"){
div=d.createElement("div");
if(body){
body.appendChild(div);
}else{
try{
d.write("<div>o</div><div>"+tag1+"</div>");
body=(d.getElementsByTagName("body")[0]||d.body);
body.removeChild(body.firstChild);
div=body.firstChild;
}
catch(e){
try{
body=d.createElement("body");
d.getElementsByTagName("html")[0].appendChild(body);
body.appendChild(div);
div.innerHTML=tag1;
s(div);
return [div,body];
}
catch(e){
}
}
s(div);
return [div,div];
}
}
if(div&&div.parentNode){
try{
div.innerHTML=tag1;
}
catch(e){
}
}
s(div);
return [div,div];
};
;
PluginDetect.windowsmediaplayer={mimeType:["application/x-mplayer2","application/asx"],progID:"wmplayer.ocx",classID:"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6",getVersion:function(){
var _7e=null,$=PluginDetect,tmp=null;
this.installed=-1;
if(!$.isIE){
if($.hasMimeType(this.mimeType)){
if($.findNavPlugin(["Windows","Media","(Plug-in|Plugin)"],false)||$.findNavPlugin(["Flip4Mac","Windows","Media"],false)){
this.installed=0;
}
var q=(/rv\:(1\.[0-7]|0).*Gecko/).test(navigator.userAgent);
if(!q&&$.findNavPlugin(["Windows","Media","Firefox Plugin"],false)){
var _80=$.instantiate("object","type=\""+this.mimeType[0]+"\"","");
if(_80[0]&&_80[1]){
if(_80[0].firstChild){
_7e=_80[0].firstChild.versionInfo;
}
if(_80[1].parentNode){
_80[1].parentNode.removeChild(_80[1]);
}
}
} else if ($.findNavPlugin(["Windows","Media","Player"],false)){
 _7e='-1';
}
}
}else{
tmp=$.getAXO(this.progID);
if(tmp){
_7e=tmp.versionInfo;
}
}
if(_7e){
this.installed=1;
}
this.version=$.formatNum(_7e);
}};

