var ___baseNamespaceName="CproNamespace";(function(){var c=___baseNamespaceName;var g=window,a=0,f=false,b=false;while((g!=window.top||g!=g.parent)&&a<10){f=true;try{g.parent.location.toString()}catch(e){b=true;break}a++;g=g.parent}if(a>=10){b=true}var d=function(h,j,i){h.baseName=c;h.isInIframe=j;h.isCrossDomain=i;h.needInitTop=j&&!i;h.buildInObject={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object Window]":1};h.clone=function(o){var l=o,m,k;if(!o||o instanceof Number||o instanceof String||o instanceof Boolean){return l}else{if(o instanceof Array){l=[];var n=0;for(m=0,k=o.length;m<k;m++){l[n++]=this.clone(o[m])}}else{if("object"===typeof o){if(this.buildInObject[Object.prototype.toString.call(o)]){return l}l={};for(m in o){if(o.hasOwnProperty(m)){l[m]=this.clone(o[m])}}}}}return l};h.create=function(m,p){var l=Array.prototype.slice.call(arguments,0);l.shift();var n=function(q){this.initialize=this.initialize||function(){};this.initializeDOM=this.initializeDOM||function(){};this.initializeEvent=this.initializeEvent||function(){};this.initialize.apply(this,q);this.initializeDOM.apply(this,q);this.initializeEvent.apply(this,q)};n.prototype=m;var k=new n(l);for(var o in m){if(k[o]&&typeof k[o]==="object"&&k[o].modifier&&k[o].modifier.indexOf("dynamic")>-1){k[o]=this.clone(k[o])}}k.instances=null;m.instances=m.instances||[];m.instances.push(k);return k};h.registerMethod=function(o,k){var p={};var l={};var s,q,r;for(q in k){s=k[q];if(!q||!s){continue}if(typeof s==="object"&&s.modifier&&s.modifier==="dynamic"){this.registerMethod(o[q],s)}else{if(typeof s==="function"){p[q]=s}else{l[q]=s}}}for(q in p){s=p[q];if(q&&s){o[q]=s}}if(o.instances&&o.instances.length&&o.instances.length>0){for(var m=0,n=o.instances.length;m<n;m++){r=o.instances[m];this.registerMethod(r,k)}}};h.registerObj=function(m,o){var l=Array.prototype.slice.call(arguments,0);l.shift();var n=function(p){this.register=this.register||function(){};this.register.apply(this,p)};n.prototype=m;n.prototype.instances=null;var k=new n(l);return k};h.registerNamespaceByWin=function(m,o){var o=m.win=o||window;var l=m.fullName.replace("$baseName",this.baseName);namespaceNames=l.split(".");var p=namespaceNames.length;var s=o;var r;for(var n=0;n<p-1;n++){var k=namespaceNames[n];if(s==o){s[k]=o[k]=o[k]||{};r=k;m.baseName=r}else{s[k]=s[k]||{}}s=s[k]}var q=s[namespaceNames[p-1]]||{};if(q.fullName&&q.version){this.registerMethod(q,m)}else{q=this.registerObj(m);q.instances=null;s[namespaceNames[p-1]]=q}};h.registerNamespace=function(k){if(!k||!k.fullName||!k.version){return}this.registerNamespaceByWin(k,window);if(this.needInitTop){this.registerNamespaceByWin(k,window.top)}};h.registerClass=h.registerNamespace;h.using=function(m,p){var k;if(!p&&this.isInIframe&&!this.isCrossDomain&&top&&typeof top==="object"&&top.document&&"setInterval" in top){p=top}else{p=p||window}m=m.replace("$baseName",this.baseName);var l=m.split(".");k=p[l[0]];for(var n=1,o=l.length;n<o;n++){if(k&&k[l[n]]){k=k[l[n]]}else{k=null}}return k}};window[c]=window[c]||{};d(window[c],f,b);if(f&&!b){window.top[c]=window.top[c]||{};d(window.top[c],f,b)}})();(function(b){var a={fullName:"$baseName.Utility",version:"1.0.0",register:function(){this.browser=this.browser||{};if(/msie (\d+\.\d)/i.test(navigator.userAgent)){this.browser.ie=document.documentMode||+RegExp["\x241"]}if(/opera\/(\d+\.\d)/i.test(navigator.userAgent)){this.browser.opera=+RegExp["\x241"]}if(/firefox\/(\d+\.\d)/i.test(navigator.userAgent)){this.browser.firefox=+RegExp["\x241"]}if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(navigator.userAgent)&&!/chrome/i.test(navigator.userAgent)){this.browser.safari=+(RegExp["\x241"]||RegExp["\x242"])}if(/chrome\/(\d+\.\d)/i.test(navigator.userAgent)){this.browser.chrome=+RegExp["\x241"]}try{if(/(\d+\.\d)/.test(external.max_version)){this.browser.maxthon=+RegExp["\x241"]}}catch(c){}this.browser.isWebkit=/webkit/i.test(navigator.userAgent);this.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);this.browser.isStrict=document.compatMode=="CSS1Compat"},browser:{},isWindow:function(e){var c=false;try{if(e&&typeof e==="object"&&e.document&&"setInterval" in e){c=true}}catch(d){c=false}return c},isInIframe:function(c){c=c||window;return c!=window.top&&c!=c.parent},isInCrossDomainIframe:function(g,d){var c=false;g=g||window;d=d||window.top;parentWin=g.parent;var f=0;if(!this.isWindow(d)||!this.isWindow(d.parent)){c=true}else{while((g!=d)&&f<10){f++;if(this.isWindow(g)&&this.isWindow(g.parent)){try{g.parent.location.toString()}catch(e){c=true;break}}else{c=true;break}g=g.parent}}if(f>=10){c=true}return c},g:function(d,c){c=c||window;if("string"===typeof d||d instanceof String){return c.document.getElementById(d)}else{if(d&&d.nodeName&&(d.nodeType==1||d.nodeType==9)){return d}}return d},getDocument:function(c){if(!c){return document}c=this.g(c);return c.nodeType==9?c:c.ownerDocument||c.document},getWindow:function(c){c=this.g(c);var d=this.getDocument(c);return d.parentWindow||d.defaultView||null},getTopWindow:function(c){c=c||window;if(this.isInIframe(c)&&!this.isInCrossDomainIframe(c,c.top)&&this.isWindow(c.top)){return c.top}return c},bind:function(c,d,e){c=this.g(c);d=d.replace(/^on/i,"").toLowerCase();if(c.addEventListener){c.addEventListener(d,e,false)}else{if(c.attachEvent){c.attachEvent("on"+d,e)}}return c},proxy:function(d,c){var f=d;var e=c;return function(){return f.apply(e||{},arguments)}},getStyle:function(e,d){var c;e=this.g(e);var g=this.getDocument(e);var h="";if(d.indexOf("-")>-1){h=d.replace(/[-_][^-_]{1}/g,function(i){return i.charAt(1).toUpperCase()})}else{h=d.replace(/[A-Z]{1}/g,function(i){return"-"+i.charAt(0).toLowerCase()})}var f;if(g&&g.defaultView&&g.defaultView.getComputedStyle){f=g.defaultView.getComputedStyle(e,null);if(f){c=f.getPropertyValue(d)}if(typeof c!=="boolean"&&!c){c=f.getPropertyValue(h)}}else{if(e.currentStyle){f=e.currentStyle;if(f){c=f[d]}if(typeof c!=="boolean"&&!c){c=f[h]}}}return c},getPositionCore:function(c){c=this.g(c);var k=this.getDocument(c),f=this.browser,d=f.isGecko>0&&k.getBoxObjectFor&&this.getStyle(c,"position")=="absolute"&&(c.style.top===""||c.style.left===""),i={left:0,top:0},h=(f.ie&&!f.isStrict)?k.body:k.documentElement,l,e;if(c==h){return i}if(c.getBoundingClientRect){e=c.getBoundingClientRect();i.left=Math.floor(e.left)+Math.max(k.documentElement.scrollLeft,k.body.scrollLeft);i.top=Math.floor(e.top)+Math.max(k.documentElement.scrollTop,k.body.scrollTop);i.left-=k.documentElement.clientLeft;i.top-=k.documentElement.clientTop;var j=k.body,m=parseInt(this.getStyle(j,"borderLeftWidth")),g=parseInt(this.getStyle(j,"borderTopWidth"));if(f.ie&&!f.isStrict){i.left-=isNaN(m)?2:m;i.top-=isNaN(g)?2:g}}else{l=c;do{i.left+=l.offsetLeft;i.top+=l.offsetTop;if(f.isWebkit>0&&this.getStyle(l,"position")=="fixed"){i.left+=k.body.scrollLeft;i.top+=k.body.scrollTop;break}l=l.offsetParent}while(l&&l!=c);if(f.opera>0||(f.isWebkit>0&&this.getStyle(c,"position")=="absolute")){i.top-=k.body.offsetTop}l=c.offsetParent;while(l&&l!=k.body){i.left-=l.scrollLeft;if(!f.opera||l.tagName!="TR"){i.top-=l.scrollTop}l=l.offsetParent}}return i},getPosition:function(i,h){h=h||window;var e=this.g(i,h);if(!e){return}var c=this.getPositionCore(e);var d;var g=10,f=0;while(h!=h.parent&&f<g){f++;d={top:0,left:0};if(!this.isInCrossDomainIframe(h,h.parent)&&h.frameElement){d=this.getPositionCore(h.frameElement)}else{break}c.left+=d.left;c.top+=d.top;h=h.parent}return c},getOuterWidth:function(e,d){e=this.g(e);d=d||false;var c=e.offsetWidth;if(d){var g=this.getStyle(e,"marginLeft").toString().toLowerCase().replace("px","").replace("auto","0");var f=this.getStyle(e,"marginRight").toString().toLowerCase().replace("px","").replace("auto","0");c=c+parseInt(g||0)+parseInt(f||0)}return c},getOuterHeight:function(e,d){e=this.g(e);d=d||false;var c=e.offsetHeight;if(d){var f=this.getStyle(e,"marginTop").toString().toLowerCase().replace("px","").replace("auto","0");var g=this.getStyle(e,"marginBottom").toString().toLowerCase().replace("px","").replace("auto","0");c=c+parseInt(f||0)+parseInt(g||0)}return c},getTopIframe:function(f){var c=this.g(f);var d=this.getWindow(c);var e=0;if(this.isInIframe(window)&&!this.isInCrossDomainIframe(window)){while(d.parent!=window.top&&e<10){e++;d=d.parent}if(e<10){c=d.frameElement||c}}return c},getOpacityInWin:function(k){var j=this.g(k);var h=this.getWindow(j);var c=100;var f=j;var i;try{while(f&&f.tagName){i=100;if(this.browser.ie){if(this.browser.ie>5){try{i=f.filters.alpha.opacity||100}catch(g){}}c=c>i?i:c}else{try{i=(h.getComputedStyle(f,null).opacity||1)*100}catch(g){}c=c*(i/100)}f=f.parentNode}}catch(d){}return c||100},getOpacity:function(i){var h=this.g(i);var g=this.getWindow(h);var c=this.getOpacityInWin(h);var d=100;var e=0,f=10;while(this.isInIframe(g)){e++;if(!this.isInCrossDomainIframe(g,g.parent)){d=100;if(g.frameElement){d=this.getOpacityInWin(g.frameElement)}c=c*(d/100)}else{break}g=g.parent}return c},dateToString:function(d,c){var g={"M+":d.getMonth()+1,"d+":d.getDate(),"h+":d.getHours()%12==0?12:d.getHours()%12,"H+":d.getHours(),"m+":d.getMinutes(),"s+":d.getSeconds(),"q+":Math.floor((d.getMonth()+3)/3),S:d.getMilliseconds()};var f={"0":"\u65e5","1":"\u4e00","2":"\u4e8c","3":"\u4e09","4":"\u56db","5":"\u4e94","6":"\u516d"};if(/(y+)/.test(c)){c=c.replace(RegExp.$1,(d.getFullYear()+"").substr(4-RegExp.$1.length))}if(/(E+)/.test(c)){c=c.replace(RegExp.$1,((RegExp.$1.length>1)?(RegExp.$1.length>2?"\u661f\u671f":"\u5468"):"")+f[d.getDay()+""])}for(var e in g){if(new RegExp("("+e+")").test(c)){c=c.replace(RegExp.$1,(RegExp.$1.length==1)?(g[e]):(("00"+g[e]).substr((""+g[e]).length)))}}return c},param:function(h,i){var c=new Array(),g,f,d;for(var e in h){d=true;if(i){g=i[e]?i[e]:e;d=i[e]?true:false}if(!d){continue}var f=h[e];switch(typeof f){case"string":case"number":c.push(g+"="+f.toString());break;case"boolean":c.push(g+"="+(f?"1":"0"));break;case"object":if(f instanceof Date){c.push(g+"="+this.dateToString(f,"yyyyMMddhhmmssS"))}break;default:break}}return c.join("&")},getLength:function(e){var c=0;if(typeof e==="object"){if(e instanceof Array){c=e.length}else{var d;for(d in e){if(d){c++}}}}return c},md5:function(s){function N(d,c){return(d<<c)|(d>>>(32-c))}function M(F,d){var H,c,x,G,k;x=(F&2147483648);G=(d&2147483648);H=(F&1073741824);c=(d&1073741824);k=(F&1073741823)+(d&1073741823);if(H&c){return(k^2147483648^x^G)}if(H|c){if(k&1073741824){return(k^3221225472^x^G)}else{return(k^1073741824^x^G)}}else{return(k^x^G)}}function r(c,k,d){return(c&k)|((~c)&d)}function q(c,k,d){return(c&d)|(k&(~d))}function p(c,k,d){return(c^k^d)}function n(c,k,d){return(k^(c|(~d)))}function u(G,F,ac,ab,k,H,I){G=M(G,M(M(r(F,ac,ab),k),I));return M(N(G,H),F)}function g(G,F,ac,ab,k,H,I){G=M(G,M(M(q(F,ac,ab),k),I));return M(N(G,H),F)}function J(G,F,ac,ab,k,H,I){G=M(G,M(M(p(F,ac,ab),k),I));return M(N(G,H),F)}function t(G,F,ac,ab,k,H,I){G=M(G,M(M(n(F,ac,ab),k),I));return M(N(G,H),F)}function e(F){var I;var x=F.length;var k=x+8;var d=(k-(k%64))/64;var H=(d+1)*16;var ab=Array(H-1);var c=0;var G=0;while(G<x){I=(G-(G%4))/4;c=(G%4)*8;ab[I]=(ab[I]|(F.charCodeAt(G)<<c));G++}I=(G-(G%4))/4;c=(G%4)*8;ab[I]=ab[I]|(128<<c);ab[H-2]=x<<3;ab[H-1]=x>>>29;return ab}function D(k){var d="",x="",F,c;for(c=0;c<=3;c++){F=(k>>>(c*8))&255;x="0"+F.toString(16);d=d+x.substr(x.length-2,2)}return d}function L(k){k=k.replace(/\r\n/g,"\n");var d="";for(var F=0;F<k.length;F++){var x=k.charCodeAt(F);if(x<128){d+=String.fromCharCode(x)}else{if((x>127)&&(x<2048)){d+=String.fromCharCode((x>>6)|192);d+=String.fromCharCode((x&63)|128)}else{d+=String.fromCharCode((x>>12)|224);d+=String.fromCharCode(((x>>6)&63)|128);d+=String.fromCharCode((x&63)|128)}}}return d}var E=Array();var R,i,K,v,h,aa,Z,Y,X;var U=7,S=12,P=17,O=22;var B=5,A=9,z=14,y=20;var o=4,m=11,l=16,j=23;var W=6,V=10,T=15,Q=21;s=L(s);E=e(s);aa=1732584193;Z=4023233417;Y=2562383102;X=271733878;for(R=0;R<E.length;R+=16){i=aa;K=Z;v=Y;h=X;aa=u(aa,Z,Y,X,E[R+0],U,3614090360);X=u(X,aa,Z,Y,E[R+1],S,3905402710);Y=u(Y,X,aa,Z,E[R+2],P,606105819);Z=u(Z,Y,X,aa,E[R+3],O,3250441966);aa=u(aa,Z,Y,X,E[R+4],U,4118548399);X=u(X,aa,Z,Y,E[R+5],S,1200080426);Y=u(Y,X,aa,Z,E[R+6],P,2821735955);Z=u(Z,Y,X,aa,E[R+7],O,4249261313);aa=u(aa,Z,Y,X,E[R+8],U,1770035416);X=u(X,aa,Z,Y,E[R+9],S,2336552879);Y=u(Y,X,aa,Z,E[R+10],P,4294925233);Z=u(Z,Y,X,aa,E[R+11],O,2304563134);aa=u(aa,Z,Y,X,E[R+12],U,1804603682);X=u(X,aa,Z,Y,E[R+13],S,4254626195);Y=u(Y,X,aa,Z,E[R+14],P,2792965006);Z=u(Z,Y,X,aa,E[R+15],O,1236535329);aa=g(aa,Z,Y,X,E[R+1],B,4129170786);X=g(X,aa,Z,Y,E[R+6],A,3225465664);Y=g(Y,X,aa,Z,E[R+11],z,643717713);Z=g(Z,Y,X,aa,E[R+0],y,3921069994);aa=g(aa,Z,Y,X,E[R+5],B,3593408605);X=g(X,aa,Z,Y,E[R+10],A,38016083);Y=g(Y,X,aa,Z,E[R+15],z,3634488961);Z=g(Z,Y,X,aa,E[R+4],y,3889429448);aa=g(aa,Z,Y,X,E[R+9],B,568446438);X=g(X,aa,Z,Y,E[R+14],A,3275163606);Y=g(Y,X,aa,Z,E[R+3],z,4107603335);Z=g(Z,Y,X,aa,E[R+8],y,1163531501);aa=g(aa,Z,Y,X,E[R+13],B,2850285829);X=g(X,aa,Z,Y,E[R+2],A,4243563512);Y=g(Y,X,aa,Z,E[R+7],z,1735328473);Z=g(Z,Y,X,aa,E[R+12],y,2368359562);aa=J(aa,Z,Y,X,E[R+5],o,4294588738);X=J(X,aa,Z,Y,E[R+8],m,2272392833);Y=J(Y,X,aa,Z,E[R+11],l,1839030562);Z=J(Z,Y,X,aa,E[R+14],j,4259657740);aa=J(aa,Z,Y,X,E[R+1],o,2763975236);X=J(X,aa,Z,Y,E[R+4],m,1272893353);Y=J(Y,X,aa,Z,E[R+7],l,4139469664);Z=J(Z,Y,X,aa,E[R+10],j,3200236656);aa=J(aa,Z,Y,X,E[R+13],o,681279174);X=J(X,aa,Z,Y,E[R+0],m,3936430074);Y=J(Y,X,aa,Z,E[R+3],l,3572445317);Z=J(Z,Y,X,aa,E[R+6],j,76029189);aa=J(aa,Z,Y,X,E[R+9],o,3654602809);X=J(X,aa,Z,Y,E[R+12],m,3873151461);Y=J(Y,X,aa,Z,E[R+15],l,530742520);Z=J(Z,Y,X,aa,E[R+2],j,3299628645);aa=t(aa,Z,Y,X,E[R+0],W,4096336452);X=t(X,aa,Z,Y,E[R+7],V,1126891415);Y=t(Y,X,aa,Z,E[R+14],T,2878612391);Z=t(Z,Y,X,aa,E[R+5],Q,4237533241);aa=t(aa,Z,Y,X,E[R+12],W,1700485571);X=t(X,aa,Z,Y,E[R+3],V,2399980690);Y=t(Y,X,aa,Z,E[R+10],T,4293915773);Z=t(Z,Y,X,aa,E[R+1],Q,2240044497);aa=t(aa,Z,Y,X,E[R+8],W,1873313359);X=t(X,aa,Z,Y,E[R+15],V,4264355552);Y=t(Y,X,aa,Z,E[R+6],T,2734768916);Z=t(Z,Y,X,aa,E[R+13],Q,1309151649);aa=t(aa,Z,Y,X,E[R+4],W,4149444226);X=t(X,aa,Z,Y,E[R+11],V,3174756917);Y=t(Y,X,aa,Z,E[R+2],T,718787259);Z=t(Z,Y,X,aa,E[R+9],Q,3951481745);aa=M(aa,i);Z=M(Z,K);Y=M(Y,v);X=M(X,h)}var w=function(x){var c=x;for(var d=0,k=8-x.length;d<k;d++){c="0"+c}return c};var C=((parseInt("0x"+D(aa),16)+parseInt("0x"+D(Z),16))%4294967296).toString(16);var f=((parseInt("0x"+D(Y),16)+parseInt("0x"+D(X),16))%4294967296).toString(16);if(C.length<8){C=w(C)}if(f.length<8){f=w(f)}return C+f},getScrollWidth:function(d){try{d=d||window;if(d.document.compatMode==="BackCompat"){return d.document.body.scrollWidth}else{return d.document.documentElement.scrollWidth}}catch(c){return 0}},getScrollHeight:function(d){try{d=d||window;if(d.document.compatMode==="BackCompat"){return d.document.body.scrollHeight}else{return d.document.documentElement.scrollHeight}}catch(c){return 0}},getClientWidth:function(d){try{d=d||window;if(d.document.compatMode==="BackCompat"){return d.document.body.clientWidth}else{return d.document.documentElement.clientWidth}}catch(c){return 0}},getClientHeight:function(d){try{d=d||window;if(d.document.compatMode==="BackCompat"){return d.document.body.clientHeight}else{return d.document.documentElement.clientHeight}}catch(c){return 0}},getScrollTop:function(c){c=c||window;var e=c.document;return window.pageYOffset||e.documentElement.scrollTop||e.body.scrollTop},getScrollLeft:function(c){c=c||window;var e=c.document;return window.pageXOffset||e.documentElement.scrollLeft||e.body.scrollLeft},escapeToEncode:function(d){var c=d||"";if(c){c=c.replace(/%u[\d|\w]{4}/g,function(e){return encodeURIComponent(unescape(e))})}return c},template:function(e,d){var c=/{(.*?)}/g;return e.replace(c,function(h,g,f,i){return d[g]||""})},extend:function(e,c){for(var d in c){if(c.hasOwnProperty(d)){e[d]=c[d]}}return e},log:function(f,d){d=typeof d==="undefined"?true:false;if(!this.logMsg){this.logMsg=document.getElementById("baiduCproLogMsg");if(!this.logMsg){return}}var c=new Array();if(typeof(f)==="object"){for(var e in f){if(e!=="analysisUrl"){c.push(e+":"+f[e])}}}else{c.push(""+f)}this.logMsg.innerHTML=d?this.logMsg.innerHTML:"";this.logMsg.innerHTML+=c.join("<br/>")+"<br/>"},getCookieRaw:function(d,h){var c;var h=h||window;var g=h.document;var e=new RegExp("(^| )"+d+"=([^;]*)(;|\x24)");var f=e.exec(g.cookie);if(f){c=f[2]}return c},setCookieRaw:function(e,f,d){d=d||{};var c=d.expires;if("number"==typeof d.expires){c=new Date();c.setTime(c.getTime()+d.expires)}document.cookie=e+"="+f+(d.path?"; path="+d.path:"")+(c?"; expires="+c.toGMTString():"")+(d.domain?"; domain="+d.domain:"")+(d.secure?"; secure":"")},jsonToObj:function(c){return(new Function("return "+c))()},getUrlQueryValue:function(d,e){var f=new RegExp("(^|&|\\?|#)"+e+"=([^&]*)(&|\x24)","");var c=d.match(f);if(c){return c[2]}return null},ready:function(h,d,g){g=g||this.win||window;var f=g.document;d=d||0;this.domReadyMonitorRunTimes=0;this.readyFuncArray=this.readyFuncArray||[];this.readyFuncArray.push({func:h,delay:d,done:false});var c=this.proxy(function(){var n=false;this.domReadyMonitorRunTimes++;if(this.browser.ie&&this.browser.ie<9&&!g.frameElement){try{f.documentElement.doScroll("left");n=true}catch(o){}}else{if(f.readyState==="complete"||this.domContentLoaded){n=true}else{if(this.domReadyMonitorRunTimes>300000){if(this.domReadyMonitorId){g.clearInterval(this.domReadyMonitorId);this.domReadyMonitorId=null}return}}}if(n){try{if(this.readyFuncArray&&this.readyFuncArray.length){for(var k=0,m=this.readyFuncArray.length;k<m;k++){var l=this.readyFuncArray[k];if(!l||!l.func||l.done){continue}if(!l.delay){l.done=true;l.func()}else{l.done=true;g.setTimeout(l.func,l.delay)}}}}catch(j){throw j}finally{if(this.domReadyMonitorId){g.clearInterval(this.domReadyMonitorId);this.domReadyMonitorId=null}}}},this);var e=this.proxy(function(){this.domContentLoaded=true;c()},this);if(!this.domReadyMonitorStarted){this.domReadyMonitorStarted=true;this.domReadyMonitorId=g.setInterval(c,50);if(f.addEventListener){f.addEventListener("DOMContentLoaded",e,false);g.addEventListener("load",e,false)}else{if(f.attachEvent){g.attachEvent("onload",e,false)}}}},canFixed:function(){var c=true;if(this.browser.ie&&(this.browser.ie<7||document.compatMode==="BackCompat")){c=false}return c},getPara:function(k){var j={};if(k&&typeof k=="string"&&k.indexOf("?")>-1){var f=k.split("?")[1].split("&");for(var g=0,c=f.length;g<c;g++){var d=f[g].split("=");var e=d[0];var h=d[1];j[e]=h}}return j}};b.registerNamespace(a)})(window[___baseNamespaceName]);(function(b){var c={fullName:"$baseName.BusinessLogic",version:"1.0.0",register:function(){this.G=b.using("$baseName",this.win);this.U=b.using("$baseName.Utility",this.win)},randomArray:[],clientTree:{},displayCounter:1,displayTypeCounter:{},adsArray:[],adsWrapStore:{},winFocused:true,cproServiceUrl:"http://cpro.baidu.com/cpro/ui/uijs.php",iframeIdPrefix:"cproIframe",isAsyn:false,getSlotDataFromUnion:function(f,j,h){if(!f||!j||!window[j]){return null}if(f instanceof Array){f=f.join(",")}var i="http://pos.baidu.com/ecom?di={slotId}&tm=BAIDU_CPRO_SETJSONADSLOT&fn={callbackName}&baidu_id={baiduId}";var d=this.U.getCookieRaw("BAIDUID")||"";var g=this.U.template(i,{slotId:f,callbackName:j,baiduId:d});if(/u\d+/.test(f)){if(h){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("src",g);document.getElementsByTagName("head")[0].appendChild(e)}else{document.write('<script type="text/javascript" charset="utf-8" src="'+g+'"><\/script>')}}else{window[j](null,{_html:f})}},getSlotDataFromCB:function(f,e){var d=null;f=f||window.tempClbCproAdSlotId;e=e||window.tempClbCproAdObj;if(f&&e){d={};d[f]={_html:e._html}}return d},clearSlotDataFromCB:function(){window.tempClbCproAdSlotId=null;window.tempClbCproAdObj=null},parseSlotDataFromUnion:function(e){var m={};var f="";for(var d in e){if(d&&e.hasOwnProperty(d)){f=d;break}}m.slotId=f;var g=e[f]._html.split("|");var k,l;for(var h=0,j=g.length;h<j;h++){k=g[h];if(k){l=k.split("=");m[l[0]]=l[1]}}return m},getSlotDataFromUserOpenApi:function(){var d=null;if(window.cproApi&&typeof window.cproApi==="object"&&(this.U.getLength(window.cproApi)>0)){var f=window.cproApi;d={};window.cproApi=null;for(var e in f){if(e&&f[e]){d["cpro_"+e]=f[e]}}}return d},isPreview:function a(q,l,k,d,f){var r=false;var j;if(f){j=f.substring(f.indexOf("?"))}else{j=window.location.search.slice(1)}var g=document.referrer;var i=k==="inlay"||k==="ui"?"bd_cpro_prev":"bd_cpro_fprev";var n="";var m;var p;try{p=document.cookie}catch(o){}if(j.indexOf(i)!==-1){n=this.U.getUrlQueryValue(j,i)}else{if(p&&p.indexOf(i)!==-1){n=this.U.getCookieRaw(i)}else{if(g.indexOf(i)!==-1){n=this.U.getUrlQueryValue(g,i)}}}if(n){n=decodeURIComponent(n).replace(/\\x1e/g,"&").replace(/\\x1d/g,"=").replace(/\\x1c/,"?").replace(/\\x5c/,"\\");m=this.U.jsonToObj(n);if(d==undefined){d=1}if(m.type!=1&&(d&2)==2){r=(parseInt(m.imgWidth)===parseInt(q)&&parseInt(m.imgHeight)===parseInt(l))}else{if(m.type==1&&((d&1)==1||(d&64)==64||(d&32)==32)){r=true}}}return r},getAdsDomId:function(d){d=d||1;return this.iframeIdPrefix+d},checkAdsCounter:function(f,h,e){var d=false;var g;switch(f.toLowerCase()){case"inlay":g=3;break;case"float":g=1;break;case"ui":g=3;if(e=="baiduDEFINE"){g=4}break;default:g=3;break}h.__bdcpro__displayTypeCounter=h.__bdcpro__displayTypeCounter||{};h.__bdcpro__displayTypeCounter[f]=h.__bdcpro__displayTypeCounter[f]||0;if(h.__bdcpro__displayTypeCounter[f]>=g){d=true}return d},addAdsCounter:function(d,e){e.__bdcpro__displayTypeCounter=e.__bdcpro__displayTypeCounter||{};e.__bdcpro__displayTypeCounter[d]=e.__bdcpro__displayTypeCounter[d]||0;e.__bdcpro__displayTypeCounter[d]++;return true},getAdsWrapArray:function(e){var d=[];if(e&&typeof e=="string"){var j=e.split(",");var g=0;for(var f=0,h=j.length;f<h;f++){if(/u\d+/.test(j[f])&&!this.adsWrapStore[j[f]]){d[g]=j[f];g++;this.adsWrapStore[j[f]]=true}}}return d}};b.registerNamespace(c)})(window[___baseNamespaceName]);(function(b){var a={fullName:"$baseName.BusinessLogic.Param",version:"1.0.0",register:function(){this.G=b.using("$baseName",this.win);this.U=b.using("$baseName.Utility",this.win);this.BL=b.using("$baseName.BusinessLogic",this.win)},initialize:function(c){this.currentWindow=c.currentWindow;this.doc=this.win.document;this.nav=this.win.navigator;this.scr=this.win.screen;this.displayType=c.displayType||"inlay";this.startTime=(new Date());this.BL.pnTypeArray=this.BL.pnTypeArray||[];this.BL.pnTypeArray[this.displayType]=this.BL.pnTypeArray[this.displayType]||[];this.timeStamp=c.timeStamp||(new Date()).getTime()},getSlot2UIMapping:function(e){var d={};var c;for(c in e){if(c&&e[c]&&e[c].slotParamName){d[e[c].slotParamName]=c}}return d},getCust2UIMapping:function(e){var d={};var c;for(c in e){if(c&&e[c]&&e[c].custParamName){d[e[c].custParamName]=c}}return d},mergeSlot2UI:function(f,e,d){if(!f||!e||!d){return null}var c,g;for(g in e){if(g&&e[g]&&e.hasOwnProperty(g)){c=d[g];f.set(c,e[g])}}return f},serialize:function(f){var e=[];var d,c;for(d in f){if(d&&f[d]&&(typeof f[d]==="object")&&f[d].isUIParam&&f[d].isUIParam[f.displayType]){if(d==="pn"&&!f.get(d)){continue}c=f.get(d);if(c==null){continue}if(f.displayType=="ui"&&c=="baiduCADS"){continue}if(f[d].encode||f.displayType=="ui"){c=encodeURIComponent(c)}e.push(d+"="+c)}}return e.join("&")},snap:function(f){var e={};var d,c;for(d in f){if(d&&f[d]&&(typeof f[d]==="object")&&f[d].defaultValue){c=f.get(d);if(c==null){continue}if(f[d].encode||f.displayType=="ui"){c=encodeURIComponent(c)}e[d]=c}}return e},get:function(e){var c;if(this[e].get&&this[e].get!=="default"){var d=Array.prototype.slice.call(arguments,0);d.shift();if(!this[e]._init){this[e]._value=this[e].defaultValue[this.displayType]}c=this.U.proxy(this[e].get,this,d)()}else{if(!this[e]._init){c=this[e].defaultValue[this.displayType]}else{c=this[e]._value}}return c},set:function(e,f){var c=false;if(this[e].set&&this[e].set!=="default"){var d=Array.prototype.slice.call(arguments,0);d.shift();c=this.U.proxy(this[e].set,this,(d))()}else{this[e]._value=f;this[e]._init=true;c=true}return c},tu:{slotParamName:"slotId",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:false,isUIParam:{inlay:true,"float":true},get:"default",set:"default"},tn:{slotParamName:"cpro_template",custParamName:"tn",modifier:"dynamic",defaultValue:{inlay:"text_default_125_125","float":"float_xuanfusld_120_270",ui:null,post:null},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:"default",set:"default"},n:{slotParamName:"cpro_client",custParamName:"n",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:"default",set:"default"},adn:{slotParamName:"cpro_161",modifier:"dynamic",defaultValue:{inlay:"0","float":"1"},encode:false,isUIParam:{inlay:false,"float":false},get:"default",set:"default"},rsi1:{slotParamName:"cpro_h",custParamName:"h",modifier:"dynamic",defaultValue:{inlay:"125","float":"270",ui:null},encode:false,isUIParam:{inlay:true,"float":true,ui:true},get:"default",set:"default"},rsi0:{slotParamName:"cpro_w",custParamName:"w",modifier:"dynamic",defaultValue:{inlay:"125","float":"120",ui:null},encode:false,isUIParam:{inlay:true,"float":true,ui:true},get:"default",set:"default"},rsi2:{custParamName:"bu",modifier:"dynamic",defaultValue:{ui:null},encode:true,isUIParam:{ui:true},get:"default",set:"default"},rad:{slotParamName:"cpro_rad",custParamName:"rad",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null,post:null},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:"default",set:"default"},rss0:{slotParamName:"cpro_cbd",custParamName:"bd",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true},get:"default",set:"default"},rss1:{slotParamName:"cpro_cbg",custParamName:"bg",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null,post:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true,post:true},get:"default",set:"default"},rss2:{slotParamName:"cpro_ctitle",custParamName:"tt",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null,post:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true,post:true},get:"default",set:"default"},rss3:{slotParamName:"cpro_cdesc",custParamName:"ct",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null,post:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true,post:true},get:"default",set:"default"},rss4:{slotParamName:"cpro_curl",custParamName:"url",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null,post:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true,post:true},get:"default",set:"default"},rss5:{slotParamName:"cpro_clink",custParamName:"bdl",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:null},encode:true,isUIParam:{inlay:true,"float":false,ui:true},get:"default",set:"default"},rssl0:{custParamName:"ta",modifier:"dynamic",defaultValue:{ui:null,post:null},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},rssl1:{custParamName:"tl",modifier:"dynamic",defaultValue:{ui:null,post:null},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},rss6:{slotParamName:"cpro_cflush",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:true,isUIParam:{inlay:true,"float":false},get:"default",set:"default"},rsi5:{slotParamName:"cpro_flush",custParamName:"nfr",modifier:"dynamic",defaultValue:{inlay:"4","float":"",ui:null},encode:false,isUIParam:{inlay:true,"float":false,ui:true},get:"default",set:"default"},rsi6:{slotParamName:"cpro_ctoph",modifier:"dynamic",defaultValue:{inlay:-1,"float":-1},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},rsi7:{slotParamName:"cpro_ptoph",modifier:"dynamic",defaultValue:{inlay:"0","float":"0"},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},ts:{slotParamName:"cpro_ts",modifier:"dynamic",defaultValue:{inlay:"1","float":""},encode:false,isUIParam:{inlay:true,"float":false},get:"default",set:"default"},at:{slotParamName:"cpro_at",custParamName:"at",modifier:"dynamic",defaultValue:{inlay:"all","float":"image_flash",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var d=0;var g=this["at"]._value;var h=new RegExp("(text){1}","g");var e=new RegExp("(image){1}|(flash){1}","g");var f=new RegExp("(image){1}","g");var c=new RegExp("(video){1}","g");var j=new RegExp("(tuwen){1}","g");var i=new RegExp("(all){1}","g");if(this.displayType=="ui"&&this["tn"]._value!="baiduCPROiknow"){if(h.test(g)){d|=1}if(f.test(g)){d|=2}return d}if(h.test(g)){d|=1;d|=64}if(e.test(g)){d|=2;d|=4}if(c.test(g)){d|=8}if(j.test(g)){d|=32}if(i.test(g)){d|=103}return d},set:"default"},ch:{slotParamName:"cpro_channel",custParamName:"channel",modifier:"dynamic",defaultValue:{inlay:"0","float":"0",ui:"0"},encode:true,isUIParam:{inlay:true,"float":true,ui:true},get:"default",set:"default"},cad:{slotParamName:"cpro_cad",custParamName:"cad",modifier:"dynamic",defaultValue:{inlay:"1","float":"1",ui:"0",post:"0"},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:"default",set:"default"},aurl:{slotParamName:"cpro_aurl",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:true,isUIParam:{inlay:true,"float":true},get:"default",set:"default"},rss7:{slotParamName:"cpro_acolor",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:true,isUIParam:{inlay:true,"float":true},get:"default",set:"default"},cpa:{slotParamName:"cpro_uap",custParamName:"uap",modifier:"dynamic",defaultValue:{inlay:"1","float":"0",ui:"0"},encode:false,isUIParam:{inlay:true,"float":true,ui:true},get:"default",set:"default"},fv:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"0","float":"0",ui:"",post:""},encode:true,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var c="ShockwaveFlash.ShockwaveFlash",g=this.nav,d,h;if(this.nav.plugins&&g.mimeTypes.length){d=g.plugins["Shockwave Flash"];if(d&&d.description){return d.description.replace(/[^\d\.]/g,"").split(".")[0]}}else{if(this.U.browser.ie){h=ActiveXObject;try{d=new h(c+".7")}catch(f){try{d=new h(c+".6");d.AllowScriptAccess="always";return 6}catch(f){}try{d=new h(c)}catch(f){}}if(d!=null){try{return d.GetVariable("$version").split(" ")[1].split(",")[0]}catch(f){}}}}return 0},set:"default"},cn:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var c=0;var d=this.get("n");var e=this.get("ch")||"0";if(d){this.BL.clientTree=this.BL.clientTree||{};if(!this.BL.clientTree[d]){c+=1;if(e&&e!=="0"){c+=2}return c}if(e&&e!=="0"&&this.BL.clientTree[d]&&(!this.BL.clientTree[d][e])){c+=2}}return c},set:function(){var c=this.get("n");var d=this.get("ch")||"0";if(c){this.BL.clientTree=this.BL.clientTree||{};if(!this.BL.clientTree[c]){this.BL.clientTree[c]={}}if(d&&d!=="0"&&(!this.BL.clientTree[c][d])){this.BL.clientTree[c][d]=true}}return true}},"if":{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"0","float":"0",ui:"0",post:"0"},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){result=0;if(this.U.isInIframe()){result+=1}if(this.U.isInCrossDomainIframe()){result+=2}var c=this.get("rsi0");var e=this.get("rsi1");var d=this.U.getClientWidth(this.currentWindow);var f=this.U.getClientHeight(this.currentWindow);if(d<40||f<10){result+=4}else{if(d<c||f<e){result+=8}}if((d>=2*c)||(f>=2*e)){result+=16}return result},set:"default"},word:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:true,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var h=this.currentWindow;var k,i=10,c=0;var f=this.get("rsi0")||0;var j=this.get("rsi1")||0;k=h.document.location.href;if(this.U.isInIframe(h)){var d,g,e;for(c=0;c<i;c++){if(!this.U.isInCrossDomainIframe(h,h.parent)){d=this.U.getClientWidth(h);g=this.U.getClientHeight(h);e=h.document.location.href;h=h.parent;if(f>0&&j>0&&d>2*f&&g>2*j){k=e;break}if(!this.U.isInIframe(h,h.parent)){k=h.location.href;break}}else{k=h.document.referrer||h.document.location;break}}if(c>=10){k=h.document.referrer||h.document.location}}return k},set:"default"},refer:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:true,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.U.escapeToEncode(this.doc.referrer||"")},set:"default"},ready:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:true,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var d={uninitialized:0,loading:1,loaded:2,interactive:3,complete:4};try{return d[this.doc.readyState]}catch(c){return 5}},set:"default"},jk:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){if(!this["jk"]._value){this["jk"]._value=this.U.md5(this.BL.randomArray.join("")+Math.random()*1000000+this.doc.location.href);this["jk"]._init=true}return this["jk"]._value},set:function(){this["jk"]._value=""}},jn:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"3","float":"3",ui:"3",post:"3"},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return 3},set:"default"},js:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"c","float":"f",ui:"ui",post:"post"},encode:false,isUIParam:{inlay:false,"float":false,ui:true,post:true},get:"default",set:"default"},lmt:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return Date.parse(this.doc.lastModified)/1000},set:"default"},csp:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.scr.width+","+this.scr.height},set:"default"},csn:{slotParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:false,isUIParam:{inlay:false,"float":false},get:function(){return this.scr.availWidth+","+this.scr.availHeight},set:"default"},ccd:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.scr.colorDepth||0},set:"default"},chi:{slotParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:false,isUIParam:{inlay:true,"float":true},get:function(){return this.win.history.length||0},set:"default"},cja:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.nav.javaEnabled().toString()},set:"default"},cpl:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.nav.plugins.length||0},set:"default"},cmi:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.nav.mimeTypes.length||0},set:"default"},cce:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.nav.cookieEnabled||0},set:"default"},csl:{uuserApiName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.nav.systemLanguage||this.nav.language},set:"default"},did:{uuserApiName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"1","float":"1",ui:"1",post:"1"},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return this.BL.displayCounter||1},set:function(){this.BL.displayCounter=this.BL.displayCounter||1;this.BL.displayCounter++;return true}},rt:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){var c=0;if(this.startTime){c=(new Date()).getTime()-this.startTime.getTime()}return c},set:"default"},dt:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:"",post:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){return Math.round((new Date).getTime()/1000)},set:"default"},pn:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":"",ui:""},encode:false,isUIParam:{inlay:true,"float":true,ui:true},get:function(){var c="";var f,j,h,k=[],d=[],g=[];var e=this.BL.pnTypeArray[this.displayType]=this.BL.pnTypeArray[this.displayType]||[];if(e&&e.length>0){for(f=0,j=e.length;f<j;f++){h=e[f];if(!h||!h.name||!h.num||!h.at){continue}k.push(h.name);d.push(h.num);g.push(h.at)}c=d.join(":")+"|"+k.join(":")+"|"+g.join(":")}return c},set:function(c,e,d){if(!c||!e||!d){c=this.get("tn");if(this.displayType=="ui"){e=this.get("hn")*this.get("wn")||0}else{e=this.get("adn")||0}d=this.get("at")||103}if(!c||!e||!d){result=false}else{this.BL.pnTypeArray[this.displayType]=this.BL.pnTypeArray[this.displayType]||[];if(this.displayType=="ui"&&this.BL.pnTypeArray[this.displayType].length==3){return}if(this.displayType!="ui"&&this.BL.pnTypeArray[this.displayType].length==2){return}this.BL.pnTypeArray[this.displayType].push({name:c,num:e,at:d})}return true}},ev:{slotParamName:"",modifier:"dynamic",defaultValue:{inlay:"","float":""},encode:false,isUIParam:{inlay:true,"float":true},get:function(){var c=this.get("adn");c=c<<24;return c},set:"default"},c01:{slotParamName:"",modifier:"dynamic",defaultValue:{inlay:"0","float":"0"},encode:false,isUIParam:{inlay:true,"float":true},get:"default",set:"default"},prt:{slotParamName:"",custParamName:"",modifier:"dynamic",defaultValue:{inlay:"0","float":"0",ui:"0",post:"0"},encode:false,isUIParam:{inlay:true,"float":true,ui:true,post:true},get:function(){if(!this.BL.pageFirstRequestTime){this.BL.pageFirstRequestTime=(new Date()).getTime()}return this.BL.pageFirstRequestTime||""},set:"default"},fa:{slotParamName:"cpro_float",modifier:"dynamic",defaultValue:{inlay:1,"float":1},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},ls:{slotParamName:"cpro_location",modifier:"dynamic",defaultValue:{inlay:3,"float":3},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},pt:{slotParamName:"cpro_position",modifier:"dynamic",defaultValue:{inlay:1,"float":1},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},flw:{slotParamName:"cpro_follow",modifier:"dynamic",defaultValue:{inlay:1,"float":1},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},ct:{slotParamName:"cpro_close",modifier:"dynamic",defaultValue:{inlay:1,"float":1},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},ccw:{slotParamName:"cpro_contw",modifier:"dynamic",defaultValue:{inlay:900,"float":900},encode:false,isUIParam:{inlay:false,"float":true},get:function(){if(typeof this["ccw"]._value==="undefined"||!this["ccw"]._value||this["ccw"]._value<720){return 10000}else{return this["ccw"]._value}},set:"default"},ww:{slotParamName:"cpro_clientw",modifier:"dynamic",defaultValue:{inlay:4095,"float":4095},encode:false,isUIParam:{inlay:false,"float":true},get:"default",set:"default"},cm:{custParamName:"cm",modifier:"dynamic",defaultValue:{ui:0,post:0},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},um:{custParamName:"um",modifier:"dynamic",defaultValue:{ui:0,post:0},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},wn:{custParamName:"wn",modifier:"dynamic",defaultValue:{ui:null,post:null},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},tm:{custParamName:"tm",modifier:"dynamic",defaultValue:{ui:0,post:0},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},func:{custParamName:"func",modifier:"dynamic",defaultValue:{ui:"renderBaiduCproAds"},encode:true,isUIParam:{ui:true},get:"default",set:"default"},hn:{custParamName:"hn",modifier:"dynamic",defaultValue:{ui:null,post:null},encode:true,isUIParam:{ui:true,post:true},get:"default",set:"default"},ie:{custParamName:"charset",modifier:"dynamic",defaultValue:{ui:null},encode:true,isUIParam:{ui:true},get:function(){if(typeof(this["ie"]._value)=="string"){switch(this["ie"]._value.toLowerCase()){case"gb2312":case"gbk":return"0";break;case"utf8":case"utf-8":return"1";break;default:return null;break}}},set:"default"}};b.registerClass(a)})(window[___baseNamespaceName]);(function(b){var a={fullName:"$baseName.BusinessLogic.Distribute",version:"1.0.0",register:function(){this.G=b.using("$baseName",this.win);this.U=b.using("$baseName.Utility",this.win)},status:{},viewtime:100,viewtimeIE:100,dispatch:function(d){if(this.U.isInCrossDomainIframe()){return false}if(this.status[d+"Dispatched"]){return this.status[d]}this.status[d]=false;this.status[d+"Dispatched"]=true;var c=parseInt(Math.random()*100);if(this[d]&&c<this[d]){this.status[d]=true}return this.status[d]}};b.registerClass(a)})(window[___baseNamespaceName]);(function(b){var a={fullName:"$baseName.BusinessLogic.ViewWatch",version:"1.0.0",register:function(){this.G=b.using("$baseName",this.win);this.U=b.using("$baseName.Utility",this.win);this.BL=b.using("$baseName.BusinessLogic",this.win)},analysisUrl:"http://eclick.baidu.com/a.js",uiParamMapping:{tu:"tu",did:"did",tn:"tn",word:"word",jk:"jk","if":"if",rsi0:"aw",rsi1:"ah",ch:"ch",n:"n",js:"js"},viewContextParamMapping:{pageStayTime:"pt",pageStayTimeStamp:"ps",inViewTime:"it",inViewTimeStamp:false,currViewStatus:"vs",focusTime:"ft"},clientParamMapping:{opacity:"op",desktopResolution:"csp",browserRegion:"bcl",pageRegion:"pof",top:"top",left:"left",focusSwitch:"fs"},isIEWatchFocus:true,focusSwitch:true,watchArrayPointer:null,intervalId:null,intervalTimeSpan:500,intervalStatus:"wait",initialize:function(){this.watchArrayPointer=this.BL.adsArray},initializeDOM:function(){},initializeEvent:function(){this.windowOnLoad();var c=this.U.proxy(this.windowOnLoadDelay,this);this.U.ready(c,2000);this.U.bind(this.win,"beforeunload",this.U.proxy(this.windowOnUnload,this))},calculateClientParam:function(f,g,e){f.clientParam=f.clientParam||{};var d=this.U.getPosition(g);f.clientParam.left=d.left||0;f.clientParam.top=d.top||0;f.clientParam.opacity=this.U.getOpacity(g);var h=e.screen.availWidth;var c=e.screen.availHeight;if(h>10000){h=0}if(c>10000){c=0}f.clientParam.desktopResolution=h+","+c;f.clientParam.browserRegion=this.U.getClientWidth(e)+","+this.U.getClientHeight(e);f.clientParam.pageRegion=this.U.getScrollWidth(e)+","+this.U.getScrollHeight(e);f.clientParam.focusSwitch=this.focusSwitch},updateViewStatus:function(d,c){var f=new Date();var e=pageTimeSpan=this.intervalTimeSpan;if(this.intervalStatus==="load"){this.intervalStatus="run";e=pageTimeSpan=0}if(d.currViewStatus){if(this.intervalStatus==="unload"){e=parseInt(f.getTime()-d.inViewTimeStamp.getTime());if(e<0){e=0}else{if(e>this.intervalTimeSpan){e=this.intervalTimeSpan}}}d.inViewTime+=e;d.inViewTimeStamp=f;if(d.inViewTime>10800000){d.inViewTime=10800000}}else{if(c){d.inViewTimeStamp=f}}d.currViewStatus=c;d.pageStayTime=d.pageStayTime||0;if(this.intervalStatus==="unload"){pageTimeSpan=parseInt(f.getTime()-d.pageStayTimeStamp.getTime());if(pageTimeSpan<0){pageTimeSpan=0}else{if(pageTimeSpan>this.intervalTimeSpan){pageTimeSpan=this.intervalTimeSpan}}}d.pageStayTime+=pageTimeSpan;if(this.BL.winFocused){d.focusTime+=pageTimeSpan}d.pageStayTimeStamp=f;if(d.pageStayTime>10800000){d.pageStayTime=10800000}return d},viewOnChange:function(){var t,h;for(t=0,h=this.watchArrayPointer.length;t<h;t++){var u=this.watchArrayPointer[t];var c,o=u.win,m=u.domId;if(o&&m){c=o.document.getElementById(m)}if(!c){continue}if(!u.viewContext){var j=new Date();u.viewContext={pageStayTime:0,pageStayTimeStamp:j,inViewTime:0,inViewTimeStamp:j,currViewStatus:false,focusTime:0}}var y=false;if(!this.BL.winFocused){y=false}else{try{var r=this.U.getClientWidth(this.win);var e=this.U.getClientHeight(this.win);var w=this.U.getPosition(m,o);var d=this.U.getScrollTop(this.win);var s=this.U.getScrollLeft(this.win);var p=this.U.getOuterWidth(c);var q=this.U.getOuterHeight(c);var k=w.top-d+q*0.35;var n=w.left-s+p*0.35;y=k>0&&k<e;y=y&&(n>0&&n<r)}catch(v){y=false;continue}}u.viewContext=this.updateViewStatus(u.viewContext,y);var f=this.analysisUrl+"?";var l=u.uiParamSnap,x=[];for(var g in this.uiParamMapping){if(g&&this.uiParamMapping[g]&&l[g]){x.push(this.uiParamMapping[g]+"="+l[g])}}f+=x.join("&");f+="&"+this.U.param(u.viewContext,this.viewContextParamMapping);if(!u.clientParam||!u.clientParam.pageRegion){try{this.calculateClientParam(u,c,o)}catch(v){}}if(u.clientParam){f+="&"+this.U.param(u.clientParam,this.clientParamMapping)}else{for(var z in this.clientParamMapping){if(z&&this.clientParamMapping[z]){f+="&"+this.clientParamMapping[z]+"="}}}u.analysisUrl=f}},windowOnLoad:function(g){var c,d,f=new Date();for(c=0,d=this.watchArrayPointer.length;c<d;c++){this.watchArrayPointer[c].viewContext={pageStayTime:0,pageStayTimeStamp:f,inViewTime:0,inViewTimeStamp:f,currViewStatus:false,focusTime:0}}this.intervalStatus="load";this.focusSwitch=this.winFocusBlurOnChange(this.win,this.isIEWatchFocus);this.viewOnChange();this.intervalId=setInterval(this.U.proxy(this.viewOnChange,this),this.intervalTimeSpan)},windowOnLoadDelay:function(l){var d,h,k=new Date(),g,j,f,c;for(d=0,h=this.watchArrayPointer.length;d<h;d++){var g=this.watchArrayPointer[d];if(!g){continue}f=g.win;c=g.domId;if(f&&c){j=f.document.getElementById(c)}if(!j){continue}g.clientParam=g.clientParam||{};this.calculateClientParam(g,j,f)}},windowOnUnload:function(l){try{clearInterval(this.viewIntervalID);if(document.domain.toLowerCase().indexOf("autohome.com.cn")>-1||document.domain.toLowerCase().indexOf("sina.com.cn")>-1||document.domain.toLowerCase().indexOf("xcar.com.cn")>-1){return}if(this.intervalStatus!=="run"){this.intervalStatus="unload";return}this.intervalStatus="unload";this.viewOnChange();var g,f,j,o,m,c;for(g=0,j=this.watchArrayPointer.length;g<j;g++){o=this.watchArrayPointer[g];if(o&&o.analysisUrl&&!o.isSended){o.isSended=true;var p=document.createElement("img");document.getElementsByTagName("body")[0].appendChild(p);p.style.display="none";if(g==0){o.analysisUrl+="&total="+this.watchArrayPointer.length}p.setAttribute("src",o.analysisUrl)}}var h=200;var k=(new Date()).getTime();var d;if(this.U.browser.ie){d=k+h;while(d>k){k=(new Date()).getTime()}}else{var j=1000000;for(var g=0;g<j;g++){}d=(new Date()).getTime();j=1000000*h/(d-k);j=j>100000000?100000000:j;for(var g=0;g<j;g++){}}}catch(n){console.log(n)}},winFocusBlurOnChange:function(e){var c=false,e=e||this.win;this.BL.winFocused=true;var f=this.U.proxy(function(g){this.BL.winFocused=true},this);var d=this.U.proxy(function(g){this.BL.winFocused=false},this);if(this.U.browser.ie||this.U.browser.maxthon){this.U.bind(e,"focusin",f);this.U.bind(e,"focusout",d);c=true}else{this.U.bind(e,"focus",f);this.U.bind(e,"blur",d);c=true}return c},getInstance:function(){if(!this.instances||this.instances.length<1){this.instances=[];var c=this.G.create(this);this.instances.push(c)}}};b.registerClass(a)})(window[___baseNamespaceName]);(function(G){var config=window.arrBaiduCproConfig;var G=G;var U=G.using("$baseName.Utility");var BL=G.using("$baseName.BusinessLogic");var jsFile="ui";var displayType="ui";window.f_u=function(){config=window.arrBaiduCproConfig;var param=getCproParam();var cprourl=getCproUrl(param);CproRendered("cproshow",param);return cprourl};window.f_s=function(w){window.status=w;return true};if(typeof window.arrBaiduCproConfig=="undefined"){return}if(BL.isPreview(0,0,displayType,config.at,window.location.href)){document.write('<script src="http://wm.baidu.com/preview/uiPreview.js"><\/script>');return""}if(config.template!=undefined){config.tn=config.template;delete config.template}if(config.define!=undefined){config.func=config.define;delete config.define}if(config.pn!=undefined){delete config.pn}if(config.po!=undefined){delete config.po}if(config.at!=undefined&&config.at.toString()=="2"){config.at="image"}else{config.at="text"}var cssText='<style type="text/css"><!--table.baidu_cpro_table td,table.baidu_cpro_table a,table.baidu_cpro_table div{font-size:12px;font-family:Arial; table-layout:fixed; word-break:break-all;overflow:hidden;}table.baidu_cpro_table a:link.baidu_cpro_title{text-decoration:underline},table.baidu_cpro_table a:visited.baidu_cpro_title{text-decoration:underline;}table.baidu_cpro_table a:active.baidu_cpro_title{text-decoration:none},table.baidu_cpro_table a:hover.baidu_cpro_title{text-decoration:none;}table.baidu_cpro_table a:link.baidu_cpro_logo{text-decoration:none}table.baidu_cpro_table a:visited.baidu_cpro_logo{text-decoration:none}table.baidu_cpro_table a:active.baidu_cpro_logo{text-decoration:underline;}table.baidu_cpro_table a:hover.baidu_cpro_logo{text-decoration:underline;}//--></style>';function regexEscape(s){return s.replace(/([\\\/\.\?\+\*\(\)\[\]\{\}\^\$\|\=\!\:])/g,"\\$1")}var renderAd=window.baiduCproTableBuild=function(data){var row=config.hn;var col=config.wn;var css=cssText;var thick;if(config.bd.toLowerCase()=="#trans"){config.bd="";thick=0}else{thick=1}if(config.bg.toLowerCase()=="#trans"){config.bg=""}var title="\u767e\u5ea6\u63a8\u5e7f";var tdLeave=100-Math.floor(100/col)*col;var dataA=data.split("\n");for(var i=0;i<dataA.length;i++){dataA[i]=dataA[i].split("\t")}var html="";if(dataA[0].length==2){html+="<center><a href='"+dataA[0][1]+"' target='_blank'>";html+="<img border=0 src='"+dataA[0][0]+"'></a></center>"}else{html='<table id="house" align=center width='+config.w+" height="+config.h+' cellpadding=1 cellspacing=0 bgcolor="'+config.bd+'" style="border:'+thick+"px solid "+config.bd+';" class="baidu_cpro_table">';var titlehtml="<tr><td height=18 colspan="+config.wn+" align="+config.ta+' bgcolor="'+config.bd+'" style="border:0px; border-top:'+thick+"px solid "+config.bd+"; background-color:"+config.bd+'"><a class="baidu_cpro_logo" href="http://wangmeng.baidu.com" target="blank" style="color:'+config.bdl+'";>'+title+"</a></td></tr>";if(config.tl!="bottom"){html+=titlehtml}if(col>dataA.length){col=dataA.length}row=Math.ceil(dataA.length/col);var intBaiduCproTdWidthT=Math.floor(100/col);var intBaiduCproTdWidth=0;var intBaiduCproTdHeight=Math.ceil((config.h-22)/row);var VarIndex_=0;for(var VarIndexI_=0;VarIndexI_<row;VarIndexI_++){html+="<tr>";for(var VarIndexJ_=0;VarIndexJ_<col;VarIndexJ_++){if(VarIndexJ_<tdLeave){intBaiduCproTdWidth=intBaiduCproTdWidthT+1}else{intBaiduCproTdWidth=intBaiduCproTdWidthT}html+='<td style="line-height:18px; padding:4px 4px 1px 4px; border:0px;'+(VarIndexI_!=0?" border-top:"+thick+"px solid "+config.bd+";":"")+" background-color:"+config.bg+";width:"+intBaiduCproTdWidth+"%; height:"+intBaiduCproTdHeight+'px;" bgcolor="'+config.bg+'" height="'+intBaiduCproTdHeight+'"width="'+intBaiduCproTdWidth+'%" valign="middle"';if(VarIndex_>=dataA.length){html+=">";break}else{var disTitle;html+="onmouseover=\"status=('\u94fe\u63a5\u81f3 "+dataA[VarIndex_][2].replace(/^(\w+:\/\/)?([^\/]+).*$/ig,"$2")+"')\" onmouseout=\"status=(' ')\">";html+='<div><a id="tit'+VarIndex_+'" href="'+dataA[VarIndex_][3]+'" target="_blank" class="baidu_cpro_title" style="color:'+config.tt+';font-weight:bold;line-height:16px;"><b>';if(config.nfr==0){var strBaiduCproDisTitleColor=config.tt=="#e10900"?"#0000cc":"#e10900";dataA[VarIndex_][4]=dataA[VarIndex_][4].split(" ");for(var VarK_=0;VarK_<dataA[VarIndex_][4].length;VarK_++){if(dataA[VarIndex_][4][VarK_]){dataA[VarIndex_][0]=dataA[VarIndex_][0].replace(eval("/("+regexEscape(dataA[VarIndex_][4][VarK_])+")/ig"),'<font color="'+strBaiduCproDisTitleColor+'">$1</font>')}}disTitle=dataA[VarIndex_][0]}else{disTitle=dataA[VarIndex_][0]}html+=disTitle+"</b></a></div>";html+="<div>";if(dataA[VarIndex_][1]!="..."){html+='<div><a id="cnt'+VarIndex_+'" href="'+dataA[VarIndex_][3]+'" target="_blank" style="text-decoration:none; line-height:16px;color:'+config.ct+'">'+dataA[VarIndex_][1]+"</a></div>"}if(config.bu=="1"||config.bu==1){html+='<div><a id="cnt'+VarIndex_+'" href="'+dataA[VarIndex_][3]+'" target="_blank" style="text-decoration:none; line-height:16px;font-size:11px; color:'+config.url+'">'+dataA[VarIndex_][2].replace(/^(\w+:\/\/)?([^\/]+).*$/ig,"$2")+"</a></div>"}html+="</div>";VarIndex_++}html+="</td>"}html+="</tr>";if(VarIndex_>=dataA.length){break}}if(config.tl=="bottom"){html+=titlehtml}html+="</table>";html=css+html;document.write(html)}};function checkCproParam(config,mapping){var param=new Array();for(var q in config){if(mapping[q]!=undefined){param[q]=typeof config[q]=="number"?config[q].toString():config[q]}}return param}function getCproParam(){var mapping={};var uiParams={};uiParams=G.create(BL.Param,{displayType:displayType,currentWindow:window,timeStamp:(new Date()).getTime()});mapping=BL.Param.getCust2UIMapping(uiParams);config=checkCproParam(config,mapping);uiParams=BL.Param.mergeSlot2UI(uiParams,config,mapping);return uiParams}function getCproUrl(uiParams){if(BL.checkAdsCounter(displayType,window,config.tn)){return""}var paramString=BL.Param.serialize(uiParams);return BL.cproServiceUrl+"?"+paramString}function getCproIframe(uiParams){if(BL.checkAdsCounter(displayType,window,config.tn)){return""}var cproString=getCproUrl(uiParams);var iframeId=BL.getAdsDomId(uiParams.get("did"));CproRendered(iframeId,uiParams);var iframeHtmlTemplate=' <iframe id="{iframeId}"src="{cproServiceUrl}" width="{iframeWidth}" height="{iframeHeight}" align="center,center" marginwidth="0"  marginheight="0" scrolling="no" frameborder="0" allowtransparency="true" ></iframe>';var templateData={iframeId:iframeId,iframeWidth:config.w,iframeHeight:config.h,cproServiceUrl:cproString};var iframehtml=U.template(iframeHtmlTemplate,templateData);return iframehtml}function CproRendered(iframeid,uiParams){var uiParamSnap=BL.Param.snap(uiParams);if(iframeid!=""){BL.adsArray.push({domId:iframeid,uiParamSnap:uiParamSnap,win:window,js:jsFile});if(BL.Distribute.dispatch("viewtime")){BL.ViewWatch.getInstance()}}BL.addAdsCounter(displayType,window);uiParams.set("did");uiParams.set("cn");uiParams.set("pn")}function getAdIframe(guessarray){var adiframe="";window.CproAdBlock=window.CproAdBlock||{};var adblock=window.CproAdBlock;try{for(var i=0;i<guessarray.length;i++){if(typeof window[guessarray[i]]!="undefined"&&adblock[guessarray[i]]===undefined){adiframe="baiduCpro"+window[guessarray[i]];adblock[guessarray[i]]=0;break}}}catch(e){}return adiframe}var type=config.tn;switch(type){case"baiduDEFINE":var param=getCproParam();var s=document.createElement("script");s.type="text/javascript";s.src=getCproUrl(param);document.getElementsByTagName("head")[0].appendChild(s);var guessarray=new Array();guessarray.push("$cproIdRandom");guessarray.push("$cproIdRandom1");guessarray.push("$cproIdRandom2");guessarray.push("$cproIdRandom3");guessarray.push("$cproIdRandom4");guessarray.push("$cproIdRandomA");guessarray.push("$cproIdRandomB");guessarray.push("$cproIdRandomC");guessarray.push("$cproIdRandomD");guessarray.push("$cproIdRandomRight");guessarray.push("cproIdRandom");var iframeId=getAdIframe(guessarray);CproRendered(iframeId,param);break;default:config.tn="baiduCADS";break}window.baiduCproIFrame=function(){var param=getCproParam();document.write("<div style=display:none>-</div>");var temp=getCproIframe(param);return temp};if(config.autoRun){document.write(window.baiduCproIFrame())}})(window[___baseNamespaceName]);
