You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

97 lines
53 KiB

(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<c;){g=g[a[n++]];if(null==g)break;r.push(g)}if(g&&"object"===typeof g&&d in g){f=g[d];break}}"function"===typeof f&&(f=f.call(r[r.length-1]));return null==f?e:f}function A(a,b,e,c){var d="";a=w(a,b);if(c){if(""===a||null==a||!1===a||"[object Array]"==={}.toString.call(a)&&
0===a.length)d+=e()}else if("[object Array]"==={}.toString.call(a)){var f=a.length;B(a,function(a,c){var g={"@index":c,_index:c+1,"@first":0===c,"@size":f,"@last":c===f-1,"@odd":1===(c&1),"@even":0===(c&1)},k;for(k in g)g.hasOwnProperty(k)&&(a[k]=g[k]);b.push(a);d+=e();for(k in g)g.hasOwnProperty(k)&&delete a[k];b.pop()})}else if("object"===typeof a)b.push(a),d+=e(),b.pop();else if("function"===typeof a)var g=b[b.length-1],d=d+(a.call(g,e(),function(a){return q(a,g)})||"");else a&&(d+=e());return d}
function x(a,b){b=b||{};for(var e=b.tags||p.tags,c=e[0],d=e[e.length-1],f=['var buffer = "";',"\nvar line = 1;","\ntry {",'\nbuffer += "'],g=[],s=!1,n=!1,r=function(){if(!s||n||b.space)g=[];else for(;g.length;)f.splice(g.pop(),1);n=s=!1},k=[],u,q,C,w=function(a){e=t(a).split(/\s+/);q=e[0];C=e[e.length-1]},x=function(a){f.push('";',u,'\nvar partial = partials["'+t(a)+'"];',"\nif (partial) {","\n buffer += render(partial,stack[stack.length - 1],partials);","\n}",'\nbuffer += "')},v=function(a,d){var b=
t(a);if(""===b)throw Error("Section name may not be empty");k.push({name:b,inverted:d});f.push('";',u,'\nvar name = "'+b+'";',"\nvar callback = (function () {","\n return function () {",'\n var buffer = "";','\nbuffer += "')},y=function(a){v(a,!0)},z=function(a){a=t(a);var b=0!=k.length&&k[k.length-1].name;if(!b||a!=b)throw Error('Section named "'+a+'" was never opened');a=k.pop();f.push('";',"\n return buffer;","\n };","\n})();");a.inverted?f.push("\nbuffer += renderSection(name,stack,callback,true);"):
f.push("\nbuffer += renderSection(name,stack,callback);");f.push('\nbuffer += "')},A=function(a){f.push('";',u,'\nbuffer += lookup("'+t(a)+'",stack,"");','\nbuffer += "')},B=function(a){f.push('";',u,'\nbuffer += escapeHTML(lookup("'+t(a)+'",stack,""));','\nbuffer += "')},D=1,m,l,h=0,E=a.length;h<E;++h)if(a.slice(h,h+c.length)===c){h+=c.length;m=a.substr(h,1);u="\nline = "+D+";";q=c;C=d;s=!0;switch(m){case "!":h++;l=null;break;case "=":h++;d="="+d;l=w;break;case ">":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<d;++c)b.call(e,a[c],c,a)},t=function(a){return null==a?"":String(a).replace(/(^[\s\xA0]+)|([\s\xA0]+$)/g,"")},z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}})(Mustache);
;
var AD_TEMPLATE_CONTENT="<!-- target:AD_ad_widget_imageplus_sticker_pa_1_new -->\n<div class=\"baiduimageplus-s-pa\">\n<div class=\"baiduimageplus-s-pa-bg\" id=\"{{#_id}}background{{/_id}}\"></div>\n<div class=\"baiduimageplus-s-pa-ct\">\n<div class=\"baiduimageplus-s-pa-hd\">\n{{#_desc}}\n<div class=\"baiduimageplus-s-pa-hd-title-cell\">{{{title}}}</div>\n{{/_desc}}\n</div>\n<div class=\"baiduimageplus-s-pa-bd-lu\">\n<div id=\"{{#_id}}left_btn{{/_id}}\" class=\"ad-widget-imgps-sticker-html-btn adwishbtn_left\" {{#box.hide_btn}}style=\"display:none;\"{{/box.hide_btn}}></div>\n<div id=\"{{#_id}}wrapper{{/_id}}\" class=\"baiduimageplus-s-pa-bd-lu-wrapper\">\n<div id=\"{{#_id}}outter{{/_id}}\" class=\"baiduimageplus-s-pa-bd-lu-outter\">\n{{#_desc}}\n<div class=\"cell\">\n<a data-log=\"2\" data-mid=\"{{{mid}}}\" target=\"_blank\" href=\"{{{curl}}}\"><img src=\"{{{image_url}}}\"></a>\n<a class=\"baiduimageplus-s-pa-bd-lu-title\" data-log=\"2\" data-mid=\"{{{mid}}}\" target=\"_blank\" href=\"{{{curl}}}\">{{{title}}}</a>\n</div>\n{{/_desc}}\n</div>\n</div>\n<div id=\"{{#_id}}right_btn{{/_id}}\" class=\"ad-widget-imgps-sticker-html-btn adwishbtn_right\" {{#box.hide_btn}}style=\"display:none;\"{{/box.hide_btn}}></div>\n</div>\n</div>\n<a class=\"baiduimageplus-s-pa-logo\" title=\"\u767e\u5ea6\u7f51\u76df\u63a8\u5e7f\" href=\"http://wangmeng.baidu.com\" target=\"_blank\" data-ignore></a>\n<!-- \u65b0\u589e\u7684\u63a8\u5e7f\u63d0\u793a -->\n<div style=\"position:absolute;left:0px;bottom:0px;width:29px;height:16px;overflow:hidden;z-index:12;background: url(http://ecmb.bdimg.com/public03/imageplus/leftbottom.png) no-repeat;\"></div>\n</div>\n<!-- target:AD_ad_widget_imageplus_sticker_box -->\n<div class=\"ad-widget-imageplus-sticker {{box._theme_class}}\">\n{{#box.is_cut_show}}<div class=\"ad-widget-imageplus-sticker ad-widget-imageplus-sticker-wrapper ad-widget-imageplus-sticker-box-showing\" id=\"{{#_id}}wrapper{{/_id}}\">{{/box.is_cut_show}}\n<div class=\"ad-widget-imageplus-sticker-bg\" id=\"{{#_id}}background{{/_id}}\" style=\"{{#box.background_color}}background:{{box.background_color}} !important;{{/box.background_color}}\"></div>\n<div class=\"ad-widget-imageplus-sticker-bd\" id=\"{{#_id}}body{{/_id}}\">\n{{{_content}}}\n</div>\n{{#box.is_cut_show}}</div>{{/box.is_cut_show}}\n<a class=\"ad-widget-imageplus-sticker-close {{#box.round_close}}ad-widget-imageplus-sticker-close-newstyle{{/box.round_close}}\" href=\"#\" id=\"{{#_id}}close{{/_id}}\">X</a>\n</div>\n<div class=\"ad-widget-imageplus-sticker-thumbnail\" id=\"{{#_id}}thumbnail{{/_id}}\" style=\"display:none;\">\n<a href=\"#\" title=\"\u70b9\u51fb\u5c55\u5f00\"><i>&nbsp;</i>\u56fe\u7247\u76f8\u5173\u4fe1\u606f</a>\n</div>";;
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;f<g;f++){c=a[f];if(b&&c.tagName!=b){continue}j[j.length]=c}}else{h=new RegExp("(^|\\s)"+baidu.string.escapeReg(h)+"(\\s|\x24)");a=b?e.getElementsByTagName(b):(e.all||e.getElementsByTagName("*"));g=a.length;for(f=0;f<g;f++){c=a[f];h.test(c.className)&&(j[j.length]=c)}}return j};baidu.q=baidu.Q=baidu.dom.q;baidu.dom.hasAttr=function(c,b){c=baidu.g(c);var a=c.attributes.getNamedItem(b);return !!(a&&a.specified)};baidu.abstractMethod=function(){throw Error("unimplemented abstract method")};baidu.object=baidu.object||{};baidu.extend=baidu.object.extend=function(c,a){for(var b in a){if(a.hasOwnProperty(b)){c[b]=a[b]
}}return c};baidu.browser=baidu.browser||{};baidu.browser.ie=baidu.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?(document.documentMode||+RegExp["\x241"]):undefined;baidu.dom._styleFixer=baidu.dom._styleFixer||{};baidu.dom._styleFilter=baidu.dom._styleFilter||[];baidu.dom._styleFilter.filter=function(b,e,f){for(var a=0,d=baidu.dom._styleFilter,c;c=d[a];a++){if(c=c[f]){e=c(b,e)}}return e};baidu.string.toCamelCase=function(a){if(a.indexOf("-")<0&&a.indexOf("_")<0){return a}return a.replace(/[-_][^-_]/g,function(b){return b.charAt(1).toUpperCase()})};baidu.dom.setStyle=function(c,b,d){var e=baidu.dom,a;c=e.g(c);b=baidu.string.toCamelCase(b);if(a=e._styleFilter){d=a.filter(b,d,"set")}a=e._styleFixer[b];(a&&a.set)?a.set(c,d):(c.style[a||b]=d);return c};baidu.setStyle=baidu.dom.setStyle;baidu.array=baidu.array||{};
baidu.each=baidu.array.forEach=baidu.array.each=function(g,e,b){var d,f,c,a=g.length;if("function"==typeof e){for(c=0;c<a;c++){f=g[c];d=e.call(b||g,f,c);if(d===false){break}}}return g};baidu.dom.show=function(a){a=baidu.dom.g(a);a.style.display="";return a};baidu.show=baidu.dom.show;baidu.dom.removeClass=function(f,g){f=baidu.dom.g(f);var d=f.className.split(/\s+/),h=g.split(/\s+/),b,a=h.length,c,e=0;for(;e<a;++e){for(c=0,b=d.length;c<b;++c){if(d[c]==h[e]){d.splice(c,1);break}}}f.className=d.join(" ");return f};baidu.removeClass=baidu.dom.removeClass;baidu.dom._NAME_ATTRS=(function(){var a={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};if(baidu.browser.ie<8){a["for"]="htmlFor";a["class"]="className"
}else{a.htmlFor="for";a.className="class"}return a})();baidu.dom.getAttr=function(b,a){b=baidu.dom.g(b);if("style"==a){return b.style.cssText}a=baidu.dom._NAME_ATTRS[a]||a;return b.getAttribute(a)};baidu.getAttr=baidu.dom.getAttr;baidu.sio=baidu.sio||{};baidu.sio.log=function(b){var a=new Image(),c="tangram_sio_log_"+Math.floor(Math.random()*2147483648).toString(36);window[c]=a;a.onload=a.onerror=a.onabort=function(){a.onload=a.onerror=a.onabort=null;window[c]=null;a=null};a.src=b};baidu.dom.hide=function(a){a=baidu.dom.g(a);a.style.display="none";return a};baidu.hide=baidu.dom.hide;baidu.json=baidu.json||{};baidu.json.parse=function(a){return(new Function("return ("+a+")"))()};baidu.lang.inherits=function(g,e,d){var c,f,a=g.prototype,b=new Function();b.prototype=e.prototype;f=g.prototype=new b();
for(c in a){f[c]=a[c]}g.prototype.constructor=g;g.superClass=e.prototype;if("string"==typeof d){f._className=d}};baidu.inherits=baidu.lang.inherits;baidu.dom.addClass=function(f,g){f=baidu.dom.g(f);var b=g.split(/\s+/),a=f.className,e=" "+a+" ",d=0,c=b.length;for(;d<c;d++){if(e.indexOf(" "+b[d]+" ")<0){a+=(a?" ":"")+b[d]}}f.className=a;return f};baidu.addClass=baidu.dom.addClass;baidu.event.preventDefault=function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}};baidu.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)};baidu.event.getTarget=function(a){return a.target||a.srcElement};;
var n,r=r||{};r.global=this;r.W=!0;r.Y="en";r.X=!0;r.U=function(a){return void 0!==a};r.T=function(a,b,c){a=a.split(".");c=c||r.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&r.U(b)?c[e]=b:c=c[e]?c[e]:c[e]={}};r.ca=function(a,b,c){r.T(a,b,c)};r.ba=function(a,b,c){a[b]=c};r.ga=function(){return!1};r.ha=function(){};r.fa=function(){};var aa,s;if(s=/msie (\d+\.\d)/i.exec(navigator.userAgent))var t=document.documentMode||+s[1];if(s=/firefox\/(\d+\.\d)/i.exec(navigator.userAgent))var ba=+s[1];if(s=/opera\/(\d+\.\d)/i.exec(navigator.userAgent))var ca=+s[1];var da=navigator.userAgent,ea=da.match(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i);ea&&!/chrome/i.test(da)&&(aa=+(ea[1]||ea[2]));s=/UCBrowser\/(\d+\.\d)/i.exec(navigator.userAgent);window.$ECMA$=window.$ECMA$||{};window.$ECMA$._instances=window.$ECMA$._instances||{};(function(){var a=window.$ECMA$;a.D=a.D||1;return function(){return"ECMA__"+(a.D++).toString(36)}})();function v(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};var w=[];function x(a,b,c){function e(b){c.call(a,b)}b=b.replace(/^on/i,"");"string"===typeof a&&(a=document.getElementById(a));var f=b;b=b.toLowerCase();a.addEventListener?a.addEventListener(f,e,!1):a.attachEvent&&a.attachEvent("on"+f,e);w[w.length]=[a,b,c,e,f]}
(function(){function a(a,b){for(var c=0,e=a.length,d={};c<e;c++)d[a[c]]=b[a[c]],delete b[a[c]];return d}function b(b,c,e){e=v({},e);var d=a(l[c],e),f=[],g;for(g in d)d.hasOwnProperty(g)&&f.push(d[g]);d=document.createEvent(c);f.unshift(b);"KeyEvents"===c?d.initKeyEvent.apply(d,f):"MouseEvents"===c?d.initMouseEvent.apply(d,f):"UIEvents"===c?d.initUIEvent.apply(d,f):d.initEvent.apply(d,f);v(d,e);return d}function c(a){var b;document.createEventObject&&(b=document.createEventObject(),v(b,a));return b}
var e={keydown:1,keyup:1,keypress:1},f={click:1,dblclick:1,mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1},d={abort:1,blur:1,change:1,error:1,focus:1,load:t?0:1,reset:1,resize:1,scroll:1,select:1,submit:1,unload:t?0:1},g={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},l={KeyEvents:"bubbles cancelable view ctrlKey altKey shiftKey metaKey keyCode charCode".split(" "),MouseEvents:"bubbles cancelable view detail screenX screenY clientX clientY ctrlKey altKey shiftKey metaKey button relatedTarget".split(" "),
HTMLEvents:["bubbles","cancelable"],UIEvents:["bubbles","cancelable","view","detail"],Events:["bubbles","cancelable"]};v(g,e);v(g,f);return function(p,q,h){q=q.replace(/^on/i,"");p=y.g(p);h=v({bubbles:!0,cancelable:!0,view:window,detail:1,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:0,charCode:0,button:0,relatedTarget:null},h);if(e[q]){var m=q;h=a(l.KeyEvents,h);var k;if(document.createEvent)try{k=b(m,"KeyEvents",h)}catch(u){try{k=b(m,"Events",h)}catch(D){k=
b(m,"UIEvents",h)}}else h.keyCode=0<h.charCode?h.charCode:h.keyCode,k=c(h);h=k}else if(f[q])k=q,h=a(l.MouseEvents,h),document.createEvent?(m=b(k,"MouseEvents",h),h.relatedTarget&&!m.relatedTarget&&("mouseout"===k.toLowerCase()?m.toElement=h.relatedTarget:"mouseover"===k.toLowerCase()&&(m.fromElement=h.relatedTarget))):(k=h,0===h.button?m=1:1===h.button?m=4:(m=h.button,m="[object Number]"===Object.prototype.toString.call(m)&&isFinite(m)?h.button:0),k.button=m,m=c(h)),h=m;else if(d[q]){k=q;h.bubbles=
g.hasOwnProperty(k);h=a(l.HTMLEvents,h);if(document.createEvent)try{m=b(k,"HTMLEvents",h)}catch(E){try{m=b(k,"UIEvents",h)}catch(W){m=b(k,"Events",h)}}else m=c(h);h=m}else throw Error(q+" is not support!");h&&(p.dispatchEvent?p.dispatchEvent(h):p.fireEvent&&p.fireEvent("on"+q,h))}})();var z="sendlog";var fa="function"===typeof"".trim?function(a){return String(a).trim()}:function(a){return String(a).replace(/(^[\s\t\xa0\u3000\ufeff]+)|([\ufeff\u3000\xa0\s\t]+$)/g,"")};function ga(a){return 0>a.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;d<g;d++)0>f.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;d<g;d++)0<=f.indexOf(" "+c[d]+" ")&&(e=e.replace(c[d],""));e=e.replace(/\s+/g," ");a.className=e;return a};n.getComputedStyle=function(a,b){a=this.g(a);var c=a.ownerDocument;return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b):""};
n.getStyle=function(a,b){a=this.g(a);b=ga(b);var c=(a.currentStyle?a.currentStyle[b]:"")||this.getComputedStyle(a,b);if(!c||"auto"===c){var e=M[b];e&&(c=e.get?e.get(a,b,c):this.getStyle(a,e))}N&&(c=na(b,c,"get"));return c};n.removeStyle=function(){var a=document.createElement("DIV"),b;a.style.removeProperty?b=function(a,b){a=this.g(a);a.style.removeProperty(b);return a}:a.style.removeAttribute&&(b=function(a,b){a=this.g(a);a.style.removeAttribute(ga(b));return a});a=null;return b}();var M=M||{};
M.display=t&&8>t?{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<b;f++)g=d[f],c&&g.tagName!==c||(e[e.length]=g);else for(a=RegExp("(^|\\s)"+String(a).replace(RegExp("([.*+?^=!:${}()|[\\]/\\\\-])","g"),"\\$1")+"(\\s|$)"),d=c?b.getElementsByTagName(c):b.all||b.getElementsByTagName("*"),b=d.length,f=0;f<b;f++)g=d[f],a.test(g.className)&&
(e[e.length]=g);return e};n.hasAttr=function(a,b){a=this.g(a);var c=a.attributes.getNamedItem(b);return!(!c||!c.specified)};
function ma(a){a.V||(a.V=function(){function b(){if(!b.isReady){b.isReady=!0;for(var a=0,c=e.length;a<c;a++)e[a]()}}var c=!1,e=[];(function(){if(!c){c=!0;var e=a.o,d=window;if(t&&d===top)(function(){if(!b.isReady){try{e.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}b()}})();else if(e.addEventListener){var g=ca?function(){if(!b.isReady){for(var a=0;a<e.styleSheets.length;a++)if(e.styleSheets[a].disabled){setTimeout(arguments.callee,0);return}b()}}:b;e.addEventListener("DOMContentLoaded",
g,!1);J(function(){e.removeEventListener("DOMContentLoaded",g,!1)})}else if(aa){var l;(function(){if(!b.isReady)if("loaded"!==e.readyState&&"complete"!==e.readyState)setTimeout(arguments.callee,0);else{if(void 0===l){l=0;var a=e.getElementsByTagName("style"),c=e.getElementsByTagName("link");a&&(l+=a.length);if(c)for(var a=0,d=c.length;a<d;a++)"stylesheet"===c[a].getAttribute("rel")&&l++}e.styleSheets.length!==l?setTimeout(arguments.callee,0):b()}})()}d.attachEvent?(d.attachEvent("onload",b),J(function(){d.detachEvent("onload",
b)})):d.addEventListener&&(d.addEventListener("load",b,!1),J(function(){d.removeEventListener("load",b,!1)}))}})();return function(a){b.isReady?a():e[e.length]=a}}())}var y=new L;function oa(){}oa.prototype.u=baidu.abstractMethod;oa.prototype.C=baidu.abstractMethod;function P(a){this.O=baidu.object.extend({block_class:K("ad-layout-block")},a||{})}baidu.inherits(P,oa);P.prototype.u=function(a){var b=pa(this,a),c={};C(a,function(a,b){var d=a.getMainHtml();c["block-"+b.join("-")+"-id"]=a.getId();c["block_"+b.join("_")]=d});return Mustache.render(b,c)};P.prototype.C=function(a,b){C(a,function(a,e){for(var f=b,d=0;f&&d<e.length;d++)f=f.children[e[d]];if(!f)throw Error("Invalid pre-rendered html formated.");a.v=f.id})};
function pa(a,b){var c=[];baidu.each(b,function(b,f){c.push(qa(a,b,[f]))});return c.join("\n")}function qa(a,b,c){var e=">";baidu.lang.isArray(b)||(e=' id="{{=<% %>=}}{{block-<% indexes %>-id}}">');var f=[Mustache.render('<div class="{{block_class}} {{block_class}}-{{indexes}}"'+e,{block_class:K(a.O.block_class),indexes:c.join("-")})];baidu.lang.isArray(b)?baidu.each(b,function(b,e){f.push(qa(a,b,c.concat([e])))}):f.push("{{{block_"+c.join("_")+"}}}");f.push("</div>");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<f;d++)k=a[d],0>=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;c<this.b[a].length;c++){var d=this.b[a][c];d&&!1===d.apply(this,e)&&(f=!1)}return f};var ua;function S(a){this.b={};this.v="w-"+Math.floor(2147483648*Math.random()).toString(36);this.P=this.M=null;this.setData(a)}baidu.inherits(S,Q);ua=function(a,b){return Mustache.render(a,b)};S.prototype.trigger=function(a,b){if(!this.b[a])return!0;var c;c=this.b[a].length;var e=Array.prototype.slice.call(arguments,1),f=!0;for(c-=1;0<=c;c--){var d=this.b[a][c];if(d&&!1===d.apply(this,e)){f=!1;break}}return f};
S.prototype.getMainHtml=function(){if(!this.B||!this.a)throw Error("Widget's view and data can not be undefined.");var a=this,b=sa.get(this.B),c=baidu.extend(this.a,{_id:function(){return function(b){return a.getId(b)}},_mixup:function(){return function(a){return K(a)}}});return ua(b,c)};n=S.prototype;n.render=function(){var a=this.getRoot();if(a){var b=this.getMainHtml();a.innerHTML=b}};n.init=baidu.fn.blank;n.l=baidu.fn.blank;n.s=baidu.fn.blank;
n.getData=function(a,b){if(a){var c=B(a,this.a);return null==c&&"undefined"!==typeof b?b:c}return this.a};n.setData=function(a){a&&(this.a=baidu.object.extend(this.Z||{},a));this.t()};n.t=function(){};S.prototype.getRoot=function(){return this.getDocument().getElementById(this.getId())};
S.prototype.getDocument=function(){var a;if(!(a=this.M)){if(a=this.P){for(var b={},c=["getElementById"],e=["createElement","createDocumentFragment","createTextNode","createAttribute"],f=0;f<c.length;f++){var d=c[f];b[d]=baidu.fn.bind(a[d],a)}for(f=0;f<e.length;f++)d=e[f],b[d]=baidu.fn.bind(document[d],document);a=b}else a=null;a=a||document}return a};S.prototype.getId=function(a){return a?this.v+"-"+a:this.v};S.prototype.show=function(){var a=this.getRoot();a&&baidu.show(a)};
S.prototype.hide=function(){var a=this.getRoot();a&&baidu.hide(a)};S.prototype.sendLog=function(a,b){baidu.lang.isString(a)?this.trigger(z,{action:a,xp:b||a}):this.trigger(z,a)};S.prototype.dispose=function(){var a=this.getRoot();a&&(a.innerHTML="",a.parentNode.removeChild(a));S.superClass.dispose.call(this)};function U(a,b){S.call(this,a);this.k=new P({block_class:"ad-block"});this.f=[];this.S=b||""}baidu.inherits(U,S);U.prototype.setWidgets=function(a){this.f=[].slice.call(arguments)};U.prototype.getWidget=function(a){var b=Array.prototype.slice.call(arguments);if(!b.length)return null;var c=this.f[b[0]];if(!c)return null;for(var e=1;e<b.length;e++)if(c=c[b[e]],null==c)return null;return c};U.prototype.getMainHtml=function(){this.a._content=this.k.u(this.f);return U.superClass.getMainHtml.call(this)};
U.prototype.forEach=function(a){C(this.f,a)};function va(a,b){b.addListener(z,function(b){b.action=(a.S||"")+b.action;a.sendLog(b)})}U.prototype.init=function(){this.forEach(function(a){a.init()})};U.prototype.l=function(){this.forEach(function(a){a.l()})};U.prototype.s=function(){this.forEach(function(a){a.s()});var a=this;this.forEach(function(b){va(a,b)})};U.prototype.dispose=function(){this.forEach(function(a){a.dispose()})};function wa(a){a.real_url=a.target_url||a.encry_url+"&actionid=2&attach=0";var b;(b=a.adlist)&&0<b.length&&baidu.array.each(b,function(b){b.real_url=b.target_url||a.real_url})}
function xa(a,b){var c=a.getRoot();c&&(ya(c,a,b),za(c,a),Aa(a),baidu.array.each(c.getElementsByTagName("iframe"),function(c){if(a.getData("box.third_party_content",!1))a.addListener("load",function(d){d=d||c.contentDocument||c.contentWindow.document;baidu.on(d.body,"click",function(c){c=baidu.event.getTarget(c);(c=Ba(c,d.body))&&a.trigger(z,{actionid:2,attach:0+b()})});za(d.body,a)});else{var f=c.contentDocument||c.contentWindow.document;ya(f.body,a,b);za(f.body,a)}}))}
function ya(a,b,c){var e=b.getData("adlist");if(e&&e.length&&e[0].target_url||b.getData("target_url"))baidu.on(a,"click",function(e){for(var d=baidu.event.getTarget(e);baidu.dom.contains(a,d)&&!baidu.getAttr(d,"data-log");)d=d.parentNode;baidu.dom.contains(a,d)&&(e=baidu.getAttr(d,"data-log"))&&(d=baidu.getAttr(d,"data-attach"),("1"!==d+""||b.L)&&b.trigger(z,{actionid:parseInt(e,10),attach:(d||0)+c()}))});else e=function(b){b=baidu.event.getTarget(b);if((b=Ba(b,a))&&baidu.getAttr(b,"data-log")){var e=
b.href;e&&(b.href=e.replace(/&attach=([^|]+)(?:\|[^$&]*)?$/,function(a,b){return"&attach="+b+c()}))}},baidu.on(a,"mousedown",e),baidu.on(a,"mouseup",e)}function Ba(a,b){if(!baidu.dom.contains(b,a))return null;for(var c=a;c&&"A"!==c.nodeName;){if(c===b)return null;c=c.parentNode}return c}function za(a,b){if(!("1.0.6">b.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;c<this.c&&a[c];c++)a[c].style.cssText="width:"+b+"px!important;",c===this.c-1&&(a[c].style.cssText+="border:none!important;")};function Ea(a){var b=a.g(a.getId("left_btn")),c=a.g(a.getId("right_btn")),e=baidu.g(a.getId("wrapper"));baidu.on(b,"click",function(){0!==e.scrollLeft&&(e.scrollLeft-=114)});baidu.on(c,"click",function(){e.scrollLeft+=114})}
V.prototype.t=function(){this.F=0;V.superClass.t.apply(this,arguments);this.m=this.getData("api").getImgRect().width;this.c=Math.round((this.m-10)/110);var a=this.m-10-(114*this.c-5);10>a&&(this.c--,-20<a&&(this.F=1));var a=this.a,b=this.c+1,c;c=this.getData("desc","");if(""!==c){c=baidu.json.parse(c);for(var e=[],f=0;f<c.length;f++)c[f].image_url&&c[f].curl&&c[f].title&&e.push(c[f]);c=e}else c=void 0;a._desc=c.slice(0,b);this.a.box.hide_btn&&(this.a.box.cut_height=109)};
function Da(a,b){function c(){y.removeStyle(d,"left")}function e(){y.setStyle(d,"left",g)}var f=a.getRoot(),f=baidu.dom.q("cell",f),d=baidu.g(a.getId("outter")),g=114*(1+a.c)-a.m;0>g||(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<g;d++){var l=f[d];b+="&"+l.type+
"="+l.time}b+="&render="+encodeURIComponent(c.getRenderUrl());b+="&union_id="+c.getLoaderConfig("unionId","");b=b+"&actionid=8"+a.A;baidu.sio.log(b)}e+=a.A;baidu.sio.log(e)}}
Ha.prototype.attachTo=function(a){var b=this;a.addListener("aftermaterialshow",function(){var c=a.adConfig,e=c.api;e.version&&"1.0.6"<=e.version&&(b.A="&exp_list="+(c.exp_list||"")+"&render_id="+e.getRenderId(),e.addListener("clickimg",function(){Ja(b,c,12)}));Ja(b,c,4)});a.addListener(z,function(c,e){c.actionid&&(e={attach:c.attach,stage:c.stage},c=c.actionid);Ja(b,a.adConfig,c,e)})};function X(){}baidu.inherits(X,oa);X.prototype.u=function(a){var b=[];C(a,function(a){b.push(Ka(a.getMainHtml(),a.getId()))});return b.join("")};function Ka(a,b){return a.replace(/(<[a-z][^>]*?)(?:(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?u=H(c,E):c()}function f(a){d.j||k||u||(d.show(),k=H(function(){d.hide();k=null},a?m:h))}Y.superClass.l.call(this);var d=this,g=d.getRoot();d.getData("box.is_cut_show")&&(baidu.dom.addClass(g,K("ad-widget-imageplus-sticker-cut")),baidu.dom.setStyle(g,
"height",d.getData("box.cut_height",75)));var l=d.getData("api");La(d);d.forEach(function(a){a.addListener("resize",function(){Ma(d,l.getImgRect().height)});a.addListener("load",function(){d.trigger("load")})});var p;if(g=d.getData("box.hide_close_btn",!1))p=baidu.g(d.getId("close")),baidu.hide(p);g&&(g=function(){baidu.show(p)},l.addListener("mouseover",g),l.addListener("mousemove",g),l.addListener("mouseout",function(){baidu.hide(p)}));d.j=l.getShareData("[impl.sticker]forceHiding",!0)||!1;l.addListener("resize",
function(a,b){d.n&&Ma(d,b.height)});l.addListener("onclose",function(){d.j=!0;d.trigger(z,5)});var q=d.getData("box.show_thumbnail",!1);d.addListener("onclose",function(a){d.j=!0;if(q){var b=baidu.g(d.getId("thumbnail"));b&&baidu.show(b)}l.setShareData("[impl.sticker]forceHiding",!0);d.trigger(z,{actionid:3,attach:(new Date-d.r)/1E3});d.trigger(z,{actionid:5,attach:a})});var g=d.getData("box.always_show",!1),h=d.getData("box.first_show_time",5E3),m=d.getData("box.show_in_view",0),k,u,D=d.getData("box.title_show",
!1),E=d.getData("box.hide_delay",0);g?setTimeout(b,0):D?(Na(d),l.addListener("mouseout",e),g=y.g(d.getId("wrapper")),x(g,"mouseover",function(){b()})):(l.addListener("mouseover",b),l.addListener("mousemove",b),l.addListener("mouseout",e),m&&l.addListener("intoview",f),f());l.rendDone({showTip:d.getData("box.imageplus_button",!0),useV2Tip:d.getData("box.use_v2_tip",!1)});d.getData("box.autoshow",!1)&&l.addListener("intoview",a)};
Y.prototype.s=function(){var a=this;Y.superClass.s.call(a);xa(a,function(){return"|"+(new Date-a.r)/1E3+"|"+a.H});var b=baidu.g(a.getId("close"));if(b){var c=a.getData("box.use_v2_tip",!1);baidu.on(b,"click",function(b){baidu.event.preventDefault(b||window.event);c?a.getData("api").closeAd({canvas:"me"}):(a.hide(!0),a.trigger("onclose"))})}if(a.getData("box.show_thumbnail",!1)&&(b=baidu.g(this.getId("thumbnail"))))baidu.on(b,"click",function(b){a.j=!1;a.trigger(z,1);baidu.event.preventDefault(b);
a.show();(b=baidu.g(a.getId("thumbnail")))&&baidu.hide(b)})};function Oa(a){var b=baidu.g(a.getId("wrapper"));a=a.getRoot();return b||a}
Y.prototype.show=function(){if(this.getRoot()){var a=this.getData("api");a&&Ma(this,a.getImgRect().height);var b=this;b.getData("box.hide_close_btn",!1)||(this.p&&I(this.p),this.p=H(function(){var a=baidu.g(b.getId("close"));a&&baidu.show(a);this.p=null},500));baidu.dom.addClass(Oa(this),K("ad-widget-imageplus-sticker-showing ad-widget-imageplus-sticker-box-showing"));this.n=!0}};
Y.prototype.hide=function(a){var b=!0===a;if(a=Oa(this)){var c=this.getData("api"),e=this.getData("box.visual_height",0),f=this.getData("box.cut_height",75);b&&(e=0,baidu.dom.removeClass(a,K("ad-widget-imageplus-sticker-box-showing")));c&&(this.getData("box.is_cut_show")?baidu.setStyle(a,"top",f-e+"px"):baidu.setStyle(a,"top",c.getImgRect().height-e+"px"));baidu.setStyle(a,"height",e+"px");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<a.length;b++)a[b].attachTo(this);this.K=(this.K||[]).concat(["newadcanvas"])}baidu.inherits(Z,U);Z.prototype.getRoot=function(){if(!baidu.g(this.h)){var a=RT_CONFIG.originId;a&&baidu.g(a)?baidu.g(a).id=this.h:document.write('<div id="'+this.h+'"></div>')}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'<div class="'+K("layout")+'">'+a+"</div>"};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<a.length;c++)b.apply(this,a[c])};Z.prototype.dispose=function(){Z.superClass.dispose.call(this);var a=baidu.g(this.getId());a&&(a.innerHTML="");this.d=null};function Ra(a){Z.call(this,a);this.k=new X}baidu.inherits(Ra,Z);Ra.prototype.getMainHtml=function(){return this.k.u(this.f)};(function(a){sa.parse(K(AD_TEMPLATE_CONTENT,"template"));try{window.__ignore=document.getElementById("whatever")}catch(b){}"function"===typeof ECMA_define?ECMA_define(function(){return new Fa(a)}):a()})(function(a,b){var c=b||{};return function(){var b,f,d=AD_CONFIG;c.before&&c.before(d);b=new Ra(d.id);b.adConfig=d;f=new Y(d);f.setWidgets([new a(d)]);b.setWidgets([f]);b.show();c.after&&c.after(d,f);return b}}(V));
})(/** AD_CONFIG */{}, /** LINKS */[], /** RT_CONFIG */{});
//Tue Mar 01 2016 15:29:21 GMT+0800 (CST)