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