','
',r.fullHtml];else{f=['
'],f.push('
'),r.caption&&f.push('
',r.caption,"
");var l={ok:"win_box_succ",error:"win_box_err",tip:"win_box_tip",title:"win_box_title"};f.push('
',n,"
"),f.push(r.addHtml||""),r.noButton||(f.push('
")),f.push("
")}f.push("
"),t(document.body).append(f.join(""));var c=t("#sohuHDWinBox"),h=c.width(),p=c.height(),d=t(e).scrollTop();c.eventProxy("click",{hasClass:{w_submit:function(){r.handler&&(r.handler(),r.handler=null),sohuHD.closeBlock()},w_cancel:function(){sohuHD.closeBlock()},win_close:function(){sohuHD.closeBlock()}}});var v=function(){c.css({width:u||(sohuHD.isIE?"300":"auto"),height:a||"auto"}),c.css({top:t(e).scrollTop()+t(e).height()/2-c.height()/2,left:t(document.body).width()/2-c.width()/2+t(e).scrollLeft()});var n=t(document.body).width(),i=t(document.body).height();t("#winBoxOverlay").length&&t("#winBoxOverlay").remove();if(!r.noOverLay)t("body").append(['
'].join(""));else{var s=c.offset();t("body").append(['
'].join(""))}};return c.show(),v(),c.find("textarea").length>0&&c.addClass("wb_txt"),r.autohide&&(sohuHD.boxtimer=setTimeout(function(){sohuHD.closeBlock(),r.handler&&(r.handler(),r.handler=null)},r.autohide)),v};var n=sohuHD.isIE6;sohuHD.winboxArr={},sohuHD.closeWin=function(e){var n=this.winboxArr||{};for(var r in n)n[r].closeWin();e&&e(),t("#hideForLoginBox").append(sohuHD.loginBox)},sohuHD.showWin=function(r){var i=this;if(i instanceof sohuHD.showWin){r==undefined?r={}:typeof r=="string"&&(r={htmlStr:r});var o=r.showOnce||!1;i.onWinBoxShowed=r.onWinBoxShowed||function(){},i.html=r.htmlStr||"",i.initMask=function(){i.winmask&&i.winmask.remove();var e=t("body").width(),s=t("body").height(),o=['
'];n&&o.push('
'),i.winmask=t(o.join("")),t("body").append(i.winmask)},i.closeWin=function(e){i.timer&&(clearTimeout(i.timer),i.timer=null),o?(i.winbox.remove(),i.winmask.remove(),delete sohuHD.winboxArr[i.timespam]):(i.winbox.hide(),i.winmask.hide()),n&&t("embed,object").css("visibility","visible"),e&&e()},i.initWin=function(e){var n=i.html;typeof n=="string"&&!/<|>/.test(n)?i.winbox=t(["
",n,"
"].join("")):i.winbox=t(n),o&&(sohuHD.winbox=i.winbox),i.winmask=t(""),i.winbox.hide(),t("body").append(i.winbox),i.winbox.click(function(e){t(e.target).hasClass("close")&&(i.closeWin(),e.preventDefault())}),e&&i.show()},i.show=function(){r.noMask||i.initMask(),i.winbox.show(),i.initPos(),i.onWinBoxShowed(),r.autohide&&(i.timer=setTimeout(function(){i.closeWin()},r.hidetime||0))},i.initPos=function(){if(r.offset){i.winbox.css(r.offset),i.winbox.css({position:n?"absolute":"fixed",zIndex:"999"});return}var s=i.winbox.outerWidth(),o=i.winbox.outerHeight();if(n){t("embed,object").css("visibility","hidden");var u=t(e).height()/2-o/2;i.winbox.css({position:"absolute",top:u,left:t(e).width()/2-s/2,zIndex:"999"})}else i.winbox.css({position:"fixed",top:"50%",left:"50%",margin:"-"+o/2+"px 0 0 -"+s/2+"px",zIndex:"999"})};var u=(new Date).getTime();return i.timespam=u,sohuHD.winboxArr[u]=i,i}r.showOnce=!0;var s=new i.showWin(r);s.initWin(!0);return},sohuHD.getHistory=function(){var e="";if(!this.hisCookie){e=t.cookie("savehistory");if(!e)return[];this.hisCookie=e.split("%2C")}e=this.hisCookie;var n,r,i,s,o=[];r=e?e.length:0;for(var u=0;u
t.length&&(r=(new Array(i+1)).join("m")),r});for(var r in n)(new RegExp("("+r+")")).test(t)&&(t=t.replace(RegExp.$1,("00"+n[r]).substr(~RegExp.$1.length+1)));return t},truncate:function(e,t,n,r){return e=e||"",e.length<=t?e:(e=e.substr(0,t),n&&(e+=r||"..."),e)},truncateCN:function(e,t,n,r){e=e||"";var i=/[^\x00-\xff]/g;n=n||!1,r=r||"...";if(t>0&&e.replace(i,"mm").length>t){var s=Math.floor(t/2);for(var o=s;o=t)return e.substr(0,o)+(n?r:"")}return e},numberGroup:function(e,t,n){e=e||"1234567345345.000",t=t||3,n=n||",",e=""+e;if(!/^(\+|-)?(\d+)(\.\d+)?$/.test(e))return e;var r=RegExp.$1,i=RegExp.$2,s=RegExp.$3,o=(new RegExp).compile("(\\d+)(\\d{"+t+"})("+n+"|$)");while(o.test(i))i=i.replace(o,"$1"+n+"$2$3");return r+i+s},escapeXSS:function(e){return(e||"").replace(//g,">")}}),t(o,{render:function(e,t){return(new o(e)).render(t)},registHelper:function(){var e={},n=[].slice.call(arguments);n.length==2&&typeof n[0]=="string"?e[n[0]]=n[1]:n.length=="1"&&typeof n[0]=="object"&&(e=n[0]),e&&t(s.prototype,e)}}),t(o.prototype,{version:"1.0",setContent:function(e){this.fn=null,this.directive=null,this.content=e},render:function(e){this.compile();var t=this.directive||{},r,i;for(var s in n){i=n[s],r=typeof t[s]=="undefined"?i.name:t[s];if(e[r])throw new Error("\u6307\u4ee4{ "+r+" }\u51b2\u7a81...");e[r]=this[i.dir]}var o=this.fn(e);for(var s in n)i=n[s],r=typeof t[s]=="undefined"?i.name:t[s],delete e[r];return o},compile:function(){if(!this.fn){this.directive={};var e=this,t=this.content.replace(/[\r\t\n]/g," ").replace(/<%@(.*?)%>/g,function(t,n){if(n){var t=n.split(":");t&&t.length&&(e.directive[i(t[0])]=i(t[1]))}return""}).replace(/<%!--(.*?)--%>/g,"").split("<%").join(" ").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split(" ").join("');").split("%>").join("p.push('").split("\r").join("\\'"),n="var p = [];with(obj){p.push('"+t+"');}"+"return p.join('');";this.fn=new Function("obj",n)}},registHelper:function(){var e=this[n.h.dir],r=[].slice.call(arguments);r.length==2&&typeof r[0]=="string"?e[r[0]]=r[1]:r.length=="1"&&typeof r[0]=="object"&&t(e,r[0])}}),e.Template=o}(sohuHD),function(e){function R(e){return O.call(e)===b}function U(e,n){var r=/^\w+\:\/\//,i;return typeof e!=t&&(e=""),typeof n!=t&&(n=""),i=(/^\/\//.test(e)?N.protocol:"")+e,i=(r.test(i)?"":n)+i,(r.test(i)?"":i.charAt(0)==="/"?H:P)+i}function z(e){return U(e).indexOf(H)===0}function W(e){var n,r=-1;while(n=B[++r])if(typeof n.src==t&&e===U(n.src)&&n.type!==g)return S;return x}function X(r,y){function Z(e,t){return e[s]&&e[s]!==l&&e[s]!=="loaded"||t[c]?x:(e[v]=e[d]=E,S)}function et(e,t,n){n=!!n;if(!n&&!Z(e,t))return;t[c]=S;for(var r in Q)if(Q[m](r)&&!Q[r][c])return;b=S,V()}function tt(e){R(e[u])&&(e[u](),e[u]=E)}function nt(e,t){if(!Z(e,t))return;t[o]=S,k(function(){_[t[h]].removeChild(e),tt(t)},0)}function rt(e,t){e[s]===4&&(e[d]=M,t[o]=S,k(function(){tt(t)},0))}function it(e,r,s,o,u,a){var f=e[h];k(function(){if("item"in _[f]){if(!_[f][0]){k(arguments.callee,25);return}_[f]=_[f][0]}var l=T.createElement(i);typeof s==t&&(l.type=s),typeof o==t&&(l.charset=o),R(u)&&(l[v]=l[d]=function(){u(l,e)},l.src=r,I&&(l.async=x)),_[f].insertBefore(l,f===n?_[f].firstChild:E),typeof a==t&&(l.text=a,et(l,e,S))},0)}function st(e,t,n,r){D[e[a]]=S,it(e,t,n,r,et)}function ot(e,t,n,r){var i=arguments;K&&e[o]==E?(e[o]=x,it(e,t,g,r,nt)):!K&&e[o]!=E&&!e[o]?e[u]=function(){ot.apply(E,i)}:K||st.apply(E,i)}function ut(t,n,r,i){var s=arguments,f;K&&t[o]==E?(t[o]=x,f=t.xhr=C?new C("Microsoft.XMLHTTP"):new e.XMLHttpRequest,f[d]=function(){rt(f,t)},f.open("GET",n),f.send("")):!K&&t[o]!=E&&!t[o]?t[u]=function(){ut.apply(E,s)}:K||(D[t[a]]=S,it(t,n,r,i,E,t.xhr.responseText),t.xhr=E)}function at(e){if(typeof e=="undefined"||!e)return;e.allowDup==E&&(e.allowDup=y.dupe);var n=e.src,r=e.type,i=e.charset,s=e.allowDup,u=U(n,F),f,l=z(u);typeof i!=t&&(i=E),s=!!s;if(!s&&(D[u]!=E||K&&Q[u]||W(u))){Q[u]!=E&&Q[u][o]&&!Q[u][c]&&l&&et(E,Q[u],S);return}Q[u]==E&&(Q[u]={}),f=Q[u],f[h]==E&&(f[h]=j),f[c]=x,f[a]=u,$=S,!P&&H&&l?ut(f,u,r,i):!P&&A?ot(f,u,r,i):st(f,u,r,i)}function ft(e){r&&!P&&G.push(e),(!r||N)&&e()}function lt(e){var t=[],n;for(n=-1;++n-1&&(i=r[o]);if(!i){var u={"http:/?ifox":"4118f4355f694e9f","http:/?ifox1":"d0598d31b5f36195","http:/?ifox2":"d0598d31b5f36195","http:/?ifox3":"d0598d31b5f36195","http:/?ifox4":"d0598d31b5f36195"};for(var o in u)document.URL==o&&(i=u[o])}var a=n.getUrlParam("aureole");a&&(i="aureole_"+a),i&&t.cookie("ch_key",i,{domain:"tv.sohu.com",path:"/"});var f=n.getUrlParam("lqd"),l=n.getUrlParam("lcode"),c=n.getUrlParam("txid"),h={domain:"tv.sohu.com",path:"/"};f&&t.cookie("_LQD",f,h),l&&t.cookie("_LCODE",l,h),c&&t.cookie("_TXID",c,h)}catch(p){_e(p)}}(window),window._oad_ping_callback=function(e,t){var n=sohuHD.pingback;if(!n)return;var r=t.split("|");for(var i=0;i