(function(){var e=false,b=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(a){function c(){!e&&this.init&&this.init.apply(this,arguments)}var g=this.prototype;e=true;var i=new this;e=false;for(var d in a)i[d]=typeof a[d]=="function"&&typeof g[d]=="function"&&b.test(a[d])?function(f,h){return function(){var j=this._super;this._super=g[f];var k=h.apply(this,arguments);this._super=j;return k}}(d,a[d]):a[d];c.prototype=i;c.constructor=c;c.extend=arguments.callee;
return c}})();
window.onerror=function(){var e="",b="",a="",c="";c=window.onerror.caller;for(var g=0;g<arguments.length;g++){var i=arguments[g].toString().split("/");e+="_"+encodeURIComponent(i[i.length-1])}if(c){b=c.toString().substring(0,40);if(c.caller)a=c.caller.toString().substring(0,40)}c=navigator.userAgent.substring(0,100);e="http://kkpgv2.xunlei.com/?u=vodact&u1=weberror_wap&u2="+e+"&u3="+encodeURIComponent(window.location.href)+"&u4="+encodeURIComponent(b)+"&u5="+encodeURIComponent(a)+"&u6="+encodeURIComponent(c);
(new Image(1,1)).src=e;window.onerror=function(){return true};return true};var argumentsToArray=function(e){for(var b=[],a=0;a<e.length;a++)b.push(e[a]);return b};Function.prototype.delayApply=function(e,b,a){var c=this;return setTimeout(function(){c.apply(b,a)},e)};Function.prototype.delayCall=function(e,b){return this.delayApply(e,b,argumentsToArray(arguments).slice(2))};
var G_PLAYER_INSTANCE=null,G_FLASH_INIT=0,KankanObj=Class.extend(new function(){var e=[];this.init=function(){this.isIE=navigator.appName.indexOf("Microsoft")!=-1};this.mStatSend=function(b){var a=new Image(1,1);a.onerror=function(){};a.src=b};this.getDebugBuffer=function(){return e};this.trace=function(b,a){if(a=="onProgress")return false;try{var c=new Date,g=G_PLAYER_ERROR,i=c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+"."+c.getTime()%1E3;e.unshift(i+"  : "+b+","+a);e=e.slice(0,1E3);if(g.debugShowed)this.$("debugInfoContainer").innerHTML=
i+"  : "+b+","+a+"<br />"+this.$("debugInfoContainer").innerHTML}catch(d){}};this.getParameter=function(b){b=RegExp("[?&]"+b+"=([^&#]+)","g");try{var a=b.exec(this.getLoc())}catch(c){}return null!=a?decodeURIComponent(a[1]):null};this.rand=function(b,a){return b+Math.round(Math.random()*(a-b))};this.getLoc=function(){try{return document.location.href}catch(b){}};this.$=function(b){return document.getElementById(b)};this.getCookie=function(b){try{var a=document.cookie.match(RegExp("(^"+b+"| "+b+")=([^;]*)"))==
null?"":decodeURIComponent(RegExp.$2);return a!=""?a:""}catch(c){return""}};this.time=function(){return(new Date).getTime()};this.pageRefresh=function(){var b=window.location.href,a=b.split("#");window.location=b.indexOf("?")>0?a[0]+"&rd="+this.time():a[0]+"?rd="+this.time();return true};this.$C=function(b){return document.createElement(b)};this.$P=function(b,a){return a?a.appendChild(b):document.body.insertBefore(b,document.body.firstChild)};this.$R=function(b){return b.parentNode.removeChild(b)};
this.$S=function(b){this.$(b).style.display="block"};this.$H=function(b){this.$(b).style.display="none"}}),KankanEventObj=KankanObj.extend(new function(){this.init=function(){this._super();this.attachEvent=this.addEventListener;this.detachEvent=this.removeEventListener;this.fireEvent=this.dispatchEvent};this.addEventListener=function(e,b,a,c){this[b]||(this[b]=[]);if(!(this[b]instanceof Array))return false;for(var g=0;g<this[b].length;g++)if(this[b][g].o==e&&this[b][g].f==a)return true;this[b].push({o:e,
f:a,t:c});return true};this.removeEventListener=function(e,b,a){if(!this[b]||!(this[b]instanceof Array))return false;for(var c=0;c<this[b].length;c++)if(this[b][c].o==e&&this[b][c].f==a){this[b].splice(c,1);0==this[b].length&&delete this[b];return true}return false};this.dispatchEvent=function(e){if(!this[e]||!(this[e]instanceof Array))return false;for(var b=[this].concat(argumentsToArray(arguments)),a=this[e].slice(0),c=0;c<a.length;c++)typeof a[c].t=="number"?a[c].f.delayApply(a[c].t,a[c].o,b):
a[c].f.apply(a[c].o,b);return true};this.bindEvents=function(e,b,a,c){for(var g=0;g<a.length;g++){var i=a[g],d="f_"+i;b[d]&&e.attachEvent(b,i,b[d]);if(c[i])for(d=0;d<c[i].length;d++)b[c[i][d]]&&e.attachEvent(b,i,b[c[i][d]])}}}),KKPlayerError=KankanEventObj.extend(new function(){var e={"001":"抱歉，您使用的设备暂不支持HTML5 Video！","002":"抱歉，没有找到播放地址！","003":"抱歉，没找到播放地址,请选择播放其他节目!","1189":"播放错误（1189），<a href='javascript:;' onclick='window.location.reload();return false;'>加载重试</a><br><br>下载客户端，畅想高清，极速播放"},b={10002:"临时文件打开失败，请刷新页面重试"},
a=0,c="",g="",i=function(d,f,h){var j=c;c=d;var k=G_PLAYER_INSTANCE;if(f){h||(h="");f={sid:0,ctype:0,ver:0,lastError:j,lastEvent:"",uid:0};f.ctype="wapmp4h5";f.ver="wapmp4h5";if(k){f.sid=k.sid;f.lastEvent=k.lastEvent}f.uid=this.getCookie("KANKANWEBUID");d="http://kkpgv2.xunlei.com/?u=vodact&u1=wap_logic_error&u2="+d+"&u3="+encodeURIComponent(this.getLoc())+"&u4="+f.sid+"&u5="+f.lastEvent+"&u6="+f.ctype+"_"+f.ver+"&u7="+f.uid+"&u8="+j+"&u9="+h+"&rd="+this.time()}else d="http://kkpgv2.xunlei.com/?u=vodact&u1=wap_logic_error&u2="+
d+"&rd="+this.time();this.mStatSend(d)};this.setFeedbackParam=function(d){g=d};this.getFeedbackParam=function(){return g};this.getErrorMap=function(d){return d?b:e};this.init=function(){this._super();this.debugShowed=false};this.reInit=function(){this.bufferError=false};this.dump=function(d,f,h){a++;var j=window.G_PLAYER_INSTANCE;this.trace("------ERROR-CODE:"+d);d=="000"||d=="001"||d=="002"||d=="003"||d=="004"||d=="006"||d=="007"||d=="009"?i.delayCall(0,this,d,false):i.delayCall(0,this,d,true,h);
if(f)return false;if(typeof e[d]!="undefined"){f=e[d].split("|");if(j&&j.showError)j.showError(escape(f[0]),escape(f[1]));else{j=f[0];if(d=="003"||d=="004")this.$("playerError").className="error";else this.$("playerError").className="errortxt";this.$S("playerError");this.$("playerError").innerHTML='<p id="playerErrorContent">'+j+'<br/></p><span>如果还无法观看，请查看<a href="http://tantan.kankan.com/help.html" title="" target="_blank">常见问题</a>或<a href="http://tantan.kankan.com/feedback.html" title="" target="_blank">反馈给我们</a>!</span>'}return true}return false};
this.showDebugDiv=function(){this.debugShowed=true;var d=this.$("_player"),f=this.$C("DIV");f.id="debugInfoContainer";f.style.width="100%";f.style.height="512px";f.style.zIndex="999999999";f.style.position="absolute";f.style.background="#FFFFFF";f.style.overflow="scroll";d.parentNode.insertBefore(f,d.nextSibling);d=this.getDebugBuffer();for(var h=0;h<d.length;h++)f.innerHTML+=d[h]+" <br/>"};this.getDebugInfo=function(){for(var d=this.getDebugBuffer(),f="",h=0;h<d.length;h++)f+=d[h]+"\r\n";return f};
this.playerLoadingDisplay=function(d){d=d&&G_PLAYER_INIT.playerstatus?"block":"none";var f=this.$("PlayerLoading");if(f&&d!==f.style.display)f.style.display=d};this.showPlayerWarm=function(d,f){var h=d?d:1189,j="";f=typeof f==="object"&&f instanceof Array?f:typeof e[h]!="undefined"?[e[h]]:["播放错误（1189），<a href='javascript:;' onclick='window.location.reload();return false;'>加载重试</a>"];h=0;for(var k=f.length;h<k;h++)j+="<p>"+f[h].toString()+"</p>";if(!this.$("PlayerWarm")){h=this.$C("div");h.id="PlayerWarm";
h.className="player_warm";this.$P(h,this.$("_player"))}if(this.$("PlayerCtrl")){this.$("PlayerCtrl").pause();this.$("PlayerCtrl").style.display="none"}this.$("PlayerWarm").innerHTML=j;this.$("PlayerWarm").style.display="block";this.playerLoadingDisplay(0)};this.clearPlayerWarm=function(){try{this.$("PlayerCtrl").style.display="block";this.$("PlayerWarm").style.display="none";this.$("PlayerWarm").innerHTML=""}catch(d){}}}),KKPlayerInit=KankanEventObj.extend(new function(){this.init=function(){this._super();
this.playerstatus=1;this.h5Available=this.playerLoaded=false;this.h5playerObj=null;this.browserCheck()};this.browserCheck=function(){this.isOpera=/oupeng/i.test(navigator.userAgent.toLowerCase());this.operaFirsEvent=null};this.checkH5Video=function(){if(document.createElement("video").canPlayType)if(document.createElement("video").canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"'))return true;return false};this.printH5Object=function(e,b,a,c,g,i){this.$("PlayerLoading").style.background="rgba(0,0,0,1)";
if(!(this.$(e).clientWidth||this.$(e).offsetWidth)){this.printH5Object.delayCall(50,this,e,b,a,c,g,i);return false}b=parseInt((this.$(e).clientWidth||this.$(e).offsetWidth||screen.width)*0.5625);a=this.$C("video");a.id="PlayerCtrl";a.style.width="100%";c=document.documentElement.clientHeight*0.95;b=b>c?c:b;a.style.height=b+"px";a.controls="controls";a.poster=window.G_MOVIE&&window.G_MOVIE.poster||"";a.autobuffer=true;a.autoplay=true;this.$P(a,this.$(e));this.$(e).style.height=b+"px";this.h5playerObj=
a;G_PLAYER_INSTANCE=new KKPlayerInstance;this.h5eventHandler(a);this.playerLoaded=true};this.h5eventHandler=function(e){var b={loadstart:0,progress:0,suspend:0,abort:0,error:0,emptied:0,stalled:0,loadedmetadata:0,loadeddata:0,canplay:0,canplaythrough:0,playing:0,waiting:0,seeking:0,seeked:0,ended:0,durationchange:0,timeupdate:0,play:0,pause:0,ratechange:0,volumechange:0},a=this;for(v in b)if(b.hasOwnProperty(v)){e.addEventListener(v,function(c){a.videoEventCenter(c)},false);window.location.href.split("/")[3]!=
"a"&&e.addEventListener(v,function(c){location.href.indexOf("dev")!=-1&&G_PLAYER_INIT.debugInfo(c.type);G_CORE_STATIC.setStat("player_last_event",c.type);if(a.isOpera&&!operaFirsEvent)a.operaFirsEvent=c.type})}};this.debugInfo=function(e){if(!$("debugInfo")){$node=document.querySelector(".title");$div=document.createElement("div");$div.id="debugInfo";$div.style="width:100%";$node.appendChild($div);this.i=0}if(this.i<1E3){$div.innerHTML=$div.innerHTML+" "+e.toString();this.i++}else{$div.innerHTML=
e.toString();this.i=1}};this.videoEventCenter=function(e){var b=G_PLAYER_INSTANCE;b.fireEvent.delayCall(0,b,e.type,e)};this.printObject=function(e,b,a,c,g,i){G_PLAYER_INIT.trace("---page printobject---");if(this.checkH5Video()){this.printH5Object(e,b,a,c,g,i);this.getParameter("d")==1&&G_PLAYER_ERROR.showDebugDiv()}else{G_PLAYER_ERROR.showPlayerWarm("001");G_PLAYER_ERROR.dump("001")}}}),KKPlayerInstance=KankanEventObj.extend(new function(){var e=function(a){this.lastEvent=="onopen"&&this.timeStampObj.play==
0&&a==this.timeStampObj.open&&G_PLAYER_ERROR.dump("010",true)},b=function(a){this.lastEvent=="init"&&a==this.timeStampObj.open&&this.timeStampObj.fopen==0&&G_PLAYER_ERROR.dump("011",true)};this.init=function(){this._super();this.$video=this.$("PlayerCtrl");this.playMode="VOD";this.bufferStart=10;this.title="";this.isBuffering=false;this.submovieid=this.bufferStartPos=0;this.subname="";this.movieid=0;this.lastEvent="init";this.timeStampObj={open:0,fopen:0,play:0};this.sid=0;this.eventQueue=[0,0,0,
0,0,0,0,0,0,0];this.bufferTimes=0;this.downPos={lastDrag:0,now:0};this.orientationChange();this.elementIdFullScreen=["m_down","m_header","nav","m_section","m_footer"];this.elementIdExitFullScreen=["m_header","m_section","m_footer"];this.firstOrientation=null;this.firstOrientationFlag=false;this.setFirstOrientation();this.orientation=""};this.open=function(a,c,g,i,d,f,h){G_PLAYER_ERROR.reInit();this.playMode="VOD";this.bufferBeginTime=this.bufferTimes=0;this.lastVideoUrl=a;this.isBufferCalc=false;
this.start=c;this.quality=g;if(i)this.qualitystr=i;this.subStart=d;this.subEnd=f;this.vcut=h;this.lastEvent="preOpen";this.flashopen(a,false);this.timeStampObj={open:(new Date).valueOf(),fopen:0,play:0};e.delayCall(6E4,G_PLAYER_INSTANCE,this.timeStampObj.open);b.delayCall(1E4,G_PLAYER_INSTANCE,this.timeStampObj.open)};this.reopen=function(a){this.open(this.lastVideoUrl,a,this.quality,this.qualitystr,this.subStart,this.subEnd,this.vcut)};this.close=function(){this.playMode="";this.$video.pause();this.setLastEvent("init",
0)};this.pause=function(){this.$video.pause()};this.play=function(){this.$video.play()};this.stop=function(){this.$video.pause()};this.playerDisplay=function(a){a=a?"block":"none";this.$video.style.display=a};this.getPlayPosition=function(){};this.getPlayUrl=function(){return this.$video.flv_getPlayUrl()};this.flashopen=function(a,c,g,i){c=G_PLAYER_INIT.h5playerObj;if(g){a="http://"+g.ip+":80/"+g.path;var d=hex_md5("xl_mp43651"+g.param1+g.param2);c.src=a+"?key="+d+"&key1="+g.param2}else c.src=a;if(i>
0)c.autoplay=true;var f=this.getParameter("pos");if(G_CORE_CONTROL.firstSetPos&&f){G_CORE_CONTROL.firstSetPos=false;window.PLAYER_POSITION&&clearInterval(window.PLAYER_POSITION);window.PLAYER_POSITION=setInterval(function(){if(!G_PLAYER_INIT.h5playerObj.paused){clearInterval(window.PLAYER_POSITION);try{G_PLAYER_INIT.h5playerObj.currentTime=f/1E3}catch(h){window.PLAYER_POSITION_IPHONE=setInterval(function(){if(G_PLAYER_INIT.h5playerObj.currentTime>0){clearInterval(window.PLAYER_POSITION_IPHONE);G_PLAYER_INIT.h5playerObj.currentTime=
f/1E3}},100)}}},100)}else{window.PLAYER_POSITION&&clearInterval(window.PLAYER_POSITION);window.PLAYER_POSITION=setInterval(function(){if(!G_PLAYER_INIT.h5playerObj.paused){clearInterval(window.PLAYER_POSITION);G_PLAYER_INIT.h5playerObj.currentTime=0}},300)}this.fireEvent.delayCall(5,this,"onsetPlayUrl")};this.setnStat=function(a,c){this.trace("setnStat key="+a+", value="+c);return false};this.showError=function(){this.$video.pause()};this.getPlayStatus=function(){return-1};this.setLastEvent=function(a,
c){this.lastEvent=a;if(c>0){this.eventQueue.unshift(c);this.eventQueue=this.eventQueue.slice(0,10)}};this.windowOpen=function(a){window.open(a)};this.getHeight=function(){return parseFloat(this.$video.style.height)};this.setHeight=function(a){a=parseFloat(a)+"px";this.$video.style.height=a;this.$video.parentNode.style.height=a};this.orientationChange=function(){var a=this;if(window.location.href.split("/")[3]==="a"){this.rsizeVideoNocpr();window.addEventListener("orientationchange",function(){a.rsizeVideoNocpr()},
false);return false}else{window.addEventListener("resize",function(){setTimeout(function(){if(!a.$video)return false;a.orientationLock=true;var g=a.getOrientationByOrientation();if(g===a.orientation)return false;else a.orientation=g;if(a.firstOrientationFlag){a.firstOrientationFlag=false;return a.orientationLock=false}a.orientation==="portrait"?a.exitFullScreen("portrait"):a.fullScreen("landscape");a.orientationLock=false},50)});window.addEventListener("orientationchange",function(){setTimeout(function(){a.orientation=
a.getOrientationByOrientation();a.orientation==="portrait"?a.exitFullScreen("portrait"):a.fullScreen("landscape")},300)},false);var c=navigator.userAgent.toLowerCase();this.isIOS=/iphone/.test(c)||/ipod/.test(c);this.isUC=/ucbrowser/.test(c);this.isQQ=/mqqbrowser/.test(c);this.navSearchTag=false;if(this.isIOS&&this.isUC||this.isIOS&&this.isQQ)setInterval(function(){a.orientation=a.getOrientationByScreen();a.orientation==="portrait"?a.exitFullScreen("portrait"):a.fullScreen("landscape")},500)}};this.setFirstOrientation=
function(){this.firstOrientation=this.getOrientationByOrientation();if(this.firstOrientation=="landscape")this.firstOrientationFlag=true};this.getOrientationByOrientation=function(){return window.orientation===0||window.orientation==180?"portrait":"landscape"};this.getOrientationByScreen=function(){return document.documentElement.clientWidth/document.documentElement.clientHeight>1?"landscape":"portrait"};this.fullScreen=function(a){if($("m_header").style.display=="none")return false;for(var c=this.elementIdFullScreen.length,
g=0;g<c;g++)$(this.elementIdFullScreen[g]).style.display="none";this.rsizeVideo(a);window.scrollTo(0,1)};this.exitFullScreen=function(a){if($("m_header").style.display=="block")return false;this.rsizeVideo(a);a=this.elementIdExitFullScreen.length;for(var c=0;c<a;c++)$(this.elementIdExitFullScreen[c]).style.display="block";if(window.wap_pageAction.IS_TITLE_BAR_CLOSE)$("m_down").style.display="none";else $("m_down").style.display="block";if(window.wap_pageAction.IS_NAV_LIST_CLOSE)$("nav").style.display=
"none";else $("nav").style.display="block"};this.rsizeVideo=function(a){if(a=="portrait"){a=(this.$video.parentNode.clientWidth||this.$video.parentNode.offsetWidth||screen.width)*0.5625;var c=document.documentElement.clientHeight;a=a>c?c:a}else a=document.documentElement.clientHeight;this.getHeight()!=a&&this.setHeight(a)};this.rsizeVideoNocpr=function(){if(window.location.href.split("/")[3]!="a")return false;if(window.orientation===0||window.orientation==180)var a=setInterval(function(){if(this.$("top")&&
this.$("nav")){clearInterval(a);var c=parseFloat(document.defaultView.getComputedStyle(this.$("top"),null).height),g=parseFloat(document.defaultView.getComputedStyle(this.$("nav"),null).height);c=document.documentElement.clientHeight-c-g;g=parseFloat($("PlayerCtrl").style.height);$("_player").style.height=c+"px";$("PlayerCtrl").style.marginTop=(c-g)/2+"px"}},100)}}),KanKanJumpDownload=KankanObj.extend(new function(){this.init=function(){this._super();if(this.getParameter("id")=="731009")return false}}),
G_PLAYER_ERROR=new KKPlayerError,G_PLAYER_INIT=new KKPlayerInit;