function using(B){B=B.split(/\s*\.\s*/g);
var A=window,E;for(var D=0,C=B.length;D<C;D++){var F=B[D];if(E){E+="."+F}else{E=F}if(!A[F]){A[F]={$name:E}}else{if(!A[F].$name){A[F].$name=E}}A=A[F]}return A}(function(C){var B=navigator.userAgent;var A=navigator.platform;C.isMaxthon=(function(){var D;try{D=external.tab_count}catch(E){return false}if(typeof (D)=="undefined"){return false}return true})();C.isTT=(function(){if(C.isMaxthon){return false}if(B.indexOf("Tencent")==-1){return false}try{window.external.ShowBrowserUI("ku6")}catch(D){return false}return true})();C.isMatterExplorer=C.isMaxthon||C.isTT;C.isWindows=!!(A.indexOf("Win")!=-1);C.isMac=!!((A.indexOf("Mac")!=-1)||(A.indexOf("iPhone")!=-1));C.isLinux=!!(A.indexOf("Linux")!=-1)})(using("Ku6.Browser"));(function(A){A.add=function(E,D,C,F,B){if(E.addEventListener){E.addEventListener(D,C,false)}else{E.attachEvent("on"+D,C)}return this};A.remove=function(D,C,B){if(D.removeEventListener){D.removeEventListener(C,B,false)}else{D.detachEvent("on"+C,B)}return this};A.stop=function(B){return this.stopPropagation(B).preventDefault(B)};A.stopPropagation=function(B){if(B.stopPropagation){B.stopPropagation()}else{B.cancelBubble=true}return this};A.preventDefault=function(B){if(B.preventDefault){B.preventDefault()}else{B.returnValue=false}return this}})(using("Ku6.Event"));(function(B){var A=function(E,C){for(var D in (C||{})){E[D]=C[D]}return E};B.write=function(E,F,D){F=encodeURIComponent(F);D=A({doc:document},D);if(D.domain){F+="; domain="+D.domain}if(D.path){F+="; path="+D.path}if(D.duration){var C=new Date();C.setTime(C.getTime()+D.duration*24*60*60*1000);F+="; expires="+C.toGMTString()}if(D.secure){F+="; secure"}D.doc.cookie=E+"="+F};B.read=function(D,C){C=A({doc:document},C);var E=C.doc.cookie.match("(?:^|;)\\s*"+D.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")+"=([^;]*)");return(E)?decodeURIComponent(E[1]):null};B.dispose=function(D,C){this.write(D,"",A(A({},C),{duration:-1}))}})(using("Ku6.Cookie"));using("Ku6.SWF.Util");(function(A){A.Version=function(B){this.major=B[0]!=null?parseInt(B[0]):0;this.minor=B[1]!=null?parseInt(B[1]):0;this.rev=B[2]!=null?parseInt(B[2]):0};A.Version.prototype.isValid=function(B){if(this.major<B.major){return false}if(this.major>B.major){return true}if(this.minor<B.minor){return false}if(this.minor>B.minor){return true}if(this.rev<B.rev){return false}return true};A.Util.getVersion=function(){var C=new A.Version([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var B=navigator.plugins["Shockwave Flash"];if(B&&B.description){C=new A.Version(B.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new A.Version([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!=null){C=new A.Version(D.GetVariable("$version").split(" ")[1].split(","))}}return C};A.Object=function(F,D,N,H,J,M,L,O,I,B,E,G){if(!document.getElementById){return }this.DETECT_KEY=E?E:"detectflash";this.skipDetect=true;this.pars={};this.vars={};this.attrs={};if(F){this.setAttr("swf",F)}if(D){this.setAttr("id",D)}if(N){this.setAttr("width",N)}if(H){this.setAttr("height",H)}if(J){this.setAttr("version",new A.Version(J.toString().split(".")))}this.installedVer=A.Util.getVersion();if(M){this.addPar("bgcolor",M)}var C=O?O:"high";this.addPar("quality",C);this.setAttr("useExpressInstall",L);this.setAttr("doExpressInstall",false);var K=(I)?I:window.location;this.setAttr("xiRedirectUrl",K);this.setAttr("redirectUrl","");if(B){this.setAttr("redirectUrl",B)}if(G){this.setAttr("updateSwf",G)}};A.Object.prototype={setAttr:function(C,B){this.attrs[C]=B},getAttr:function(B){return this.attrs[B]},addPar:function(C,B){this.pars[C]=B},getPars:function(){return this.pars},addVar:function(C,B){this.vars[C]=B},getVar:function(B){return this.vars[B]},getVars:function(){return this.vars},getVarPairs:function(){var C=new Array();var B;var D=this.getVars();for(B in D){C.push(B+"="+D[B])}return C},getSWFHTML:function(){var E="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttr("doExpressInstall")){this.addVar("MMplayerType","PlugIn")}E='<embed type="application/x-shockwave-flash" src="'+this.getAttr("swf")+'" width="'+this.getAttr("width")+'" height="'+this.getAttr("height")+'"';E+=' id="'+this.getAttr("id")+'" name="'+this.getAttr("name")+'" ';var C=this.getPars();for(var B in C){E+=[B]+'="'+C[B]+'" '}var D=this.getVarPairs().join("&");if(D.length>0){E+='flashvars="'+D+'"'}E+="/>"}else{if(this.getAttr("doExpressInstall")){this.addVar("MMplayerType","ActiveX")}E='<object id="'+this.getAttr("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttr("width")+'" height="'+this.getAttr("height")+'"';if(this.getAttr("codebase")){E+=' codebase="'+this.getAttr("codebase")+'">'}else{E+=">"}E+='<param name="movie" value="'+this.getAttr("swf")+'" />';var C=this.getPars();for(var B in C){E+='<param name="'+B+'" value="'+C[B]+'" />'}var D=this.getVarPairs().join("&");if(D.length>0){E+='<param name="flashvars" value="'+D+'" />'}E+="</object>"}return E},write:function(B){if(this.getAttr("useExpressInstall")){var C=new A.Version([6,0,65]);if(this.installedVer.isValid(C)&&!this.installedVer.isValid(this.getAttr("version"))){this.setAttr("doExpressInstall",true);this.addVar("MMredirectURL",escape(this.getAttr("xiRedirectUrl")));this.addVar("redirectURL",escape(this.getAttr("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Ku6 Flash Installation";this.addVar("MMdoctitle",document.title);this.setAttr("swf",this.getAttr("updateSwf"))}}if(this.skipDetect||this.getAttr("doExpressInstall")||this.installedVer.isValid(this.getAttr("version"))){if(typeof B=="undefined"){document.write(this.getSWFHTML())}else{var D=(typeof B=="string")?document.getElementById(B):B;D.innerHTML=this.getSWFHTML()}return true}else{if(this.getAttr("redirectUrl")!=""){document.location.replace(this.getAttr("redirectUrl"))}if(typeof this.getAttr("onFail")=="function"){(this.getAttr("onFail"))()}}return false}};A.Object.prototype.setAttribute=A.Object.prototype.setAttr;A.Object.prototype.getAttribute=A.Object.prototype.getAttr;A.Object.prototype.addParam=A.Object.prototype.addPar;A.Object.prototype.getParams=A.Object.prototype.getPars;A.Object.prototype.addVariable=A.Object.prototype.addVar;A.Object.prototype.getVariable=A.Object.prototype.getVar;A.Object.prototype.getVariables=A.Object.prototype.getVars;A.Object.prototype.getVariablePairs=A.Object.prototype.getVarPairs})(using("Ku6.SWF"));Ku6.SWFObject=function(G){if(!document.createElement||!document.getElementById){return }if(!G.swf){return }var E=G.swf;if(!G.id){return }var C=G.id;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(G.embedID){C=G.embedID}}else{if(G.objID){C=G.objID}}if(!G.w){return }var N=G.w;if(!G.h){return }var H=G.h;var K=(!G.ver)?"6":G.ver;var M=(!G.c)?"#ffffff":G.c;var O=(!G.q)?"high":G.q;var L=(!G.useExpressInstall)?false:G.useExpressInstall;var J=(!G.xiRedirectUrl)?window.location:G.xiRedirectUrl;var A=(!G.redirectUrl)?"":G.redirectUrl;var D=(!G.detectKey)?"detectflash":G.detectKey;var F=(!G.updateSwf)?"":G.updateSwf;var I=new Ku6.SWF.Object(E,C,N,H,K,M,L,O,J,A,D,F);if(G.scale){I.addParam("scale",G.scale)}if(G.salign){I.addParam("salign",G.salign)}if(G.wmode){I.addParam("wmode",G.wmode)}if(G.menu){I.addParam("menu",G.menu)}if(G.pluginspage){I.addParam("pluginspage",G.pluginspage)}if(G.onFailFunc){I.setAttr("onFailFunc",G.onFailFunc)}var B=(G.name)?G.name:G.id;I.setAttr("name",B);if(G.codebase){I.setAttr("codebase",G.codebase)}return I};
using("App.RunTime");(function($ns){$ns.getQuery=function(item){var sValue=location.search.match(new RegExp("[?&]"+item+"=([^&]*)(&?)","i"));return sValue?sValue[1]:sValue};$ns.debugMode=$ns.getQuery("debug")=="true";window.onerror=function(){return !$ns.debugMode};$ns.$=function(o){if(typeof window.$=="function"){return $(o)}else{return typeof (o)=="string"?document.getElementById(o):o}};$ns.copyString=function(s,t){if(window.clipboardData){window.clipboardData.setData("text",s);if(t){alert(t||"文字已经复制到您的剪贴板中\r\n您可以使用Ctrl+v快捷键粘贴到需要的地方")}}else{alert("当前浏览器无法自动复制到剪贴板，请使用Ctrl+c快捷键手动复制")}};$ns.sendCodeCopy=function(select){var o=$ns.$("sendCode");if(o){if(select){o.select()}$ns.copyString(o.value)}};$ns.swfCodeCopy=function(select){var o=$ns.$("outSideSwfCode");if(o){if(select){o.select()}$ns.copyString(o.value)}};$ns.htmlCodeCopy=function(select){var o=$ns.$("outSideHtmlCode");if(o){if(select){o.select()}$ns.copyString(o.value)}};$ns.baiduCodeCopy=function(select){var o=$ns.$("baiduSwfCode");if(o){if(select){o.select()}$ns.copyString(o.value)}};$ns.importJs=function(url){var js=document.createElement("script");js.type="text/javascript";js.src=url;document.getElementsByTagName("head")[0].appendChild(js);return js};$ns.importCss=function(url){if(url){var l=document.createElement("link");l.rel="stylesheet";l.media="screen";l.type="text/css";l.href=url;document.getElementsByTagName("head")[0].appendChild(l);return l}};$ns.switchTab=function(a,b,c,ap,bp){c=c||"sel";var ta=$ns.$(a+"Tab"),tb=$ns.$(b+"Tab");if(ta){ta.className=ap?ap+" "+c:c}if(tb){tb.className=bp?bp:""}var ma=$ns.$(a+"Module"),mb=$ns.$(b+"Module");if(ma){ma.style.display=""}if(mb){mb.style.display="none"}};$ns.toggleInfo=function(e){if(e){Ku6.Event.stop(e)}var AR=$ns.RunTime;var o=$ns.$("infoModule");if(o){if(AR.infoModExpand){o.className="box clearfix v_i v_i_hid"}else{o.className="box clearfix v_i"}AR.infoModExpand=!!!AR.infoModExpand}};$ns.toggleShare=function(e){if(e){Ku6.Event.stop(e)}var AR=$ns.RunTime;var o=$ns.$("shareModule");if(o){if(AR.shareModExpand){o.className="box u_f_s_hid"}else{o.className="box u_f_s"}AR.shareModExpand=!!!AR.shareModExpand}};$ns.initCustomColor=function(){var AR=$ns.RunTime;var CC=$ns.CustomColor;if(!CC){AR.cusCTimer=setTimeout($ns.initCustomColor,10)}else{clearTimeout(AR.cusCTimer);delete AR.cusCTimer;if(!AR.cusOptClk&&$("customOpt")){AR.cusOptClk=CC.preview.bind(CC);$("customOpt").addEvent("click",AR.cusOptClk)}CC.preview()}};$ns.toggleCustom=function(e){if(e){Ku6.Event.stop(e)}var AR=$ns.RunTime;var o=$("customModule");if(o){$ns.initCustomColor();o.style.display=AR.cusModExpand?"none":"";AR.cusModExpand=!!!AR.cusModExpand}};$ns.showSend=function(e){if(e){Ku6.Event.stop(e)}$ns.switchTab("send","outSide","sel","s1","s2")};$ns.showOutSide=function(e){if(e){Ku6.Event.stop(e)}$ns.switchTab("outSide","send","sel","s2","s1")};$ns.doSearch=function(frm){var v=frm.inp.value.replace(/[&\?]/g," ");if(v==""){alert("请输入查询内容 ^_^");frm.inp.focus();return false}else{var inp=encodeURIComponent(v),type=frm.searchType.value||"video",url;url={movie:"http://m.ku6.com/search.html?stype=2&keyword="+v,yahoo:"http://search.union.yahoo.com.cn/click/search.htm?m=419561&b=&p=1006&a=&st=0&fw=union&name="+inp,zk:"http://z.ku6.com/search.htm?t=question&q="+v}[type];if(!url){url="http://so.ku6.com/"+{video:"v",username:"u",playlist:"p"}[type]+"/q"+inp}frm.action=url;frm.submit();return false}};$ns.toggleTSTypes=function(e,f){if(e){Ku6.Event.stop(e)}if(arguments.length>1){$ns.$("selOption").style.display=!!!f?"none":"block"}else{with($ns.$("selOption").style){display={none:"block",block:"none"}[display]}}return false};$ns.switchTSType=function(e,t,a){clearTimeout($ns.RunTime.TSTer);$ns.toggleTSTypes(e,false);$ns.$("searchType").value=t;$ns.$("inp1").focus();a?$ns.$("typeSelected").innerHTML=a.innerHTML:""};$ns.startHideTSTypes=function(e){$ns.RunTime.TSTer=setTimeout(function(){$ns.toggleTSTypes(e,false)},1000)};$ns.stopHideTSTypes=function(e){clearTimeout($ns.RunTime.TSTer)};$ns.doPlayerUpdate=function(){var AR=$ns.RunTime,AP=$ns.Player;if(AR.updating){return }AR.updating=true;var swfo=new Ku6.SWFObject({swf:$ns.imgRoot+"podcast/swf/"+AP.version+"/update.swf",id:"playerUpdater",w:"566",h:"400",wmode:"opaque"});swfo.addPar("AllowFullScreen","true");swfo.addPar("AllowScriptAccess","always");swfo.write("playerModule")};$ns.cannotPlay=function(installed){																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																													var v=[];v.push('<div class="f_w_box"><a href="#" onclick="this.parentNode.style.display=\'none\';return false"><span class="f_icon_close" title="关闭"></span></a><div class="f_w_text1">');v.push(title);v.push('</div><div class="btn">'+btns+'</div><div class="f_w_text2">'+foot+"</div></div>");return v.join("")}})(using("App"));(function(A){var B=Ku6.Cookie;A.key="skinId";A.def=0;A.path=App.skinCss;A.colors=["","","","","000000"];var E=parseInt(B.read(A.key));A.now=E==E?E:A.def;A.getColor=function(){return this.colors[this.now]};A.selectBtn=function(F){F=parseInt(F);if(F!=F){F=this.def}var H=App.$("skinBtns").getElementsByTagName("A");if(F<H.length){for(var G=0,I=H.length;G<I;G++){H[G].className="a"+(G+1)+(G==F?" sel":"")}}};A.change=function(H,F){if(H){var G=H.target||H.srcElement;if(G.tagName.toLowerCase()=="span"){G=G.parentNode}if(G.tagName.toLowerCase()=="a"){Ku6.Event.stop(H);F=G.getAttribute("skin")}}F=parseInt(F);F=F==F?F:this.now;if(F!=this.now){if(F!=this.def){if(this.el){this.el.parentNode.removeChild(this.el)}delete this.el;this.el=App.importCss(this.path.replace("{n}",F))}else{if(this.el){this.el.disabled=true}}B.write(this.key,F,{path:"/",duration:365});this.selectBtn(F);this.now=F;this.toPlayer(F);this.closeTipWin()}return this};A.toPlayer=function(H){var I=App.Player,G=App.RunTime;if(H<this.colors.length&&!I.timeOut){clearInterval(G.skinTimer);var F=this.colors[H];G.skinTimer=setInterval(function(){if(I.ready&&I.instance&&typeof I.instance.setColor=="function"){clearInterval(G.skinTimer);I.instance.setColor(F)}else{if(I.timeOut){clearInterval(G.skinTimer)}}},50)}};A.check=function(){var F=this.now;if(F!=this.def){this.el=App.importCss(this.path.replace("{n}",F));this.selectBtn(F)}else{this.selectBtn()}return this};var C="skinTip",D="skinTipWin";A.showTipWin=function(){var G=B.read(C);if(!G||parseInt(G)!=1){var F=App.$(D);if(F){F.style.display=""}}return this};A.closeTipWin=function(){var F=App.$(D);if(F){F.style.display="none"}B.write(C,1,{path:"/",duration:365});return this}})(using("App.Skin"));(function(D){var C=D.RunTime,E=D.Player,A=D.ObjectInfo;var B=Ku6.SWF.Util.getVersion();D.createPlayer=function(){var H;if(B.major==0){E.timeOut=true;document.write(D.cannotPlay())}else{if(!B.isValid(new Ku6.SWF.Version([9,0,115]))){E.timeOut=true;document.write(D.cannotPlay(true))}else{H=new Ku6.SWFObject({swf:E.swf,id:"video_player",w:"566",h:"400",wmode:"opaque"});H.addPar("AllowFullScreen","true");H.addPar("AllowScriptAccess","always");H.addVar("v",E.version);H.addVar("co",D.Skin.getColor());try{var G=window.location.href,J=top.location.href,F=parent.location.href;if(G!=J||G!=F){H.addVar("sa","o")}}catch(I){H.addVar("sa","o")}H.skipDetect=false}}return H}})(using("App"));(function(A){A.wait=10000;A.close=function(){clearTimeout(this.exTimer);delete this.exTimer;if(this.el){this.el.style.display="none"}delete this.el};A.expand=function(F,D,E){if(!this.el){this.el=App.$("pad_ex")}if(this.el){var B=this.el.firstChild;if(B.tagName.toLowerCase()=="a"){B.href=D;B.target="_blank";B.onclick=function(){A.close()}}else{return false}var C=B.firstChild;if(C.tagName.toLowerCase()=="img"){C.src=F}else{return false}if(E){App.importJs(E)}if(!this.exTimer){this.exTimer=setTimeout(function(){A.close()},this.wait)}this.el.style.display=""}}})(using("Ku6.Service.PAD"));function playReady(){App.Player.ready=true}function playStart(){App.Player.started=true;if(App.TaskQueue){App.TaskQueue.run()}}function playFinish(){App.Player.finished=true;if(App.TaskQueue){App.TaskQueue.run()}}function playNext(){if(App.videoMode){var C=App.QuickList,F=App.ObjectInfo,B=App.RelativeVideo,A=arguments[0]||null,E=arguments[1];if(E&&A&&B){B.playNext(A)}else{if(C&&C.playMode&&C.contains(F.id)){C.playNext(A)}else{if(B){B.playNext(A)}}}}else{App.ku_track();if(arguments.length>1){var D=App.PlayListVideos,B=App.RunTime;if(D){B.playingVid=arguments[0];D.loadByIndex(arguments[1])}}}}function pageReady(){return window.Browser&&Browser.loaded}function PAD_expand(){var A=Ku6.Service.PAD;if(A.expand){A.expand.apply(A,arguments)}};
