var Native=function(k){k=k||{};var a=k.name,i=k.legacy,b=k.protect,c=k.implement,h=k.generics,f=k.initialize,g=k.afterImplement||function(){},d=f||i;h=h!==false;d.constructor=Native;d.$family={name:"native"};if(i&&f){d.prototype=i.prototype}d.prototype.constructor=d;if(a){var e=a.toLowerCase();d.prototype.$family={name:e};Native.typize(d,e)}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o}if(h){Native.genericize(n,l,b)}g.call(n,l,o);return n};d.alias=function(n,l,p){if(typeof n=="string"){var o=this.prototype[n];if((n=o)){return j(this,l,n,p)}}for(var m in n){this.alias(m,n[m],l)}return this};d.implement=function(m,l,o){if(typeof m=="string"){return j(this,m,l,o)}for(var n in m){j(this,n,m[n],l)}return this};if(c){d.implement(c)}return d};Native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=Array.prototype.slice.call(arguments);return b.prototype[c].apply(d.shift(),d)}}};Native.implement=function(d,c){for(var b=0,a=d.length;b<a;b++){d[b].implement(c)}};Native.typize=function(a,b){if(!a.type){a.type=function(c){return($type(c)===b)}}};(function(){var a={Array:Array,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String};for(var h in a){new Native({name:h,initialize:a[h],protect:true})}var d={"boolean":Boolean,"native":Native,object:Object};for(var c in d){Native.typize(d[c],c)}var f={Array:["concat","indexOf","join","lastIndexOf","pop","push","reverse","shift","slice","sort","splice","toString","unshift","valueOf"],String:["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]};for(var e in f){for(var b=f[e].length;b--;){Native.genericize(a[e],f[e][b],true)}}})();var Hash=new Native({name:"Hash",initialize:function(a){if($type(a)=="hash"){a=$unlink(a.getClean())}for(var b in a){this[b]=a[b]}return this}});Hash.implement({forEach:function(b,c){for(var a in this){if(this.hasOwnProperty(a)){b.call(c,this[a],a,this)}}},getClean:function(){var b={};for(var a in this){if(this.hasOwnProperty(a)){b[a]=this[a]}}return b},getLength:function(){var b=0;for(var a in this){if(this.hasOwnProperty(a)){b++}}return b}});Hash.alias("forEach","each");Array.implement({forEach:function(c,d){for(var b=0,a=this.length;b<a;b++){c.call(d,this[b],b,this)}}});Array.alias("forEach","each");function $A(b){if(b.item){var a=b.length,c=new Array(a);while(a--){c[a]=b[a]}return c}return Array.prototype.slice.call(b)}function $arguments(a){return function(){return arguments[a]}}function $chk(a){return !!(a||a===0)}function $clear(a){clearTimeout(a);clearInterval(a);return null}function $defined(a){return(a!=undefined)}function $each(c,b,d){var a=$type(c);((a=="arguments"||a=="collection"||a=="array")?Array:Hash).each(c,b,d)}function $empty(){}function $extend(c,a){for(var b in (a||{})){c[b]=a[b]}return c}function $H(a){return new Hash(a)}function $lambda(a){return($type(a)=="function")?a:function(){return a}}function $merge(){var a=Array.slice(arguments);a.unshift({});return $mixin.apply(null,a)}function $mixin(e){for(var d=1,a=arguments.length;d<a;d++){var b=arguments[d];if($type(b)!="object"){continue}for(var c in b){var g=b[c],f=e[c];e[c]=(f&&$type(g)=="object"&&$type(f)=="object")?$mixin(f,g):$unlink(g)}}return e}function $pick(){for(var b=0,a=arguments.length;b<a;b++){if(arguments[b]!=undefined){return arguments[b]}}return null}function $random(b,a){return Math.floor(Math.random()*(a-b+1)+b)}function $splat(b){var a=$type(b);return(a)?((a!="array"&&a!="arguments")?[b]:b):[]}var $time=Date.now||function(){return +new Date};function $try(){for(var b=0,a=arguments.length;b<a;b++){try{return arguments[b]()}catch(c){}}return null}function $type(a){if(a==undefined){return false}if(a.$family){return(a.$family.name=="number"&&!isFinite(a))?false:a.$family.name}if(a.nodeName){switch(a.nodeType){case 1:return"element";case 3:return(/\S/).test(a.nodeValue)?"textnode":"whitespace"}}else{if(typeof a.length=="number"){if(a.callee){return"arguments"}else{if(a.item){return"collection"}}}}return typeof a}function $unlink(c){var b;switch($type(c)){case"object":b={};for(var e in c){b[e]=$unlink(c[e])}break;case"hash":b=new Hash(c);break;case"array":b=[];for(var d=0,a=c.length;d<a;d++){b[d]=$unlink(c[d])}break;default:return c}return b}function $(a){return(typeof a=="string")?document.getElementById(a):a}String.implement({substitute:function(a,b){return this.replace(b||(/\\?\{([^}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1)}return(a[c]!=undefined)?a[c]:""})},contains:function(a,b){return(b)?(b+this+b).indexOf(b+a+b)>-1:this.indexOf(a)>-1},trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s+/g," ").trim()},between:function(c,b){var d=this.indexOf(c);if(d==-1){return""}d+=c.length;var a=this.indexOf(b,d);if(a==-1){return""}return this.substr(d,a-d)},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase()})},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase())})},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase()})}});Array.implement({each:function(c,d){for(var b=0,a=this.length;b<a;b++){c.call(d,this[b],b,this)}},every:function(c,d){for(var b=0,a=this.length;b<a;b++){if(!c.call(d,this[b],b,this)){return false}}return true},filter:function(d,e){var c=[];for(var b=0,a=this.length;b<a;b++){if(d.call(e,this[b],b,this)){c.push(this[b])}}return c},clean:function(){return this.filter($defined)},indexOf:function(c,d){var a=this.length;for(var b=(d<0)?Math.max(0,a+d):d||0;b<a;b++){if(this[b]===c){return b}}return -1},map:function(d,e){var c=[];for(var b=0,a=this.length;b<a;b++){c[b]=d.call(e,this[b],b,this)}return c},some:function(c,d){for(var b=0,a=this.length;b<a;b++){if(c.call(d,this[b],b,this)){return true}}return false},link:function(c){var a={};for(var e=0,b=this.length;e<b;e++){for(var d in c){if(c[d](this[e])){a[d]=this[e];delete c[d];break}}}return a},contains:function(a,b){return this.indexOf(a,b)!=-1},extend:function(c){for(var b=0,a=c.length;b<a;b++){this.push(c[b])}return this},include:function(a){if(!this.contains(a)){this.push(a)}return this},erase:function(b){for(var a=this.length;a--;a){if(this[a]===b){this.splice(a,1)}}return this},flatten:function(){var d=[];for(var b=0,a=this.length;b<a;b++){var c=$type(this[b]);if(!c){continue}d=d.concat((c=="array"||c=="collection"||c=="arguments")?Array.flatten(this[b]):this[b])}return d}});Function.implement({create:function(b){var a=this;b=b||{};return function(d){var c=b.arguments;c=(c!=undefined)?$splat(c):Array.slice(arguments,(b.event)?1:0);if(b.event){c=[d||window.event].extend(c)}var e=function(){return a.apply(b.bind||null,c)};if(b.delay){return setTimeout(e,b.delay)}if(b.periodical){return setInterval(e,b.periodical)}return e()}},bind:function(b,a){return this.create({bind:b,arguments:a})},bindWithEvent:function(b,a){return this.create({bind:b,event:true,arguments:a})},delay:function(b,c,a){return this.create({delay:b,bind:c,arguments:a})()},periodical:function(a,c,b){return this.create({periodical:a,bind:c,arguments:b})()}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(b){for(var a in this){if(this.hasOwnProperty(a)&&this[a]===b){return a}}return null},hasValue:function(a){return(Hash.keyOf(this,a)!==null)},extend:function(a){Hash.each(a||{},function(c,b){Hash.set(this,b,c)},this);return this},combine:function(a){Hash.each(a||{},function(c,b){Hash.include(this,b,c)},this);return this},erase:function(a){if(this.hasOwnProperty(a)){delete this[a]}return this},get:function(a){return(this.hasOwnProperty(a))?this[a]:null},set:function(a,b){if(!this[a]||this.hasOwnProperty(a)){this[a]=b}return this},empty:function(){Hash.each(this,function(b,a){delete this[a]},this);return this},include:function(a,b){if(this[a]==undefined){this[a]=b}return this},map:function(b,c){var a=new Hash;Hash.each(this,function(e,d){a.set(d,b.call(c,e,d,this))},this);return a},filter:function(b,c){var a=new Hash;Hash.each(this,function(e,d){if(b.call(c,e,d,this)){a.set(d,e)}},this);return a},every:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&!b.call(c,this[a],a)){return false}}return true},some:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&b.call(c,this[a],a)){return true}}return false},getKeys:function(){var a=[];Hash.each(this,function(c,b){a.push(b)});return a},getValues:function(){var a=[];Hash.each(this,function(b){a.push(b)});return a},toQueryString:function(a){var b=[];Hash.each(this,function(f,e){if(a){e=a+"["+e+"]"}var d;switch($type(f)){case"object":d=Hash.toQueryString(f,e);break;case"array":var c={};f.each(function(h,g){c[g]=h});d=Hash.toQueryString(c,e);break;default:d=e+"="+encodeURIComponent(f)}if(f!=undefined){b.push(d)}});return b.join("&")}});Hash.alias({keyOf:"indexOf",hasValue:"contains"});var JSON=new Hash(this.JSON&&{stringify:JSON.stringify,parse:JSON.parse}).extend({$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(a){return JSON.$specialChars[a]||"\\u00"+Math.floor(a.charCodeAt()/16).toString(16)+(a.charCodeAt()%16).toString(16)},encode:function(b){switch($type(b)){case"string":return'"'+b.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case"array":return"["+String(b.map(JSON.encode).clean())+"]";case"object":case"hash":var a=[];Hash.each(b,function(e,d){var c=JSON.encode(e);if(c){a.push(JSON.encode(d)+":"+c)}});return"{"+a+"}";case"number":case"boolean":return String(b);case false:return"null"}return null},decode:function(string,secure){if($type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null}return eval("("+string+")")}});Native.implement([Hash,Array,String,Number],{toJSON:function(){return JSON.encode(this)}});
function using(b,e){b=(b||"").split(/\s*\.\s*/g);var a=window,h,g;for(var f=0,c=b.length;f<c;f++){g=b[f];if(h){h+="."+g}else{h=g}if(!a[g]){a[g]={}}if(e!==true&&!a[g].$name){a[g].$name=h}a=a[g]}return a}(function(a){var c=0,b=(new Date()).getTime();a.startTime=b;a.FRAME_FIX_HTML='<iframe style="position:absolute;top:0;left:0;height:100%;width:100%;z-index:-1;" frameborder="0" allowTransparency="true"></iframe>';a.guid=function(d){return(d||"")+b+"_"+(++c)};a.type=function(g){var d=typeof(g);try{if(g&&g.constructor){d=(g.constructor.toString().toLowerCase().match(/^\s*function (\w+)\(/i))[1]}}catch(f){}return d};a.extend=function(f,d,g){for(var e in (d||{})){if(g||e!="$name"){f[e]=d[e]}}return f};a.apply=function(f,g,e){if(e){a.apply(f,e)}if(f&&g&&typeof g=="object"){for(var d in g){f[d]=g[d]}}return f};a.applyIf=function(f,g,e){if(f){for(var d in g){if((e||d!="$name")&&typeof f[d]==="undefined"){f[d]=g[d]}}}return f};a.implement=function(f,d,e){if(d){a[e?"extend":"applyIf"](f.prototype,d)}};a.override=function(d,f){if(f){var e=d.prototype;a.apply(e,f);if(a.is_trident&&f.hasOwnProperty("toString")){e.toString=f.toString}}};a.each=function(d,j,h){var g=a.type(d);switch(g){case"array":for(var f=0,e=d.length;f<e;f++){j.call(h,d[f],f,d)}break;case"object":for(var f in d){j.call(h,d[f],f,d)}break}};a.id=function(d){return typeof(d)=="string"?document.getElementById(d):(d||null)};a.time=function(){return(new Date()).getTime()};a.clear=function(d){clearTimeout(d);clearInterval(d);return null};a.empty=function(d){return d===""};a.Class=function(e){var d=function(){return this.initialize?this.initialize.apply(this,arguments):this};d.constructor=a.Class;d.prototype.constructor=d;a.override(d,e);return d};a.encode=function(e,d,f){d=d||"uri";switch(d){case"uri":default:return window["encodeURI"+(f?"":"Component")](e)}};a.decode=function(e,d,f){d=d||"uri";switch(d){case"uri":default:return window["decodeURI"+(f?"":"Component")](e)}};a.toString=function(){return"Author: \u5f71\u4e4b\u8ff7\u60d1\nQQ: 9537905\nMSN: zfkun@msn.com"}})(using("Ku6"));
(function(a){var d="http://",b="ku6.com",c={root:d+b,www:d+"www."+b,so:d+"so."+b,podcast:d+"v."+b,passport:d+"passport."+b,blog:d+"blog."+b,space:d+"zone."+b,hd:d+"hd."+b,jc:d+"www.juchang.com",juchang:d+"juchang.com",comment:d+"comment."+b,player:d+"player."+b,filmcomment:d+"filmcomment."+b,group:"http://group.ku6.com",wap:"http://wap.ku6.com",visitor:"http://visitor.ku6.com",user:d+"user."+b,imgCode:d+"check."+b+"/checkEncodeCodes",js:d+"js."+b,cdn:d+"static."+b,img:d+"img."+b,image:d+"image."+b};Ku6.each(c,function(f,e){a[e]=f;a["_"+e]=f.replace(/^http(s?):\/\//i,"")})})(using("Ku6.Urls"));
(function(d){d.Engine={name:"unknown",version:0};d.Platform={name:(window.orientation!=undefined)?"ipod":(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase()};d.Platform[d.Platform.name]=true;d.Features={xpath:!!(document.evaluate),air:!!(window.runtime),query:!!(document.querySelector)};d.Plugins={range:document.implementation.hasFeature("Range","2.0")};var g,h,i={presto:function(){return(!window.opera)?false:((arguments.callee.caller)?960:((document.getElementsByClassName)?950:925))},trident:function(){return(!window.ActiveXObject)?false:((window.XMLHttpRequest)?((document.querySelectorAll)?6:5):4)},webkit:function(){return(navigator.taintEnabled)?false:((d.Features.xpath)?((d.Features.query)?525:420):419)},gecko:function(){return(!document.getBoxObjectFor&&window.mozInnerScreenX==null)?false:((document.getElementsByClassName)?19:18)}};for(h in i){g=i[h]();if(g){d.Engine={name:h,version:g};Ku6["is_"+h]=d.Engine[h]=d.Engine[h+g]=true;break}}h=g=null;if(d.is_trident&&d.Engine.version<4){try{document.execCommand("BackgroundImageCache",false,true)}catch(f){}}d.Request=function(){try{return new XMLHttpRequest()}catch(k){try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(k){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(k){}}}return};d.Features.xhr=!!(d.Request());Ku6.extend(d.Plugins,{Flash:(function(){var k;try{k=navigator.plugins["Shockwave Flash"].description}catch(l){try{k=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(l){}}k=(k||"0 r0").match(/\d+/g);return{version:parseInt(k[0]||0+"."+k[1],10)||0,build:parseInt(k[2],10)||0}})()});d.POSITION_FIXED=d.Engine.trident&&d.Engine.version<=4;var a=navigator.userAgent;d.isMaxthon=(function(){var k;try{k=window.external.tab_count;return typeof(k)!="undefined"}catch(l){}return false})();d.isTT=(function(){if(d.isMaxthon||a.indexOf("Tencent")==-1){return false}try{window.external.ShowBrowserUI("ku6");return true}catch(k){}return false})();if(d.isTT){try{var j=window.external.getTTVerStr();if(j.indexOf("Tencent")>=0){d.TTVer=j;var b=d.TTVer.replace("Tencent Traveler ","").split(" ")[0].split(".");d.TTVerMaj=parseInt(b[0]+b[1])||0}}catch(f){}}d.getTTVer=function(){return d.TTVer?d.TTVer.replace("Tencent Traveler ",""):""};if(d.isMaxthon){try{d.MAXVer=window.external.max_version;var c=d.MAXVer.split(".");d.MAXVerMaj=parseInt(c[0]+c[1]+c[2])||0}catch(f){}}d.getMaxVer=function(){return d.MAXVer||""};d.isMatterExplorer=d.isMaxthon||d.isTT;if(Ku6.is_webkit){Ku6["is_"+(/chrome/i.test(a)&&/mozilla/i.test(a)?"chrome":"safari")]=true}if(d.isMatterExplorer&&(d.MAXVerMaj>254||d.TTVerMaj>44)){d.swfWmodeTrouble=true}})(using("Ku6.Browser"));
(function(g){var a="addEventListener",c="attachEvent",f="removeEventListener",i="detachEvent",b="preventDefault",e="stopPropagation",h="cancelBubble",d="returnValue";g.adds=function(l,j){for(var k in j){g.add(l,k,j[k])}return this};g.add=function(j,l,k){if(j){j[a]?j[a](l,k,false):j[c]("on"+l,k)}return this};g.removes=function(l,j){for(var k in j){g.remove(l,k,j[k])}return this};g.remove=function(j,l,k){if(j){j[f]?j[f](l,k,false):j[i]("on"+l,k)}return this};g.stop=function(j){return this.stopPropagation(j).preventDefault(j)};g.stopPropagation=function(j){j=j||window.event;if(j){j[e]?j[e]():j[h]=true}return this};g.preventDefault=function(j){j=j||window.event;if(j){j[b]?j[b]():j[d]=false}return this}})(using("Ku6.Event"));
(function(c){var f="$events",e="addEvent",b="addEvents",h="removeEvent",d="removeEvents",g="fireEvent",a="removeOn";c[e]=function(k,j,i){k=this[a](k);if(!this[f]){this[f]={}}if(j!=$empty){this[f][k]=this[f][k]||[];if(window.Prototype&&Prototype.Version&&!this[f][k].contains(j)){this[f][k].push(j)}else{this[f][k].include(j)}if(i){j.internal=true}}return this};c[b]=function(i){for(var j in i){this[e](j,i[j])}return this};c[g]=function(k,j,i){k=this[a](k);if(!this[f]||!this[f][k]){return this}this[f][k].each(function(l){l.create({bind:this,delay:i,"arguments":j})()},this);return this};c[h]=function(j,i){j=this[a](j);if(!this[f][j]){return this}if(!i.internal){this[f][j].erase(i)}return this};c[d]=function(l){if($type(l)=="object"){for(var m in l){this[h](m,l[m])}return this}if(l){l=this[a](l)}for(var m in this[f]){if(l&&l!=m){continue}var k=this[f][m];for(var j=k.length;j--;j){this[h](m,k[j])}}return this};c[a]=function(i){return i.replace(/^on([A-Z])/,function(j,k){return k.toLowerCase()})}})(using("Ku6.Events",true));
(function(a){var b=Ku6.extend;a.write=function(e,f,d){f=encodeURIComponent(f);d=b({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};a.read=function(d,c){c=b({doc:document},c);var e=c.doc.cookie.match("(?:^|;)\\s*"+d.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")+"=([^;]*)");return(e)?decodeURIComponent(e[1]):null};a.dispose=function(d,c){this.write(d,"",b(b({},c),{duration:-1}))}})(using("Ku6.Cookie"));
(function(c){var a=Ku6.Urls,b=using("Ku6.RunTime");c.between=function(h,f,e){var g=h.indexOf(f);if(g==-1){return""}g+=f.length;var d=h.indexOf(e,g);if(d==-1){return""}return h.substr(g,d-g)};c.getLength=function(e,d){if(typeof e!="string"&&typeof e!="number"&&!e){return 0}e=""+e;return d?e.length:e.replace(/[^\x00-\xff]/gi,"..").length};c.cutString=function(j,e,d){var f=0,h=0;if(e>=c.getLength(j)){return j}var g="";while(f<e){g+=j.charAt(h);f+=c.getLength(j.charAt(h));h++}if(f>e){g=g.substr(0,g.length-1)}if(d){g+=d}return g};c.getTpl=function(e,f){var d=b.TPL_CACHES||(b.TPL_CACHES={});if(d[e]){return d[e]}else{var g=f||(document.documentElement||document.body).innerHTML;return d[e]=c.between(g,"<!--"+e,e+"-->")}};c.importJs=function(e,m){if(!e){return}var f,l,g=m||{};if(g&&g.singleton){var d=document.getElementsByTagName("script");for(var j=0,h=d.length;j<h;j++){if(d[j]&&d[j].src&&d[j].src==e){l=d[j];break}}d=null}if(!l){f=document.createElement("script");f.type="text/javascript";f.src=e;if(g.charset){f.charset=g.charset}if(g.id){f.id=g.id}if(g.name||g.id){f.name=g.name||g.id}document.getElementsByTagName("head")[0].appendChild(f)}if(g&&$type(g.onLoad)=="function"){if(l){g.onLoad(l)}else{var k=g.onLoad;if(Ku6.is_trident){f.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){k(this)}}}else{f.onload=function(){k(this)}}}}if(g.get){return l||f}l=null;f=null};c.importCss=function(f,e){var d,g=e||{};if(f){d=document.createElement("link");d.rel=g.rel||"stylesheet";d.media=g.media||"screen";d.type="text/css";d.href=f;if(g.charset){d.charset=g.charset}if(g.id){d.id=g.id}if(g.name||g.id){d.name=g.name||g.id}document.getElementsByTagName("head")[0].appendChild(d)}if(e&&e.get){return d}d=null};c.substitute=function(f,d,e){return f.replace(e||(/\\?\{([^{}]+)\}/g),function(h,g){if(h.charAt(0)=="\\"){return h.slice(1)}return(d[g]!=undefined)?d[g]:""})};c.capitalize=function(d){return d.replace(/\b[a-z]/g,function(e){return e.toUpperCase()})};c.getCoverUrl=function(e,f){var d=c.assureUrl(f||e);if(d){return d.replace("http://i.ku6.com","http://i2.ku6.com").replace("http://i6.ku6.com","http://i2.i6.ku6.com")}return a.img+"/common/defcover/default_mv.gif"};c.getPlayerUrl=function(d,e){return a.player+"/refer/"+d+"/v.swf"};c.getJCPlayerUrl=function(e,d){return a.player+"/jcrefer/"+e+"/"+d+"/v.swf"};c.getVideoUrl=function(d){return d?a.podcast+"/show/"+d+".html":null};c.getJCVideoUrl=function(e,d){return e?a.podcast+(d?"/film/show_"+e+"/"+d:"/film/index_"+e)+".html":null};c.getHDVideoUrl=function(d){return d?a.hd+"/show/"+d+".html":null};c.getPlaylistUrl=function(e,d){return e?a.podcast+(d?"/special/show_"+e+"/"+d:"/playlist/index_"+e)+".html":null};c.getPodcastUrl=function(e,d){e=parseInt(e);if(d){return a.podcast+(/^\//.test(d)?"":"/")+d}else{if(e==e&&e>9999){return a.podcast+"/u/"+e}}return null};c.getSpaceUrl=function(e,d){e=parseInt(e);if(d&&d.length>0){return"http://"+d+"."+a._space}else{if(e==e&&e>9999){return a.space+"/u/"+e}}return null};c.bizPoiseServer=function(d){d=parseInt(d);return d==d?d%4:0};c.statPoiseServer=function(d){d=parseInt(d);return d==d?d%8:0};c.assureUrl=function(d){if(d){return"http://"+d.replace(/^http:\/\//,"")}return null};c.absoluteURI=function(d){d=d||"";if(/^http[s]?\:\/\//.test(d)){return d}var g=location,f=g.pathname;if(!(/^\//.test(d))){var e=f.lastIndexOf("/");d=(e<0?"":f.substr(0,e+1))+d}return g.protocol+"//"+g.host+d};c.redirect=function(e,h,g){if(!e){return}var d=location.href,f=c.absoluteURI(e);if(d==f&&!!h){location.reload()}else{if(!!g){location.replace(f)}else{location.href=f}}};c.getUser=function(e){var d=Ku6.User[c.capitalize(e)];return d?d.get():null}})(using("Ku6.Utils"));
(function(b){var a="major",c="minor",d="rev";b.Version=function(e){this[a]=e[0]!=null?parseInt(e[0]):0;this[c]=e[1]!=null?parseInt(e[1]):0;this[d]=e[2]!=null?parseInt(e[2]):0};b.Version.prototype.isValid=function(e){if(this[a]<e[a]){return false}if(this[a]>e[a]){return true}if(this[c]<e[c]){return false}if(this[c]>e[c]){return true}if(this[d]<e[d]){return false}return true}})(using("Ku6.SWF"));(function(b){var d=Ku6.Browser,a=Ku6.SWF,c=a.Version;b.getVersion=function(){var g=new c([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var f=navigator.plugins["Shockwave Flash"];if(f&&f.description){g=new c(f.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(i){try{var h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");g=new c([6,0,21]);h.AllowScriptAccess="always"}catch(i){if(g.major==6){return g}}try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(i){}}if(h!=null){g=new c(h.GetVariable("$version").split(" ")[1].split(","))}}return g};b.remove=function(f){var e=Ku6.id(f);if(e&&e.nodeName&&e.nodeName=="OBJECT"||e.nodeName=="EMBED"){if(d.trident&&d.Platform.win){e.style.display="none";(function(){if(e.readyState==4){e=null;var h=Ku6.id(f);if(h){for(var g in h){if(typeof h[g]=="function"){h[g]=null}}h.parentNode.removeChild(h);h=null}}else{setTimeout(arguments.callee,10)}})()}else{e.parentNode.removeChild(e);e=null}}};b.cleanup=function(){var e="instanceIds";for(var f=0,g=a[e].length;f<g;f++){b.remove(a[e][f])}b[e]=null}})(using("Ku6.SWF.Util"));(function(i){var q=Ku6.SWF.Version,h=Ku6.SWF.Util;var k="setAttr",m="getAttr",g="addPar",p="getPar",e="getPars",o="addVar",a="getVar",n="getVars",b="getVarPairs",d="getSWFHTML",l="write",c="instanceIds";i[c]=[];i.Object=function(u,s,C,x,z,B,A,D,y,r,t,v){if(!document.getElementById){return}this.skipDetect=true;this.installedVer=h.getVersion();this.pars={quality:D};this.vars={};this.attrs={swf:u||"",id:s||"",width:C||1,height:x||1,useExpressInstall:!!A,doExpressInstall:false,xiRedirectUrl:y||window.location.href,redirectUrl:r||""};if(z){this[k]("version",new q(z.toString().split(".")))}if(B){this[g]("bgcolor",B)}if(v){this[k]("updateSwf",v)}};var f=i.Object.prototype;f[k]=function(s,r){this.attrs[s]=r;return this};f[m]=function(r){return this.attrs[r]};f[g]=function(s,r){this.pars[s]=r;return this};f[e]=function(){return this.pars};f[o]=function(s,r){this.vars[s]=r;return this};f[n]=function(){return this.vars};f[b]=function(){var s=[],r,t=this.vars;for(r in t){s.push(r+"="+encodeURIComponent(t[r]))}return s};f[d]=function(){var t="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this[m]("doExpressInstall")){this[o]("MMplayerType","PlugIn")}t='<embed type="application/x-shockwave-flash" src="'+this[m]("swf")+'" width="'+this[m]("width")+'" height="'+this[m]("height")+'"';t+=' id="'+this[m]("id")+'" name="'+this[m]("name")+'" ';for(var r in this.pars){t+=[r]+'="'+this.pars[r]+'" '}var s=this[b]().join("&");if(s.length>0){t+='flashvars="'+s+'"'}t+="/>"}else{if(this[m]("doExpressInstall")){this[o]("MMplayerType","ActiveX")}t='<object id="'+this[m]("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this[m]("width")+'" height="'+this[m]("height")+'"';t+=this[m]("codebase")?' codebase="'+this[m]("codebase")+'">':">";t+='<param name="movie" value="'+this[m]("swf")+'" />';for(var r in this.pars){t+='<param name="'+r+'" value="'+this.pars[r]+'" />'}var s=this[b]().join("&");if(s.length>0){t+='<param name="flashvars" value="'+s+'" />'}t+="</object>"}return t};f[l]=function(s){var r=this[m]("version");if(this[m]("useExpressInstall")){var v=new q([6,0,65]);if(this.installedVer.isValid(v)&&!this.installedVer.isValid(r)){this[k]("doExpressInstall",true);this[o]("MMredirectURL",escape(this[m]("xiRedirectUrl")));this[o]("redirectURL",escape(this[m]("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Ku6 Flash Installation";this[o]("MMdoctitle",document.title);this[k]("swf",this[m]("updateSwf"))}}if(this.skipDetect||this[m]("doExpressInstall")||this.installedVer.isValid(r)){if(arguments.length==0||!s){document.write(this[d]())}else{var u=Ku6.id(s,true);if(!u){return false}u.innerHTML=this[d]()}i[c][i[c].length]=this[m]("id");return true}else{var t=this[m]("redirectUrl"),w=this[m]("onFail");if(t!=""){document.location.replace(t)}if(Ku6.type(w)=="function"){w()}t=w=null}return false};function j(s,r){i.Object.prototype[r]=i.Object.prototype[s]}j("setAttr","setAttribute");j("getAttr","getAttribute");j("addPar","addParam");j("getPars","getParams");j("addVar","addVariable");j("getVar","getVariable");j("getVars","getVariables");j("getVarPairs","getVariablePairs");FlashObject=SWFObject=i.Object})(using("Ku6.SWF"));Ku6.SWFObject=function(b){if(!document.createElement||!document.getElementById){return}if(!b.swf||!b.id||!b.w||!b.h){return}var c=b.id;if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(b.embedID){c=b.embedID}}else{if(b.objID){c=b.objID}}var a=new Ku6.SWF.Object(b.swf,c,b.w,b.h,b.ver||"6.0.0",b.c||"#fff",!!b.useExpressInstall,b.q||"high",b.xiRedirectUrl,b.redirectUrl,b.detectKey,b.updateSwf);a.addPar("AllowFullScreen","true").addPar("AllowScriptAccess","always");if(b.scale){a.addPar("scale",b.scale)}if(b.salign){a.addPar("salign",b.salign)}if(b.wmode){a.addPar("wmode",b.wmode)}if(b.menu){a.addPar("menu",b.menu)}if(b.pluginspage){a.addPar("pluginspage",b.pluginspage)}a.setAttr("name",b.name||c);if(b.onFail){a.setAttr("onFail",b.onFail)}if(b.codebase){a.setAttr("codebase",b.codebase)}return a};
(function(e){var b=Ku6.Cookie,a=Ku6.Utils,c=Ku6.Urls;e.TYPE_PASSPORT="passport";e.TYPE_PODCAST="podcast";e.TYPE_SPACE="space";e.TYPE_JUCHANG="juchang";e.DEFAULT_COVER=c.img+"/common/defcover/{gender}_{size}.gif";var d={sp:";",_get:function(f,h){if(!f){return null}var g=f.split(this.sp),j=g.length;if(j==1){return g[0]}return g[Math.min(j-1,h)]}};Ku6.each("Big,0,big|Small,1,small|Middle,2,small".split("|",3),function(f,g){var h=f.split(",",3);if(h){d["get"+a.capitalize(h[0])]=function(i,j){return this._get(i,h[1])||a.substitute(e.DEFAULT_COVER,{gender:(["boy","girl","both"][j]||"both"),size:h[2]})}}});e[a.capitalize(e.TYPE_PASSPORT)]={getIcon:function(f){return{small:d.getSmall(f),middle:d.getMiddle(f),big:d.getBig(f)}},get:function(){var j=b.read("systemPPCLoginUser");if(!j){return null}var i=j.split("_--_");if(i.length!=5||isNaN(i[0])||parseInt(i[0])<=999){return null}var g=b.read("systemPPCLoginUserNickName"),f=b.read("systemPPCLoginUserHeadFace"),h=this.getIcon(f);return{uid:i[0],url:i[1],username:i[2],email:i[3],service:i[4],nick:(g==null?"":unescape(g.replace(/\\/ig,"%"))),icon:f,bigIcon:h.big,middleIcon:h.middle,smallIcon:h.small}},clean:function(){Ku6.each(["","NickName","Secure","HeadFace","Service"],function(f){b.dispose("systemPPCLoginUser"+f,{domain:c._root,path:"/"})});Ku6.each(["Name","Id","State","Secure","SaveLogin","Sex"],function(f){b.dispose("sysUser"+f,{domain:c._root,path:"/"})})},getHistory:function(){var f=b.read("systemPPCLoginedUserName");return f?unescape(f.replace(/\\/ig,"%")).split(";"):[]}};e[a.capitalize(e.TYPE_PODCAST)]={getIcon:function(f){return{small:d.getSmall(f),middle:d.getMiddle(f),big:d.getBig(f)}},get:function(){var h=b.read("podcast");if(!h){return null}var g=h.split("|");if(g.length<7||isNaN(g[0])||parseInt(g[0])<=999){return null}g[5]=unescape(g[5].replace(/\\/ig,"%"));var f=this.getIcon(g[6]);return{uid:parseInt(g[0]),status:parseInt(g[1]),email:g[2],username:g[3],url:g[4],nick:(g[5]==null?"":unescape(g[5].replace(/\\/ig,"%"))),icon:g[6],bigIcon:f.big,middleIcon:f.middle,smallIcon:f.small}},clean:function(){b.dispose("podcast",{domain:c._podcast,path:"/"})}};e[a.capitalize(e.TYPE_SPACE)]={getIcon:function(f){return{small:d.getSmall(f),middle:d.getMiddle(f),big:d.getBig(f)}},get:function(){var h=b.read("space");if(!h){return null}var g=h.split("|");if(g.length<8||isNaN(g[0])||parseInt(g[0])<=999){return null}g[3]=unescape(g[3].replace(/\\/ig,"%"));var f=this.getIcon(g[6]);return{id:parseInt(g[0]),uid:parseInt(g[0]),status:g[1],email:g[2],username:g[3],domain:g[4],nick:(g[5]==null?"":unescape(g[5].replace(/\\/ig,"%"))),icon:g[6],bigIcon:f.big,middleIcon:f.middle,smallIcon:f.small}},clean:function(){b.dispose("space",{domain:c._space,path:"/"})}};e[a.capitalize(e.TYPE_JUCHANG)]={getIcon:function(f){return{small:d.getSmall(f),middle:d.getMiddle(f),big:d.getBig(f)}},get:function(){var h=b.read("loginUser");if(!h){return null}var g=h.split("|");if(g.length!=4||isNaN(g[0])||parseInt(g[0])<=999){return null}var f=this.getIcon(decodeURIComponent(g[3]));return{id:parseInt(g[0]),uid:parseInt(g[0]),url:g[1]||null,nick:g[2]?decodeURIComponent(g[2].replace(/\\/ig,"%")):null,icon:g[3],bigIcon:f.big,middleIcon:f.middle,smallIcon:f.small}},clean:function(){b.dispose("loginUser",{domain:c._juchang,path:"/"})}}})(using("Ku6.User"));
(function(B){var E=document,C=E.documentElement,n="nodeType",u="ownerDocument",c="defaultView",j="parentNode",b="firstChild",z="nextSibling",r="insertBefore",k="appendChild",m="contains",o="compareDocumentPosition",v="currentStyle",e="getComputedStyle",t="innerHTML",x="innerText",q="textContent",a="margin",f="padding",i="style",h="visibility",w="display",d="",p="none",g="visible",y="hidden";B.hideOutline=Ku6.is_trident?function(F){F.hideFocus=true}:function(F){F[i].outline="none"};B.create=function(F,G){return(G||document).createElement(F)};B.dispose=function(F){F[j].removeChild(F);return this};B.get=function(F,H){var G=B["get"+H.toLowerCase().capitalize()];return G?G(F):null};B.set=function(F,I,G){var H=B["set"+I.toLowerCase().capitalize()];if(H){H(F,G)}return this};B.getHtml=function(F){return(F?F[t]:null)||""};B.getText=(C[q]!==undefined)?function(F){return(F?F[q]:null)||""}:function(F){return(F?F[x]:null)||""};B.setHtml=function(G,F){if(G){G[t]=F}return this};B.setText=(C[q]!==undefined)?function(F,G){if(F){F[q]=G}return this}:function(F,G){if(F){F[x]=G}return this};B.setStyle=function(F,H,G){if(H=="opacity"&&Ku6.is_trident){F[i].filter="alpha(opacity="+(G*100)+")";if(!F[v]||!F[v].hasLayout){F[i].zoom=1}}else{if(H=="float"){H=Ku6.is_trident?"styleFloat":"cssFloat"}F[i][H]=G}return this};B.setStyles=function(G,F){Ku6.each(F,function(I,H){B.setStyle(G,H,I)});return this};B.show=function(F,G){if(F){if(G==2||G==1){F[i][h]=g;if(G==2){F[i][w]=""}}else{F[i][w]=""}}return this};B.hide=function(F,G){if(F){if(G==2||G==1){F[i][h]=y;if(G==2){F[i][w]=p}}else{F[i][w]=p}}return this};B.toggle=function(G,I){if(G){var F=G[i][h]==y?g:y,H=G[i][w]==p?"":p;if(I==2||I==1){G[i][h]=F;if(I==2){G[i][w]=H}}else{G[i][w]=H}}return this};B.isHide=function(F,G){if(G==2||G==1){return F[i][h]==y&&((G==2&&F[i][w]==p)||true)}return F[i][w]==p};B.getDocument=function(F){F=F||{};return(F[n]===9)?F:F[u]||F.document||document};B.getComputedStyle=function(F,H){if(F[v]){return F[v][H.camelCase()]}var G=B.getDocument(F)[c][e](F,null);return(G)?G.getPropertyValue([H.hyphenate()]):null};B.contains=function(G,H){var F=false;if(!H||!G||!H[n]||!G[n]){F=false}else{if(G[m]){if(Ku6.is_presto||H[n]===1){F=G[m](H)}else{F=A(G,H)}}else{if(G[o]){if(G===H||!!(G[o](H)&16)){F=true}}}}return F};function A(F,G){while(G){if(F===G){return true}G=G.parentNode}return false}B.getPosition=function(G){var F=0,H=0;do{F+=G.offsetLeft||0;H+=G.offsetTop||0;G=G.offsetParent}while(G);return{x:F,y:H}};B.setPosition=function(G,F){if(G){var H=F||{};Hash.each(H,function(J,I){G[i][({x:"left",y:"top"}[I]||I)]=J+(J==String(Number(J))?"px":"")})}return this};B.getSize=function(F){return{x:F.offsetWidth,y:F.offsetHeight}};function D(F){var G={},H=F?f:a;["top","right","bottom","left"].each(function(I){G[I]=B.getComputedStyle(element,H+I.capitalize()).replace("px","")});return G}B.getMargin=function(){return D()};B.getPadding=function(){return D(true)};var s={before:function(G,F){if(F[j]){F[j][r](G,F)}},after:function(G,F){if(!F[j]){return}var H=F[z];(H)?F[j][r](G,H):F[j][k](G)},bottom:function(G,F){F[k](G)},top:function(G,F){var H=F[b];(H)?F[r](G,H):F[k](G)}};B.inject=function(G,H,F){s[F||"bottom"](G,Ku6.id(H,true));return this};Ku6.each(s,function(F,G){G=G.capitalize();B["inject"+G]=function(H){F(this,Ku6.id(H,true));return this}});var l=using("Ku6.Utils");Ku6.each(["hideOutline","getPosition"],function(F){l[F]=B[F]})})(using("Ku6.Dom"));
(function(d){var b="addEventListener",a="attachEvent",e=function(){Ku6.Browser.loaded=true};var c=(function(){var f=Ku6.Browser.Engine;return f.trident?function(h){if(Ku6.Browser.loaded){h()}else{var g=document.createElement("div");(function(){try{g.doScroll("left");document.body.appendChild(g);g.innerHTML="temp";document.body.removeChild(g);e();h()}catch(i){setTimeout(arguments.callee,50)}})()}}:f.webkit?function(g){(function(){if(/loaded|complete/.test(document.readyState)){e();g()}else{setTimeout(arguments.callee,10)}})()}:function(g){if(Ku6.Browser.loaded){g()}else{document[b]("DOMContentLoaded",e,false);document[b]("DOMContentLoaded",g,false)}}})();d.add=function(h,g,f){if(h===window&&g.toLowerCase()=="domready"){c(f);return this}if(h[b]){h[b](g,f,false)}else{h[a]("on"+g,f)}return this};window.addEvent=function(g,f){d.add(window,g,f)};window.removeEvent=function(g,f){d.remove(window,g,f)}})(using("Ku6.Event"));
(function(a){a.getSize=function(){var c=b();return{x:c.clientWidth,y:c.clientHeight}};a.getScroll=function(){var d=window,c=b();return{x:d.pageXOffset||c.scrollLeft,y:d.pageYOffset||c.scrollTop}};a.getScrollSize=function(){var d=b(),c=this.getSize();return{x:Math.max(d.scrollWidth,c.x),y:Math.max(d.scrollHeight,c.y)}};a.getPosition=function(){return{x:0,y:0}};a.getCoordinates=function(){var c=this.getSize();return{top:0,left:0,bottom:c.y,right:c.x,height:c.y,width:c.x}};function b(){var c=document;return(!c.compatMode||c.compatMode=="CSS1Compat")?c.getElementsByTagName("html")[0]:c.body}})(using("Ku6.Dom.Window"));
(function(e){var g="className",b="addClass",d="removeClass",h="hasClass",c="replaceClass",f="toggleClass";e[h]=function(i,j){return i[g].contains(j," ")};e[b]=function(i,j){if(i&&!e[h](i,j)){i[g]=(i[g]+" "+j).clean()}return this};e[d]=function(i,j){if(i&&e[h](i,j)){i[g]=i[g].replace(new RegExp("(^|\\s)"+j+"(?:\\s|$)"),"$1")}return this};e[c]=function(k,j,i){return e[d](k,j)[b](k,i)};e[f]=function(i,j){return e[e[h](i,j)?d:b](i,j)};var a=using("Ku6.Utils");Ku6.each([h,b,d,c,f],function(i){a[i]=e[i]})})(using("Ku6.Dom"));
(function(b){var d=Ku6.Dom,a=Ku6.Utils,c=Ku6.Event;b.AutoCompleteTip=new Ku6.Class({initialize:function(f){f=f||{};if(!f.name||window[f.name]){return window[f.name]}this.$name=this.name=f.name;this.guid=Ku6.guid();var e=this.options=Ku6.extend({minWidth:280,size:10,fetchDelay:30,autoHide:true,hideDelay:50,action:"http://fz.v.so.ku6.com/query",zIndex:300,boxCls:"acBox",resultsCls:"acRs",resultCls:"acR",resultFocusCls:"focus",keyCls:"acRK",statCls:"acRC",closeCls:"acC",prefix:"_ac_",statSuffix:"个视频",closeLang:"关闭"},f);this.bound={};this.resultPrefix=e.prefix+this.guid+"r";if(e.input){this.inputEl=$(e.input)}e.align=Ku6.id(e.align)?e.align:e.input;this.bindEvents();return this},build:function(){if(!this.builded){var f=this.options,e=this.bound;c.add(window,"unload",this.destory.bind(this));this.el=d.create("div");d.inject(this.el,document.body);this.el.style.display="none";this.el.style.zIndex=f.zIndex;this.el.className=f.boxCls;this.el.style.width=Math.max(this.inputEl.offsetWidth,f.minWidth)+"px";d.setHtml(this.el,(f.iframeFix?Ku6.FRAME_FIX_HTML:"")+'<ul class="'+f.resultsCls+'"></ul>');if(!e.elMouseOver){e.elMouseOver=function(){if(this.inputEl){this.inputEl.focus()}this.autoHideTimer=$clear(this.autoHideTimer)}.bind(this)}c.add(this.el,"mouseover",e.elMouseOver);this.resultsEl=this.el.getElementsByTagName("ul")[0];if(this.resultsEl){if(!e.resultsMouseOver){e.resultsMouseOver=function(i){var h=i.srcElement||i.target,g=h&&h.tagName?h.tagName.toLowerCase():"";if(g=="li"){c.stop(i);this.changeFocus(h)}}.bindWithEvent(this)}c.add(this.resultsEl,"mouseover",e.resultsMouseOver);if(!e.resultsMouseDown){e.resultsMouseDown=function(i){i=i||event;if(i){c.stop(i)}var h=i.srcElement||i.target,g=h.tagName.toLowerCase();if(g=="ul"){return}if(g=="span"&&d.hasClass(h,f.closeCls)){this.hide();return}if(g!="li"){h=h.parentNode}if(d.hasClass(h,f.resultCls)){this.changeFocus(h).fillKey(d.getHtml(h.getElementsByTagName("span")[1])).hide();if(typeof f.onclick=="function"){f.onclick()}}}.bind(this)}c.add(this.resultsEl,"mousedown",e.resultsMouseDown)}this.builded=true;if(f.autoFetch===true){this.fetchDelayHD=(function(){this.fetch()}).delay(f.fetchDelay,this)}}return this},destory:function(){c.remove(window,"unload",arguments.callee);var e=this.bound;this.fetchDelayHD=$clear(this.fetchDelayHD);this.autoHideTimer=$clear(this.autoHideTimer);if(this.inputEl){c.remove(this.inputEl,"keyup",e.inputKeyUp);c.remove(this.inputEl,"blur",e.inputBlur);c.remove(this.inputEl,"focus",e.inputFocus);this.inputEl=null}if(this.resultsEl){c.remove(this.resultsEl,"mouseover",e.resultsMouseOver);c.remove(this.resultsEl,"mousedown",e.resultsMouseDown);this.resultsEl=null}if(this.el){c.remove(this.el,"mouseover",e.elMouseOver);d.dispose(this.el);this.el=null}for(var f in this.bound){this.bound[f]=null}},bindEvents:function(){var g=Ku6.Event,e=this.options,f=this.bound;if(this.inputEl){this.inputEl.setAttribute("autocomplete","off");if(!f.inputKeyUp){f.inputKeyUp=function(j){var i=j.keyCode;if(i==38){this.scrollUp()}else{if(i==40){this.scrollDown()}else{var h=this.inputEl.value;if(h.length==0){this.lastSearch="";this.hide(true)}else{if(h==this.lastSearch){this.show()}else{$clear(this.fetchDelayHD);this.fetchDelayHD=this.fetch.delay(e.fetchDelay,this)}}}}}.bindWithEvent(this)}g.add(this.inputEl,"keyup",f.inputKeyUp);if(!f.inputFocus){f.inputFocus=function(h){if(this.inputEl.value.length==0){this.hide()}else{if(this.resultsEl&&this.resultsEl.childNodes.length){this.show()}}}.bindWithEvent(this)}g.add(this.inputEl,"focus",f.inputFocus);if(e.autoHide){if(!f.inputBlur){f.inputBlur=function(h){if(e.autoHide){if(e.hideDelay){this.autoHideTimer=this.hide.delay(e.hideDelay,this)}else{this.hide()}}}.bindWithEvent(this)}g.add(this.inputEl,"blur",f.inputBlur)}}return this},show:function(){if(!this.builded){this.build()}else{$clear(this.autoHideTimer);var g=this.options,l=d.getComputedStyle;if(!this.showing){this.showing=true;if(Ku6.id(g.align)){var i=Ku6.id(g.align),e=d.getPosition(i),n=d.getSize(i),k=n.y;if(g.styleFix){var m=d.getMargin(i),j=d.getPadding(i);k=k-m.top-m.bottom-j.top-j.bottom}i=null;this.moveTo({left:e.x-(g.rightAlign?parseInt(d.getComputedStyle(this.el,"width").replace("px",""))-n.x:0),top:e.y+k})}d.show(this.el)}if(g.iframeFix){var i=this.el,f=i.getElementsByTagName("iframe")[0];if(f){var n=d.getSize(i);if(g.styleFix){var m=d.getMargin(i),j=d.getPadding(i);n.x+=m.left+m.right+j.left+j.right;n.y+=m.top+m.bottom+j.top+j.bottom}f.style.height=n.y+"px";f.style.width=n.x+"px"}i=f=null}}return this},hide:function(e){if(this.showing){this.showing=false;d.hide(this.el)}if(e){this.cleanResult()}return this},moveTo:function(e){d.setPosition(this.el,e);return this},scrollUp:function(){return this.scroll(true)},scrollDown:function(){return this.scroll(false)},changeFocus:function(e){var f=this.options;if(e&&d.hasClass(e,f.resultCls)){var g=this.resultPrefix;d.removeClass($(g+this.focusIndex),f.resultFocusCls).addClass(e,f.resultFocusCls);this.focusIndex=parseInt(e.id.replace(g,""))}return this},scroll:function(i){if(!this.builded){this.build()}if(this.resultsEl){var e=this.resultsEl.getElementsByTagName("li");if(e.length>0){var h=this.options;this.show();var g=this.focusIndex;if(g>=0){d.removeClass(e[g],h.resultFocusCls)}var f=0;if(i){f=g>=0?(g-1):(e.length-2)}else{f=(g+2)>=e.length?-1:(g+1)}if(f>=0){d.addClass(e[f],h.resultFocusCls)}this.focusIndex=f;this.fillKey(f>=0?d.getHtml(e[f].getElementsByTagName("span")[1]):this.lastSearch)}e=null}return this},fillKey:function(e){if(this.inputEl){this.inputEl.focus();this.inputEl.value=e;this.inputEl.select()}return this},fetch:function(){if(!this.inputEl||this.inputEl.value.length==0||this.inputEl.value==this.lastSearch){return}var e=this.inputEl.value;this.lastTime=$time();var f=this.options.action;if(f){f+=f.indexOf("?")>=0?"&":"?";f+="key="+encodeURIComponent(e)+"&n="+this.name+".response&cp="+this.lastTime;a.importJs(f,{onLoad:function(g){Ku6.Dom.dispose(g)}});this.onFetch(e)}},onFetch:function(e){this.lastSearch=e},response:function(e,f){if(typeof e=="object"&&this.lastTime==f&&(this.inputEl.value!="")){this.render(e)}},onEmpty:function(){this.hide().cleanResult()},cleanResult:function(){this.focusIndex=-1;if(this.resultsEl){d.setHtml(this.resultsEl,"")}},filterHtml:function(g){var f=this.options,e=[];e.push('<span class="'+f.statCls+'">'+g.c+f.statSuffix+"</span>");e.push('<span class="'+f.keyCls+'">'+g.k+"</span>");return e.join("")},render:function(g){if(!this.builded){this.build()}if(!g||g.length==0){this.onEmpty()}else{if(this.resultsEl){var f=[],j=this.options;for(var e=0,k=g.length;e<k;e++){f.push('<li id="'+this.resultPrefix+e+'" class="'+j.resultCls+'">');f.push(this.filterHtml(g[e]));f.push("</li>")}f.push('<li style="padding:0 3px;"><span class="'+j.closeCls+'">'+j.closeLang+"</span><span>&nbsp;</span></li>");d.setHtml(this.resultsEl,f.join(""));f=j=null;this.focusIndex=-1;this.show()}}}})})(using("Ku6.Plugin"));
(function(a){var f=Ku6.Browser,d=Ku6.Event,c=Ku6.Dom;function e(g,h){var k=g.options,l=k.prefix,j=g.index;if(arguments.length>1&&h>=0&&h!=j&&h<k.count){g.index=h;c.hide($(l+j)).show($(l+h));g.fireEvent("change",[j,h]);if(g.control){g.control.to(h)}}}function b(g){if(!g.runing){g.runing=true;g.stop();if(!g.FN){g.FN=function(){var j=g.options,l=j.count;if(g.paused||l<=0){g.stop();return}var h=g.index,k=(h<(l-1)?h+1:0);e(g,k)}}g.timer=g.FN.periodical(g.options.time);g.fireEvent("start")}}a.TimeSwitcher=new Ku6.Class({initialize:function(g){this.options=Ku6.extend({prefix:"tt_",count:0,index:0,time:5000},g);var h=this.options;this.index=h.index||0;if(h.control){this.control=(new a.SwitcherControl($extend($extend({switcher:this},h.control),{count:h.count,index:this.index}))).to(this.index)}if(h.auto){this.start()}},start:function(){if(this.runing){return this}var h=this.options,g=this;if(h.count>1){if(!this.attached&&d){d.add(window,"unload",function(){d.remove(window,"unload",arguments.callee);g.stop(true)});this.attached=true}if(h.lazy&&!f.loaded){d.add(window,"domready",b.bind(this,[this]))}else{b(this)}}return this},pause:function(){this.paused=true;return this.fireEvent("pause")},contine:function(){this.paused=false;return this.fireEvent("resume")},stop:function(g){this.timer=$clear(this.timer);this.FN=null;if(g){this.runing=false}this.fireEvent("stop");return this},to:function(g){this.stop(true);e(this,g);this.start()},prev:function(j,g){var h=this.index-1;if(h>=0){this.to(h)}},next:function(j,g){var h=this.index+1;if(h<this.options.count){this.to(h)}}});Ku6.implement(a.TimeSwitcher,Ku6.Events)})(using("Ku6.Plugin"));
(function(e){var d=Ku6,g=d.Dom,c=d.Urls,b=d.Utils,f=d.Event,a=d.Cookie;e.max=30;e.url=c.podcast+"/video.htm?t=getVideosByIds&cb="+e.$name+".build&ids=";e.key="QuickList";e.hash="qlist";e.addClass="plus";e.playClass="arrow";e.counter="qlCounter";e.list="listContainer";e.syncWait=500;e.loadDelay=3000;e.init=function(m){var j=(m||document).links,o;e.retrieve();var n=","+e.value.join(",")+",";for(var k=0,h=j.length;k<h;k++){o=j[k];if(g.hasClass(o,e.addClass)&&o.hash.length>1){o.className=(n.indexOf(","+o.hash.substr(1)+",")>-1)?e.playClass:e.addClass}}e.count()};e.count=function(){var i=$(e.counter);if(i){var h=e.value.length;i.innerHTML=h?("("+h+")"):"";i.style.display=h?"":"none"}};e.observe=function(){var h=e.value.join("");e.retrieve();if(h!=e.value.join("")){e.init();d.clear(e.updater);e.updater=e.fetch.delay(e.loadDelay,e);if(d.type(e.onSync)=="function"){e.onSync()}}};e.toggle=function(i){if(i){f.preventDefault(i);var j=i.target||i.srcElement;if(j.hash.length>1){var h=j.hash.substr(1);if(e.contains(h)){e.play(h)}else{j.className=e.playClass;e.add(h,true)}}}};e.del=function(j,i){e.remove(i);if(j){f.preventDefault(j);var h=(j.target||j.srcElement).parentNode;if(h){g.dispose(h)}h=null}};e.dels=function(h){if(h){f.preventDefault(h)}$splat(e.waitDel).each(function(j){this.remove(j);var i=$("v_"+j);if(i){g.dispose(i)}i=null},e)};e.delAll=function(i){if(i){f.preventDefault(i)}e.clear();var h=$(e.list);if(h){h.innerHTML=""}};e.clear=function(){e.value=[];e.store("",-1)};e.contains=function(h,i){e.retrieve(i);return e.value.contains(h)};e.add=function(h,i){e.retrieve(i);if(e.value.length<e.max){if(!e.contains(h)){e.value.push(h);e.store(e.value.join(","))}}else{alert("抱歉，点播单添加失败：\t\t\n您的当前点播单中的视频数目已经达到上限("+e.max+")\n您可以移除某些视频后再添加。")}};e.remove=function(h,i){e.retrieve(i);if(e.contains(h)){e.value.erase(h);e.store(e.value.join(","))}};e.store=function(h,i){a.write(e.key,h,{duration:(i||366),domain:c._root,path:"/"});e.count()};e.retrieve=function(h){if(!h||!e.value){e.value=a.read(e.key);e.value=(e.value?e.value.split(","):[])}return e.value};e.removed=function(){return true};e.render=function(h){e.init(h);e.fetch();e.observer=e.observe.periodical(e.syncWait,e)};e.delSelect=function(h,i){if(!e.waitDel){e.waitDel=[]}e.waitDel[i?"include":"erase"](h)};e.formatTime=function(j){var l=j%3600,h=Math.floor(j/3600),k=l?Math.floor(l/60):0,i=l-k*60;return(h?(h+":"):"")+(h&&k<10?"0":"")+k+":"+(i<10?"0":"")+i};e.build=function(m){e.data=m;if(!e.waitDel){e.waitDel=[]}if($(e.list,true)&&m&&m.status==1){var l=[];for(var k=0,o=m.data.count;k<o;k++){var j=m.data.list[k],h=j?j.vid:e.value[k];if(j){l.push('<li id="v_'+h+'"><span class="time">'+e.formatTime(j.videoTime)+'</span><a href="#" title="从点播单中清除" class="delete" onclick="QuickList.del(event, \''+h+'\')"></a><span><a href="'+b.getVideoUrl(h)+'#qlist"><img src="http://'+(j.picPath||"").replace("http://","")+'" /></a></span><input type="checkbox" onclick="QuickList.delSelect(\''+h+"', this.checked)\" "+(e.waitDel.contains(h)?'checked="checked"':"")+'/> <a href="'+b.getVideoUrl(h)+"#"+e.hash+'">'+j.title+"</a></li>")}else{l.push('<li id="v_'+h+'"><span class="time">00:00</span><a href="#" title="从点播单中清除" class="delete" onclick="QuickList.del(event, \''+h+'\')"></a><span><a href="#" onclick="return false;"><img src="http://img.ku6.com/common/defcover/default_mv.gif" /></a></span><input type="checkbox" onclick="QuickList.delSelect(\''+h+"', this.checked)\" "+(e.waitDel.contains(h)?'checked="checked"':"")+"/> 视频不存在或已删除</li>")}}g.setHtml($(e.list),l.join(""))}};e.fetch=function(){if(!e.value.length){e.build({data:{count:0,list:[]},status:1});return}b.importJs(e.url+e.value.join(",")+"&"+d.time(),{onLoad:function(h){g.dispose(h)}})};e.save=function(){};e.playAll=function(h){if(h){f.preventDefault(h)}e.retrieve();if(e.value[0]){e.play(0)}};e.play=function(h){b.redirect(b.getVideoUrl(d.type(h)=="string"?h:e.value[h])+"#"+e.hash)}})(using("QuickList"));
(function(F){var b=Ku6,D=b.Urls,I=b.Event,e=b.Utils,g=b.Cookie;var B="logon",n="sync",u="validate",x="LOGON_TYPE_IN",v="LOGON_TYPE_OUT",k="logon",L="sync",t="init",m="update",J="timeout",f="error",C="exception",s="busy",z="TIP_MSG",c="account",H="password",M="expire",G="SSO_ENABLE",p="ASYNC_SSO",i="REDIRECT_WAIT_SYNC",d="EXPIRE_DEF",w=D.space+"/login.htm?jumpUrl={0}",h="/sso/sso.html?action={0}&callback={1}&lc={2}&dm={3}",O=D.passport+"/crossdomain.jsp?domainid={0}&action={1}&redirect={2}",E=["overTime","referKey","redirectUrl","referKey","domainId","ssoHost","lc","dm","sso","domains"];b.extend(F,b.Events);b.each(E,function(P){F["set"+e.capitalize(P)]=function(Q){F[P]=Q;return this};F["get"+e.capitalize(P)]=function(){return F[P]}});F.setDomains([2]).setOverTime(30*1000).setReferKey("www");F[d]=2*7*24*60*60;F[i]=15000;F[G]=true;F[p]=true;F[x]="login";F[v]="logout";F[z]=["\u9a8c\u8bc1\u5904\u7406\u4e2d,\u8bf7\u7a0d\u7b49...","\u7528\u6237\u540d\u4e0d\u80fd\u4e3a\u7a7a","\u7528\u6237\u540d\u4e0d\u80fd\u542b\u6709\u4e2d\u6587\u5b57\u7b26(\u8001\u7528\u6237\u9664\u5916)","\u7528\u6237\u540d\u957f\u5ea64-16\u4f4d(1\u4e2d\u6587\u53602\u4f4d)","\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a","\u5bc6\u7801\u4e0d\u80fd\u542b\u6709\u4e2d\u6587\u5b57\u7b26","\u5bc6\u7801\u957f\u5ea64-16\u4f4d","\u7528\u6237\u540d\u4e0d\u5b58\u5728","\u5bc6\u7801\u9519\u8bef","\u53d1\u751f\u672a\u77e5\u9519\u8bef,\u8bf7\u91cd\u8bd5!"];var a={};a[F[x]]=D.passport+"/login_doLogin.htm";a[F[v]]=D.passport+"/login_doLogout.htm";function j(){return F.form?F.form.elements:null}function y(Q,R){var P,S;if(Q==""){P=c;S=1}else{if(R==""){P=H;S=4}else{if(R.length<4||R.length>16){P=H;S=6}else{if((/[^\x00-\xff]/).test(R)){P=H;S=5}}}}if(P&&S>=0){F.fireEvent(f,[u,x,{msg:F[z][S],name:P},F.getDomainId()]);return false}return true}var q={ing:"Ing",timer:"Timer"};function l(P,S){var Q=P+q.ing,R=P+q.timer;F[Q]=!!S;F[R]=!!!S?$clear(F[R]):function(){F[R]=$clear(F[R]);if(F[Q]){F[Q]=false;F.fireEvent(J,[B,P])}Q=R=null}.delay(F.getOverTime())}function o(P,Q){if(!P||!Q){F.fireEvent(C,[B,P,Q]);return}l(P,true);e.importJs(Q)}function K(Q,T){var R;if(Q){var U=F.getReferKey(),W=F.getDomainId(),P=F.getDm(),S=Q==F[x],V=(S?"loginName="+T.name+"&password="+encodeURIComponent(T.pass):"redirect=0")+"&callBackMethod="+F.$name+"."+(S?"onLogin":"onLogout");S&&T.expire&&(V+="&expire="+F[d]);U&&(V+="&refer="+U);W&&W>0&&(V+="&domainid="+W);P&&(V+="&dm="+P);var R=a[Q];R+=(R.indexOf("?")<0?"?":"&")+V+"&"+$time()}return R}F.login=function(V,U){if(V){I.preventDefault(V)}var Q=F[x];if(F[Q+q.ing]==true){F.fireEvent(s,[Q])}else{if(!F.form){F.form=U}if(F.form){var S=j(),R=S&&S[c]?S[c].value:"",T=S&&S[H]?S[H].value:"",P=S&&S[M]?S[M].checked:false;if(R==S[c].defaultValue){R=""}if(y(R,T)){o(Q,K(Q,{name:R,pass:T,expire:P}))}}}};F.logout=function(Q){if(Q){I.preventDefault(Q)}var P=F[v];if(F[P+q.ing]==true){F.fireEvent(s,[P])}else{o(P,K(P))}};F.onLogin=function(Q,R){var P=F[x];if(Q&&(parseInt(Q.status)==227||parseInt(Q.status)==229)){if(!F.SSO_ENABLE||F[p]){N(P,true,F[i])}if(F.SSO_ENABLE){F.doSync(P)}}else{N(P,false,Q)}};F.onLogout=function(Q,R){var P=F[v];if(Q&&parseInt(Q.status)==264){if(!F.SSO_ENABLE||F[p]){N(P,true,F[i])}if(F.SSO_ENABLE){F.doSync(P)}}else{N(P,false,Q)}};function A(){var P=F.getRedirectUrl();if(P&&P!=""){window.location.href=P}}function N(P,S,R){l(P,false);if(S){if(b.is_safari){var Q;b.each($splat(F.getDomains()),function(U,T){Q=O.substitute({0:U,1:P,2:b.encode(T>0?Q:location.href)})});Q=P==F[x]?w.substitute({0:b.encode(Q)}):Q;e.redirect(Q);return}F.update();F.fireEvent(k,[P,R]);if(R&&!isNaN(R)&&R>0){F.directTimer=A.delay(R)}}else{F.fireEvent(f,[B,P,R])}}function r(P,R,Q){if(F.SSO_ENABLE&&!F[p]){N(P,R,Q)}else{F.directTimer=b.clear(F.directTimer);A()}if(R){F.fireEvent(L,[P,Q])}else{F.fireEvent(f,[n,P,R,Q])}}F.doSync=function(R){var U;if(R==F[x]){U="onLoginSync"}else{if(R==F[v]){U="onLogoutSync"}else{F.fireEvent(C,[n,R]);return}}var S=(F.getSsoHost()||(window.opera?"http://"+location.hostname:(F.getDomainId()==2?D.jc:D.space)))+h.substitute({0:R,1:F.$name+"."+U,2:(F.getLc()||""),3:(F.getDm()||"")});S+=(S.indexOf("?")<0?"?":"&")+b.time();var V="ku6_sso_frame",Q=$(V,true);if(!Q){var W=document.createElement("iframe");W.id=W.name=V;W.src=S;W.style.width=W.style.height="0";W.style.position="absolute";W.style.zIndex="-1";W.style.visibility="hidden";var P=$(F.panel,true);if(P){var T=P.nextSibling;(T)?P.parentNode.insertBefore(W,T):P.parentNode.appendChild(W);T=null}P=null;W=null}else{Q.src=S}Q=null};F.onLoginSync=function(Q,P){r(F[x],Q,P)};F.onLogoutSync=function(Q,P){r(F[v],Q,P)};F.update=function(){var P=b.User.Passport.get();if(b.id(F.panel)){F.form=null;b.Dom.setHtml($(F.panel),P?_T("lg_info").substitute({nick:P.nick,ico:P.smallIcon}):_T("lg_box"))}if(F.ONERROR){F[P?"removeEvent":"addEvent"](f,F.ONERROR)}F.fireEvent(m,[P]);return this};F.init=function(P){F.panel=P||"";if(!F.ONERROR){F.ONERROR=function(Q,U,S,V){if(Q==u&&F.form&&S){alert(S.msg||_("server 500"));var R=j(),T=R[S.name];if(T){T.focus()}R=null;T=null}}}F.fireEvent(t);F.update();F.init=null;delete F.init}})(using("App.Logon"));
using("App.Template").zh_CN={lg_uinfo:'hi,<span><a title="{nickTitle}" href="http://zone.ku6.com/welcome.htm" target="_blank">{nick}</a></span>|<span><a href="http://zone.ku6.com/welcome.htm" target="_blank">我的空间</a></span>|<span><a class="out" onclick="App.Logon.logout();return false" href="#">退出</a></span>',lg_info:'<div class="areas sLoginIN"><dl><dt><a title="{nickTitle}" href="http://zone.ku6.com/welcome.htm" target="_blank"><img alt="{nickTitle}" src="{ico}" /></a></dt><dd><p><span class="name">HI!<a title="{nickTitle}" href="http://zone.ku6.com/welcome.htm" target="_blank">{nick}</a></span></p><p class="p2"><a href="http://zone.ku6.com/welcome.htm?a=addpodcast" target="_blank">上传视频</a>|<a href="http://zone.ku6.com/welcome.htm" target="_blank">进入空间</a>|<a href="http://group.ku6.com/" target="_blank">进入群组</a></p></dd></dl><div class="lineDot"></div><p><span class="fr out"><a href="#" onclick="App.Logon.logout(event);return false">退出</a></span></p></div>',lg_box:'<div class="areas sLogin"><form onsubmit="App.Logon.login(event, this);return false"><dl><dt>欢迎登陆中国第一视频门户</dt><dd><span><input type="text" class="inputLogin" onblur="if(this.value.replace(\' \',\'\') == \'\') this.value = this.defaultValue;" onfocus="if(this.value == this.defaultValue) this.value = \'\'" value="Email 或 用户名" name="account" tabindex="1" /></span><span class="mid"><input type="submit" class="btnLogin" value="登陆" tabindex="4"></span><span><label><a href="http://zone.ku6.com/register.htm" target="_blank" tabindex="5">免费注册</a></label></span></dd><dd><span><input type="password" value="" name="password" class="inputLogin" tabindex="2"/></span><span class="mid"><input type="checkbox" id="remeberMe" name="expire" checked="checked" tabindex="3" class="inputCheck"/><label for="remeberMe">记住我</label></span><span><label><a href="http://zone.ku6.com/recover.htm" target="_blank" tabindex="6">忘记密码</a></label></span></dd></dl></form></div>',lg_button:'<div class="areas sLogin"><dl><dt>欢迎登陆中国第一视频门户</dt><dd><span class="mid"><input type="button" onclick="App.Logon.login(event);" tabindex="4" value="登陆" class="btnLogin"></span><span><label><a tabindex="5" target="_blank" href="http://register.sdo.com/PTNew/default.aspx?cssId=ku6">新用户注册</a></label></span></dd><dd class="text"><a tabindex="6" target="_blank" href="#"></a></dd></dl></div>'};function _T(a){return App.Template.zh_CN[a]||""};
String.implement({escHtml:function(a){return(a===true?this.replace(/<br\s*\/?>/gi,"\n"):this).replace(/[&'"<>\/\\\-\x00-\x09\x0b-\x0c\x1f\x80-\xff]/g,function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/\r/g,"<br/>").replace(/ /g,"&nbsp;")},escHtmlEp:function(){return this.replace(/[&'"<>\/\\\-\x00-\x1f\x80-\xff]/g,function(a){return"&#"+a.charCodeAt(0)+";"})}});(function(e){var c=Ku6,g=c.Dom,h=c.Browser,b=h.Engine,a=c.Utils,f=c.Event,d=using("App.RunTime");e.USE_IFRAME_FIX=h.swfWmodeTrouble||(b.trident&&b.version<=4);e.getQuery=function(i){var j=location.search.match(new RegExp("[?&]"+i+"=([^&]*)(&?)","i"));return j?j[1]:j};e.SWITCHTAB_DELAY=100;e.switchTab=function(o,l,k,m,j,i){c.clear(d["STAB_T_"+m]);var n=function(){d["STAB_T_"+m]=null;if(o&&o.tagName&&o.tagName.toLowerCase()=="a"){g.hideOutline(o)}var r,p=j||"current",w=i||"",s=m+"_t",v=m+"_c";for(var q=0;q<l;q++){r=q==k;if($(s+q)&&(r?w:p)){g.removeClass($(s+q),r?w:p)}if($(s+q)&&(r?p:w)){g.addClass($(s+q),r?p:w)}if($(v+q)){g[r?"show":"hide"]($(v+q))}var u=Ku6.Urls.www+"/"+m+"/"+q+"/index.shtml";if(r&&$(m+"_i"+q)&&$(m+"_i"+q).src!=u){$(m+"_i"+q).src=u}}};if(l&&k<l){if(e.SWITCHTAB_DELAY>0){d["STAB_T_"+m]=n.delay(e.SWITCHTAB_DELAY)}else{n()}}};e.defaultKey="\u8bf7\u8f93\u5165\u67e5\u8be2\u5185\u5bb9";e.doFocus=function(i){if(i.value==this.defaultKey){i.value="";i.style.color="black"}};e.doBlur=function(i){if(i.value==""||i.value==this.defaultKey){i.value=this.defaultKey;i.style.color="#bbb"}else{i.style.color="black"}};e.setSearch=function(m,l){if(l&&l!=""){e.defaultKey=l}var j=document.getElementsByName(m);for(var k=0,m=j.length;k<m;k++){this.doBlur(j[k])}};e.doSearch=function(o,i){if(o){try{var k=o.elements.inp,m=o.elements.searchType,j=k?k.value.replace(/[_&\/\?]/g," "):"";if(j==""){alert("请输入查询内容 ^_^");if(k){k.focus()}}else{var n=Ku6.Urls.so+"/",l={video:n+"v/q",user:n+"u/q",playlist:n+"p/q",movie:n+"m/q"}[m?m.value||"video":"video"];if(l){o.action=l+encodeURIComponent(j);if(i===true){o.submit()}else{return true}}}}catch(p){return false}}return false};e.showSearchType=function(j,i){i=i||"";if(j){f.preventDefault(j)}g.toggle($("selOption"+i));return false};e.changeSearchType=function(l,i,j){j=j||"";var n=$("searchType"+j),k=$("typeSelected"+j),m=$("inp"+j);if(n){n.value=l}g.hide($("selOption"+j));if(k&&i){g.set(k,"html",g.get(i,"html"))}if(m){m.focus()}n=k=m=null};e.searchMouseOver=function(n,m,j){j=j||"";var l=n.target||n.srcElement,i=l?l.tagName.toLowerCase():"";if(m===true||(i&&i=="a")){if(n){f.stopPropagation(n)}var k="timer"+j;e[k]=c.clear(e[k])}};e.searchMouseOut=function(m,l,j){j=j||"";var k=m.target||m.srcElement,i=k?k.tagName.toLowerCase():"";if(l===true||(i&&i=="a")){if(m){f.stopPropagation(m)}if($("selOption"+j)&&!g.isHide($("selOption"+j))){e["timer"+j]=e.searchTypeHide.delay(e.SEARCH_HIDE_DELAY||500,e,[j])}}};e.searchTypeHide=function(i){i=i||"";g.hide($("selOption"+i))};e.toString=using("Ku6").toString})(using("App"));
Ku6.Utils.switchTab=function(){App.switchTab.apply(App,arguments)};window.addEvent("domready",function(){var c=using("App.RunTime"),f=Ku6.Dom,a=Ku6.Utils,b=Ku6.Urls,e=Ku6.Plugin;var d=$("loginLink");if(d){d.href=b.space+"/login.htm?jumpUrl="+encodeURIComponent(location.href)}d=null;App.setSearch("inp",window.SEARCH_KEY||"");QuickList.init();c.LG_INIT_FN=function(){c.logonInfoCache=f.get($("userInfo"),"html");this.removeEvent("init",c.LG_INIT_FN);c.LG_INIT_FN=null};var h={login:"登录",logout:"退出"};App.Logon.addEvents({init:c.LG_INIT_FN,update:function(i){var k=$("userInfo");if(k){var j=c.logonInfoCache;if(i){j=_T("lg_uinfo").substitute({nickTitle:(i.nick||"").escHtmlEp(),nick:(i.nick||"").escHtml()})}f.set(k,"html",j);k=null}},timeout:function(i,j){alert(h[j]+"超时,请稍后重试...")},exception:function(i,k,j){alert(h[k]+"异常,请稍后重试...")},busy:function(i){alert("正在"+h[i]+"请稍后...")},error:function(i,k,j){if(i=="logon"){alert(j?j.msgText:"\u670d\u52a1\u5668\u5fd9")}}}).init("logonWin");var g={iframeFix:App.USE_IFRAME_FIX,zIndex:9100,rightAlign:true};c.ACT=new e.AutoCompleteTip(Ku6.extend($unlink(g),{name:c.$name+".ACT",align:"acBox",input:"inp",minWidth:338,onclick:function(){App.doSearch($("searchForm"),true)}}));c.ACT2=new e.AutoCompleteTip(Ku6.extend($unlink(g),{name:c.$name+".ACT2",align:"acBox2",input:"inp2",minWidth:333,onclick:function(){App.doSearch($("searchForm2"),true)}}))});

