var onRankLoaded=function(e){var j=_nameOld="",b="",f="";var k=e.videos;var g=k.length;var d=[];for(var c=0;c",'',count,"",'',parseInt(c+1),"",'',j,"","")}$("#tv_data").html(d.join(""))};var pageNum=1;var album=window.album={getcounts:function(a,b){b.find("li>span>.pc").each(function(c,d){$.each(a,function(e){if(a[e].videoId==$(d).attr("rel")){$(d).text("播放:"+a[e].count+"次")}})})},zyList:function(b,c,a){b=b?b:1;c=c?c:$("#zy_y a.current").attr("rel");a=a?a:$(".zy_m:visible a.current").attr("rel");pageNum=b;if(typeof PLAYLIST_ID=="undefined"||PLAYLIST_ID==""){return}sohuHD.getScript("//pl.hd.sohu.com/videolist?playlistid="+PLAYLIST_ID+"&year="+c+"&month="+a+"&pagenum="+b+"&pagesize=16&order=1&callback=zyListBack")},phList:function(a){a=a?a:1;if(typeof PLAYLIST_ID=="undefined"||PLAYLIST_ID==""){return}sohuHD.getScript("//search.vrs.sohu.com/vavs2?aid="+PLAYLIST_ID+"&prop=2&year=&month=&order=0&pageNum="+a+"&pageSize=16&var=phListBack")},showList:function(c,d,f){if(!c||!c.videos){return}if(c.size==0){d.html("");f.hide();return}else{f.show()}var e=[],b=[];var a=[];$.each(c.videos,function(h,k){if(k.showDate!=""){b=k.showDate.match(/(\d{4})(\d{2})(\d{2})/);b=b.splice(1,3)}else{b=[]}var j=[];if(c.videos[h].divGMap.length==0){j.push('主持:');j.push('',c.hosts.join(","),"")}else{j.push('嘉宾:');var l=[];for(var h=0,g=k.divGMap.length>2?2:k.divGMap.length;h")}var m=(k.firstTitle&&k.firstTitle!="")?k.firstTitle:k.name;e.push("
  • ",'','',k.name,'','','',b.join("-"),"","","",'',m,"",'',j.join(""),"","",'',"
  • ");a.push(k.vid)});d.html(e.join(""));if(a.length>0){sohuHD.getScript("//count.vrs.sohu.com/count/query.action?videoId="+a+"&jsonp=_vids&type=2",function(){if(typeof _vids!="undefined"&&_vids.videos){album.getcounts(_vids.videos,d)}})}album.pageJump(c.size,pageNum,f)},showPhList:function(b,c,e){if(!b||!b.videos){return}if(b.totalCount==0){c.html("");e.hide();return}else{e.show()}var d=[],a=[];$.each(b.videos,function(f,g){if(g.varPubTime!=""){a=g.varPubTime.match(/(\d{4})(\d{2})(\d{2})/);a=a.splice(1,3)}else{a=[]}d.push('
  • ',g.videoName,' ',g.videoName,"发布时间:",a.join("-"),"
  • ")});c.html(d.join(""));album.pageJump(b.totalCount,b.pageNum,e)},pageJump:function(d,e,f){var c,a=[];c=parseInt(d%16)>0?parseInt(d/16)+1:parseInt(d/16);if(c==0){f.hide();return}e=parseInt(e);e==1?a.push('上一页'):a.push("上一页');if(c<9){for(var b=1;b<=c;b++){if(b==e){a.push("",b,"")}else{a.push("',b,"")}}}else{if(e<5){for(var b=1;b<=5;b++){if(b==e){a.push("",b,"")}else{a.push("',b,"")}}a.push("");a.push("',(c-1),"");a.push("',c,"")}else{if(e>c-4){a.push('1');a.push('2');a.push("");for(var b=c-4;b<=c;b++){if(b==e){a.push("",b,"")}else{a.push("',b,"")}}}else{a.push('1');a.push("");for(var b=(e-1);b<=(e+2);b++){if(b==e){a.push("",b,"")}else{a.push("',b,"")}}a.push("");a.push("',c,"")}}}e==c?a.push('下一页'):a.push("下一页');f.html(a.join(""))},showHotBox:function(f,a){var c="/frag/vrs_inc/";var d=f.attr("datakey");if(typeof d==="undefined"){return}var e=function(m){if(typeof window[m]==="undefined"){return}var q=window[m].videos;var l=q.length;var n=l>10?10:l;var b="",p="",h="",r="",g=0,o="";var k=[];for(var j=0;j0){o="trend up"}else{o="trend down"}}k.push('
  • ',r,"",(j+1),"',p,"
  • ")}a.html(k.join(""))};if(typeof window[d]==="undefined"){sohuHD.getScript(c+d+".js",e,null,null,[d])}else{e(d)}},showyuleHotBox:function(e,a){var c="/frag/vrs_inc/";var d=e.attr("datakey");if(typeof d==="undefined"){return}sohuHD.getScript(c+d+".js")},autoScroll:function(){var b=$.extend({box:"#_box",cont:".cont",next:"#arrdown",disNext:"dN",prev:"#arrup",disPrev:"uN",oncenum:1,num:0,pnum:5,random:false,time:300,page:null},arguments[0]);var g=$(b.box);var k=g.find(b.cont);var f=g.find(b.next);var d=g.find(b.prev);var h=g.find(b.page);var i=k.length;var j=k[1].offsetLeft-k[0].offsetLeft,c=[0,(i-b.pnum)/b.oncenum];var e=b.random?(Math.floor(Math.random()*(i-b.pnum+1))):b.num;function a(l){if(lc[1]){return}d[((l==0)?"add":"remove")+"Class"](b.disPrev);f[((l>=c[1])?"add":"remove")+"Class"](b.disNext);e=l;k.parent().stop().animate({left:-l*j},b.time)}a(e);d.click(function(l){a(e-b.oncenum);return false});f.click(function(l){if(e>=c[1]){return false}a(e+b.oncenum);return false})},strTransform:function(d){var a=d.str.split(";");var c=[];var e=d.b?" target='_blank'":"";if(d.n&&d.n>0){a=a.slice(0,d.n)}for(var b=0;b",a[b],""].join(""))}return c.join("/")},switchTab:function(j,a){if(!j.length){return}a=a||{};var i=a.event||"mouseover";var f=a.cssName||"current";var c=new RegExp(f);var m=a.callback||null;var l=a.boxs||[];var g=a.next||"";var e=a.prev||"";var b=a.start||0;var n=a.auto||false;j.n=0;l.hide();var k=function(){d(j[(j.n>=j.length-1)?j.n:j.n+1])};var h=function(){d(j[(j.n<=0)?j.n:j.n-1])};if(g){$(g).click(k)}if(e){$(e).click(h)}var d=function(p){var q=p.n;if(q>=j.length-1){$(".btnNextOver").addClass("blur")}if(q<=0){$(".btnPreOver").addClass("blur")}if(q>0&&q0){e=document.cookie.indexOf(b);if(e!=-1){e+=b.length;a=document.cookie.indexOf(";",e);if(a==-1){a=document.cookie.length}d=unescape(document.cookie.substring(e,a))}}return d}var searchFormA=function(d,a){var b=document.getElementById(d).value;if(b==""||b=="关键字"){sohuHD.redirect("/mts?wd=","_blank");return false}else{var c="mts?wd=";sohuHD.redirect("/"+c+escape(b),"_blank");return false}};(function(a){a.Buffers=function(){this._s=new Array};a.Buffers.prototype={append:function(b){this._s.push(b)},toString:function(){var b=this._s.join("");this._s.length=0;return b}}})(jQuery);$(function(){if($("#picFocusout img").length>0){$("#hisPlay").show()}sohuHD.getScript("//count.vrs.sohu.com/count/query_album.action?albumId="+PLAYLIST_ID+"&type=2",function(){if(typeof count!="undefined"){$("#pcount").html("播放数:"+count)}});sohuHD.switchTab($("#blockA>.tab1 li"),{boxs:$("#blockA>.tab1cont"),cssName:"active",event:"click",callback:function(d){if(d[0].n==0){$(".hid").show()}else{$(".hid").hide()}}});if($("#blockB ul.tab1 li").length==1){$("#blockB ul.tab1 li").addClass("active");$("#blockB>.tab1cont").show()}else{sohuHD.switchTab($("#blockB ul.tab1 li"),{boxs:$("#blockB>.tab1cont"),cssName:"active",event:"click"})}$("#blockB .more").click(function(){$("#blockA .tab1 li.tk4").click()});sohuHD.switchTab($("#zy_y>li>a"),{boxs:$("#allist ul.zy_m"),cssName:"current",event:"click"});album.zyList(1);$("#zy_y a").click(function(){album.zyList(1,$(this).attr("rel"));return false});$(".zy_m a").click(function(){$(".zy_m:visible a").removeClass();$(this).addClass("current");album.zyList(1,$("#zy_y a.current").attr("rel"),$(this).attr("rel"));return false});album.switchTab($("#ablum2>.page>em>a"),{boxs:$("#ablum2>.pagecont"),cssName:"current",event:"click",next:".btnNextOver",prev:".btnPreOver"});$("#fullinfo").click(function(){$("#blockA>.tab1 li.tk3").click()});doMark.reMark();$("#turnId").hover(function(){$(this).height(44)},function(){$(this).height(21)});$(".btns1").click(function(){window.open("//my.tv.sohu.com/user/third/commend.do?ugcId="+vid+"&app=Tv")});$(".btns3").click(function(){window.open(["//my.tv.sohu.com/user/third/bookmark.do?vid=",vid,"&pid=",pid,"&url=",encodeURIComponent(location.href),"&title=",escape(document.title.split("-")[0].replace(/《|》/g,""))].join(""))});$(".btns2,#wjp,#wjp_lo").click(function(){sohuHD.redirect("//my.tv.sohu.com/user/entry/add.do?playlistId="+PLAYLIST_ID,"_blank")});if(typeof tvComments!="undefined"){var c=tvComments;c.pn=25;c.shortListBox=$("#commentlist_s");c.init()}$(".showfullcomm").click(function(){$("#blockA .tab1 li.tk6").click()});if($("#similar").length>0){sohuHD.getScript("//search.vrs.sohu.com/v?id="+vid+"&pid="+PLAYLIST_ID+"&pageNum=1&pageSize=50&isgbk=true&var=video_similar_search_result",function(){if(video_similar_search_result&&video_similar_search_result.videos){var f=[];var h=video_similar_search_result.videos,g;$.each(h,function(k,l){if(k>3){return}l.albumUrl=l.albumUrl||l.videoUrl;g=l.horBigPic||l.videoBigPic;f.push("
  • '+l.videoName+'',"
    ",'
    '+l.videoName+"
    ",'
    类型:',album.strTransform({str:l.videoAlbumContCategory,b:true,n:2,stype:7,ftype:filmType}),"
    ",'
    不喜欢
    ',"
    ","
  • ")});$("#similar").html(f.join(""));var j=4;$("#similar li").each(function(k){var m=jq(this);var l=m.find(".d2");l.click(function(){var n=h[j],q=typeof n.albumUrl=="undefined"||n.albumUrl==""?n.videoUrl:n.albumUrl,r=n.horBigPic||n.videoBigPic,p=n.videoName,o=n.videoAlbumContCategory;m.find(">a").attr("href",q);m.find(">a>img").attr({alt:p,src:r});m.find("dt>a").attr("href",q).html(p);m.find(".d1").html("类型:"+album.strTransform({str:o,b:true,n:2,stype:7,ftype:filmType}));h.splice(k,1,h.splice(j,1)[0]);if(j==h.length){l.hide()}});m.hover(function(){if(h.length>j){l.show()}},function(){l.hide()})});var d=window.sohuHD&&sohuHD.pingback?sohuHD.pingback:function(l){var k=document.createElement("img");k.src=l;document.body.appendChild(k)};var e="//220.181.61.231/get.gif?vid="+vid+"&pid="+pid+"&url="+document.location.href+"&filmType="+filmType+"&r="+new Date().getTime();var i=["maybelike","sameActor","sameDirector"];jq("#similar li a").click(function(){try{var k=jq(this).attr("index");d(e+"&likeIndex="+k+"&type=maybelike")}catch(l){}})}})}if($("#hotTvTab").length>0){sohuHD.switchTab($("#hotTvTab>ul>li"),{cssName:"now",boxs:$("#tv_data"),callback:album.showHotBox})}if($("#yulehotTvTab").length>0){sohuHD.switchTab($("#yulehotTvTab>ul>li"),{cssName:"now",boxs:$("#tv_data"),callback:album.showyuleHotBox})}sohuHD.switchTab($(".clsFrag .menuB li"),{cssName:"now",boxs:$(".clsFrag .turn"),start:3});if($(".clsFrag .menuB").length>0){album.autoScroll({box:".clsFrag .menuB",cont:"li"})}var a=$("#logoFocus .mouse");a.hover(function(){var d=$(this);d.find(".anOV").addClass("over");d.find(".hidden").show();d.find(".vHisifa").css({width:d.find(".olay").width(),height:d.find(".olay").height()});d.find(".layOp").css({height:d.find(".layCon").height()+10})},function(){var d=$(this);d.find(".anOV").removeClass("over");d.find(".hidden").hide()});if($("#sFormA").length>0&&!$("#sFormA")[0].loaded){$("#sFormA")[0].loaded=true;var b=$("#sKeyA").val();$("#sFormA").submit(function(){sohuHD.redirect("/mts?wd="+escape($.trim($("#sKeyA").val())),"_blank");return false});$("#sKeyA").focus(function(){if($("#sKeyA").val()==b){$("#sKeyA").val("")}}).blur(function(){if($("#sKeyA").val()==""){$("#sKeyA").val(b)}})}$(".right").find(".blockRH .pp li").hover(function(){$(this).addClass("grey")},function(){$(this).removeClass()})});(function(a){a.install={safari:navigator.userAgent.toLowerCase().match(/version\/([\d.]+).*safari/),isIE:!!window.ActiveXObject,isIE6:!!window.ActiveXObject&&!!!window.XMLHttpRequest,detailUrl:"/feihudetail/index.shtml",showDownloadTipBox:function(){a.redirect("//p2p.hd.sohu.com/dcs.do?f=1&s=1016","_blank")},showDownloadingBox:function(){},showInstallingBox:function(){},showInstalledBox:function(){},showInstallFailedBox:function(){},start:function(){},isInstall:function(){var d=/win/i.test(navigator.userAgent);if(!d){return false}if(a.install.isIE){var g=null;if(typeof window.ActiveXObject==="function"){try{g=new ActiveXObject("SoHuVA.SoHuDector")}catch(h){return false}if(g===null||!g.isSoHuVaReady()){return false}else{return true}}}else{function f(){var j=navigator.plugins;j.refresh(false);for(var e=0,k;k=j[e];e++){if(/npifox/i.test(k.description)){return true}}return false}if(f()){var c=null;if($("#embed_ifox").length==0){$("body").append('')}c=document.getElementById("embed_ifox");try{c.RunSohuVA()}catch(h){return false}if(c.IsSupportShowDetailPage&&c.IsSupportShowDetailPage()){return true}else{return false}}else{return false}}},exec:function(c,d,h,f){if(a.install.isIE){if(a.install.isInstall()){var g=null;g=new ActiveXObject("SoHuVA.SoHuDector.1");g.ShowDetailPage([a.install.detailUrl,"#",c,"_",d,"_",h,"_",f].join(""))}else{sohuHD.install.showDownloadTipBox()}}else{if(a.install.isInstall()){var e=document.getElementById("embed_ifox");e.ShowDetailPage([a.install.detailUrl,"#",c,"_",d,"_",h,"_",f].join(""))}else{a.install.showDownloadTipBox()}}}};function b(f){var h=$('
      
    ').appendTo($("#blockA .tab1"));var c=f.split("_");var g=a.install.isInstall(),e=a.install.safari,d=encodeURIComponent(window.location.href);if(c[1]<0||c[5]==1){h.html(" ")}else{if(c[0]==1&&e){h.html("下载本片请安装搜狐影音")}else{if(c[0]==1){h.html("下载本片"+(g?"":"(需安装搜狐影音)")+" ");h.find(".btn_dm").click(function(){sohuHD.install.exec(c[1],c[2],c[3],c[4])})}else{if(c[0]==0){h.append("使用搜狐影音加速观看")}}}}}a.initIfoxDown=b})(sohuHD);(function(h,p,a,j){var k=function(q,u){try{if(a.ActiveXObject){var t=null;t=new ActiveXObject("SoHuVA.SoHuDector.1");if(u){return t[q](u)}else{return t[q]()}}else{var r=document.getElementById("embed_ifox");if(u){return r[q](u)}else{return r[q]()}}}catch(s){_e(s);return false}};var c=function(){try{var s=p.install.isInstall();var q=k("GetSohuVAVersion");if(!q||q<50331648){s=false}return s}catch(r){}};var f=function(){var q=k("GetSohuVAVersion");q=parseInt(q,10);var u=q;if(u<0){return"-1"}var t=parseInt(u/256,10);var s=parseInt(t/256,10);var r=parseInt(s/256,10);return[r%256,s%256,t%256,u%256].join(".");return q};var b=function(){var q=k("GetUserId");return q&&q.toString()||"-1"};var m=function(){var q=k("GetChannelNum");return q&&q.toString()||"-1"};if(h(".btnsD").length==0){h(".btns1").after(h(''));h(".btnsD").bind({mouseout:function(){h(this).attr("class","btnsD")},mousedown:function(){h(this).attr("class","btnsDDown")},mouseover:function(){h(this).attr("class","btnsDOver")}}).css("margin-right","10px")}var n=h(".btnsD");if(!p.pingback){p.pingback=function(r){var q=document.createElement("img");q.src=r;document.body.appendChild(q)}}var l=function(){p.pingback(["//click.hd.sohu.com.cn/s.gif?type=PG_ToDesktop&ref=",encodeURIComponent(location.href),"&_=",h.now()].join(""));p.pingback(["//click.hd.sohu.com.cn/ifox.gif?type=PUT_DESKTOP&stype=4&v=",f(),"&uid=",b(),"&ChannelID=",m(),"&ref=",encodeURIComponent(location.href),"&_=",h.now()].join(""));h("#savePageToDesktop").remove();h(".btnsArea").addClass("onSuc");n.hide();p.showWin({htmlStr:['
    ','
    ','
    ','','
    ',"","
    ","

    设置成功

    ","您的桌面上已经生成该剧的快捷方式,双击即可快速观看","
    ","
    ","
    ","
    ","
    "].join(""),autohide:true,hidetime:3*1000,noMask:true})};var o=new p.showWin({htmlStr:['
    ','
    ','
    ','','
    ',"

    首次安装登陆赠送VIP会员

    ",'
    ','

    第一步:下载最新版搜狐影音

    ','

    第二步:点击“放到桌面”按钮

    ',"
    ",'

    立即下载

    ',"
    ","
    ","
    ","
    "].join(""),noMask:true});o.initWin();var g=function(){o.show();h("#gotoDownloadIfox").click(function(){o.closeWin()})};var e=parseInt(a.PLAYLIST_ID||0);h("body").delegate(".btnUnline","click",function(){var q={tv:2,movie:1,doc:8,tech:21,comic:16,variety:7};var r=q[a.filmType];p.install.exec(a.vid,a.PLAYLIST_ID,r,a.pid)});var i=function(r){if(c()){var s=h("#location>div>h1").text().split(":")||["",""];s=s[1];var q=location.href;k("RunSohuPlayer",["\\CreateUrlShortcut=",s,",",e,",",q,q.indexOf("?")>-1?"&":"?","src=desktop"].join(""));q=null;l()}else{g()}r.preventDefault()};var d=new Date().getTime();d="vrs"+d;p.getScript("//hot.vrs.sohu.com/vrs_flash.action?gbk=true&vid="+vid+"&var="+d,function(){var r=a[d];var q="";if(/win/ig.test(navigator.userAgent)){if(h("#picFocusout").height()>100){q='
    ';if(!(c()&&k("IsShortcutCreated",e))){q+='
    放到桌面'}else{q+='
    '}if(r&&r.isdl){q+='离线观看
    '}h("#picFocusout").append(q)}h("#savePageToDesktop").click(i);n.show().click(i);if(h(".btnsArea a").length<2){h(".btnsArea").addClass("onSuc")}}else{q='
    ';h("#picFocusout").append(q)}h("#hisPlayPack").append(h("#hisPlay"))})})(jQuery,sohuHD,window);