function switchTab(d,g,f,j,a){try{for(i=0;i<f;i++){var l=document.getElementById("Tab_"+d+"_"+i);var b=document.getElementById("List_"+d+"_"+i);if(i!=g){l.className=a;b.style.display="none"}}try{for(ind=0;ind<CachePic[d][g].length;ind++){var k=document.getElementById(d+"_pic_"+g+"_"+ind);k.src=CachePic[d][g][ind]}}catch(h){}document.getElementById("Tab_"+d+"_"+g).className=j;document.getElementById("List_"+d+"_"+g).style.display=""}catch(c){}}function fAddClass(b,c){if(!c){throw new Error("XClass 不能为空!")}if(b.className!=""){var d=new RegExp("\\b"+c+"\\b\\s*","");b.className=b.className.replace(d,"");var a=b.className.replace(/^\s+|\s+$/g,"");if(a==""){b.className=c}else{b.className=a+" "+c}}else{b.className=c}}function fRemoveClass(b,c){if(!c){throw new Error("XClass 不能为空!")}var a=b.className.replace(/^\s+|\s+$/g,"");if(a!=""){var d=new RegExp("\\b"+c+"\\b\\s*","");b.className=a.replace(d,"")}}var pre_searchtype="search";function changeSearchType(a){if($("searchType_"+pre_searchtype)){$("searchType_"+pre_searchtype).className=""}pre_searchtype=a;$("searchType_"+a).className="currA";setResType(a);if($("keyword").value=="搜索超过10万部影视内容"){$("keyword").value=""}else{$("keyword").value=$("keyword").value+""}$("keyword").focus()}function $(a){return document.getElementById(a)}function xlAjax(a,c,b){var d=document.getElementById("iframe_proxy").contentWindow;return d.pxlAjax(a,c,b)}function showRecommend(response){var RecommendData=eval(response.responseText);var ShowStr="";for(i=0;i<RecommendData.length;i++){ShowStr+='<li><a href="'+RecommendData[i]["vod_link"]+'" class="playpic" title="点击播放&#13;'+RecommendData[i]["title"]+'"><img src="'+RecommendData[i]["poster"]+'" /><em></em></a><a href="'+RecommendData[i]["vod_link"]+'" title="点击播放&#13;'+RecommendData[i]["title"]+'">'+RecommendData[i]["title"]+"</a></li>"}document.getElementById("kankan_recom").innerHTML=ShowStr}function getParameter(b){var c=document.location.search;var d=new RegExp("[?&]"+b+"=([^&]+)","g");var e=d.exec(c);var a=null;if(null!=e){a=decodeURIComponent(e[1])}return a}var MiniSite=new Object();MiniSite.Browser={ie:/msie/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())};MiniSite.JsLoader={load:function(b,d,c){var a=document.createElement("script");a.setAttribute("charset",d);a.setAttribute("type","text/javascript");a.setAttribute("src",b);document.getElementsByTagName("head")[0].appendChild(a);if(MiniSite.Browser.ie){a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){setTimeout(function(){try{c()}catch(f){}},50)}}}else{if(MiniSite.Browser.moz){a.onload=function(){setTimeout(function(){try{c()}catch(f){}},50)}}else{setTimeout(function(){try{c()}catch(f){}},50)}}}};if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,b,p,e,k,m,g,f,d,n,l){if(!document.createElement||!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=true;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(b){this.setAttribute("id",b)}if(p){this.setAttribute("width",p)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),g);if(m){this.addParam("bgcolor",m)}else{this.addParam("wmode","transparent")}var a=f?f:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",g);this.setAttribute("doExpressInstall",false);var j=(d)?d:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(n){this.setAttribute("redirectUrl",n)}};deconcept.SWFObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var b;var a=this.getVariables();for(b in a){c.push(b+"="+a[b])}return c},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var f=this.getParams();for(var e in f){b+=[e]+'="'+f[e]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){b+='flashvars="'+d+'"'}b+=' pluginspage="http://www.macromedia.com/go/getflashplayer"/>'}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var e in c){b+='<param name="'+e+'" value="'+c[e]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof b=="string")?document.getElementById(b):b;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(h,g){var d=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){d=new deconcept.PlayerVersion(a.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var b=15;b>6;b--){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);d=new deconcept.PlayerVersion([b,0,0]);break}catch(f){}}}catch(f){}if(h&&d.major>h.major){return d}if(!h||((h.minor!=0||h.rev!=0)&&d.major==h.major)||d.major!=6||g){try{d=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}catch(f){}}}return d};deconcept.PlayerVersion=function(a){this.major=parseInt(a[0])!=null?parseInt(a[0]):0;this.minor=parseInt(a[1])||0;this.rev=parseInt(a[2])||0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(c){var d=document.location.search||document.location.hash;if(d){var b=d.indexOf(c+"=");var a=(d.indexOf("&",b)>-1)?d.indexOf("&",b):d.length;if(d.length>1&&b>-1){return d.substring(d.indexOf("=",b)+1,a)}}return""}};if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function flv_init(){document.getElementById("PlayerCtrl").flv_setPlayeUrl([MediaVideoConfigs.items[0].videoUrl]);document.getElementById("PlayerCtrl").flv_setFirstFrame(MediaVideoConfigs.items[0].coverUrl)}function flv_onPlayStart(){img=new Image();img.src="http://kkpgv.xunlei.com/?u=www_top_video_play"}function prestart(d){var e=0;var c=0;var b=false;var a=setInterval(function(){if(typeof(document.getElementById("PlayerCtrl")=="object")){PLAYCTRL=document.getElementById("PlayerCtrl");try{if(d==""){flv_init()}else{document.getElementById("PlayerCtrl").flv_setPlayeUrl([d]);document.getElementById("PlayerCtrl").flv_setFirstFrame(adver.coverUrl)}clearInterval(a)}catch(f){c=c+1;e=e+100;if(e>10000){clearInterval(a)}if(c>3&&!b){printSwf(1);b=true;c=0}}}else{e=e+100;if(e>20000){clearInterval(a)}}},100)}function printSwf(a){if(a==1){var b=new SWFObject("http://images.movie.xunlei.com/www_swf/PlayerCtrlnew.swf?fullscreenbtn=1&id=0&channel=ad&width=267&height=178&autostart=0&refer=www&"+Math.random(),"PlayerCtrl","267","178","7","#000000")}else{var b=new SWFObject("http://images.movie.xunlei.com/www_swf/PlayerCtrlnew.swf?fullscreenbtn=1&id=0&channel=ad&width=267&height=178&autostart=0&refer=www","PlayerCtrl","267","178","7","#000000")}b.addParam("allowScriptAccess","always");b.addParam("allowFullScreen","true");b.addParam("quality","high");b.addParam("wmode","transparent");b.write("_player")}function showMediaTitle(a,b){document.getElementById("MediaTitle").innerHTML='<a href="'+a+'" title="'+b+'" class="playad_tt_link">'+b+'</a><a href="'+a+'" title="" class="playad_tt_more">详细&gt;&gt;</a>'}function showBanner(b,a){document.getElementById("bannerad").innerHTML='<a href="'+a+'"><img src="'+b+'" alt="" title="" /></a>'}function checkAndShowSeedsVideo(){try{if(MediaVideoConfigs.items[0].videoUrl&&MediaVideoConfigs.items[0].coverUrl&&MediaVideoConfigs.items[0].clickUrl&&MediaVideoConfigs.items[0].title){printSwf();prestart("");showMediaTitle(MediaVideoConfigs.items[0].clickUrl,MediaVideoConfigs.items[0].title);showBanner(MediaVideoConfigs.items[0].bannerUrl,MediaVideoConfigs.items[0].bannerLink)}else{printSwf();prestart(adver.seedUrl);showMediaTitle(adver.clickUrl,adver.adTitle);showBanner(adver.adPic,adver.adPicUrl)}}catch(a){printSwf();prestart(adver.seedUrl);showMediaTitle(adver.clickUrl,adver.adTitle);showBanner(adver.adPic,adver.adPicUrl)}}function getLen(d){var b=0;var a=d.length;for(var c=0;c<a;c++){b++;if(d.charCodeAt(c)>256){b++}}return b}function subLen(e,f,a){var d=0;var c=0;for(var b=f;b<e.length;b++){if(e.charCodeAt(b)>256){d++;c++}else{d++;c+=0.5}if(c>=a-f+1){break}}return e.substr(f,d)}function print_swflogo(){var a=new SWFObject("http://images.movie.xunlei.com/www_5_6/swf/logo_new.swf?date=20110217","swflogo","290","99","7","");a.addParam("movie","http://images.movie.xunlei.com/www_5_6/swf/logo_new.swf?date=20110217");a.addParam("quality","high");a.addParam("allowScriptAccess","always");a.write("_swflogo")}String.prototype.LTrim=function(){return LTrim(this)};function LTrim(b){var a;for(a=0;a<b.length;a++){if(b.charAt(a)!=" "&&b.charAt(a)!=" "){break}}b=b.substring(a,b.length);return b}var g_restype="search";function setResType(a){g_restype=a}function check(){var e;var c=document.getElementById("keyword").value;c=strip_tags(c.LTrim());if(c=="搜索超过10万部影视内容"||c==""){alert("请输入搜索关键字!");document.getElementById("keyword").value="";document.getElementById("keyword").focus();return false}c=encodeURIComponent(c);e="http://search.xunlei.com/search.php?keyword="+c;var h=new Date();var b=parseInt(h.getHours().toString()+h.getMinutes().toString()+h.getSeconds().toString()/3);img=new Image();var g=getPeerid();var a=document.location.href;var f=encodeURIComponent(a);if(g){img.src="http://kkpgv.xunlei.com/?u=kankansearch&u1="+f+"&u2="+g+"&rd="+(Math.floor(Math.random()*999999)+1)}else{img.src="http://kkpgv.xunlei.com/?u=kankansearch&u1="+f+"&rd="+(Math.floor(Math.random()*999999)+1)}return true}function strip_tags(html){if(arguments.length<3){html=html.replace(/<\/?(?!\!)[^>]*>/gi,"")}else{var allowed=arguments[1];var specified=eval("["+arguments[2]+"]");if(allowed){var regex="</?(?!("+specified.join("|")+"))\b[^>]*>";html=html.replace(new RegExp(regex,"gi"),"")}else{var regex="</?("+specified.join("|")+")\b[^>]*>";html=html.replace(new RegExp(regex,"gi"),"")}}var clean_string=html;return clean_string}function getPeerid(){try{var c=new ActiveXObject("DapCtrl.DapCtrl")}catch(d){return false}var b=c;var a=null;try{if(32==bit){a=b.Get("sPeerID32")||null}else{a=b.Get("sPeerID")||null}}catch(d){}finally{b=null;c=null}return a}function submitToGoogle(b){var a=document.getElementById("keyword").value;document.gform1.q.value=a;document.gform1.channel.value=b;document.gform1.submit();return}function searchWordSbt(a){if(a.length>=2){window.open("http://www.gougou.com/search?search="+encodeURIComponent(a)+"&id=2")}}function getSearchUrl(){var c;var a=g_restype;var d=g_suffix="";var b=document.getElementById("keyword").value;if(g_restype==8){submitToGoogle("websearch");return}if(LTrim(b)==""){c="http://www.gougou.com"}else{b=encodeURIComponent(b);if(g_restype!=7){if(g_restype==0){c="http://mp3.gougou.com"}else{if(g_restype==4){c="http://movie.gougou.com"}else{c="http://www.gougou.com"}}if(d==""){c=c+"/search?search="+b+"&suffix="+g_suffix+"&restype="+a+"&id=2"}}else{c="http://blog.gougou.com/category_search.fcg?search="+b+"&page=1&id=1"}}}var EventUtil=new Object;EventUtil.addEventHandler=function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}else{b["on"+c]=a}}};EventUtil.removeEventHandler=function(b,c,a){if(b.removeEventListener){b.removeEventListener(c,a,false)}else{if(b.detachEvent){b.detachEvent("on"+c,a)}else{b["on"+c]=null}}};ScrollCrossLeft={interval:0,count:0,duration:0,step:0,srcObj:null,callback:null};ScrollCrossLeft.doit=function(h,e,k,j){var f=ScrollCrossLeft;var a=g(f.count,e,k,j);h.style.marginLeft=a+"px";BigNews.currentBegin=a;f.count++;if(f.count==j){clearInterval(f.interval);f.count=0;h.style.marginLeft=e+k+"px";BigNews.currentBegin=e+k;f.callback()}function g(m,l,o,n){return o*((m=m/n-1)*m*m+1)+l}};ScrollCrossLeft2={interval:0,count:0,duration:0,step:0,srcObj:null,callback:null};ScrollCrossLeft2.doit_2=function(g,a,j,h){var e=ScrollCrossLeft2;g.style.marginLeft=f(e.count,a,j,h)+"px";e.count++;if(e.count==h){clearInterval(e.interval);e.count=0;g.style.marginLeft=a+j+"px";e.callback()}function f(l,k,n,m){return n*((l=l/m-1)*l*l+1)+k}};ScrollCrossLeft2.scroll=function(f,d,c,b,g,e){var a=ScrollCrossLeft2;a.duration=e;a.callback=g;a.interval=setInterval(function(){a.doit_2(f,b,d*c,e)},10)};var B=BigNews={current:0,next:0,scrollInterval:0,autoScroller:0,s:{},f:{},t:{},OnScrolling:false,preCss:"",currentBegin:0};BigNews.turn=function(a,c){if(a==BigNews.current){return false}$("showDiv_"+a).style.zIndex++;if($("bigpic_"+a).src=="http://images.movie.xunlei.com/img_default.gif"){try{setTimeout('$("bigpic_'+a+'").src = ScrollBigPic['+a+"] ;",50)}catch(b){}}BigNews.fadeIn("showDiv_"+a,a,50,c);BigNews.scroll(a,c)};BigNews.fadeIn=function(b,d,a,c){try{clearInterval(BigNews.f.interval)}catch(h){}var g=$(b);var f=0;BigNews.f.interval=setInterval(function(){f+=20;g.style.filter="alpha(opacity="+f+")";g.style.cssText=g.style.cssText.replace(/;-moz-opacity:.*?;/gi,"")+";-moz-opacity:"+f*0.01;g.style.cssText=g.style.cssText.replace(/;opacity:.*?;/gi,"")+";opacity:"+f*0.01;g.style.display="block";if(f==100){for(var e=0;e<c.totalcount;e++){$("title_bg_"+e).style.cssText="position:absolute;left:0;top:221px;float:none;width:694px;height:40px;background:#000;z-index:98;filter:alpha(opacity=60);opacity:0.6;z-index:98;filter:alpha(opacity=0);-moz-opacity:0;opacity:0";$("title_"+e).style.cssText="position:absolute;left:10px;top:232px;font-size:14px;color:#fff;font-weight:normal;z-index:99;filter:alpha(opacity=0);-moz-opacity:0;opacity:0";BigNews.showTitles(d,c);$("showDiv_"+e).style.cssText=BigNews.preCss;if(e==d){$("showDiv_"+e).style.display="block"}else{$("showDiv_"+e).style.display="none"}$("showDiv_"+d).style.zIndex=0}BigNews.current=d;clearInterval(BigNews.f.interval)}},a)};BigNews.showTitles=function(b,a){try{clearInterval(BigNews.t.interval)}catch(g){}var f=$("title_"+b);var d=$("title_bg_"+b);var c=0;BigNews.t.interval=setInterval(function(){c+=10;f.style.filter="alpha(opacity="+c+")";f.style.cssText=f.style.cssText.replace(/;-moz-opacity:.*?;/gi,"")+";-moz-opacity:"+c*0.01;f.style.cssText=f.style.cssText.replace(/;opacity:.*?;/gi,"")+";opacity:"+c*0.01;d.style.filter="alpha(opacity="+c*0.6+")";d.style.cssText=d.style.cssText.replace(/;-moz-opacity:.*?;/gi,"")+";-moz-opacity:"+c*0.01*0.6;d.style.cssText=d.style.cssText.replace(/;opacity:.*?;/gi,"")+";opacity:"+c*0.01*0.6;if(c==100){clearInterval(BigNews.t.interval)}},50)};BigNews.scroll=function(k,h){var j=0;var a=h.step;var g=16;var n=BigNews;n.next=k;if(k!=n.current&&j>g/8){return}try{clearInterval(BigNews.s.interval)}catch(m){}var d=$(h.hover).scrollLeft;var l=o*a+(n.current*a-d);BigNews.s.duration=g;BigNews.s.callback=c;var f=parseInt(BigNews.currentBegin);var o=k*a-f;BigNews.s.interval=setInterval(function(){BigNews.s.doit($(h.hover),f,o,g)},8);function c(){}};BigNews.auto=function(a){clearInterval(BigNews.autoScroller);BigNews.autoScroller=setInterval(function(){BigNews.turn(BigNews.current==(a.totalcount-1)?0:BigNews.current+1,a)},a.autotimeintval)};BigNews.pauseSwitch=function(){clearTimeout(BigNews.autoScroller)};BigNews.showNext=function(b,a){if(b>=MovieRecom.totalcount-1){return false}else{BigNews.pauseSwitch();BigNews.turn(b+1,a);BigNews.auto(a)}};BigNews.showPre=function(b,a){if(b<=0){return false}else{BigNews.pauseSwitch();BigNews.turn(b-1,a);BigNews.auto(a)}};BigNews.init=function(a){BigNews.s=ScrollCrossLeft;BigNews.preCss=a.css;EventUtil.addEventHandler($(a.bigpic),"mouseover",new Function("BigNews.pauseSwitch();"));EventUtil.addEventHandler($(a.bigpic),"mouseout",new Function("BigNews.auto("+a.objname+");"));for(i=0;i<a.totalcount;i++){if(a.smallpic!=null&&a.smallpic!=""){EventUtil.addEventHandler($(a.smallpic+"_"+i),"mouseover",new Function("BigNews.pauseSwitch();BigNews.turn("+i+","+a.objname+");return false;"));EventUtil.addEventHandler($(a.smallpic+"_"+i),"mouseout",new Function("BigNews.auto("+a.objname+");"))}}BigNews.showTitles(0,a);BigNews.auto(a)};
