(function(AD_CONFIG, LINKS, RT_CONFIG){
/*! Copyright 2015 Baidu Inc. All Rights Reserved. */
var AD_CONFIG = {
    box: {
        is_cut_show: true,
        cut_height: 75 + 25,
        visual_height: 26,
        box_bg_opacity: 0.75,
        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_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\" 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>\n<!-- target:AD_ad_widget_imageplus_sticker_pa_links_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<a data-log=\"2\" data-mid=\"{{{mid}}}\" href=\"{{{real_url}}}\" target=\"_blank\">{{title}}</a>\n</div>\n<div class=\"baiduimageplus-s-pa-bd\">\n<a class=\"baiduimageplus-s-pa-img\" href=\"{{{real_url}}}\" data-log=\"2\" data-mid=\"{{{mid}}}\" target=\"_blank\">\n<img src=\"{{idea_url}}\"/>\n</a>\n<div class=\"baiduimageplus-s-pa-txt\">\n<p class=\"baiduimageplus-s-pa-title\">\n<a data-log=\"2\" data-mid=\"{{{mid}}}\" href=\"{{{real_url}}}\" target=\"_blank\">{{title}}</a>\n</p>\n<p class=\"baiduimageplus-s-pa-desc\" {{^_urls}}style=\"height:36px;white-space:normal;\"{{/_urls}}>\n<a id=\"{{#_id}}desc{{/_id}}\" data-log=\"2\" data-mid=\"{{{mid}}}\" href=\"{{{real_url}}}\" target=\"_blank\">{{{desc}}}</a>\n</p>\n<p class=\"baiduimageplus-s-pa-links\">\n{{#_urls}}\n<a data-log=\"2\" data-mid=\"{{{mid}}}\" href=\"{{{url}}}\" target=\"_blank\">{{{title}}}</a>\n{{/_urls}}\n</p>\n</div>\n<a class=\"baiduimageplus-s-pa-bt\" id=\"{{#_id}}lookbtnshake{{/_id}}\" data-log=\"2\" data-mid=\"{{{mid}}}\" href=\"{{{real_url}}}\" target=\"_blank\">\u53bb\u770b\u770b</a>\n</div>\n</div>\n<a class=\"baiduimageplus-s-pa-logo\" href=\"http://wangmeng.baidu.com\" target=\"_blank\" data-ignore></a>\n</div>\n";;
var AD_STYLE_CONTENT=".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}.baiduimageplus-s-pa{position:relative;width:100%;height:101px;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 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}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-ct{position:relative;z-index:2}.baiduimageplus-s-pa .baiduimageplus-s-pa-hd{height:26px;line-height:26px;text-indent:10px}.baiduimageplus-s-pa .baiduimageplus-s-pa-hd a{font-size:14px;color:#FFF}.baiduimageplus-s-pa .baiduimageplus-s-pa-bd{position:relative;margin:10px 0;overflow:hidden;_zoom:1}.baiduimageplus-s-pa .baiduimageplus-s-pa-img{float:left;_display:inline;width:50px;height:50px;margin:5px 12px 0 10px}.baiduimageplus-s-pa .baiduimageplus-s-pa-img img{display:block;width:50px;height:50px;border:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-txt{margin-right:85px;height:54px;overflow:hidden;zoom:1;line-height:1.5;word-wrap:break-word;font-size:12px;text-align:left;text-decoration:none;-webkit-line-clamp:2}.baiduimageplus-s-pa .baiduimageplus-s-pa-txt a{color:#FFF}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-txt a:hover{text-decoration:underline}.baiduimageplus-s-pa .baiduimageplus-s-pa-title,.baiduimageplus-s-pa .baiduimageplus-s-pa-desc,.baiduimageplus-s-pa .baiduimageplus-s-pa-links{margin:0;height:18px;zoom:1;color:#FFF;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.baiduimageplus-s-pa .baiduimageplus-s-pa-links a{float:left;_display:inline;padding:0 7px;color:#FFF;border-left:1px solid #999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.baiduimageplus-s-pa .baiduimageplus-s-pa-links a:last-child{margin-right:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-links a:first-child{border-left:none;padding-left:0}.baiduimageplus-s-pa .baiduimageplus-s-pa-links a:hover{text-decoration:underline}.baiduimageplus-s-pa .baiduimageplus-s-pa-title,.baiduimageplus-s-pa .baiduimageplus-s-pa-title a{color:#CCC}\n.baiduimageplus-s-pa .baiduimageplus-s-pa-bt{position:absolute;top:20px;right:10px;margin:0;width:70px;height:25px;display:block;text-decoration:none;color:#FFF;font-size:14px;text-align:center;line-height:25px;background:#bc0000;box-shadow:2px 2px 4px #000;border-radius:5px}.baiduimageplus-s-pa .baiduimageplus-s-pa-bt:hover{-webkit-animation:none;animation:none;text-decoration:none;background-color:#ea2b2b}.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-showing .baiduimageplus-s-pa-hd{opacity:0;filter:alpha(opacity=0)}.baiduimageplus-s-pa-links a{background:url(http://ecma.bdimg.com/adtest/5d5a28881dc5b110114e55cf6d4f69ec.png) no-repeat left top;background-position:0 0;_filter:progid:dximagetransform.microsoft.alphaimageloader(enabled=true,src=\" http://ecma.bdimg.com/adtest/5d5a28881dc5b110114e55cf6d4f69ec.png\",sizingMethod=\"crop\");_background:none;display:inline-block;margin-right:3px!important;padding-left:13px!important;padding-right:7px;border:0!important}.baiduimageplus-s-pa-links a:hover{text-decoration:underline}";;
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.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.string=baidu.string||{};baidu.string.getByteLength=function(a){return String(a).replace(/[^\x00-\xff]/g,"ci").length};baidu.string.subByte=function(c,b,a){c=String(c);a=a||"";if(b<0||baidu.string.getByteLength(c)<=b){return c+a
}c=c.substr(0,b).replace(/([^\x00-\xff])/g,"\x241 ").substr(0,b).replace(/[^\x00-\xff]$/,"").replace(/([^\x00-\xff]) /g,"\x241");return c+a};baidu.browser=baidu.browser||{};baidu.browser.ie=baidu.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?(document.documentMode||+RegExp["\x241"]):undefined;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.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;(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.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.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.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.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 q,r=r||{};r.global=this;r.T=!0;r.V="en";r.U=!0;r.R=function(a){return void 0!==a};r.P=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.R(b)?c[e]=b:c=c[e]?c[e]:c[e]={}};r.Z=function(a,b,c){r.P(a,b,c)};r.Y=function(a,b,c){a[b]=c};r.da=function(){return!1};r.ea=function(){};r.ca=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.B=a.B||1;return function(){return"ECMA__"+(a.B++).toString(36)}})();function u(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};var v=[];function fa(a,b,c){function e(b){c.call(a,b)}b=b.replace(/^on/i,"");"string"===typeof a&&(a=document.getElementById(a));var d=b;b=b.toLowerCase();a.addEventListener?a.addEventListener(d,e,!1):a.attachEvent&&a.attachEvent("on"+d,e);v[v.length]=[a,b,c,e,d]}
(function(){function a(a,b){for(var c=0,d=a.length,e={};c<d;c++)e[a[c]]=b[a[c]],delete b[a[c]];return e}function b(b,c,d){d=u({},d);var e=a(m[c],d),f=[],g;for(g in e)e.hasOwnProperty(g)&&f.push(e[g]);e=document.createEvent(c);f.unshift(b);"KeyEvents"===c?e.initKeyEvent.apply(e,f):"MouseEvents"===c?e.initMouseEvent.apply(e,f):"UIEvents"===c?e.initUIEvent.apply(e,f):e.initEvent.apply(e,f);u(e,d);return e}function c(a){var b;document.createEventObject&&(b=document.createEventObject(),u(b,a));return b}
var e={keydown:1,keyup:1,keypress:1},d={click:1,dblclick:1,mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1},f={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},m={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"]};u(g,e);u(g,d);return function(p,n,h){n=n.replace(/^on/i,"");p=w.g(p);h=u({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[n]){var k=n;h=a(m.KeyEvents,h);var l;if(document.createEvent)try{l=b(k,"KeyEvents",h)}catch(y){try{l=b(k,"Events",h)}catch(C){l=
b(k,"UIEvents",h)}}else h.keyCode=0<h.charCode?h.charCode:h.keyCode,l=c(h);h=l}else if(d[n])l=n,h=a(m.MouseEvents,h),document.createEvent?(k=b(l,"MouseEvents",h),h.relatedTarget&&!k.relatedTarget&&("mouseout"===l.toLowerCase()?k.toElement=h.relatedTarget:"mouseover"===l.toLowerCase()&&(k.fromElement=h.relatedTarget))):(l=h,0===h.button?k=1:1===h.button?k=4:(k=h.button,k="[object Number]"===Object.prototype.toString.call(k)&&isFinite(k)?h.button:0),l.button=k,k=c(h)),h=k;else if(f[n]){l=n;h.bubbles=
g.hasOwnProperty(l);h=a(m.HTMLEvents,h);if(document.createEvent)try{k=b(l,"HTMLEvents",h)}catch(V){try{k=b(l,"UIEvents",h)}catch(W){k=b(l,"Events",h)}}else k=c(h);h=k}else throw Error(n+" is not support!");h&&(p.dispatchEvent?p.dispatchEvent(h):p.fireEvent&&p.fireEvent("on"+n,h))}})();var x="sendlog";var ga="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 ha(a){return 0>a.indexOf("-")&&0>a.indexOf("_")?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};function z(a,b){for(var c=a.split("."),e=b||window,d;d=c.shift();)if(null!=e[d])e=e[d];else return null;return e}var ia=RT_CONFIG.HOSTMAP;ia||(ia=RT_CONFIG.HOSTMAP={});"object"!==typeof RT_CONFIG||RT_CONFIG.HOST||(RT_CONFIG.HOST=function(a){return RT_CONFIG.HOSTMAP[a]||"http://"+a});function B(a,b){function c(a,d){baidu.lang.isArray(a)?baidu.each(a,function(a,b){c(a,d.concat([b]))}):b(a,d)}c(a,[])}function ja(a){var b=z("bds.ready");"function"===typeof b&&b(function(){a()})}
function ka(a,b){var c={},e={},d=a.replace(/<\/?(?:span|font|em|strong)[^>]*>/g,function(a,b){c[b]=a;return""}),d=d.replace(/&[\w#]{2,};/g,function(a,b){e[b]=a;return"*"});if(b>=baidu.string.getByteLength(d))return a;var d=baidu.string.subByte(d,b),f=[],g=0,m,p=d.length,n=0,h;for(h in e)if(e.hasOwnProperty(h)){h=parseInt(h,10);m=e[h];f.push(d.slice(g,h-n));g=h-n+1;if(g>p)break;f.push(m);n+=m.length-1}f.push(d.slice(g));d=f.join("");f=[];m=g=0;for(var k in c)c.hasOwnProperty(k)&&(k=parseInt(k,10),
p=c[k],k-=m,m+=p.length,f.push(d.slice(g,k)),g=k,f.push(p));f.push(d.slice(g));f.push("...");d=f.join("");for(f=/<(span|font|em|strong)[^>]*><\/\1>/g;f.test(d);)f.lastIndex=0,d=d.replace(f,""),f.lastIndex=0;return d}var D={},la={};function ma(a,b){na();var c=setTimeout(a,b);D[c]=!0;return c}function E(a){a&&(delete D[a],clearTimeout(a))}var oa=!1;
function na(){oa||(G(function(){for(var a in D)D.hasOwnProperty(a)&&E(parseInt(a,10));for(a in la)if(la.hasOwnProperty(a)){var b=parseInt(a,10);b&&(delete la[b],clearInterval(b))}}),oa=!0)}function G(a){var b=z("bds.comm.registerUnloadHandler");"function"===typeof b?b(a):ja(function(){G(a)})}function H(a,b){return"function"===typeof RT_CONFIG.CLASSNAME?RT_CONFIG.CLASSNAME(a,b):a};function I(a){this.m=a||document;pa(this)}I.prototype.getDocument=function(){return this.m};I.prototype.g=function(a){return"[object String]"===Object.prototype.toString.call(a)?this.m.getElementById(a):a&&a.nodeName&&(1===a.nodeType||9===a.nodeType)?a:null};I.prototype.on=function(a,b,c){"string"===typeof a&&(a=this.m.getElementById(a));a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(b){c.call(a,b)});return a};
I.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")};I.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)};
I.prototype.show=function(a){a=this.g(a);a.style.display="";"none"===this.getComputedStyle(a,"display")&&(a.style.display="block");return a};q=I.prototype;q.hide=function(a){a=this.g(a);a.style.display="none";return a};q.addClass=function(a,b){a=this.g(a);for(var c=b.split(/\s+/),e=a.className,d=" "+e+" ",f=0,g=c.length;f<g;f++)0>d.indexOf(" "+c[f]+" ")&&(e+=(e?" ":"")+c[f]);a.className=e;return a};
q.removeClass=function(a,b){a=this.g(a);for(var c=b.split(/\s+/),e=a.className,d=" "+e+" ",f=0,g=c.length;f<g;f++)0<=d.indexOf(" "+c[f]+" ")&&(e=e.replace(c[f],""));e=e.replace(/\s+/g," ");a.className=e;return a};q.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):""};
q.getStyle=function(a,b){a=this.g(a);b=ha(b);var c=(a.currentStyle?a.currentStyle[b]:"")||this.getComputedStyle(a,b);if(!c||"auto"===c){var e=J[b];e&&(c=e.get?e.get(a,b,c):this.getStyle(a,e))}K&&(c=qa(b,c,"get"));return c};var J=J||{};J.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;J["float"]=t?"styleFloat":"cssFloat";
J.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 K=K||[];function qa(a,b,c){for(var e=0,d;d=K[e];e++)(d=d[c])&&(b=d(a,b));return b}
K[K.length]={get:function(a,b){if(/color/i.test(a)&&-1!==b.indexOf("rgb(")){var c=b.split(",");b="#";for(var e=0,d;d=c[e];e++)d=parseInt(d.replace(/[^\d]/gi,""),10).toString(16),b+=1===d.length?"0"+d:d;b=b.toUpperCase()}return b}};K[K.length]={set:function(a,b){b.constructor!==Number||/zIndex|fontWeight|opacity|zoom|lineHeight/i.test(a)||(b+="px");return b}};I.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 L={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};8>t?(L["for"]="htmlFor",L["class"]="className"):(L.htmlFor="for",L.className="class");q=I.prototype;q.getAttr=function(a,b){a=this.g(a);if("style"===b)return a.style.cssText;b=L[b]||b;return a.getAttribute(b)};q.setStyle=function(a,b,c){a=this.g(a);b=ha(b);c=qa(b,c,"set");var e=J[b];e&&e.set?e.set(a,c):a.style[e||b]=c;return a};
q.insertBefore=function(a,b){var c;a=this.g(a);b=this.g(b);(c=b.parentNode)&&c.insertBefore(a,b);return a};
q.q=function(a,b,c){var e=[],d,f,g;if(!(a=ga(a)))return e;if("undefined"===typeof b)b=this.m;else if(b=this.g(b),!b)return e;c&&(c=ga(c).toUpperCase());if(b.getElementsByClassName)for(f=b.getElementsByClassName(a),b=f.length,d=0;d<b;d++)g=f[d],c&&g.tagName!==c||(e[e.length]=g);else for(a=RegExp("(^|\\s)"+String(a).replace(RegExp("([.*+?^=!:${}()|[\\]/\\\\-])","g"),"\\$1")+"(\\s|$)"),f=c?b.getElementsByTagName(c):b.all||b.getElementsByTagName("*"),b=f.length,d=0;d<b;d++)g=f[d],a.test(g.className)&&
(e[e.length]=g);return e};q.hasAttr=function(a,b){a=this.g(a);var c=a.attributes.getNamedItem(b);return!(!c||!c.specified)};
function pa(a){a.S||(a.S=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 d=a.m,e=window;if(t&&e===top)(function(){if(!b.isReady){try{d.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}b()}})();else if(d.addEventListener){var g=ca?function(){if(!b.isReady){for(var a=0;a<d.styleSheets.length;a++)if(d.styleSheets[a].disabled){setTimeout(arguments.callee,0);return}b()}}:b;d.addEventListener("DOMContentLoaded",
g,!1);G(function(){d.removeEventListener("DOMContentLoaded",g,!1)})}else if(aa){var m;(function(){if(!b.isReady)if("loaded"!==d.readyState&&"complete"!==d.readyState)setTimeout(arguments.callee,0);else{if(void 0===m){m=0;var a=d.getElementsByTagName("style"),c=d.getElementsByTagName("link");a&&(m+=a.length);if(c)for(var a=0,e=c.length;a<e;a++)"stylesheet"===c[a].getAttribute("rel")&&m++}d.styleSheets.length!==m?setTimeout(arguments.callee,0):b()}})()}e.attachEvent?(e.attachEvent("onload",b),G(function(){e.detachEvent("onload",
b)})):e.addEventListener&&(e.addEventListener("load",b,!1),G(function(){e.removeEventListener("load",b,!1)}))}})();return function(a){b.isReady?a():e[e.length]=a}}())}var w=new I;function M(a){this.K=a}M.prototype.start=function(a,b){!b&&this.u&&this.u.dispose&&this.u.dispose();return this.u=this.K(!!a)};M.prototype.set=function(a,b){"AD_CONFIG"===a?AD_CONFIG=b:"LINKS"===a?LINKS=b:"RT_CONFIG"===a&&(RT_CONFIG=b)};M.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 N(){}N.prototype.attachTo=function(){};function ra(a){RT_CONFIG.__plugins||(RT_CONFIG.__plugins=[]);RT_CONFIG.__plugins.push(a)};function sa(){this.v=""}baidu.inherits(sa,N);ra(new sa);
function ta(a,b,c,e){if(b.encry_url){var d="&actionid="+c;if("string"===typeof e)d+="&attach="+e;else if(e){e.attach=e.attach||0;for(var f in e)e.hasOwnProperty(f)&&null!=e[f]&&(d+="&"+f+"="+e[f])}else d+="&attach=0";d+="&time="+(new Date).getTime();e=b.encry_url+d;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()),d=c.getRecordedTime()))){f=0;for(var g=d.length;f<g;f++){var m=d[f];b+="&"+m.type+
"="+m.time}b+="&render="+encodeURIComponent(c.getRenderUrl());b+="&union_id="+c.getLoaderConfig("unionId","");b=b+"&actionid=8"+a.v;baidu.sio.log(b)}e+=a.v;baidu.sio.log(e)}}
sa.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.v="&exp_list="+(c.exp_list||"")+"&render_id="+e.getRenderId(),e.addListener("clickimg",function(){ta(b,c,12)}));ta(b,c,4)});a.addListener(x,function(c,e){c.actionid&&(e={attach:c.attach,stage:c.stage},c=c.actionid);ta(b,a.adConfig,c,e)})};function ua(){}ua.prototype.s=baidu.abstractMethod;ua.prototype.A=baidu.abstractMethod;function O(a){this.L=baidu.object.extend({block_class:H("ad-layout-block")},a||{})}baidu.inherits(O,ua);O.prototype.s=function(a){var b=va(this,a),c={};B(a,function(a,b){var f=a.getMainHtml();c["block-"+b.join("-")+"-id"]=a.getId();c["block_"+b.join("_")]=f});return Mustache.render(b,c)};O.prototype.A=function(a,b){B(a,function(a,e){for(var d=b,f=0;d&&f<e.length;f++)d=d.children[e[f]];if(!d)throw Error("Invalid pre-rendered html formated.");a.t=d.id})};
function va(a,b){var c=[];baidu.each(b,function(b,d){c.push(wa(a,b,[d]))});return c.join("\n")}function wa(a,b,c){var e=">";baidu.lang.isArray(b)||(e=' id="{{=<% %>=}}{{block-<% indexes %>-id}}">');var d=[Mustache.render('<div class="{{block_class}} {{block_class}}-{{indexes}}"'+e,{block_class:H(a.L.block_class),indexes:c.join("-")})];baidu.lang.isArray(b)?baidu.each(b,function(b,e){d.push(wa(a,b,c.concat([e])))}):d.push("{{{block_"+c.join("_")+"}}}");d.push("</div>");return d.join("\n")};function xa(){this.F={}}xa.prototype.get=function(a){return this.F[a]||""};
xa.prototype.parse=function(a){function b(a){return p.test(a)?b(a.replace(p,function(a,b){return Q[b]||V[b]||""})):a}function c(a){a&&F&&W.push(a)}function e(){F&&(F in Q?alert("Template: "+F+" is exist"):Q[F]=W.join("\n"));F=null}a=a.split(/\r?\n/);for(var d=a.length,f=0,g=/\x3c!--\s*target:\s*([a-zA-Z0-9_]+)\s*--\x3e/,m=/\x3c!--\s*\/target\s*--\x3e/,p=/\x3c!--\s*import:\s*([a-zA-Z0-9_\/]+)\s*--\x3e/,n=/\x3c!--\s*scope:\s*([a-zA-Z0-9_]+)\s*--\x3e/,h=/\x3c!--\/scope--\x3e/,k,l,y,C,V=this.F,W=[],F,
Q={};f<d;f++)l=a[f],0>=l.length||(g.lastIndex=-1,n.lastIndex=-1,(y=n.exec(l))?C=y[1]:(y=h.exec(l))?C=void 0:(y=g.exec(l))?(y=C?C+"/"+y[1]:y[1],l=l.split(g),c(l[0]),e(),W=[],F=y,c(l[2])):m.test(l)?(l=l.split(m),c(l[0]),e()):c(l));e();for(k in Q)V[k]&&alert("Template: "+k+" already exists!"),V[k]=b(Q[k])};var ya=new xa;function za(){};function P(){this.b={}}baidu.inherits(P,za);P.prototype.addListener=function(a,b){this.b[a]||(this.b[a]=[]);this.b[a].push(b)};P.prototype.dispose=function(){this.b={}};P.prototype.trigger=function(a,b){if(!this.b[a])return!0;var c,e=Array.prototype.slice.call(arguments,1),d=!0;for(c=0;c<this.b[a].length;c++){var f=this.b[a][c];f&&!1===f.apply(this,e)&&(d=!1)}return d};var Aa;function R(a){this.b={};this.t="w-"+Math.floor(2147483648*Math.random()).toString(36);this.M=this.J=null;this.setData(a)}baidu.inherits(R,P);Aa=function(a,b){return Mustache.render(a,b)};R.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),d=!0;for(c-=1;0<=c;c--){var f=this.b[a][c];if(f&&!1===f.apply(this,e)){d=!1;break}}return d};
R.prototype.getMainHtml=function(){if(!this.w||!this.a)throw Error("Widget's view and data can not be undefined.");var a=this,b=ya.get(this.w),c=baidu.extend(this.a,{_id:function(){return function(b){return a.getId(b)}},_mixup:function(){return function(a){return H(a)}}});return Aa(b,c)};q=R.prototype;q.render=function(){var a=this.getRoot();if(a){var b=this.getMainHtml();a.innerHTML=b}};q.init=baidu.fn.blank;q.k=baidu.fn.blank;q.p=baidu.fn.blank;
q.getData=function(a,b){if(a){var c=z(a,this.a);return null==c&&"undefined"!==typeof b?b:c}return this.a};q.setData=function(a){a&&(this.a=baidu.object.extend(this.W||{},a));this.r()};q.r=function(){};R.prototype.getRoot=function(){return this.getDocument().getElementById(this.getId())};
R.prototype.getDocument=function(){var a;if(!(a=this.J)){if(a=this.M){for(var b={},c=["getElementById"],e=["createElement","createDocumentFragment","createTextNode","createAttribute"],d=0;d<c.length;d++){var f=c[d];b[f]=baidu.fn.bind(a[f],a)}for(d=0;d<e.length;d++)f=e[d],b[f]=baidu.fn.bind(document[f],document);a=b}else a=null;a=a||document}return a};R.prototype.getId=function(a){return a?this.t+"-"+a:this.t};R.prototype.show=function(){var a=this.getRoot();a&&baidu.show(a)};
R.prototype.hide=function(){var a=this.getRoot();a&&baidu.hide(a)};R.prototype.sendLog=function(a,b){baidu.lang.isString(a)?this.trigger(x,{action:a,xp:b||a}):this.trigger(x,a)};R.prototype.dispose=function(){var a=this.getRoot();a&&(a.innerHTML="",a.parentNode.removeChild(a));R.superClass.dispose.call(this)};function S(a,b){R.call(this,a);this.j=new O({block_class:"ad-block"});this.d=[];this.O=b||""}baidu.inherits(S,R);S.prototype.setWidgets=function(a){this.d=[].slice.call(arguments)};S.prototype.getWidget=function(a){var b=Array.prototype.slice.call(arguments);if(!b.length)return null;var c=this.d[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};S.prototype.getMainHtml=function(){this.a._content=this.j.s(this.d);return S.superClass.getMainHtml.call(this)};
S.prototype.forEach=function(a){B(this.d,a)};function Ba(a,b){b.addListener(x,function(b){b.action=(a.O||"")+b.action;a.sendLog(b)})}S.prototype.init=function(){this.forEach(function(a){a.init()})};S.prototype.k=function(){this.forEach(function(a){a.k()})};S.prototype.p=function(){this.forEach(function(a){a.p()});var a=this;this.forEach(function(b){Ba(a,b)})};S.prototype.dispose=function(){this.forEach(function(a){a.dispose()})};function Ca(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 Da(a,b){var c=a.getRoot();c&&(Ea(c,a,b),Fa(c,a),Ga(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=Ha(c,d.body))&&a.trigger(x,{actionid:2,attach:0+b()})});Fa(d.body,a)});else{var d=c.contentDocument||c.contentWindow.document;Ea(d.body,a,b);Fa(d.body,a)}}))}
function Ea(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(d){for(var e=baidu.event.getTarget(d);baidu.dom.contains(a,e)&&!baidu.getAttr(e,"data-log");)e=e.parentNode;baidu.dom.contains(a,e)&&(d=baidu.getAttr(e,"data-log"))&&(e=baidu.getAttr(e,"data-attach"),("1"!==e+""||b.I)&&b.trigger(x,{actionid:parseInt(d,10),attach:(e||0)+c()}))});else e=function(b){b=baidu.event.getTarget(b);if((b=Ha(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 Ha(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 Fa(a,b){if(!("1.0.6">b.getData("api").version))baidu.on(a,"click",function(c){c=baidu.event.getTarget(c);(c=Ha(c,a))||b.trigger(x,{actionid:11})})}
function Ga(a){var b=a.getData("api"),c=0.01>Math.random();if(!("1.0.6">b.version)&&c){var e=0,d,f,g=function(){d&&f&&(e+=f-d);f=d=null};b.addListener("mousemove",function(){d||(d=new Date);f=new Date});b.addListener("mouseout",g);var m=0,p,n,h=function(){p&&(n=new Date,m+=n-p);n=p=null};b.inView()&&(p=new Date);b.addListener("intoview",function(){p||(p=new Date)});b.addListener("outview",h);var k=function(){g();h();a.trigger(x,{actionid:13,attach:e+"_"+m})};b.addListener("release",function(){k();
var a=window,b="unload";"string"===typeof a&&(a=document.getElementById(a));for(var b=b.replace(/^on/i,"").toLowerCase(),c=v.length,e=!k,d,f;c--;)d=v[c],d[1]!==b||d[0]!==a||!e&&d[2]!==k||(f=d[4],d=d[3],a.removeEventListener?a.removeEventListener(f,d,!1):a.detachEvent&&a.detachEvent("on"+f,d),v.splice(c,1))});fa(window,"unload",k)}};function U(){}baidu.inherits(U,ua);U.prototype.s=function(a){var b=[];B(a,function(a){b.push(Ia(a.getMainHtml(),a.getId()))});return b.join("")};function Ia(a,b){return a.replace(/(<[a-z][^>]*?)(?:(id=['"][_\-a-z0-9]+['"])([^>]*?))?(>)/i,function(a,e,d,f,g){return e+(d?"":" ")+'id="'+b+'"'+(f||"")+g})}U.prototype.A=function(a,b){var c=0;B(a,function(a){var d=b.children[c];if(!d)throw Error("Invalid pre-rendered html formated.");c++;a.t=d.id})};function X(a){this.o=null;this.C=0;this.N=" white none none-white none-white-2 v2 configurable".split(" ");R.call(this,a);this.w="AD_ad_widget_imageplus_sticker_box";this.j=new U;this.h=this.l=this.I=!1;this.d=[];this.n=null}baidu.inherits(X,S);X.prototype.r=function(){if(this.a){Ca(this.a);var a=this.N[this.getData("box.theme",0)];a&&(this.a.box._theme_class=H("ad-widget-imageplus-sticker-theme-"+a))}};
X.prototype.k=function(){function a(){d.h||(k&&(E(k),k=null,d.l=!1),l&&(E(l),l=null,d.l=!1),d.l||(d.show(),d.o=new Date,d.trigger(x,1)))}function b(){d.h||(d.hide(),d.o&&(d.C++,d.trigger(x,{actionid:3,attach:(new Date-d.o)/1E3})))}function c(){0<C?l=ma(b,C):b()}function e(a){d.h||k||l||(d.show(),k=ma(function(){d.hide();k=null},a?h:n))}X.superClass.k.call(this);var d=this,f=d.getRoot();d.getData("box.is_cut_show")&&(baidu.dom.addClass(f,H("ad-widget-imageplus-sticker-cut")),baidu.dom.setStyle(f,"height",
d.getData("box.cut_height",75)));var g=d.getData("api");Ja(d);d.forEach(function(a){a.addListener("resize",function(){Ka(d,g.getImgRect().height)});a.addListener("load",function(){d.trigger("load")})});var m;if(f=d.getData("box.hide_close_btn",!1))m=baidu.g(d.getId("close")),baidu.hide(m);f&&(f=function(){baidu.show(m)},g.addListener("mouseover",f),g.addListener("mousemove",f),g.addListener("mouseout",function(){baidu.hide(m)}));d.h=g.getShareData("[impl.sticker]forceHiding",!0)||!1;g.addListener("resize",
function(a,b){d.l&&Ka(d,b.height)});g.addListener("onclose",function(){d.h=!0;d.trigger(x,5)});var p=d.getData("box.show_thumbnail",!1);d.addListener("onclose",function(a){d.h=!0;if(p){var b=baidu.g(d.getId("thumbnail"));b&&baidu.show(b)}g.setShareData("[impl.sticker]forceHiding",!0);d.trigger(x,{actionid:3,attach:(new Date-d.o)/1E3});d.trigger(x,{actionid:5,attach:a})});var f=d.getData("box.always_show",!1),n=d.getData("box.first_show_time",5E3),h=d.getData("box.show_in_view",0),k,l,y=d.getData("box.title_show",
!1),C=d.getData("box.hide_delay",0);f?setTimeout(a,0):y?(La(d),g.addListener("mouseout",c),f=w.g(d.getId("wrapper")),fa(f,"mouseover",function(){a()})):(g.addListener("mouseover",a),g.addListener("mousemove",a),g.addListener("mouseout",c),h&&g.addListener("intoview",e),e());g.rendDone({showTip:d.getData("box.imageplus_button",!0),useV2Tip:d.getData("box.use_v2_tip",!1)})};
X.prototype.p=function(){var a=this;X.superClass.p.call(a);Da(a,function(){return"|"+(new Date-a.o)/1E3+"|"+a.C});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.h=!1;a.trigger(x,1);baidu.event.preventDefault(b);
a.show();(b=baidu.g(a.getId("thumbnail")))&&baidu.hide(b)})};function Ma(a){var b=baidu.g(a.getId("wrapper"));a=a.getRoot();return b||a}
X.prototype.show=function(){if(this.getRoot()){var a=this.getData("api");a&&Ka(this,a.getImgRect().height);var b=this;b.getData("box.hide_close_btn",!1)||(this.n&&E(this.n),this.n=ma(function(){var a=baidu.g(b.getId("close"));a&&baidu.show(a);this.n=null},500));baidu.dom.addClass(Ma(this),H("ad-widget-imageplus-sticker-showing ad-widget-imageplus-sticker-box-showing"));this.l=!0}};
X.prototype.hide=function(a){var b=!0===a;if(a=Ma(this)){var c=this.getData("api"),e=this.getData("box.visual_height",0),d=this.getData("box.cut_height",75);b&&(e=0,baidu.dom.removeClass(a,H("ad-widget-imageplus-sticker-box-showing")));c&&(this.getData("box.is_cut_show")?baidu.setStyle(a,"top",d-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.n&&E(this.n);(b=baidu.g(this.getId("close")))&&
baidu.hide(b);baidu.dom.removeClass(a,H("ad-widget-imageplus-sticker-showing"));this.l=!1}};
function Ka(a,b){var c=a.getRoot(),e=Ma(a);if(a.getData("box.is_cut_show")){var d=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 f=baidu.g(a.getId("body")),f=f.offsetHeight;e.style.cssText="display:block;top:"+(d-f)+"px;height:"+f+"px;"}c&&a.getData("box.is_cut_show")&&(c.style.cssText="display:block;top:"+(b-d)+"px;height:"+d+"px;")}else e&&(e.style.cssText="clip:rect(0px,0px,0px,0px);display:block;height:0;top:"+b+"px;",
f=baidu.g(a.getId("body")),f=f.offsetHeight,e.style.cssText="display:block;top:"+(b-f)+"px;height:"+f+"px;");if(c=baidu.g(a.getId("thumbnail")))c.style.top=b-20+"px"}function Ja(a){var b=baidu.g(a.getId("background"));b&&(a=a.getData("box.box_bg_opacity",0.75),w.opacity(b,a))}
function La(a){var b=a.getData("box.visual_height",0),c=Ma(a),e=a.getData("box.cut_height",75);if(c){var d=a.getData("api");d&&(Ka(a,d.getImgRect().height),baidu.setStyle(c,"top",e-b+"px"))}(a=baidu.g(a.getId("close")))&&baidu.hide(a)};function Na(a){var b=new Image,c="app_log_img_"+Math.floor(2147483648*Math.random()).toString(36);window[c]=b;b.onload=b.onerror=b.onabort=function(){b.onload=b.onerror=b.onabort=null;b=window[c]=null};b.src=a};function Oa(){}baidu.inherits(Oa,N);ra(new Oa);
Oa.prototype.attachTo=function(a){function b(){var b=RT_CONFIG.mcid,d=new Date,f=d.getHours();if(8>f&&0<f||0.25>Math.random()){if(!b){b=a.getId();b=/m(\d+)_canvas/.exec(b);if(!b)return;b=b[1]}f="m"+b+"_BEGIN";if("number"===typeof window[f]){d="&jsLoadTime="+(d-window[f]);b="m"+b+"_END";"number"===typeof window[b]&&window[b]>window[f]&&(d+="&renderTime="+(window[b]-window[f]));RT_CONFIG.timestamp&&(d+="&tid="+RT_CONFIG.timestamp);b=c;if("https:"===document.location.protocol)if(f=/^(https?:\/\/([^\/]+))/.exec(b),
!f||/^https:/.test(b))c=b;else{var g=RT_CONFIG.HOST(f[2]);c=b.replace(f[1],g)}else c=b;Na(c+"&attach="+encodeURIComponent(d))}}}var c=RT_CONFIG.RCV2_URL;c&&0===c.indexOf("http://bzclk.baidu.com/")&&a.addListener("aftermaterialshow",b)};function Pa(){}baidu.inherits(Pa,N);ra(new Pa);Pa.prototype.attachTo=function(a){a.addListener("aftermaterialshow",function(){var b=z("global.background",AD_CONFIG);if(b){var c=baidu.q("ad-material-inside",a.getRoot());c&&c.length?c[0].style.backgroundImage="url("+b+")":a.getRoot().style.backgroundImage="url("+b+")"}})};var Qa={getContext:function(a){return z("ECOM_MA_LEGO.materials."+a)},aa:function(a){a=a||Qa.getId();return(a=Qa.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},X: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},ba: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 Y(a){S.call(this,{});this.j=new O({block_class:H("ad-block")});this.f=a||Qa.getId();this.D="s-"+this.f;this.c={};if("undefined"!==typeof RT_CONFIG&&(a=RT_CONFIG.__plugins)&&a.length)for(var b=0;b<a.length;b++)a[b].attachTo(this);this.H=(this.H||[]).concat(["newadcanvas"])}baidu.inherits(Y,S);Y.prototype.getRoot=function(){if(!baidu.g(this.f)){var a=RT_CONFIG.originId;a&&baidu.g(a)?baidu.g(a).id=this.f:document.write('<div id="'+this.f+'"></div>')}return baidu.g(this.f)};
Y.prototype.getId=function(){return this.f};function Ra(a){if("undefined"!==typeof AD_STYLE_CONTENT){var b=AD_STYLE_CONTENT.replace(/#canvas/g,"#"+a.f),c=baidu.g(a.D);if(c)c.styleSheet?c.styleSheet.cssText=b:c.appendChild(document.createTextNode(b));else{c=a.D;a=a.getRoot();var e=w.m,d=a.parentNode;if(d){var f=e.createElement("style");f.type="text/css";f.media="screen";c&&(f.id=c);d.insertBefore(f,a);f.styleSheet?f.styleSheet.cssText=b:f.appendChild(e.createTextNode(b))}}}}
Y.prototype.getMainHtml=function(){var a=this.j.s(this.d),b="";"function"!==typeof document.getElementById&&(b=' data-time="'+(new Date-0)+'"');return'<div class="'+H("layout")+'"'+b+">"+a+"</div>"};Y.prototype.beforeShow=function(){try{"string"===typeof AD_STYLE_CONTENT&&(AD_STYLE_CONTENT=H(AD_STYLE_CONTENT,"css").replace(/([\('"])\/\/bs\.baidu\.com/g,"$1"+(RT_CONFIG.HOSTMAP["bcscdn.baidu.com"]||"http://bcscdn.baidu.com"))),this.trigger("beforematerialshow")}catch(a){}};
Y.prototype.init=function(){var a=this;this.forEach(function(b){baidu.each(a.H,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.j.A(this.d,b.children[0])}catch(c){b.innerHTML=this.getMainHtml()}else b.innerHTML=this.getMainHtml();b.setAttribute("data-rendered","true")}Y.superClass.init.call(this)};
Y.prototype.show=function(){this.beforeShow();Ra(this);this.init();this.k();this.p();baidu.show(this.getId());try{this.trigger("aftermaterialshow")}catch(a){}var b=this;G(function(){b.dispose()})};Y.prototype.trigger=function(a,b){var c=[].slice.call(arguments,0);this.c=this.c||{};this.c[a]||(this.c[a]=[]);this.c[a].push(c.slice(1));return Y.superClass.trigger.apply(this,c)};
Y.prototype.addListener=function(a,b,c){Y.superClass.addListener.call(this,a,b);if(c)for(this.c=this.c||{},a=this.c[a]||[],c=0;c<a.length;c++)b.apply(this,a[c])};Y.prototype.dispose=function(){Y.superClass.dispose.call(this);var a=baidu.g(this.getId());a&&(a.innerHTML="");this.c=null};function Sa(a){Y.call(this,a);this.j=new U}baidu.inherits(Sa,Y);Sa.prototype.getMainHtml=function(){return this.j.s(this.d)};function Ta(a){R.call(this,a)}baidu.inherits(Ta,R);Ta.prototype.r=function(){if(this.a){Ca(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"}};Ta.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};var Ua;Ua=function(a,b,c){var e,d,f=a.length;if("function"===typeof b)for(d=0;d<f&&(e=a[d],e=b.call(c||a,e,d),!1!==e);d++);};function Z(a){R.call(this,a);this.w="AD_ad_widget_imageplus_sticker_pa_links_new"}baidu.inherits(Z,Ta);Z.prototype.r=function(){Z.superClass.r.apply(this,arguments);if(this.a){var a=[];if(this.a.esturl)Ua(this.a.esturl,function(b,e){a[e]={title:ka(b.sub_tit,12),url:b.sub_url}});else if(this.a.sturl){var b=this.getData("real_url");Ua(this.a.sturl,function(c,e){a[e]={title:ka(c,12),url:b}})}this.a._urls=a}};
Z.prototype.k=function(){Z.superClass.k.call(this);var a=this,b=this.getData("api");if(!this.a.sturl&&b){var c=b.getImgRect();Va(this,c.width);b.addListener("resize",function(b,c){Va(a,c.width)})}Wa(a)};function Va(a,b){var c=parseInt((b-169)/13*4,10)+4,c=ka(a.getData("desc",""),c);a.g(a.getId("desc")).innerHTML=c}
function Wa(a){function b(){0===Math.floor(c/4)%5&&(e.style.cssText=c%2?"top:20px":"top:16px");c++}var c=0,e=a.g(a.getId("lookbtnshake")),d=setInterval(b,100);e.onmouseover=function(){d=clearInterval(d);e.style.cssText="top:20px"};e.onmouseout=function(){d=setInterval(b,100)}};(function(a){ya.parse(H(AD_TEMPLATE_CONTENT,"template"));try{window.__ignore=document.getElementById("whatever")}catch(b){}"function"===typeof ECMA_define?ECMA_define(function(){return new M(a)}):a()})(function(a,b){var c=b||{};return function(){var b,d,f=AD_CONFIG;c.before&&c.before(f);b=new Sa(f.id);b.adConfig=f;d=new X(f);d.setWidgets([new a(f)]);b.setWidgets([d]);b.show();c.after&&c.after(f,d);return b}}(Z));

})(/** AD_CONFIG */{}, /** LINKS */[], /** RT_CONFIG */{});
//Tue Apr 21 2015 11:54:12 GMT+0800 (CST)