/* -------------------------------- TV on line player JS --------------------------------*/

if(!PluginDetect){var PluginDetect={getNum:function(b,c){if(!this.num(b)){return null
}var a;
if(typeof c=="undefined"){a=/[\d][\d\.\_,-]*/.exec(b)
}else{a=(new RegExp(c)).exec(b)
}return a?a[0].replace(/[\.\_-]/g,","):null
},hasMimeType:function(c){if(PluginDetect.isIE){return null
}var b,a,d,e=c.constructor==String?[c]:c;
for(d=0;
d<e.length;
d++){b=navigator.mimeTypes[e[d]];
if(b&&b.enabledPlugin){a=b.enabledPlugin;
if(a.name||a.description){return b
}}}return null
},findNavPlugin:function(g,d){var a=g.constructor==String?g:g.join(".*"),e=d===false?"":"\\d",b,c=new RegExp(a+".*"+e+"|"+e+".*"+a,"i"),f=navigator.plugins;
for(b=0;
b<f.length;
b++){if(c.test(f[b].description)||c.test(f[b].name)){return f[b]
}}return null
},AXO:window.ActiveXObject,getAXO:function(b,a){var f=null,d,c=false;
try{f=new this.AXO(b);
c=true
}catch(d){}if(typeof a!="undefined"){delete f;
return c
}return f
},num:function(a){return(typeof a!="string"?false:(/\d/).test(a))
},compareNums:function(g,e){var d=this,c,b,a,f=window.parseInt;
if(!d.num(g)||!d.num(e)){return 0
}if(d.plugin&&d.plugin.compareNums){return d.plugin.compareNums(g,e)
}c=g.split(",");
b=e.split(",");
for(a=0;
a<Math.min(c.length,b.length);
a++){if(f(c[a],10)>f(b[a],10)){return 1
}if(f(c[a],10)<f(b[a],10)){return -1
}}return 0
},formatNum:function(b){if(!this.num(b)){return null
}var a,c=b.replace(/\s/g,"").replace(/[\.\_]/g,",").split(",").concat(["0","0","0","0"]);
for(a=0;
a<4;
a++){if(/^(0+)(.+)$/.test(c[a])){c[a]=RegExp.$2
}}if(!(/\d/).test(c[0])){c[0]="0"
}return c[0]+","+c[1]+","+c[2]+","+c[3]
},initScript:function(){var $=this,userAgent=navigator.userAgent;
$.isIE=
/*@cc_on!@*/
false;
$.IEver=$.isIE&&((/MSIE\s*(\d\.?\d*)/i).exec(userAgent))?parseFloat(RegExp.$1,10):-1;
$.ActiveXEnabled=false;
if($.isIE){var x,progid=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];
for(x=0;
x<progid.length;
x++){if($.getAXO(progid[x],1)){$.ActiveXEnabled=true;
break
}}$.head=typeof document.getElementsByTagName!="undefined"?document.getElementsByTagName("head")[0]:null
}$.isGecko=!$.isIE&&typeof navigator.product=="string"&&(/Gecko/i).test(navigator.product)&&(/Gecko\s*\/\s*\d/i).test(userAgent)?true:false;
$.GeckoRV=$.isGecko?$.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(userAgent)?RegExp.$1:"0.9"):null;
$.isSafari=!$.isIE&&(/Safari\s*\/\s*\d/i).test(userAgent)?true:false;
$.isChrome=(/Chrome\s*\/\s*\d/i).test(userAgent)?true:false;
$.onWindowLoaded(0)
},init:function(c,a){if(typeof c!="string"){return -3
}c=c.toLowerCase().replace(/\s/g,"");
var b=this,d;
if(typeof b[c]=="undefined"){return -3
}d=b[c];
b.plugin=d;
if(typeof d.installed=="undefined"||a==true){d.installed=null;
d.version=null;
d.version0=null;
d.getVersionDone=null;
d.$=b
}b.garbage=false;
if(b.isIE&&!b.ActiveXEnabled){if(b.plugin!=b.java){return -2
}}return 1
},isMinVersion:function(g,e,c,b){
var f=PluginDetect,d=f.init(g);
if(d<0){return d
}if(typeof e=="number"){e=e.toString()
}if(typeof e!="string"){e="0"
}if(!f.num(e)){return -3
}e=f.formatNum(e);
var a=-1,h=f.plugin;
if(h.getVersionDone!=1){h.getVersion(c,b);
if(h.getVersionDone===null){h.getVersionDone=1
}}if(h.version!==null||h.installed!==null){if(h.installed<=0.5){a=h.installed
}else{a=(h.version===null?0:(f.compareNums(h.version,e)>=0?1:-1))
}}f.cleanup();
return a;
;
return -3
},getVersion:function(e,b,a){
return null
},getInfo:function(f,c,b){var a={};
;
return a
},cleanup:function(){
},isActiveXObject:function(b){
},codebaseSearch:function(c){var e=this;
if(!e.ActiveXEnabled){return null
}if(typeof c!="undefined"){return e.isActiveXObject(c)
}
},dummy1:0}
}PluginDetect.onDetectionDone=function(g,e,d,a){
return -1
};
PluginDetect.onWindowLoaded=function(c){
};
;
PluginDetect.flash={mimeType:["application/x-shockwave-flash","application/futuresplash"],progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var c=function(i){if(!i){return null
}var e=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(i);
return e?e[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null
};
var j,g=this.$,h,f,b=null,a=null,d=null;
if(!g.isIE){j=g.findNavPlugin("Flash");
if(j&&j.description&&g.hasMimeType(this.mimeType)){b=c(j.description)
}}else{for(f=15;
f>2;
f--){a=g.getAXO(this.progID+"."+f);
if(a){d=f.toString();
break
}}if(d=="6"){try{a.AllowScriptAccess="always"
}catch(h){return"6,0,21,0"
}}try{b=c(a.GetVariable("$version"))
}catch(h){}if(!b&&d){b=d
}}this.installed=b?1:-1;
this.version=g.formatNum(b);
return true
}};
;
PluginDetect.div=null;
PluginDetect.pluginSize=1;
PluginDetect.DOMbody=null;
PluginDetect.uninstantiate=function(a){var c,b=this;
if(!a){return
}try{if(a[0]&&a[0].firstChild){a[0].removeChild(a[0].firstChild)
}if(a[0]&&b.div){b.div.removeChild(a[0])
}if(b.div&&b.div.childNodes.length==0){b.div.parentNode.removeChild(b.div);
b.div=null;
if(b.DOMbody&&b.DOMbody.parentNode){b.DOMbody.parentNode.removeChild(b.DOMbody)
}b.DOMbody=null
}a[0]=null
}catch(c){}};
PluginDetect.getObject=function(b,a){var f,c=this,d=null;
try{if(b&&b[0]&&b[0].firstChild){d=b[0].firstChild
}}catch(f){}try{if(a&&d&&typeof d.focus!="undefined"&&typeof document.hasFocus!="undefined"&&!document.hasFocus()){d.focus()
}}catch(f){}return d
};
PluginDetect.getContainer=function(a){var c,b=null;
if(a&&a[0]){b=a[0]
}return b
};
PluginDetect.hideObject=function(a){var b=this.getObject(a);
if(b&&b.style){b.style.height="0"
}};
PluginDetect.instantiate=function(h,b,c,a){var j=function(d){var e=d.style;
if(!e){return
}e.border="0px";
e.padding="0px";
e.margin="0px";
e.fontSize=(g.pluginSize+3)+"px";
e.height=(g.pluginSize+3)+"px";
e.visibility="visible";
if(d.tagName&&d.tagName.toLowerCase()=="div"){e.width="100%";
e.display="block"
}else{if(d.tagName&&d.tagName.toLowerCase()=="span"){e.width=g.pluginSize+"px";
e.display="inline"
}}};
var k,l=document,g=this,p,i=(l.getElementsByTagName("body")[0]||l.body),o=l.createElement("span"),n,f,m="/";
if(typeof a=="undefined"){a=""
}p="<"+h+' width="'+g.pluginSize+'" height="'+g.pluginSize+'" ';
for(n=0;
n<b.length;
n=n+2){p+=b[n]+'="'+b[n+1]+'" '
}p+=">";
for(n=0;
n<c.length;
n=n+2){p+='<param name="'+c[n]+'" value="'+c[n+1]+'" />'
}p+=a+"<"+m+h+">";
if(!g.div){g.div=l.createElement("div");
f=l.getElementById("plugindetect");
if(f){j(f);
f.appendChild(g.div)
}else{if(i){try{if(i.firstChild&&typeof i.insertBefore!="undefined"){i.insertBefore(g.div,i.firstChild)
}else{i.appendChild(g.div)
}}catch(k){}}else{try{l.write('<div id="pd33993399">o<'+m+"div>");
i=(l.getElementsByTagName("body")[0]||l.body);
i.appendChild(g.div);
i.removeChild(l.getElementById("pd33993399"))
}catch(k){try{g.DOMbody=l.createElement("body");
l.getElementsByTagName("html")[0].appendChild(g.DOMbody);
g.DOMbody.appendChild(g.div)
}catch(k){}}}}j(g.div)
}if(g.div&&g.div.parentNode&&g.div.parentNode.parentNode){g.div.appendChild(o);
try{o.innerHTML=p
}catch(k){}j(o);
return[o]
}return[null]
};
;
PluginDetect.windowsmediaplayer={mimeType:["application/x-mplayer2","application/asx"],progID:"wmplayer.ocx",classID:"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6",getVersion:function(){var a=null,e=this.$,b=null;
this.installed=-1;
if(!e.isIE){if(e.hasMimeType(this.mimeType)){if(e.findNavPlugin(["Windows","Media","(Plug-in|Plugin)"],false)||e.findNavPlugin(["Flip4Mac","Windows","Media"],false)){this.installed=0
}var d=e.isGecko&&e.compareNums(e.GeckoRV,e.formatNum("1.8"))<0;
if(!d&&e.findNavPlugin(["Windows","Media","Firefox Plugin"],false)){var c=e.instantiate("object",["type",this.mimeType[0]],[]),f=e.getObject(c);
if(f){a=f.versionInfo
}e.uninstantiate(c)
}}}else{b=e.getAXO(this.progID);
if(b){a=b.versionInfo
}}if(a){this.installed=1
}this.version=e.formatNum(a)
}};
;
PluginDetect.vlc={mimeType:"application/x-vlc-plugin",progID:"VideoLAN.VLCPlugin",compareNums:function(d,c){var j=d.split(","),h=c.split(","),g,b,a,f,e,i;
for(g=0;
g<Math.min(j.length,h.length);
g++){i=/([\d]+)([a-z]?)/.test(j[g]);
b=parseInt(RegExp.$1,10);
f=(g==2&&RegExp.$2.length>0)?RegExp.$2.charCodeAt(0):-1;
i=/([\d]+)([a-z]?)/.test(h[g]);
a=parseInt(RegExp.$1,10);
e=(g==2&&RegExp.$2.length>0)?RegExp.$2.charCodeAt(0):-1;
if(b!=a){return(b>a?1:-1)
}if(g==2&&f!=e){return(f>e?1:-1)
}}return 0
},getVersion:function(){var b=this.$,d,a=null,c;
if(!b.isIE){if(b.hasMimeType(this.mimeType)){d=b.findNavPlugin(["VLC","(Plug-in|Plugin)"],false);
if(d&&d.description){a=b.getNum(d.description,"[\\d][\\d\\.]*[a-z]*")
}}this.installed=a?1:-1
}else{d=b.getAXO(this.progID);
if(d){try{a=b.getNum(d.VersionInfo,"[\\d][\\d\\.]*[a-z]*")
}catch(c){}}this.installed=d?1:-1
}this.version=b.formatNum(a)
}};
;
PluginDetect.initScript();