(function(K){var N="MULTI";var t="BAIDU_CLB_SLOTS_MAP";if(!K[t]){K[t]={}}var v="BAIDU_CLB_SLOTS_MANAGER",S="__BAIDU_CLB_DONE__";if(!K[v]){K[v]={_container:{},register:function(T){this._container[T]=1},tryAddSlot:function(U,T){if(this._container[T]===1){U[U.length]=T;return true}},setLoaded:function(T){if(this._container[T]){this._container[T]=2}},setUnloaded:function(T){if(this._container[T]){this._container[T]=1}}}}K.BAIDU_CLB_addSlot=function(T){K[v].register(T)};K.BAIDU_CLB_enableAllSlots=new Function();var R="http://cb.baidu.com/ecom",c="http://drmcmm.baidu.com/js/img/close.gif",M="http://cpro.baidu.com/cpro/ui/cc.js";CF_URL="http://cpro.baidu.com/cpro/ui/cf.js";function A(T){return K.encodeURIComponent?encodeURIComponent(T):escape(T)}function p(U,W,V,Y,X){var T=new Date();X&&(T.setTime(T.getTime()+X));document.cookie=U+"="+escape(W)+(X?";expires="+T.toGMTString():"")+(V?";domain="+escape(V):"")+(Y?";path="+escape(Y):"")}function i(U){var V=new RegExp("(^| )"+U+"=([^;]*)(;|$)"),T=V.exec(document.cookie);if(T){return unescape(T[2]||"")}return""}function z(V){V=V||document.domain;if(V.indexOf("www.")===0){V=V.substr(4)}var U=/([a-z0-9][a-z0-9\-]*?\.(?:com|cn|net|org|gov|info|la|cc|co|jp)(?:\.(?:cn|jp))?)$/,T=V.match(U);if(T){return T[0]}return V}function G(){return K.screen.width}function x(){return K.screen.height}function h(){return K.screen.availWidth}function Q(){return K.screen.availHeight}function D(){return K.screen.colorDepth}function C(){return(new Date(document.lastModified)).getTime()}function l(){var T=navigator;return(T.language||T.browserLanguage)}function O(){return navigator.javaEnabled()?1:0}function m(){var V,U,T,W=navigator;if(W.plugins&&W.mimeTypes.length){T=W.plugins["Shockwave Flash"];if(T&&T.description){return T.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")}}else{if(W.userAgent&&W.userAgent.indexOf("Windows CE")>=0){U=3;V=1;while(V){try{V=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+(U+1));U++}catch(X){break}}return U.toString()}else{if(k()){try{V=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(X){var U=0;try{V=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");U=6;V.AllowScriptAccess="always"}catch(X){if(U==6){return U.toString()}}try{V=new ActiveXObject("ShockwaveFlash,ShockwaveFlash")}catch(X){}}if(V){return V.GetVariable("$version").split(" ")[1].replace(/,/g,".")}}}}return"0"}function B(){var U=document.referrer,X=U.replace(/^http:\/\//,""),W=X.indexOf("/");if(W!=-1){X=X.substr(0,W)}X=X.replace(/:\d+$/,"");X=z(X);var T=z(),V=i("BAIDU_CLB_REFER");if(T==X&&V!=""){return A(V)}else{if(T!=X){p("BAIDU_CLB_REFER",U,T);return A(U)}}return""}function a(){return A(document.URL)}function H(V,U){var T="di="+V+(U?"&fn="+U:"")+"&tm=BAIDU_CLB_SETJSONADSLOT&mod_t="+C()+"&visi_t="+(new Date()).getTime()+"&flash_v="+m()+"&java="+O()+"&new=1";if(K.screen){T+="&screen_h="+x()+"&screen_w="+G()+"&page_h="+Q()+"&page_w="+h()+"&color="+D()}T+="&asp_refer="+B()+"&asp_url="+a()+"&b_lang="+l()+"&baidu_id="+i("BAIDUID");return R+"?"+T}function f(T){return"baidu_clb_slot_"+T}function L(T){return"baidu_clb_slot_iframe_"+T}function y(U,T){var V;if(T._isMlt==2){V=e}else{switch(T._stype){case 0:V=s;break;case 1:V=r;break;default:V=q}}V(U,T)}function e(V,T){var X=j(T._html);var U=X?CF_URL:M;var W=K[X?"BAIDU_CLB_CPROFSLOT":"BAIDU_CLB_CPROCSLOT"];if(W){W(V,T)}else{K.tempClbCproAdObj=T;K.tempClbCproAdSlotId=V;document.write('<script type="text/javascript" src="'+U+'"><\/script>')}}function j(V){var Z=V.split("|"),Y=false;for(var W=0,T=Z.length;W<T;W++){var X=Z[W].split("=");if(X[0]=="cpro_template"){var U=X[1].split("_");if(U[1].indexOf("xuanfu")==0){return true}return Y}}return Y}function s(W,U){var X=U._html,Y=U._w,T=U._h,V=f(W);if(!X&&!U._fxp){return}if(X&&U._isMlt){document.write(X)}else{if(k()){document.write('<div id="'+V+'">'+w(W,Y,T)+"</div>")}else{document.write('<div id="'+V+'"></div>');g(W,V,Y,T,U._html)}}}function r(U,T){if(T._html==""){return}if(K.attachEvent){K.attachEvent("onload",W);K.attachEvent("onresize",V);if(u()<7||o()){K.attachEvent("onscroll",V)}}else{if(K.addEventListener){K.addEventListener("load",W,false);K.addEventListener("resize",V,false)}}function W(){if(k()){P(U,T)}else{F(U,T)}var X=T._st;if(X>0){K.setTimeout(function(){var Y=document.getElementById(f(U));if(Y){Y.parentNode.removeChild(Y)}},X*1000)}}function V(){d(U,T)}}function q(W,ad){var V=ad._h,U=ad._w,ac=0,ae=0,X=ad._html,Y,ab,T,Z="newwindow"+W,aa="about:blank";if(X==""){return}if(k()&&document.domain!=location.hostname){aa="javascript:void( (function(){var d=document;d.open();"+J()+"d.write('');d.close();})() )"}if(ad._top==1){ac=ad._hs}else{if(K.screen){ac=Q()-ad._hs-V}}if(ad._left==1){ae=ad._vs}else{if(K.screen){ae=h()-ad._vs-U}}T="height="+V+",width="+U+",top="+ac+",left="+ae+",screenX="+ac+",screenY="+ae+",toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no";if(ad._bf||!k()){Y=K.open(aa,Z,T);if(Y){ab=Y.document;ab.open("text/html","replace");ab.write(X);ab.close();if(ad._st>0){K.setTimeout(function(){Y&&(Y.close())},ad._st*1000)}}}else{if(K.attachEvent){K.attachEvent("onunload",function(){var af=K.event;if((af.clientY<0&&!af.ctrlKey)||af.altKey){var ah=K.open(aa,Z,T);if(ah){var ag=ah.document;ag.open("text/html","replace");ag.write(X);ah.focus()}}})}}}function d(X,ad){var V=document.getElementById(f(X));if(!V){return}var U=V.style,Z=ad._vs,Y=ad._hs,T=o(),ac=document,aa=(T?document.body:document.documentElement),ab=ac.documentElement.scrollTop||ac.body.scrollTop,W=ac.documentElement.scrollLeft||ac.body.scrollLeft;if(k()&&(u()<7||T)){if(ad._sf){if(ad._top==1){U.top=(ab+Y)+"px"}else{if(u()<7){U.top=(ab+aa.clientHeight-Y-ad._h-17)+"px"}else{U.bottom=Y-ab+"px"}}if(ad._left==1){U.left=(W+Z)+"px"}else{U.right=Z-W+"px"}}else{if(ad._top!=1){U.top=(aa.clientHeight-Y-ad._h-17)+"px"}}}}function P(V,U){var T="absolute",W=document.createElement("div");if(U._sf){if(u()>6&&!o()){T="fixed"}}W.id=f(V);W.style.position=T;n(W,U);W.innerHTML=w(V,U._w,U._h)+I();document.body.appendChild(W)}function F(W,T){var V=f(W),T=K[t][W],X=document.getElementById(V),U;if(!X){X=document.createElement("div");X.id=V}X.innerHTML=I();U=X.style;U.position=T._sf?"fixed":"absolute";n(X,T);document.body.appendChild(X);g(W,V,T._w,T._h,T._html)}function n(U,T){var V=U.style;V[(T._left==1?"left":"right")]=T._vs+"px";V[(T._top==1?"top":"bottom")]=T._hs+"px";V.width=T._w+"px";V.height=(T._h-0+17)+"px";V.border="0";V.zIndex="2147483647"}function g(V,X,U,ab,W){var Z=L(V),T=document.getElementById(X),aa=document.createElement("iframe");aa.id=Z;aa.name=Z;aa.width=U;aa.height=ab;aa.vspace=0;aa.hspace=0;aa.allowTransparency="true";aa.scrolling="no";aa.marginWidth=0;aa.marginHeight=0;aa.frameBorder=0;aa.style.border=0;aa.style.display="block";T.insertBefore(aa,T.firstChild);var Y=aa.contentWindow.document;Y.write(W);K.setTimeout(function(){Y.close()},0)}function w(U,V,T){var W=L(U);return'<iframe id="'+W+'" name="'+W+'"  width="'+V+'" height="'+T+'" vspace="0" hspace="0" allowTransparency="true" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="border:0px;vertical-align:bottom" src="javascript:void((function(){var d=document;d.open(\'text/html\', \'replace\');'+J()+"d.write(parent."+t+"['"+U+"']._html);d.close()})())\"></iframe>"}function I(){return'<div style="height:'+(k()&&o()?"17":"15")+"px;border:1px solid #E1E1E1;background:#F0F0F0;padding:0;margin:0;"+(k()?"overflow:hidden;":"")+'"><div style="float:right;clear:right;margin:2px 5px 0 0;width:39px;height:15px;cursor:pointer;background:transparent url(\''+c+"') no-repeat scroll 0 0;"+(k()?"_display:inline;":"")+'" onmouseover="this.style.backgroundPosition=\'0 -20px\';" onmouseout="this.style.backgroundPosition=\'0 0\';" onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);"></div></div>'}function J(){if(document.domain!=location.hostname){return"document.domain='"+document.domain+"';"}return""}function k(){return/msie/i.test(navigator.userAgent)&&!K.opera}function u(){var U=navigator.userAgent,T=U.indexOf("MSIE ");return T==-1?0:parseFloat(U.substring(T+5,U.indexOf(";",T)))}function o(){return(document.compatMode=="CSS1Compat"?false:true)}function E(V){var U,W,X,T;for(W in V){X=V[W];if(typeof X!="function"){U=W;T=X}}K[t][U]=T;T[S]=true;y(U,T)}var b="BAIDU_CLB_SETJSONADSLOT";K[b]=E;K.BAIDU_CLB_ADDAD=function(U){for(var T in U){if(U.hasOwnProperty(T)){K.BAIDU_CLB_SLOTS_MAP[T]=U}}};K.BAIDU_CLB_preloadSlots=function(){var T=16,W=K[v],Z=arguments.length,V=0,X=[],U;function Y(af){var aa=16,ae=[],ab=[],ag=af.length,ad=0,ac;for(;ad<ag;ad++){ae[ad]="BAIDU_CLB_ADDAD";ab[ad]="BAIDU_CLB_SETJSONADSLOT"}ac=H(af[0],ae[0]).replace("di="+af[0],"di="+af.join(",")).replace("fn="+ae[0],"fn="+ae.join(",")).replace("tm=BAIDU_CLB_SETJSONADSLOT","tm="+ab.join(","));document.write('<script type="text/javascript" charset="utf-8" src="'+ac+'"><\/script>')}for(;V<Z;V++){if(W.tryAddSlot(X,arguments[V])){W.setLoaded(X[X.length-1])}if(X.length>=T){Y(X);X=[]}}if(X.length){Y(X)}};K.BAIDU_CLB_fillSlot=function(T){var U=K.BAIDU_CLB_SLOTS_MAP[T];if(U&&!U[S]){E(U)}else{if(!K[t][T]){document.write('<script type="text/javascript" charset="utf-8" src="'+H(T,b)+'"><\/script>')}}};K.BAIDU_CLB_SETHTMLSLOT=new Function()})(window);
