(function(AD_CONFIG, LINKS, RT_CONFIG){
/*! Copyright 2014 Baidu Inc. All Rights Reserved. */
var AD_CONFIG = {
    box: {
        third_party_content: true,
        always_show: true,
        theme: 4,
        hide_close_btn: true,
        hide_delay: 500
    }
};;
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\" id=\"{{#_id}}wrapper{{/_id}}\">{{/box.is_cut_show}}\n<div class=\"ad-widget-imageplus-sticker-bg\" id=\"{{#_id}}background{{/_id}}\"></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_html_2 -->\n<div class=\"ad-widget-imageplus ad-widget-imageplus-sticker-html_2\">\n<div class=\"ad-widget-imageplus-inner\">\n<iframe src=\"about:blank\" frameborder=\"0\" scrolling=\"no\" id=\"{{#_id}}iframe{{/_id}}\" allowTransparency=\"true\" vspace=\"0\" hspace=\"0\"></iframe>\n</div>\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}.ad-widget-imageplus-sticker-html_2{font:12px/1.5 arial,sans-serif;text-align:left;position:relative;margin:0;padding:0;width:100%;height:101px;overflow:hidden;border:0;background-color:transparent!important}.ad-widget-imageplus-sticker-html_2 .ad-widget-imageplus-inner{position:relative;margin:25px 0 0 0;padding:0;width:100%;height:76px;overflow:hidden}.ad-widget-imageplus-sticker-html_2 iframe{float:none;display:block;position:relative;top:52px;left:0;bottom:auto;right:auto;margin:0;padding:0;width:100%;overflow:hidden;height:101px!important;border:0;vertical-align:baseline;-webkit-transition:top .5s;-moz-transition:top .5s;-ms-transition:top .5s;-o-transition:top .5s;transition:top .5s}\n.ad-widget-imageplus-sticker-html_2 iframe.ad-widget-imageplust-sticker-html_2-hover{top:-25px}";;
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.browser=baidu.browser||{};baidu.browser.firefox=/firefox\/(\d+\.\d+)/i.test(navigator.userAgent)?+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.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=baidu.string||{};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.lang.isFunction=function(a){return"[object Function]"==Object.prototype.toString.call(a)};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 m,p=p||{};p.global=this;p.S=!0;p.U="en";p.T=!0;p.R=function(a){return void 0!==a};p.P=function(a,b,c){a=a.split(".");c=c||p.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)!a.length&&p.R(b)?c[e]=b:c=c[e]?c[e]:c[e]={}};p.Y=function(a,b,c){p.P(a,b,c)};p.X=function(a,b,c){a[b]=c};p.ca=function(){return!1};p.da=function(){};p.ba=function(){};var q=[];function r(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);q[q.length]=[a,b,c,e,d]}
function s(a,b,c){"string"===typeof a&&(a=document.getElementById(a));b=b.replace(/^on/i,"").toLowerCase();for(var e=q.length,d=!c,f,g;e--;)f=q[e],f[1]!==b||f[0]!==a||!d&&f[2]!==c||(g=f[4],f=f[3],a.removeEventListener?a.removeEventListener(g,f,!1):a.detachEvent&&a.detachEvent("on"+g,f),q.splice(e,1))};var u="sendlog";"object"!==typeof RT_CONFIG||RT_CONFIG.HOST||(RT_CONFIG.HOST=function(a){return"http://"+a});function x(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}function y(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 aa(a){var b=x("bds.ready");"function"===typeof b&&b(function(){a()})}var z={},B={};function D(a,b){ba();var c=setTimeout(a,b);z[c]=!0;return c}
function E(a){a&&(delete z[a],clearTimeout(a))}var ca=!1;function ba(){ca||(F(function(){for(var a in z)z.hasOwnProperty(a)&&E(parseInt(a,10));for(a in B)if(B.hasOwnProperty(a)){var b=parseInt(a,10);b&&(delete B[b],clearInterval(b))}}),ca=!0)}function F(a){var b=x("bds.comm.registerUnloadHandler");"function"===typeof b?b(a):aa(function(){F(a)})};var G;if(G=/msie (\d+\.\d)/i.exec(navigator.userAgent))var da=document.documentMode||+G[1];G=/firefox\/(\d+\.\d)/i.exec(navigator.userAgent);function H(a){this.m=a||document}H.prototype.getDocument=function(){return this.m};H.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};H.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};
H.prototype.opacity=function(a,b){a=this.g(a);var c=baidu.browser.ie&&9>baidu.browser.ie;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")};
function ga(a,b,c){try{var e=b.contentWindow;c(e,e.document,!1)}catch(d){var f=function(){var a=b.contentWindow;c(a,a.document,!0);s(b,"onload",f)};r(b,"onload",f);b.src='javascript:void((function () {document.open("text/html", "replace");document.domain = "'+a.m.domain+'";document.close();})())'}}
function ha(a,b,c){var e=I;ga(e,a,function(d,f,g){f.open("text/html","replace");g&&(b=""+b+'<script>document.domain = "'+e.m.domain+'";\x3c/script>');baidu.ie&&10>baidu.ie?f.write(b+"<script>var timer = setInterval(function () {var arr = document.getElementsByTagName('script');var links = document.getElementsByTagName('link');var allLoaded = true;for (var i = 0; i < links.length; i++) {if (!/loaded|complete/.test(links[i].readyState)) {allLoaded = false;}}for(var i = 0; i < arr.length; i++) {if (!/loaded|complete/.test(arr[i].readyState)) {allLoaded = false;}}if (allLoaded) {clearInterval(timer);document.close();}},200);\x3c/script>"):(f.write(b),
f.close());if(c){var h=function(){k&&s(a,"loaded",h);c(d,f)},k=!1;"complete"===f.readyState?h():(k=!0,r(a,"load",h))}})}H.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)};H.prototype.show=function(a){a=this.g(a);a.style.display="";return a};m=H.prototype;m.hide=function(a){a=this.g(a);a.style.display="none";return a};
m.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};m.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};
m.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):""};m.getStyle=function(a,b){a=this.g(a);b=baidu.string.toCamelCase(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))}if(L)for(var e=b,d=0,f;f=L[d];d++)(f=f.get)&&(c=f(e,c));return c};var J=J||{};
J.display=da&&8>da?{set:function(a,b){var c=a.style;"inline-block"===b?(c.display="inline",c.zoom=1):c.display=b}}:baidu.browser.firefox&&3>baidu.browser.firefox?{set:function(a,b){a.style.display="inline-block"===b?"-moz-inline-box":b}}:null;J["float"]=baidu.browser.ie?"styleFloat":"cssFloat";
J.opacity=baidu.browser.ie?{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 L=L||[];
L[L.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}};L[L.length]={set:function(a,b){b.constructor!==Number||/zIndex|fontWeight|opacity|zoom|lineHeight/i.test(a)||(b+="px");return b}};H.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 I=new H;function M(a){this.J=a}M.prototype.start=function(a,b){!b&&this.u&&this.u.dispose&&this.u.dispose();return this.u=this.J(!!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 ia(a){RT_CONFIG.__plugins||(RT_CONFIG.__plugins=[]);RT_CONFIG.__plugins.push(a)};function ja(){this.v="";this.K={1:!0,2:!0,5:!0,11:!0,12:!0,13:!0}}baidu.inherits(ja,N);ia(new ja);
function ka(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),d=b.api,b=b.encry_url,d.version&&!("1.0.1">d.version)&&(d.recordTime("showed",(new Date).getTime()),f=d.getRecordedTime()))){for(var g=0,h=f.length;g<h;g++){var k=f[g];b+="&"+k.type+
"="+k.time}b+="&render="+encodeURIComponent(d.getRenderUrl());b+="&union_id="+d.getLoaderConfig("unionId","");b=b+"&actionid=8"+a.v;baidu.sio.log(b)}a.K[c+""]&&(e+=a.v);baidu.sio.log(e)}}
ja.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(){ka(b,c,12)}));ka(b,c,4)});a.addListener(u,function(c,e){c.actionid&&(e={attach:c.attach,stage:c.stage},c=c.actionid);ka(b,a.adConfig,c,e)})};function O(){}O.prototype.s=baidu.abstractMethod;O.prototype.A=baidu.abstractMethod;function P(a){this.L=baidu.object.extend({block_class:"ad-layout-block"},a||{})}baidu.inherits(P,O);P.prototype.s=function(a){var b=la(this,a),c={};y(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)};P.prototype.A=function(a,b){y(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 la(a,b){var c=[];baidu.each(b,function(b,d){c.push(ma(a,b,[d]))});return c.join("\n")}function ma(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:a.L.block_class,indexes:c.join("-")})];baidu.lang.isArray(b)?baidu.each(b,function(b,e){d.push(ma(a,b,c.concat([e])))}):d.push("{{{block_"+c.join("_")+"}}}");d.push("</div>");return d.join("\n")};function na(){this.D={}}na.prototype.get=function(a){return this.D[a]||""};
na.prototype.parse=function(a){function b(a){return k.test(a)?b(a.replace(k,function(a,b){return K[b]||ea[b]||""})):a}function c(a){a&&C&&fa.push(a)}function e(){C&&(C in K?alert("Template: "+C+" is exist"):K[C]=fa.join("\n"));C=null}a=a.split(/\r?\n/);for(var d=a.length,f=0,g=/\x3c!--\s*target:\s*([a-zA-Z0-9_]+)\s*--\x3e/,h=/\x3c!--\s*\/target\s*--\x3e/,k=/\x3c!--\s*import:\s*([a-zA-Z0-9_\/]+)\s*--\x3e/,t=/\x3c!--\s*scope:\s*([a-zA-Z0-9_]+)\s*--\x3e/,v=/\x3c!--\/scope--\x3e/,n,l,w,R,ea=this.D,fa=
[],C,K={};f<d;f++)l=a[f],0>=l.length||(g.lastIndex=-1,t.lastIndex=-1,(w=t.exec(l))?R=w[1]:(w=v.exec(l))?R=void 0:(w=g.exec(l))?(w=R?R+"/"+w[1]:w[1],l=l.split(g),c(l[0]),e(),fa=[],C=w,c(l[2])):h.test(l)?(l=l.split(h),c(l[0]),e()):c(l));e();for(n in K)ea[n]&&alert("Template: "+n+" already exists!"),ea[n]=b(K[n])};var oa=new na;function pa(){};function Q(){this.b={}}baidu.inherits(Q,pa);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),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 qa;function S(a){this.b={};this.t="ad-w-"+Math.floor(2147483648*Math.random()).toString(36);this.M=this.I=null;this.setData(a)}baidu.inherits(S,Q);qa=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),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};
S.prototype.getMainHtml=function(){if(!this.w||!this.a)throw Error("Widget's view and data can not be undefined.");var a=this,b=oa.get(this.w),c=baidu.extend(this.a,{_id:function(){return function(b){return a.getId(b)}}});return qa(b,c)};m=S.prototype;m.render=function(){var a=this.getRoot();if(a){var b=this.getMainHtml();a.innerHTML=b}};m.init=baidu.fn.blank;m.j=baidu.fn.blank;m.p=baidu.fn.blank;m.getData=function(a,b){if(a){var c=x(a,this.a);return null==c&&"undefined"!==typeof b?b:c}return this.a};
m.setData=function(a){a&&(this.a=baidu.object.extend(this.V||{},a));this.r()};m.r=function(){};S.prototype.getRoot=function(){return this.getDocument().getElementById(this.getId())};
S.prototype.getDocument=function(){var a;if(!(a=this.I)){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};S.prototype.getId=function(a){return a?this.t+"-"+a:this.t};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(u,{action:a,xp:b||a}):this.trigger(u,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.h=new P({block_class:"ad-block"});this.d=[];this.O=b||""}baidu.inherits(U,S);U.prototype.setWidgets=function(a){this.d=[].slice.call(arguments)};U.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};U.prototype.getMainHtml=function(){this.a._content=this.h.s(this.d);return U.superClass.getMainHtml.call(this)};
U.prototype.forEach=function(a){y(this.d,a)};function ra(a,b){b.addListener(u,function(b){b.action=(a.O||"")+b.action;a.sendLog(b)})}U.prototype.init=function(){this.forEach(function(a){a.init()})};U.prototype.j=function(){this.forEach(function(a){a.j()})};U.prototype.p=function(){this.forEach(function(a){a.p()});var a=this;this.forEach(function(b){ra(a,b)})};U.prototype.dispose=function(){this.forEach(function(a){a.dispose()})};function sa(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 ta(a,b){var c=a.getRoot();c&&(ua(c,a,b),va(c,a),wa(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=xa(c,d.body))&&a.trigger(u,{actionid:2,attach:0+b()})});va(d.body,a)});else{var d=c.contentDocument||c.contentWindow.document;ua(d.body,a,b);va(d.body,a)}}))}
function ua(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.H)&&b.trigger(u,{actionid:parseInt(d,10),attach:(e||0)+c()}))});else e=function(b){b=baidu.event.getTarget(b);if((b=xa(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 xa(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 va(a,b){if(!("1.0.6">b.getData("api").version))baidu.on(a,"click",function(c){c=baidu.event.getTarget(c);(c=xa(c,a))||b.trigger(u,{actionid:11})})}
function wa(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 h=0,k,t,v=function(){k&&(t=new Date,h+=t-k);t=k=null};b.inView()&&(k=new Date);b.addListener("intoview",function(){k||(k=new Date)});b.addListener("outview",v);var n=function(){g();v();a.trigger(u,{actionid:13,attach:e+"_"+h})};b.addListener("release",function(){n();
s(window,"unload",n)});r(window,"unload",n)}};function V(){}baidu.inherits(V,O);V.prototype.s=function(a){var b=[];y(a,function(a){b.push(ya(a.getMainHtml(),a.getId()))});return b.join("")};function ya(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})}V.prototype.A=function(a,b){var c=0;y(a,function(a){var d=b.children[c];if(!d)throw Error("Invalid pre-rendered html formated.");c++;a.t=d.id})};function W(a){this.o=null;this.B=0;this.N=" white none none-white none-white-2 v2 configurable".split(" ");S.call(this,a);this.w="AD_ad_widget_imageplus_sticker_box";this.h=new V;this.f=this.l=this.H=!1;this.d=[];this.n=null}baidu.inherits(W,U);W.prototype.r=function(){if(this.a){sa(this.a);var a=this.N[this.getData("box.theme",0)];a&&(this.a.box._theme_class="ad-widget-imageplus-sticker-theme-"+a)}};
W.prototype.j=function(){function a(){d.f||(n&&(E(n),n=null,d.l=!1),l&&(E(l),l=null,d.l=!1),d.l||(d.show(),d.o=new Date,d.trigger(u,1)))}function b(){d.f||(d.hide(),d.o&&(d.B++,d.trigger(u,3,(new Date-d.o)/1E3)))}function c(){0<w?l=D(b,w):b()}function e(a){d.f||n||l||(d.show(),n=D(function(){d.hide();n=null},a?v:t))}W.superClass.j.call(this);var d=this,f=d.getRoot();d.getData("box.is_cut_show")&&(baidu.dom.addClass(f,"ad-widget-imageplus-sticker-cut"),baidu.dom.setStyle(f,"height",d.getData("box.cut_height",
75)));var g=d.getData("api");za(d);d.forEach(function(a){a.addListener("resize",function(){Aa(d,g.getImgRect().height)});a.addListener("load",function(){d.trigger("load")})});var h;if(f=d.getData("box.hide_close_btn",!1))h=baidu.g(d.getId("close")),baidu.hide(h);f&&(f=function(){baidu.show(h)},g.addListener("mouseover",f),g.addListener("mousemove",f),g.addListener("mouseout",function(){baidu.hide(h)}));d.f=g.getShareData("[impl.sticker]forceHiding",!0)||!1;g.addListener("resize",function(a,b){d.l&&
Aa(d,b.height)});g.addListener("onclose",function(){d.f=!0;d.trigger(u,5)});var k=d.getData("box.show_thumbnail",!1);d.addListener("onclose",function(){d.f=!0;if(k){var a=baidu.g(d.getId("thumbnail"));a&&baidu.show(a)}g.setShareData("[impl.sticker]forceHiding",!0);d.trigger(u,3,(new Date-d.o)/1E3);d.trigger(u,5)});var f=d.getData("box.always_show",!1),t=d.getData("box.first_show_time",5E3),v=d.getData("box.show_in_view",0),n,l,w=d.getData("box.hide_delay",0);f?setTimeout(a,0):(g.addListener("mouseover",
a),g.addListener("mousemove",a),g.addListener("mouseout",c),v&&g.addListener("intoview",e),e());g.rendDone({showTip:d.getData("box.imageplus_button",!0),useV2Tip:d.getData("box.use_v2_tip",!1)})};
W.prototype.p=function(){var a=this;W.superClass.p.call(a);ta(a,function(){return"|"+(new Date-a.o)/1E3+"|"+a.B});var b=baidu.g(a.getId("close"));if(b)baidu.on(b,"click",function(b){baidu.event.preventDefault(b||window.event);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.f=!1;a.trigger(u,1);baidu.event.preventDefault(b);a.show();(b=baidu.g(a.getId("thumbnail")))&&baidu.hide(b)})};
function Ba(a){var b=baidu.g(a.getId("wrapper"));a=a.getRoot();return b||a}W.prototype.show=function(){if(this.getRoot()){var a=this.getData("api");a&&Aa(this,a.getImgRect().height);var b=this;b.getData("box.hide_close_btn",!1)||(this.n&&E(this.n),this.n=D(function(){var a=baidu.g(b.getId("close"));a&&baidu.show(a);this.n=null},500));baidu.dom.addClass(Ba(this),"ad-widget-imageplus-sticker-showing");this.l=!0}};
W.prototype.hide=function(a){var b=!0===a;if(a=Ba(this)){var c=this.getData("api"),e=this.getData("box.visual_height",0),d=this.getData("box.cut_height",75);b&&(e=0);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,"ad-widget-imageplus-sticker-showing");
this.l=!1}};
function Aa(a,b){var c=a.getRoot(),e=Ba(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 za(a){var b=baidu.g(a.getId("background"));b&&(a=a.getData("box.box_bg_opacity",0.75),I.opacity(b,a))};function Ca(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 Da(){}baidu.inherits(Da,N);ia(new Da);
Da.prototype.attachTo=function(a){function b(){var b=a.getId(),d=new Date,f=d.getHours();if(8>f&&0<f||0.25>Math.random())if(b=/m(\d+)_canvas/.exec(b))if(f=b[1],b="m"+f+"_BEGIN","number"===typeof window[b]){d="&jsLoadTime="+(d-window[b]);f="m"+f+"_END";"number"===typeof window[f]&&window[f]>window[b]&&(d+="&renderTime="+(window[f]-window[b]));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;Ca(c+"&attach="+encodeURIComponent(d))}}var c=RT_CONFIG.RCV2_URL;c&&0===c.indexOf("http://bzclk.baidu.com/")&&a.addListener("aftermaterialshow",b)};function Ea(){}baidu.inherits(Ea,N);ia(new Ea);Ea.prototype.attachTo=function(a){a.addListener("aftermaterialshow",function(){var b=x("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 Fa={getContext:function(a){return x("ECOM_MA_LEGO.materials."+a)},Z:function(a){a=a||Fa.getId();return(a=Fa.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},W: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},aa: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 X(a){U.call(this,{});this.h=new P({block_class:"ad-block"});this.k=a||Fa.getId();this.C="ad-style-"+this.k;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.F=(this.F||[]).concat(["newadcanvas"])}baidu.inherits(X,U);X.prototype.getRoot=function(){baidu.g(this.k)||document.write('<div id="'+this.k+'"></div>');return baidu.g(this.k)};X.prototype.getId=function(){return this.k};
function Ga(a){if("undefined"!==typeof AD_STYLE_CONTENT&&!baidu.g(a.C)){var b=AD_STYLE_CONTENT.replace(/#canvas/g,"#"+a.k),c=a.C;a=a.getRoot();var e=I.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))}}}
X.prototype.getMainHtml=function(){var a=this.h.s(this.d),b="";"function"!==typeof document.getElementById&&(b=' data-time="'+(new Date-0)+'"');return'<div class="layout"'+b+">"+a+"</div>"};
X.prototype.init=function(){var a=this;this.forEach(function(b){baidu.each(a.F,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.h.A(this.d,b.children[0])}catch(c){b.innerHTML=this.getMainHtml()}else b.innerHTML=this.getMainHtml();b.setAttribute("data-rendered","true")}X.superClass.init.call(this)};
X.prototype.show=function(){try{this.trigger("beforematerialshow")}catch(a){}Ga(this);this.init();this.j();this.p();baidu.show(this.getId());try{this.trigger("aftermaterialshow")}catch(b){}var c=this;F(function(){c.dispose()})};X.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 X.superClass.trigger.apply(this,c)};
X.prototype.addListener=function(a,b,c){X.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])};X.prototype.dispose=function(){X.superClass.dispose.call(this);var a=baidu.g(this.getId());a&&(a.innerHTML="");this.c=null};function Ha(a){X.call(this,a);this.h=new V}baidu.inherits(Ha,X);Ha.prototype.getMainHtml=function(){return this.h.s(this.d)};function Y(a){S.call(this,a)}baidu.inherits(Y,S);Y.prototype.r=function(){if(this.a){sa(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"}};Y.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 Z(a){S.call(this,a);this.w="AD_ad_widget_imageplus_sticker_html_2"}baidu.inherits(Z,Y);Z.prototype.r=function(){Z.superClass.r.call(this)};
Z.prototype.j=function(){var a=this;Z.superClass.j.call(a);var b=baidu.g(a.getId("iframe"));if(b){var c=a.getData("desc")||"";ha(b,c,function(c,d){function f(){0<k?v=D(function(){baidu.removeClass(b,"ad-widget-imageplust-sticker-html_2-hover")},k):baidu.removeClass(b,"ad-widget-imageplust-sticker-html_2-hover")}function g(){t&&E(t);v&&E(v);baidu.addClass(b,"ad-widget-imageplust-sticker-html_2-hover")}var h=a.getData("api"),k=a.getData("box.hide_delay",0),t=null,v=null;h.addListener("mouseover",g);
h.addListener("mousemove",g);h.addListener("mouseout",f);h.addListener("resize",function(a,b){var d=c.reloadAd;d&&baidu.lang.isFunction(d)&&d(b)});h=a.getData("box.first_show_time",5E3);g();t=D(function(){f();t=null},h);a.trigger("load",d)})}};(function(a){oa.parse(AD_TEMPLATE_CONTENT);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 Ha(f.id);b.adConfig=f;d=new W(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 */{});
//Fri Dec 19 2014 16:29:22 GMT+0800 (CST)