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