(function(AD_CONFIG, LINKS, RT_CONFIG){ /*! Copyright 2016 Baidu Inc. All Rights Reserved. */ var AD_CONFIG = { box: { is_cut_show: true, cut_height: 84 + 25, visual_height: 26, box_bg_opacity: 0.75, hide_delay: 500, autoshow: true, hide_btn: true, first_show_time: 90000, theme: 5 } };; var Mustache="undefined"!==typeof module&&module.exports||{}; (function(p){function y(a){return String(a).replace(/&(?!\w+;)|[<>"']/g,function(a){return z[a]||a})}function w(a,b,e){if("."===a)return b[b.length-1];a=a.split(".");for(var c=a.length-1,d=a[c],f,g,s=b.length,n,r;s;){r=b.slice(0);g=b[--s];for(n=0;n":h++;l=x;break;case "#":h++;l=v; break;case "^":h++;l=y;break;case "/":h++;l=z;break;case "{":d="}"+d;case "&":h++;n=!0;l=A;break;default:n=!0,l=B}m=a.indexOf(d,h);if(-1===m)throw Error('Tag "'+c+'" was not closed properly');c=a.substring(h,m);l&&l(c);for(l=0;~(l=c.indexOf("\n",l));)D++,l++;h=m+d.length-1;c=q;d=C}else switch(m=a.substr(h,1),m){case '"':case "\\":n=!0;f.push("\\"+m);break;case "\r":break;case "\n":g.push(f.length);f.push("\\n");r();D++;break;default:/^\s*$/.test(m)?g.push(f.length):n=!0,f.push(m)}if(0!=k.length)throw Error('Section "'+ k[k.length-1].name+'" was not closed properly');r();f.push('";',"\nreturn buffer;","\n} catch (e) { throw {error: e, line: line}; }");d=f.join("").replace(/buffer \+= "";\n/g,"");b.debug&&("undefined"!=typeof console&&console.log?console.log(d):"function"===typeof print&&print(d));return d}function E(a,b){var e=x(a,b),c=new Function("view,partials,stack,lookup,escapeHTML,renderSection,render",e);return function(a,b){b=b||{};var g=[a];try{return c(a,b,g,w,y,A,q)}catch(e){throw Error(e.error+"\n"+e.line); }}}function v(a,b){b=b||{};return E(a,b)}function q(a,b,e){return v(a)(b,e)}p.name="mustache.js";p.version="0.5.0-dev";p.tags=["{{","}}"];p.parse=x;p.compile=v;p.render=q;p.to_html=function(a,b,e,c){a=q(a,b,e);if("function"===typeof c)c(a);else return a};var B=function(a,b,e){for(var c=0,d=a.length;c":">",'"':""","'":"'"}})(Mustache); ; var AD_TEMPLATE_CONTENT="\n
\n
\n
\n
\n{{#_desc}}\n
{{{title}}}
\n{{/_desc}}\n
\n
\n
\n
\n
\n{{#_desc}}\n\n{{/_desc}}\n
\n
\n
\n
\n
\n\n\n
\n
\n\n
\n{{#box.is_cut_show}}
{{/box.is_cut_show}}\n
\n
\n{{{_content}}}\n
\n{{#box.is_cut_show}}
{{/box.is_cut_show}}\nX\n
\n";; var AD_STYLE_CONTENT=".baiduimageplus-s-pa{position:relative;width:100%;height:110px;overflow:hidden;cursor:default;-webkit-transition:top .5s;-moz-transition:top .5s;-ms-transition:top .5s;-o-transition:top .5s;transition:top .5s}.baiduimageplus-s-pa p{background:none}.baiduimageplus-s-pa a{outline:0;text-decoration:none}.baiduimageplus-s-pa a:hover{text-decoration:underline}.baiduimageplus-s-pa .baiduimageplus-s-pa-bg{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.baiduimageplus-s-pa .baiduimageplus-s-pa-ct{position:relative;z-index:2}.baiduimageplus-s-pa .baiduimageplus-s-pa-hd{height:26px;overflow:hidden;line-height:26px}.baiduimageplus-s-pa .baiduimageplus-s-pa-hd .baiduimageplus-s-pa-hd-title-cell{font-size:14px;color:#FFF;height:100%;text-align:center!important;float:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-right:1px solid #FFF}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu{position:relative;overflow:hidden;zoom:1;padding:0;margin:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper{width:90%;height:84px;float:left;overflow:hidden;position:relative;left:5px}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter{height:84px;overflow:hidden;position:absolute;left:0;-webkit-transition:all .5s;-moz-transition:all .5s;-ms-transition:all .5s;-o-transition:all .5s;transition:all .5s}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell{width:100px;height:72px;overflow:hidden;background-color:#FFF;margin:4px 5px;padding:0;float:left;border:2px solid #000;position:relative}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell:hover{border-color:#d1111c}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell:hover .baiduimageplus-s-pa-bd-lu-title{background-color:#d1111c}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell:hover img{-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-ms-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2)}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell img{width:100px;height:50px;display:block;border:0;-webkit-transition:transform .5s;-moz-transition:transform .5s;-ms-transition:transform .5s;-o-transition:transform .5s;transition:transform .5s}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell .baiduimageplus-s-pa-bd-lu-title{position:absolute;font:14px/1.5 arial,sans-serif;bottom:0;left:0;width:100%;height:22px;display:block;line-height:22px;background-color:#000;text-align:center;color:#FFF}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell:first-child{margin-left:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .baiduimageplus-s-pa-bd-lu-wrapper .baiduimageplus-s-pa-bd-lu-outter .cell:last-child{margin-right:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .ad-widget-imgps-sticker-html-btn{margin-top:5px;height:75px;width:20px;cursor:pointer;-webkit-transition:background .4s;-moz-transition:background .4s;-ms-transition:background .4s;-o-transition:background .4s;transition:background .4s}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .adwishbtn_left{width:20px;float:left;background:url(http://ecmb.bdimg.com/public03/imageplus/sticker/leftbtn.jpg) no-repeat center center}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .adwishbtn_left:hover{background:#20439d url(http://ecmb.bdimg.com/public03/sticker/leftbtn_hover.jpg) no-repeat center center}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .adwishbtn_right{width:20px;float:right;background:url(http://ecmb.bdimg.com/public03/imageplus/sticker/rightbtn.jpg) no-repeat center center}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd-lu .adwishbtn_right:hover{background:#20439d url(http://ecmb.bdimg.com/public03/sticker/rightbtn_hover.jpg) no-repeat center center}.baiduimageplus-s-pa .baiduimageplus-s-pa-logo{position:absolute;bottom:0;right:0;z-index:3;height:18px;width:18px;text-indent:-9999px;background:url(http://cpro.baidustatic.com/cpro/ui/noexpire/img/2.0.1/bg.png) no-repeat left top;background-position:0 0;_filter:progid:dximagetransform.microsoft.alphaimageloader(enabled=true,src=\"http://cpro.baidustatic.com/cpro/ui/noexpire/img/2.0.1/bg.png\",sizingMethod=\"crop\");_background:none}\n.ad-widget-imageplus-sticker{font:12px/1.5 arial,sans-serif;position:absolute;left:0;width:100%;display:none;overflow:hidden;color:#FFF;background:transparent;-webkit-transition:height .5s,top .5s;transition:height .5s,top .5s}.ad-widget-imageplus-sticker div{background:transparent}.ad-widget-imageplus-sticker-cut{display:block}.ad-widget-imageplus-sticker-bg{position:absolute;z-index:1;left:0;top:0;width:100%;height:100%;background:#000!important;box-shadow:2px 2px 4px #000}.ad-widget-imageplus-sticker-bd{position:relative;z-index:2;left:0;top:0;width:100%;overflow:hidden}.ad-widget-imageplus-sticker-close{position:absolute;z-index:3;right:0;top:5px;width:25px;height:25px;line-height:25px;text-decoration:none;text-align:center;font-size:18px;color:#FFF!important}.ad-widget-imageplus-sticker-close:hover{background-color:#000}\n.ad-widget-imageplus-sticker-theme-white{color:#333}.ad-widget-imageplus-sticker-theme-white .ad-widget-imageplus-sticker-bg{background:#FFF!important;box-shadow:2px 2px 4px #FFF}.ad-widget-imageplus-sticker-theme-white .ad-widget-imageplus-sticker-close{color:#666!important}.ad-widget-imageplus-sticker-theme-white .ad-widget-imageplus-sticker-close:hover{background-color:#FFF!important}.ad-widget-imageplus-sticker-theme-none{color:#333}.ad-widget-imageplus-sticker-theme-none .ad-widget-imageplus-sticker-bg{background:transparent!important;box-shadow:none}.ad-widget-imageplus-sticker-theme-none .ad-widget-imageplus-sticker-close{color:#666!important}.ad-widget-imageplus-sticker-theme-none .ad-widget-imageplus-sticker-close:hover{background-color:#FFF!important}.ad-widget-imageplus-sticker-theme-none-white{color:#333}\n.ad-widget-imageplus-sticker-theme-none-white .ad-widget-imageplus-sticker-bg{background:transparent!important;box-shadow:none}.ad-widget-imageplus-sticker-theme-none-white-2 .ad-widget-imageplus-sticker-bg{background:transparent!important;box-shadow:none}.ad-widget-imageplus-sticker-theme-none-white-2 .ad-widget-imageplus-sticker-close{top:0;text-indent:-9999px;background:url(http://ecma.bdimg.com/public03/imageplus/v2/dock/close.png) no-repeat 0 0 transparent}.ad-widget-imageplus-sticker-theme-v2 .ad-big-title{position:relative;top:0;opacity:1;filter:alpha(opacity=100);-webkit-transition:top .5s,opacity .6s;transition:top .5s,opacity .6s}.ad-widget-imageplus-sticker-theme-v2 .ad-widget-imageplus-sticker-showing .ad-big-title{position:relative;top:-36px;opacity:0;filter:alpha(opacity=0)}.ad-widget-imageplus-sticker-theme-v2 .ad-widget-imageplus-sticker-showing .ad-widget-imageplus-sticker-bg{top:26px}\n.ad-widget-imageplus-sticker-theme-v2 .ad-widget-imageplus-sticker-close{top:0;text-indent:-9999px;background:url(http://ecma.bdimg.com/public03/imageplus/v2/dock/close.png) no-repeat 0 0 transparent}.ad-widget-imageplus-sticker-thumbnail{font:12px/1.5 arial,sans-serif;position:absolute;right:0;top:0;height:20px;width:100px;overflow:hidden;background:transparent;-webkit-transition:height .5s;-moz-transition:height .5s;-ms-transition:height .5s;-o-transition:height .5s;transition:height .5s;background-color:rgba(0,0,0,0.5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#80000000,endColorstr=#80000000);-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#80000000,endColorstr=#80000000)}.ad-widget-imageplus-sticker-thumbnail a{float:right;width:100px;height:20px;line-height:20px;text-align:center;color:white;background:transparent;text-decoration:none}\n.ad-widget-imageplus-sticker-thumbnail i{width:12px;height:8px;margin-top:6px;margin-left:5px;display:block;float:left;background:url('http://ecma.bdimg.com/adtest/8e547549c94ab88c81b644d5ff63b0d3.png') no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/adtest/8e547549c94ab88c81b644d5ff63b0d3.png')\\9}.ad-widget-imageplus-sticker-close-newstyle{top:0;text-indent:-9999px;background:url(http://ecmb.bdimg.com/public03/v2/dock/iconfont-close.png) no-repeat 0 0 transparent!important}.ad-widget-imageplus-sticker-showing .baiduimageplus-s-pa-hd{opacity:0;filter:alpha(opacity=0)}";; var baidu={version:"1.5.0"};baidu.guid="$BAIDU$";window[baidu.guid]=window[baidu.guid]||{};baidu.event=baidu.event||{};baidu.event._listeners=baidu.event._listeners||[];baidu.dom=baidu.dom||{};baidu.lang=baidu.lang||{};baidu.lang.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)};baidu.isString=baidu.lang.isString;baidu.dom._g=function(a){if(baidu.lang.isString(a)){return document.getElementById(a)}return a};baidu._g=baidu.dom._g;baidu.event._eventFilter=baidu.event._eventFilter||{};baidu.dom.contains=function(a,b){var c=baidu.dom._g;a=c(a);b=c(b);return a.contains?a!=b&&a.contains(b):!!(a.compareDocumentPosition(b)&16)};baidu.dom.g=function(a){if("string"==typeof a||a instanceof String){return document.getElementById(a)}else{if(a&&a.nodeName&&(a.nodeType==1||a.nodeType==9)){return a }}return null};baidu.g=baidu.G=baidu.dom.g;baidu.dom.getDocument=function(a){a=baidu.dom.g(a);return a.nodeType==9?a:a.ownerDocument||a.document};baidu.event._eventFilter._crossElementBoundary=function(a,d){var c=d.relatedTarget,b=d.currentTarget;if(c===false||b==c||(c&&(c.prefix=="xul"||baidu.dom.contains(b,c)))){return}return a.call(b,d)};baidu.fn=baidu.fn||{};baidu.fn.bind=function(b,a){var c=arguments.length>2?[].slice.call(arguments,2):null;return function(){var e=baidu.lang.isString(b)?a[b]:b,d=(c)?c.concat([].slice.call(arguments,0)):arguments;return e.apply(a||e,d)}};baidu.event._eventFilter.mouseenter=window.attachEvent?null:function(a,b,c){return{type:"mouseover",listener:baidu.fn.bind(baidu.event._eventFilter._crossElementBoundary,this,c)}};baidu.event._eventFilter.mouseleave=window.attachEvent?null:function(a,b,c){return{type:"mouseout",listener:baidu.fn.bind(baidu.event._eventFilter._crossElementBoundary,this,c)} };baidu.event.on=function(b,e,g){e=e.replace(/^on/i,"");b=baidu.dom._g(b);var f=function(i){g.call(b,i)},a=baidu.event._listeners,d=baidu.event._eventFilter,h,c=e;e=e.toLowerCase();if(d&&d[e]){h=d[e](b,e,f);c=h.type;f=h.listener}if(b.addEventListener){b.addEventListener(c,f,false)}else{if(b.attachEvent){b.attachEvent("on"+c,f)}}a[a.length]=[b,e,g,f,c];return b};baidu.on=baidu.event.on;baidu.fn.blank=function(){};baidu.string=baidu.string||{};(function(){var a=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");baidu.string.trim=function(b){return String(b).replace(a,"")}})();baidu.trim=baidu.string.trim;baidu.string.escapeReg=function(a){return String(a).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\\x241")};baidu.dom.q=function(h,e,b){var j=[],d=baidu.string.trim,g,f,a,c; if(!(h=d(h))){return j}if("undefined"==typeof e){e=document}else{e=baidu.dom.g(e);if(!e){return j}}b&&(b=d(b).toUpperCase());if(e.getElementsByClassName){a=e.getElementsByClassName(h);g=a.length;for(f=0;fa.indexOf("-")&&0>a.indexOf("_")?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};function B(a,b){for(var c=a.split("."),e=b||window,f;f=c.shift();)if(null!=e[f])e=e[f];else return null;return e}var ha=RT_CONFIG.HOSTMAP;ha||(ha=RT_CONFIG.HOSTMAP={});"object"!==typeof RT_CONFIG||RT_CONFIG.HOST||(RT_CONFIG.HOST=function(a){return RT_CONFIG.HOSTMAP[a]||"http://"+a});function C(a,b){function c(a,f){baidu.lang.isArray(a)?baidu.each(a,function(a,b){c(a,f.concat([b]))}):b(a,f)}c(a,[])}function ia(a){var b=B("bds.ready");"function"===typeof b&&b(function(){a()})}var F={},ja={}; function H(a,b){ka();var c=setTimeout(a,b);F[c]=!0;return c}function I(a){a&&(delete F[a],clearTimeout(a))}var la=!1;function ka(){la||(J(function(){for(var a in F)F.hasOwnProperty(a)&&I(parseInt(a,10));for(a in ja)if(ja.hasOwnProperty(a)){var b=parseInt(a,10);b&&(delete ja[b],clearInterval(b))}}),la=!0)}function J(a){var b=B("bds.comm.registerUnloadHandler");"function"===typeof b?b(a):ia(function(){J(a)})}function K(a,b){return"function"===typeof RT_CONFIG.CLASSNAME?RT_CONFIG.CLASSNAME(a,b):a};function L(a){this.o=a||document;ma(this)}L.prototype.getDocument=function(){return this.o};L.prototype.g=function(a){return"[object String]"===Object.prototype.toString.call(a)?this.o.getElementById(a):a&&a.nodeName&&(1===a.nodeType||9===a.nodeType)?a:null};L.prototype.on=function(a,b,c){"string"===typeof a&&(a=this.o.getElementById(a));a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(b){c.call(a,b)});return a}; L.prototype.opacity=function(a,b){a=this.g(a);var c=t&&9>t;return null!=b||0===b?(c?(c=a.style,c.filter=""+(c.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(1===b?"":"alpha(opacity="+100*b+")"),c.zoom=1):a.style.opacity=b,""):c?(c=a.style.filter)&&0<=c.indexOf("opacity=")?parseFloat(c.match(/opacity=([^)]*)/)[1])/100+"":"1":this.getStyle(a,"opacity")};L.prototype.contains=function(a,b){a=this.g(a);b=this.g(b);return a.contains?a!==b&&a.contains(b):!!(a.compareDocumentPosition(b)&16)}; L.prototype.show=function(a){a=this.g(a);a.style.display="";"none"===this.getComputedStyle(a,"display")&&(a.style.display="block");return a};n=L.prototype;n.hide=function(a){a=this.g(a);a.style.display="none";return a};n.addClass=function(a,b){a=this.g(a);for(var c=b.split(/\s+/),e=a.className,f=" "+e+" ",d=0,g=c.length;df.indexOf(" "+c[d]+" ")&&(e+=(e?" ":"")+c[d]);a.className=e;return a}; n.removeClass=function(a,b){a=this.g(a);for(var c=b.split(/\s+/),e=a.className,f=" "+e+" ",d=0,g=c.length;dt?{set:function(a,b){var c=a.style;"inline-block"===b?(c.display="inline",c.zoom=1):c.display=b}}:ba&&3>ba?{set:function(a,b){a.style.display="inline-block"===b?"-moz-inline-box":b}}:null;M["float"]=t?"styleFloat":"cssFloat"; M.opacity=t&&9>t?{get:function(a){return(a=a.style.filter)&&0<=a.indexOf("opacity=")?parseFloat(a.match(/opacity=([^)]*)/)[1])/100+"":"1"},set:function(a,b){var c=a.style;c.filter=(c.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(1==b?"":"alpha(opacity="+100*b+")");c.zoom=1}}:null;var N=N||[];function na(a,b,c){for(var e=0,f;f=N[e];e++)(f=f[c])&&(b=f(a,b));return b} N[N.length]={get:function(a,b){if(/color/i.test(a)&&-1!==b.indexOf("rgb(")){var c=b.split(",");b="#";for(var e=0,f;f=c[e];e++)f=parseInt(f.replace(/[^\d]/gi,""),10).toString(16),b+=1===f.length?"0"+f:f;b=b.toUpperCase()}return b}};N[N.length]={set:function(a,b){b.constructor!==Number||/zIndex|fontWeight|opacity|zoom|lineHeight/i.test(a)||(b+="px");return b}};L.prototype.children=function(a){a=this.g(a);var b=[];for(a=a.firstChild;a;a=a.nextSibling)1===a.nodeType&&b.push(a);return b}; var O={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};8>t?(O["for"]="htmlFor",O["class"]="className"):(O.htmlFor="for",O.className="class");n=L.prototype;n.getAttr=function(a,b){a=this.g(a);if("style"===b)return a.style.cssText;b=O[b]||b;return a.getAttribute(b)};n.setStyle=function(a,b,c){a=this.g(a);b=ga(b);c=na(b,c,"set");var e=M[b];e&&e.set?e.set(a,c):a.style[e||b]=c;return a}; n.insertBefore=function(a,b){var c;a=this.g(a);b=this.g(b);(c=b.parentNode)&&c.insertBefore(a,b);return a}; n.q=function(a,b,c){var e=[],f,d,g;if(!(a=fa(a)))return e;if("undefined"===typeof b)b=this.o;else if(b=this.g(b),!b)return e;c&&(c=fa(c).toUpperCase());if(b.getElementsByClassName)for(d=b.getElementsByClassName(a),b=d.length,f=0;f");return f.join("\n")};function ra(){this.J={}}ra.prototype.get=function(a){return this.J[a]||""}; ra.prototype.parse=function(a){function b(a){return p.test(a)?b(a.replace(p,function(a,b){return R[b]||E[b]||""})):a}function c(a){a&&G&&W.push(a)}function e(){G&&(G in R?alert("Template: "+G+" is exist"):R[G]=W.join("\n"));G=null}a=a.split(/\r?\n/);for(var f=a.length,d=0,g=/\x3c!--\s*target:\s*([a-zA-Z0-9_]+)\s*--\x3e/,l=/\x3c!--\s*\/target\s*--\x3e/,p=/\x3c!--\s*import:\s*([a-zA-Z0-9_\/]+)\s*--\x3e/,q=/\x3c!--\s*scope:\s*([a-zA-Z0-9_]+)\s*--\x3e/,h=/\x3c!--\/scope--\x3e/,m,k,u,D,E=this.J,W=[],G, R={};d=k.length||(g.lastIndex=-1,q.lastIndex=-1,(u=q.exec(k))?D=u[1]:(u=h.exec(k))?D=void 0:(u=g.exec(k))?(u=D?D+"/"+u[1]:u[1],k=k.split(g),c(k[0]),e(),W=[],G=u,c(k[2])):l.test(k)?(k=k.split(l),c(k[0]),e()):c(k));e();for(m in R)E[m]&&alert("Template: "+m+" already exists!"),E[m]=b(R[m])};var sa=new ra;function ta(){};function Q(){this.b={}}baidu.inherits(Q,ta);Q.prototype.addListener=function(a,b){this.b[a]||(this.b[a]=[]);this.b[a].push(b)};Q.prototype.dispose=function(){this.b={}};Q.prototype.trigger=function(a,b){if(!this.b[a])return!0;var c,e=Array.prototype.slice.call(arguments,1),f=!0;for(c=0;cb.getData("api").version))baidu.on(a,"click",function(c){c=baidu.event.getTarget(c);(c=Ba(c,a))||b.trigger(z,{actionid:11})})} function Aa(a){var b=a.getData("api"),c=0.01>Math.random();if(!("1.0.6">b.version)&&c){var e=0,f,d,g=function(){f&&d&&(e+=d-f);d=f=null};b.addListener("mousemove",function(){f||(f=new Date);d=new Date});b.addListener("mouseout",g);var l=0,p,q,h=function(){p&&(q=new Date,l+=q-p);q=p=null};b.inView()&&(p=new Date);b.addListener("intoview",function(){p||(p=new Date)});b.addListener("outview",h);var m=function(){g();h();a.trigger(z,{actionid:13,attach:e+"_"+l})};b.addListener("release",function(){m(); var a=window,b="unload";"string"===typeof a&&(a=document.getElementById(a));for(var b=b.replace(/^on/i,"").toLowerCase(),c=w.length,e=!m,d,f;c--;)d=w[c],d[1]!==b||d[0]!==a||!e&&d[2]!==m||(f=d[4],d=d[3],a.removeEventListener?a.removeEventListener(f,d,!1):a.detachEvent&&a.detachEvent("on"+f,d),w.splice(c,1))});x(window,"unload",m)}};function Ca(a){S.call(this,a)}baidu.inherits(Ca,S);Ca.prototype.t=function(){if(this.a){wa(this.a);var a=this.a;a.trade_id={1:"medical",2:"tourism",3:"machine",4:"photo",5:"decoration",6:"game"}[a.trade_id]||"default"}};Ca.prototype.g=function(a){return"string"===typeof a||a instanceof String?this.getDocument().getElementById(a):a&&a.nodeName&&(1===a.nodeType||9===a.nodeType)?a:null};function V(a){S.call(this,a);this.B="AD_ad_widget_imageplus_sticker_pa_1_new"}baidu.inherits(V,Ca); V.prototype.l=function(){V.superClass.l.call(this);var a=this.getRoot(),a=baidu.dom.q("baiduimageplus-s-pa-hd-title-cell",a),b=baidu.g(this.getId("wrapper")),c=baidu.g(this.getId("outter")),e=this.m-40;this.a.box.hide_btn&&(e=this.m-10);var f=114*this.a._desc.length-5;b.style.cssText="width:"+e+"px!important;";c.style.cssText="width:"+f+"px!important;";7>=baidu.browser.ie&&(c.style.cssText="width:"+e+"px!important;overflow:hidden!important;");this.a.box.hide_btn?Da(this,this.c):Ea(this);this.F&&this.c++; b=Math.floor((this.m-this.c+1)/this.c);for(c=0;ca&&(this.c--,-20g||(g=-g+"px",x(f[0],"mouseenter",c),x(f[b],"mouseenter",e))};function Fa(a){this.N=a}Fa.prototype.start=function(a,b){!b&&this.w&&this.w.dispose&&this.w.dispose();return this.w=this.N(!!a)};Fa.prototype.set=function(a,b){"AD_CONFIG"===a?AD_CONFIG=b:"LINKS"===a?LINKS=b:"RT_CONFIG"===a&&(RT_CONFIG=b)};Fa.prototype.get=function(a){if("AD_CONFIG"===a)return AD_CONFIG;if("LINKS"===a)return LINKS;if("RT_CONFIG"===a)return RT_CONFIG;if("AD_STYLE_CONTENT"===a)return AD_STYLE_CONTENT};function Ga(){}Ga.prototype.attachTo=function(){};function Ha(){this.A=""}baidu.inherits(Ha,Ga);var Ia=new Ha;RT_CONFIG.__plugins||(RT_CONFIG.__plugins=[]);RT_CONFIG.__plugins.push(Ia); function Ja(a,b,c,e){if(b.encry_url){var f="&actionid="+c;if("string"===typeof e)f+="&attach="+e;else if(e){e.attach=e.attach||0;for(var d in e)e.hasOwnProperty(d)&&null!=e[d]&&(f+="&"+d+"="+e[d])}else f+="&attach=0";f+="&time="+(new Date).getTime();e=b.encry_url+f;if(4===c&&(b.notice_url&&baidu.sio.log(b.notice_url),c=b.api,b=b.encry_url,c.version&&!("1.0.1">c.version)&&(c.recordTime("showed",(new Date).getTime()),f=c.getRecordedTime()))){d=0;for(var g=f.length;d]*?)(?:(id=['"][_\-a-z0-9]+['"])([^>]*?))?(>)/i,function(a,e,f,d,g){return e+(f?"":" ")+'id="'+b+'"'+(d||"")+g})}X.prototype.C=function(a,b){var c=0;C(a,function(a){var f=b.children[c];if(!f)throw Error("Invalid pre-rendered html formated.");c++;a.v=f.id})};function Y(a){this.r=null;this.H=0;this.R=" white none none-white none-white-2 v2 configurable".split(" ");S.call(this,a);this.B="AD_ad_widget_imageplus_sticker_box";this.k=new X;this.j=this.n=this.L=!1;this.f=[];this.p=null}baidu.inherits(Y,U);Y.prototype.t=function(){if(this.a){wa(this.a);var a=this.R[this.getData("box.theme",0)];a&&(this.a.box._theme_class=K("ad-widget-imageplus-sticker-theme-"+a))}}; Y.prototype.l=function(){function a(){H(c,5E3)}function b(){d.j||(k&&(I(k),k=null,d.n=!1),u&&(I(u),u=null,d.n=!1),d.n||(d.show(),d.r=new Date,d.trigger(z,1)))}function c(){d.j||(d.hide(),d.r&&(d.H++,d.trigger(z,{actionid:3,attach:(new Date-d.r)/1E3})))}function e(){0=e&&baidu.browser.ie&&10>baidu.browser.ie&&(a.style.cssText="");this.p&&I(this.p);(b=baidu.g(this.getId("close")))&& baidu.hide(b);baidu.dom.removeClass(a,K("ad-widget-imageplus-sticker-showing"));this.n=!1}}; function Ma(a,b){var c=a.getRoot(),e=Oa(a);if(a.getData("box.is_cut_show")){var f=a.getData("box.cut_height",75);if(e){e.style.cssText="clip:rect(0px,0px,0px,0px);display:block;height:0;top:"+b+"px;";var d=baidu.g(a.getId("body")),d=d.offsetHeight;e.style.cssText="display:block;top:"+(f-d)+"px;height:"+d+"px;"}c&&a.getData("box.is_cut_show")&&(c.style.cssText="display:block;top:"+(b-f)+"px;height:"+f+"px;")}else e&&(e.style.cssText="clip:rect(0px,0px,0px,0px);display:block;height:0;top:"+b+"px;", d=baidu.g(a.getId("body")),d=d.offsetHeight,e.style.cssText="display:block;top:"+(b-d)+"px;height:"+d+"px;");if(c=baidu.g(a.getId("thumbnail")))c.style.top=b-20+"px"}function La(a){var b=baidu.g(a.getId("background"));b&&(a=a.getData("box.box_bg_opacity",0.75),y.opacity(b,a))} function Na(a){var b=a.getData("box.visual_height",0),c=Oa(a),e=a.getData("box.cut_height",75);if(c){var f=a.getData("api");f&&(Ma(a,f.getImgRect().height),baidu.setStyle(c,"top",e-b+"px"))}(a=baidu.g(a.getId("close")))&&baidu.hide(a)};var Pa={getContext:function(a){return B("ECOM_MA_LEGO.materials."+a)},da:function(a){a=a||Pa.getId();return(a=Pa.getContext(a))?a.material||null:null},getId:function(){var a="canvas";"undefined"!=typeof RT_CONFIG&&RT_CONFIG.id?a=RT_CONFIG.id:"undefined"!=typeof AD_CONFIG&&AD_CONFIG.id&&(a=AD_CONFIG.id);return a},aa:function(a){var b=("ECOM_MA_LEGO.materials."+a.material.getId()).split("."),c=window;b[0]in c||!c.execScript||c.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)b.length||void 0=== a?c=c[e]?c[e]:c[e]={}:c[e]=a},ea:function(a){var b=a.getRoot();for(a=document;b&&b!=a;){if(baidu.dom.hasAttr(b,"data-rendered"))return b.id;b=b.parentNode}return null}};function Z(a){U.call(this,{});this.k=new P({block_class:K("ad-block")});this.h=a||Pa.getId();this.I="s-"+this.h;this.d={};if("undefined"!==typeof RT_CONFIG&&(a=RT_CONFIG.__plugins)&&a.length)for(var b=0;b')}return baidu.g(this.h)}; Z.prototype.getId=function(){return this.h};function Qa(a){if("undefined"!==typeof AD_STYLE_CONTENT){var b=AD_STYLE_CONTENT.replace(/#canvas/g,"#"+a.h),c=baidu.g(a.I);if(c)c.styleSheet?c.styleSheet.cssText=b:c.textContent=b;else{c=a.I;a=a.getRoot();var e=y.o,f=a.parentNode;if(f){var d=e.createElement("style");d.type="text/css";d.media="screen";c&&(d.id=c);f.insertBefore(d,a);d.styleSheet?d.styleSheet.cssText=b:d.appendChild(e.createTextNode(b))}}}} Z.prototype.getMainHtml=function(){var a=this.k.u(this.f);return'
'+a+"
"};Z.prototype.beforeShow=function(){try{"string"===typeof AD_STYLE_CONTENT&&(AD_STYLE_CONTENT=K(AD_STYLE_CONTENT,"css")),this.trigger("beforematerialshow")}catch(a){}}; Z.prototype.init=function(){var a=this;this.forEach(function(b){baidu.each(a.K,function(c){b.addListener(c,function(){var b=[].slice.call(arguments,0);b.unshift(c);a.trigger.apply(a,b)})})});var b=this.getRoot();if(b){if("string"===typeof AD_TEMPLATE_CONTENT&&/AD_ad_widget_siva_/.test(AD_TEMPLATE_CONTENT))try{this.k.C(this.f,b.children[0])}catch(c){b.innerHTML=this.getMainHtml()}else b.innerHTML=this.getMainHtml();b.setAttribute("data-rendered","true")}Z.superClass.init.call(this)}; Z.prototype.show=function(){this.beforeShow();Qa(this);this.init();this.l();this.s();baidu.show(this.getId());try{this.trigger("aftermaterialshow")}catch(a){}var b=this;J(function(){b.dispose()})};Z.prototype.trigger=function(a,b){var c=[].slice.call(arguments,0);this.d=this.d||{};this.d[a]||(this.d[a]=[]);this.d[a].push(c.slice(1));return Z.superClass.trigger.apply(this,c)}; Z.prototype.addListener=function(a,b,c){Z.superClass.addListener.call(this,a,b);if(c)for(this.d=this.d||{},a=this.d[a]||[],c=0;c