(function(AD_CONFIG, LINKS, RT_CONFIG){
/*! Copyright 2015 Baidu Inc. All Rights Reserved. */
var AD_CONFIG = {
    box: {
        use_ck: true,
        content_width: 302,
        content_height: 252
    }
};;
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_single_image -->\n<div class=\"ad-widget-imageplus ad-widget-imageplus-single_image\">\n<img src=\"{{idea_url}}\"/>\n<!-- \u56fe\u7247\u9891\u9053\u4f1a\u4fee\u6539a\u7684\u5730\u5740\uff0c\u5982\u679cimg\u6807\u7b7e\u653e\u5728a\u91cc\u9762\u7684\u8bdd -->\n<a class=\"ad-widget-imageplus-single_image-redirect\" href=\"{{{real_url}}}\" data-log=\"2\" data-mid=\"{{mid}}\" target=\"_blank\">&nbsp;</a>\n<a class=\"baiduimageplus-single-logo\" href=\"http://wangmeng.baidu.com/\" title=\"\u767e\u5ea6\u7f51\u76df\u63a8\u5e7f\" target=\"_blank\"></a>\n<!-- \u65b0\u589e\u7684\u63a8\u5e7f\u63d0\u793a -->\n<div style=\"position:absolute;left:0px;bottom:0px;width:29px!important;height:16px!important;overflow:hidden;background: url(http://ecmb.bdimg.com/public03/imageplus/leftbottom.png) no-repeat;\"></div>\n</div>\n<!-- target:AD_ad_widget_imageplus_box -->\n<div class=\"ad-widget-imageplus ad-widget-imageplus-box\">\n{{#box.icon_clickable}}\n<a class=\"ad-widget-imageplus-box-icon {{box.icon_class}}\" href=\"{{{real_url}}}\" target=\"_blank\" id=\"{{#_id}}icon{{/_id}}\" data-log=\"2\" data-attach=\"1\" data-mid=\"{{mid}}\"\nstyle=\"width:{{box.icon_width}}px;height:{{box.icon_height}}px;\">\n<!-- span\u906e\u76d6\u4e86\u6574\u4e2aa\uff0c\u6545\u9700\u8981\u52a0data-log\u548cdata-attach -->\n<span data-log=\"2\" data-attach=\"1\">&nbsp;</span>\n</a>\n{{/box.icon_clickable}}\n{{^box.icon_clickable}}\n<span class=\"ad-widget-imageplus-box-icon {{box.icon_class}}\"\nid=\"{{#_id}}icon{{/_id}}\"\nstyle=\"width:{{box.icon_width}}px;height:{{box.icon_height}}px;\">\n&nbsp;\n</span>\n{{/box.icon_clickable}}\n<div class=\"ad-widget-imageplus-box-bd\" id=\"{{#_id}}content{{/_id}}\" style=\"{{#box.bg_transprent}}background:transparent!important{{/box.bg_transprent}}\">\n<div class=\"ad-widget-imageplus-box-bg\" style=\"{{#box.bg_transprent}}background:transparent!important;box-shadow:none;{{/box.bg_transprent}}\"></div>\n{{{_content}}}\n</div>\n</div>\n";;
var AD_STYLE_CONTENT=".ad-widget-imageplus-single_image{font:12px/1.5 arial,sans-serif;position:relative;padding:1px;overflow:hidden;_zoom:1;background-color:#FFF}.ad-widget-imageplus-single_image img{display:block;width:300px!important;height:250px!important;padding:0;margin:0;border:0;position:static!important}.ad-widget-imageplus-single_image-redirect{position:absolute;top:0;left:0;_left:-1px;z-index:2;width:100%;height:100%;_height:252px;background-color:#FFF;opacity:0;filter:alpha(opacity=0)}.baiduimageplus-single-logo{position:absolute;bottom:0;right:0;z-index:90;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-box{position:absolute;top:0;left:0;margin:0;padding:0;width:0;height:0;overflow:visible!important}.ad-widget-imageplus-box-icon{position:absolute;top:0;left:0;z-index:10;width:38px;height:38px;overflow:hidden;cursor:pointer;background:url(\"http://ecma.bdimg.com/public03/imageplus/pa.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa.png')\\9}.ad-widget-imageplus-box-icon:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-hover.png')\\9}\n.ad-widget-imageplus-box-icon span{position:absolute;top:0;left:0;width:38px;height:38px;cursor:pointer;text-decoration:none;background-color:#FFF;opacity:0;filter:alpha(opacity=0)}span.ad-widget-imageplus-box-icon{cursor:default}.ad-widget-imageplus-box-icon-medical{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-medical.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-medical.png')\\9}.ad-widget-imageplus-box-icon-medical:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-medical-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-medical-hover.png')\\9}\n.ad-widget-imageplus-box-icon-decoration{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-decoration.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-decoration.png')\\9}.ad-widget-imageplus-box-icon-decoration:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-decoration-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-decoration-hover.png')\\9}.ad-widget-imageplus-box-icon-machine{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-machine.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-machine.png')\\9}\n.ad-widget-imageplus-box-icon-machine:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-machine-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-machine-hover.png')\\9}.ad-widget-imageplus-box-icon-photo{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-photo.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-photo.png')\\9}.ad-widget-imageplus-box-icon-photo:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-photo-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-photo-hover.png')\\9}\n.ad-widget-imageplus-box-icon-tourism{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-tourism.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-tourism.png')\\9}.ad-widget-imageplus-box-icon-tourism:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/pa-tourism-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/pa-tourism-hover.png')\\9}.ad-widget-imageplus-box-icon-game{background:url(\"http://ecma.bdimg.com/public03/imageplus/game.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/game.png')\\9}\n.ad-widget-imageplus-box-icon-game:hover{background:url(\"http://ecma.bdimg.com/public03/imageplus/game-hover.png\") no-repeat 0 0;background:none \\9;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='http://ecma.bdimg.com/public03/imageplus/game-hover.png')\\9}.ad-widget-imageplus-box-bd{position:absolute;top:0;left:0;z-index:11;display:none;overflow:visible;background:#FFF}.ad-widget-imageplus-box-bg{position:absolute;top:0;left:0;z-index:11;width:100%;height:100%;background:#FFF;opacity:.95;filter:alpha(opacity=95);border-radius:2px;-webkit-box-shadow:2px 2px 4px #000;-moz-box-shadow:2px 2px 4px #000;box-shadow:2px 2px 4px #000}.ad-widget-imageplus{position:relative;top:0;left:0;z-index:12}#canvas{font:12px/1.5 arial,sans-serif}";;
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.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.dom.setStyles=function(b,c){b=baidu.dom.g(b);for(var a in c){baidu.dom.setStyle(b,a,c[a])}return b};baidu.setStyles=baidu.dom.setStyles;baidu.fn.blank=function(){};baidu.dom.hide=function(a){a=baidu.dom.g(a);a.style.display="none";return a};baidu.hide=baidu.dom.hide;(function(){var a=window[baidu.guid];baidu.lang.guid=function(){return"TANGRAM__"+(a._counter++).toString(36)};a._counter=a._counter||1})();window[baidu.guid]._instances=window[baidu.guid]._instances||{};baidu.lang.isFunction=function(a){return"[object Function]"==Object.prototype.toString.call(a)
};baidu.lang.Class=function(a){this.guid=a||baidu.lang.guid();window[baidu.guid]._instances[this.guid]=this};window[baidu.guid]._instances=window[baidu.guid]._instances||{};baidu.lang.Class.prototype.dispose=function(){delete window[baidu.guid]._instances[this.guid];for(var a in this){if(!baidu.lang.isFunction(this[a])){delete this[a]}}this.disposed=true};baidu.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"};baidu.lang.Event=function(a,b){this.type=a;this.returnValue=true;this.target=b||null;this.currentTarget=null};baidu.lang.Class.prototype.addEventListener=function(d,c,b){if(!baidu.lang.isFunction(c)){return}!this.__listeners&&(this.__listeners={});var a=this.__listeners,e;if(typeof b=="string"&&b){if(/[^\w\-]/.test(b)){throw ("nonstandard key:"+b)
}else{c.hashCode=b;e=b}}d.indexOf("on")!=0&&(d="on"+d);typeof a[d]!="object"&&(a[d]={});e=e||baidu.lang.guid();c.hashCode=e;a[d][e]=c};baidu.lang.Class.prototype.removeEventListener=function(d,c){if(typeof c!="undefined"){if((baidu.lang.isFunction(c)&&!(c=c.hashCode))||(!baidu.lang.isString(c))){return}}!this.__listeners&&(this.__listeners={});d.indexOf("on")!=0&&(d="on"+d);var b=this.__listeners;if(!b[d]){return}if(typeof c!="undefined"){b[d][c]&&delete b[d][c]}else{for(var a in b[d]){delete b[d][a]}}};baidu.lang.Class.prototype.dispatchEvent=function(d,a){if(baidu.lang.isString(d)){d=new baidu.lang.Event(d)}!this.__listeners&&(this.__listeners={});a=a||{};for(var c in a){d[c]=a[c]}var c,b=this.__listeners,e=d.type;d.target=d.target||this;d.currentTarget=this;e.indexOf("on")!=0&&(e="on"+e);
baidu.lang.isFunction(this[e])&&this[e].apply(this,arguments);if(typeof b[e]=="object"){for(c in b[e]){b[e][c].apply(this,arguments)}}return d.returnValue};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.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.show=function(a){a=baidu.dom.g(a);a.style.display="";return a};baidu.show=baidu.dom.show;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.cookie=baidu.cookie||{};baidu.cookie._isValidKey=function(a){return(new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+\x24')).test(a)};baidu.cookie.setRaw=function(c,d,b){if(!baidu.cookie._isValidKey(c)){return}b=b||{};var a=b.expires;if("number"==typeof b.expires){a=new Date();a.setTime(a.getTime()+b.expires)}document.cookie=c+"="+d+(b.path?"; path="+b.path:"")+(a?"; expires="+a.toGMTString():"")+(b.domain?"; domain="+b.domain:"")+(b.secure?"; secure":"")};baidu.cookie.set=function(b,c,a){baidu.cookie.setRaw(b,encodeURIComponent(c),a)};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;(function(){var a=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");baidu.string.trim=function(b){return String(b).replace(a,"")}})();baidu.trim=baidu.string.trim;baidu.string.escapeReg=function(a){return String(a).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\\x241")};baidu.dom.q=function(h,e,b){var j=[],d=baidu.string.trim,g,f,a,c;if(!(h=d(h))){return j}if("undefined"==typeof e){e=document}else{e=baidu.dom.g(e);if(!e){return j}}b&&(b=d(b).toUpperCase());if(e.getElementsByClassName){a=e.getElementsByClassName(h);
g=a.length;for(f=0;f<g;f++){c=a[f];if(b&&c.tagName!=b){continue}j[j.length]=c}}else{h=new RegExp("(^|\\s)"+baidu.string.escapeReg(h)+"(\\s|\x24)");a=b?e.getElementsByTagName(b):(e.all||e.getElementsByTagName("*"));g=a.length;for(f=0;f<g;f++){c=a[f];h.test(c.className)&&(j[j.length]=c)}}return j};baidu.q=baidu.Q=baidu.dom.q;baidu.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.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.event.un=function(c,f,b){c=baidu.dom._g(c);f=f.replace(/^on/i,"").toLowerCase();var i=baidu.event._listeners,d=i.length,e=!b,h,g,a;while(d--){h=i[d];if(h[1]===f&&h[0]===c&&(e||h[2]===b)){g=h[4];a=h[3];if(c.removeEventListener){c.removeEventListener(g,a,false)}else{if(c.detachEvent){c.detachEvent("on"+g,a)}}i.splice(d,1)}}return c};baidu.un=baidu.event.un;baidu.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)};baidu.event.preventDefault=function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}};baidu.event.getTarget=function(a){return a.target||a.srcElement};;
var q,r=r||{};r.global=this;r.ma=!0;r.pa="en";r.na=!0;r.ja=function(a){return void 0!==a};r.ia=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.ja(b)?c[e]=b:c=c[e]?c[e]:c[e]={}};r.ta=function(a,b,c){r.ia(a,b,c)};r.sa=function(a,b,c){a[b]=c};r.xa=function(){return!1};r.ya=function(){};r.wa=function(){};var aa,t;if(t=/msie (\d+\.\d)/i.exec(navigator.userAgent))var u=document.documentMode||+t[1];if(t=/firefox\/(\d+\.\d)/i.exec(navigator.userAgent))var ba=+t[1];if(t=/opera\/(\d+\.\d)/i.exec(navigator.userAgent))var ca=+t[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]));var fa="CSS1Compat"===document.compatMode,ha=/webkit/i.test(navigator.userAgent);t=/UCBrowser\/(\d+\.\d)/i.exec(navigator.userAgent);window.$ECMA$=window.$ECMA$||{};window.$ECMA$._instances=window.$ECMA$._instances||{};(function(){var a=window.$ECMA$;a.L=a.L||1;return function(){return"ECMA__"+(a.L++).toString(36)}})();function v(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};var w=[];function x(a,b,c){function e(b){c.call(a,b)}b=b.replace(/^on/i,"");"string"===typeof a&&(a=document.getElementById(a));var d=b;b=b.toLowerCase();a.addEventListener?a.addEventListener(d,e,!1):a.attachEvent&&a.attachEvent("on"+d,e);w[w.length]=[a,b,c,e,d]}
(function(){function a(a,b){for(var c=0,e=a.length,d={};c<e;c++)d[a[c]]=b[a[c]],delete b[a[c]];return d}function b(b,c,e){e=v({},e);var d=a(k[c],e),f=[],g;for(g in d)d.hasOwnProperty(g)&&f.push(d[g]);d=document.createEvent(c);f.unshift(b);"KeyEvents"===c?d.initKeyEvent.apply(d,f):"MouseEvents"===c?d.initMouseEvent.apply(d,f):"UIEvents"===c?d.initUIEvent.apply(d,f):d.initEvent.apply(d,f);v(d,e);return d}function c(a){var b;document.createEventObject&&(b=document.createEventObject(),v(b,a));return b}
var e={keydown:1,keyup:1,keypress:1},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:u?0:1,reset:1,resize:1,scroll:1,select:1,submit:1,unload:u?0:1},g={scroll:1,resize:1,reset:1,submit:1,change:1,select:1,error:1,abort:1},k={KeyEvents:"bubbles cancelable view ctrlKey altKey shiftKey metaKey keyCode charCode".split(" "),MouseEvents:"bubbles cancelable view detail screenX screenY clientX clientY ctrlKey altKey shiftKey metaKey button relatedTarget".split(" "),
HTMLEvents:["bubbles","cancelable"],UIEvents:["bubbles","cancelable","view","detail"],Events:["bubbles","cancelable"]};v(g,e);v(g,d);return function(m,n,h){n=n.replace(/^on/i,"");m=y.g(m);h=v({bubbles:!0,cancelable:!0,view:window,detail:1,screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,keyCode:0,charCode:0,button:0,relatedTarget:null},h);if(e[n]){var l=n;h=a(k.KeyEvents,h);var p;if(document.createEvent)try{p=b(l,"KeyEvents",h)}catch(z){try{p=b(l,"Events",h)}catch(O){p=
b(l,"UIEvents",h)}}else h.keyCode=0<h.charCode?h.charCode:h.keyCode,p=c(h);h=p}else if(d[n])p=n,h=a(k.MouseEvents,h),document.createEvent?(l=b(p,"MouseEvents",h),h.relatedTarget&&!l.relatedTarget&&("mouseout"===p.toLowerCase()?l.toElement=h.relatedTarget:"mouseover"===p.toLowerCase()&&(l.fromElement=h.relatedTarget))):(p=h,0===h.button?l=1:1===h.button?l=4:(l=h.button,l="[object Number]"===Object.prototype.toString.call(l)&&isFinite(l)?h.button:0),p.button=l,l=c(h)),h=l;else if(f[n]){p=n;h.bubbles=
g.hasOwnProperty(p);h=a(k.HTMLEvents,h);if(document.createEvent)try{l=b(p,"HTMLEvents",h)}catch(Y){try{l=b(p,"UIEvents",h)}catch(Z){l=b(p,"Events",h)}}else l=c(h);h=l}else throw Error(n+" is not support!");h&&(m.dispatchEvent?m.dispatchEvent(h):m.fireEvent&&m.fireEvent("on"+n,h))}})();var ia="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 ja(a){return 0>a.indexOf("-")&&0>a.indexOf("_")?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};function B(a,b){for(var c=a.split("."),e=b||window,d;d=c.shift();)if(null!=e[d])e=e[d];else return null;return e}var ka=RT_CONFIG.HOSTMAP;ka||(ka=RT_CONFIG.HOSTMAP={});"object"!==typeof RT_CONFIG||RT_CONFIG.HOST||(RT_CONFIG.HOST=function(a){return RT_CONFIG.HOSTMAP[a]||"http://"+a});function C(a,b){function c(a,d){baidu.lang.isArray(a)?baidu.each(a,function(a,b){c(a,d.concat([b]))}):b(a,d)}c(a,[])}function la(a){var b=B("bds.ready");"function"===typeof b&&b(function(){a()})}var ma={},na={};
function oa(a,b){pa();var c=setTimeout(a,b);ma[c]=!0;return c}function D(a){a&&(delete ma[a],clearTimeout(a))}var qa=!1;function pa(){qa||(E(function(){for(var a in ma)ma.hasOwnProperty(a)&&D(parseInt(a,10));for(a in na)if(na.hasOwnProperty(a)){var b=parseInt(a,10);b&&(delete na[b],clearInterval(b))}}),qa=!0)}function E(a){var b=B("bds.comm.registerUnloadHandler");"function"===typeof b?b(a):la(function(){E(a)})}
function F(a,b){return"function"===typeof RT_CONFIG.CLASSNAME?RT_CONFIG.CLASSNAME(a,b):a};function I(a){this.j=a||document;ra(this)}I.prototype.getDocument=function(){return this.j};q=I.prototype;q.g=function(a){return"[object String]"===Object.prototype.toString.call(a)?this.j.getElementById(a):a&&a.nodeName&&(1===a.nodeType||9===a.nodeType)?a:null};q.on=function(a,b,c){"string"===typeof a&&(a=this.j.getElementById(a));a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,function(b){c.call(a,b)});return a};
q.getPosition=function(a){a=this.g(a);var b=a.ownerDocument||a.document,c={left:0,top:0},e=u&&!fa;if(a===(e?b.body:b.documentElement))return c;if(a.getBoundingClientRect)a=a.getBoundingClientRect(),c.left=Math.floor(a.left)+Math.max(b.documentElement.scrollLeft,b.body.scrollLeft),c.top=Math.floor(a.top)+Math.max(b.documentElement.scrollTop,b.body.scrollTop),c.left-=b.documentElement.clientLeft,c.top-=b.documentElement.clientTop,a=b.body,b=parseInt(this.getStyle(a,"borderLeftWidth"),10),a=parseInt(this.getStyle(a,
"borderTopWidth"),10),e&&(c.left-=isNaN(b)?2:b,c.top-=isNaN(a)?2:a);else{e=a;do{c.left+=e.offsetLeft;c.top+=e.offsetTop;if(0<ha&&"fixed"===this.getStyle(e,"position")){c.left+=b.body.scrollLeft;c.top+=b.body.scrollTop;break}e=e.offsetParent}while(e&&e!==a);if(0<ca||0<ha&&"absolute"===this.getStyle(a,"position"))c.top-=b.body.offsetTop;for(e=a.offsetParent;e&&e!==b.body;)c.left-=e.scrollLeft,ca&&"TR"===e.tagName||(c.top-=e.scrollTop),e=e.offsetParent}return c};
function sa(a){var b=y;a=b.g(a);b=b.getPosition(a);b.width=a.offsetWidth;b.height=a.offsetHeight;return b}q.opacity=function(a,b){a=this.g(a);var c=u&&9>u;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")};
q.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};I.prototype.hide=function(a){a=this.g(a);a.style.display="none";return a};
I.prototype.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):""};I.prototype.getStyle=function(a,b){a=this.g(a);b=ja(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=ta(b,c,"get"));return c};var J=J||{};
J.display=u&&8>u?{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"]=u?"styleFloat":"cssFloat";
J.opacity=u&&9>u?{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 ta(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};
I.prototype.getParent=function(a){a=this.g(a);return a.parentElement||a.parentNode||null};var L={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};8>u?(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=ja(b);c=ta(b,c,"set");var e=J[b];e&&e.set?e.set(a,c):a.style[e||b]=c;return a};q.setStyles=function(a,b){a=this.g(a);for(var c in b)b.hasOwnProperty(c)&&this.setStyle(a,c,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=ia(a)))return e;if("undefined"===typeof b)b=this.j;else if(b=this.g(b),!b)return e;c&&(c=ia(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 ra(a){a.la||(a.la=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.j,e=window;if(u&&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);E(function(){d.removeEventListener("DOMContentLoaded",g,!1)})}else if(aa){var k;(function(){if(!b.isReady)if("loaded"!==d.readyState&&"complete"!==d.readyState)setTimeout(arguments.callee,0);else{if(void 0===k){k=0;var a=d.getElementsByTagName("style"),c=d.getElementsByTagName("link");a&&(k+=a.length);if(c)for(var a=0,e=c.length;a<e;a++)"stylesheet"===c[a].getAttribute("rel")&&k++}d.styleSheets.length!==k?setTimeout(arguments.callee,0):b()}})()}e.attachEvent?(e.attachEvent("onload",b),E(function(){e.detachEvent("onload",
b)})):e.addEventListener&&(e.addEventListener("load",b,!1),E(function(){e.removeEventListener("load",b,!1)}))}})();return function(a){b.isReady?a():e[e.length]=a}}())}var y=new I;function ua(){}ua.prototype.n=baidu.abstractMethod;ua.prototype.w=baidu.abstractMethod;function M(a){this.ba=baidu.object.extend({block_class:F("ad-layout-block")},a||{})}baidu.inherits(M,ua);M.prototype.n=function(a){var b=va(this,a),c={};C(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)};M.prototype.w=function(a,b){C(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.r=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:F(a.ba.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.R={}}xa.prototype.get=function(a){return this.R[a]||""};
xa.prototype.parse=function(a){function b(a){return m.test(a)?b(a.replace(m,function(a,b){return U[b]||Y[b]||""})):a}function c(a){a&&H&&Z.push(a)}function e(){H&&(H in U?alert("Template: "+H+" is exist"):U[H]=Z.join("\n"));H=null}a=a.split(/\r?\n/);for(var d=a.length,f=0,g=/\x3c!--\s*target:\s*([a-zA-Z0-9_]+)\s*--\x3e/,k=/\x3c!--\s*\/target\s*--\x3e/,m=/\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/,l,p,z,O,Y=this.R,Z=[],H,
U={};f<d;f++)p=a[f],0>=p.length||(g.lastIndex=-1,n.lastIndex=-1,(z=n.exec(p))?O=z[1]:(z=h.exec(p))?O=void 0:(z=g.exec(p))?(z=O?O+"/"+z[1]:z[1],p=p.split(g),c(p[0]),e(),Z=[],H=z,c(p[2])):k.test(p)?(p=p.split(k),c(p[0]),e()):c(p));e();for(l in U)Y[l]&&alert("Template: "+l+" already exists!"),Y[l]=b(U[l])};var ya=new xa;function za(){};function N(){this.b={}}baidu.inherits(N,za);N.prototype.addListener=function(a,b){this.b[a]||(this.b[a]=[]);this.b[a].push(b)};N.prototype.dispose=function(){this.b={}};N.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 P(a){this.b={};this.r="w-"+Math.floor(2147483648*Math.random()).toString(36);this.ca=this.Z=null;this.setData(a)}baidu.inherits(P,N);Aa=function(a,b){return Mustache.render(a,b)};P.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};
P.prototype.getMainHtml=function(){if(!this.v||!this.a)throw Error("Widget's view and data can not be undefined.");var a=this,b=ya.get(this.v),c=baidu.extend(this.a,{_id:function(){return function(b){return a.getId(b)}},_mixup:function(){return function(a){return F(a)}}});return Aa(b,c)};q=P.prototype;q.render=function(){var a=this.getRoot();if(a){var b=this.getMainHtml();a.innerHTML=b}};q.init=baidu.fn.blank;q.m=baidu.fn.blank;q.l=baidu.fn.blank;
q.getData=function(a,b){if(a){var c=B(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.qa||{},a));this.I()};q.I=function(){};P.prototype.getRoot=function(){return this.getDocument().getElementById(this.getId())};
P.prototype.getDocument=function(){var a;if(!(a=this.Z)){if(a=this.ca){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};P.prototype.getId=function(a){return a?this.r+"-"+a:this.r};P.prototype.show=function(){var a=this.getRoot();a&&baidu.show(a)};
P.prototype.hide=function(){var a=this.getRoot();a&&baidu.hide(a)};P.prototype.sendLog=function(a,b){baidu.lang.isString(a)?this.trigger("sendlog",{action:a,xp:b||a}):this.trigger("sendlog",a)};P.prototype.dispose=function(){var a=this.getRoot();a&&(a.innerHTML="",a.parentNode.removeChild(a));P.superClass.dispose.call(this)};function Q(a,b){P.call(this,a);this.d=new M({block_class:"ad-block"});this.f=[];this.da=b||""}baidu.inherits(Q,P);Q.prototype.setWidgets=function(a){this.f=[].slice.call(arguments)};Q.prototype.getWidget=function(a){var b=Array.prototype.slice.call(arguments);if(!b.length)return null;var c=this.f[b[0]];if(!c)return null;for(var e=1;e<b.length;e++)if(c=c[b[e]],null==c)return null;return c};Q.prototype.getMainHtml=function(){this.a._content=this.d.n(this.f);return Q.superClass.getMainHtml.call(this)};
Q.prototype.forEach=function(a){C(this.f,a)};function Ba(a,b){b.addListener("sendlog",function(b){b.action=(a.da||"")+b.action;a.sendLog(b)})}Q.prototype.init=function(){this.forEach(function(a){a.init()})};Q.prototype.m=function(){this.forEach(function(a){a.m()})};Q.prototype.l=function(){this.forEach(function(a){a.l()});var a=this;this.forEach(function(b){Ba(a,b)})};Q.prototype.dispose=function(){this.forEach(function(a){a.dispose()})};function Ca(a){a.trade_id={1:"medical",2:"tourism",3:"machine",4:"photo",5:"decoration",6:"game"}[a.trade_id]||"default"}function Da(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 Ea(a,b){var c=a.getRoot();c&&(Fa(c,a,b),Ga(c,a),Ha(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=Ia(c,d.body))&&a.trigger("sendlog",{actionid:2,attach:0+b()})});Ga(d.body,a)});else{var d=c.contentDocument||c.contentWindow.document;Fa(d.body,a,b);Ga(d.body,a)}}))}
function Fa(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.k)&&b.trigger("sendlog",{actionid:parseInt(d,10),attach:(e||0)+c()}))});else e=function(b){b=baidu.event.getTarget(b);if((b=Ia(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 Ia(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 Ga(a,b){if(!("1.0.6">b.getData("api").version))baidu.on(a,"click",function(c){c=baidu.event.getTarget(c);(c=Ia(c,a))||b.trigger("sendlog",{actionid:11})})}
function Ha(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 k=0,m,n,h=function(){m&&(n=new Date,k+=n-m);n=m=null};b.inView()&&(m=new Date);b.addListener("intoview",function(){m||(m=new Date)});b.addListener("outview",h);var l=function(){g();h();a.trigger("sendlog",{actionid:13,attach:e+"_"+k})};b.addListener("release",function(){l();
var a=window,b="unload";"string"===typeof a&&(a=document.getElementById(a));for(var b=b.replace(/^on/i,"").toLowerCase(),c=w.length,e=!l,d,f;c--;)d=w[c],d[1]!==b||d[0]!==a||!e&&d[2]!==l||(f=d[4],d=d[3],a.removeEventListener?a.removeEventListener(f,d,!1):a.detachEvent&&a.detachEvent("on"+f,d),w.splice(c,1))});x(window,"unload",l)}};function Ja(a){P.call(this,a)}baidu.inherits(Ja,P);Ja.prototype.I=function(){this.a&&(Da(this.a),Ca(this.a))};Ja.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 Ka(a){P.call(this,a);this.v="AD_ad_widget_imageplus_single_image"}baidu.inherits(Ka,Ja);function La(a){this.aa=a}La.prototype.start=function(a,b){!b&&this.t&&this.t.dispose&&this.t.dispose();return this.t=this.aa(!!a)};La.prototype.set=function(a,b){"AD_CONFIG"===a?AD_CONFIG=b:"LINKS"===a?LINKS=b:"RT_CONFIG"===a&&(RT_CONFIG=b)};La.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 Ma(){}Ma.prototype.attachTo=function(){};function Na(a){RT_CONFIG.__plugins||(RT_CONFIG.__plugins=[]);RT_CONFIG.__plugins.push(a)};function Oa(){this.u=""}baidu.inherits(Oa,Ma);Na(new Oa);
function Pa(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 k=d[f];b+="&"+k.type+
"="+k.time}b+="&render="+encodeURIComponent(c.getRenderUrl());b+="&union_id="+c.getLoaderConfig("unionId","");b=b+"&actionid=8"+a.u;baidu.sio.log(b)}e+=a.u;baidu.sio.log(e)}}
Oa.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.u="&exp_list="+(c.exp_list||"")+"&render_id="+e.getRenderId(),e.addListener("clickimg",function(){Pa(b,c,12)}));Pa(b,c,4)});a.addListener("sendlog",function(c,e){c.actionid&&(e={attach:c.attach,stage:c.stage},c=c.actionid);Pa(b,a.adConfig,c,e)})};function Qa(a,b,c){this.p=a||null;this.ea=b||{};this.ka=c||!1;this.V=this.U=this.H=this.T=this.F=0}
Qa.prototype.bind=function(){var a=this;x(a.p,"mouseenter",function(){a.F++;a.U=(new Date).getTime()});x(a.p,"mousedown",function(){a.T=(new Date).getTime()});x(a.p,"mouseup",function(){a.H=(new Date).getTime()-a.T});x(a.p,"click",function(b){a.V=(new Date).getTime()-a.U;var c=function(a){for(a=a.target||a.srcElement;a;){var b=a.tagName.toLowerCase();if("a"===b)return a;if("body"===b)break;a=y.getParent(a)}return null}(b);if(c&&y.hasAttr(c,"data-mid")){var e=c.href;if(e){var d=/\.php\?(?:url=)?([0-9a-zA-Z_-]*)\./.exec(e);
if(d){var d=function(a,b,c,e){var d=0;a=b*a%99+9;for(b=0;b<a;++b)d+=e.charCodeAt(c*b%e.length);return d}(parseInt(y.getAttr(c,"data-mid"),10),a.F,a.H,d[1]),f=sa(a.p),g=function(a){var b=null,c=null;if(null==a.pageX)var c=a.target.ownerDocument||document,b=c.documentElement,d=c.body,c=window.pageYOffset||b&&b.scrollTop||d&&d.scrollTop||0,e=b&&b.clientTop||d&&d.clientTop||0,b=a.clientX+(window.pageXOffset||b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0),c=a.clientY+c-e;else b=
a.pageX,c=a.pageY;return{x:parseInt(b,10),y:parseInt(c,10)}}(b);b=g.y-f.top;var g=g.x-f.left,k=f.width-g,f=f.height-b,m=a.ea.api.getRenderId()||0,d="&ck="+[d,a.F,a.H,b,f,g,k,a.V,a.ka?1:0,m].join(".");-1===e.indexOf("&ck=")?c.href+=d:c.href=e.replace(/&ck=[\w.-]*/,d)}}}})};var Ra,Sa,Ua;(function(){for(var a=window.requestAnimationFrame,b=window.cancelAnimationFrame,c=["webkit","moz"],e=0;e<c.length&&!a;++e)a=window[c[e]+"RequestAnimationFrame"],b=window[c[e]+"CancelAnimationFrame"]||window[c[e]+"CancelRequestAnimationFrame"];a&&b?(Ra=function(b){return a.call(window,b)},Sa=function(a){b.call(window,a)}):(Ra=function(a){return setTimeout(a,1E3/60)},Sa=function(a){clearTimeout(a)})})();var R={};
function Va(){Ua&&(Ua=!0,E(function(){for(var a in R)R.hasOwnProperty(a)&&R[a].cancel()}))}function S(a){baidu.lang.Class.call(this);this.duration=500;this.ga=!0;new baidu.lang.Event("_dummy");this.disposed=!1;baidu.object.extend(this,a);R[this.guid]=this;Va()}baidu.inherits(S,baidu.lang.Class);q=S.prototype;q.launch=function(){this.dispatchEvent("onbeforestart");this.D();this.s=(new Date).getTime();this.M=this.s+(this.ga?this.duration:0);Wa(this);return this};
function Wa(a){var b=(new Date).getTime();a.J=(b-a.s)/a.duration;a.dispatchEvent("onbeforeupdate");b>=a.M?(a.render(a.transition(a.J=1)),a.finish(),a.dispatchEvent("onafterfinish"),a.dispose()):(isNaN(a.J)||a.render(a.transition(a.J)),a.dispatchEvent("onafterupdate"),a.O=Ra(function(){Wa(a)}))}q.transition=function(a){return this.ha?this.ha(a):a};q.D=baidu.fn.blank;q.restore=baidu.fn.blank;q.finish=baidu.fn.blank;q.render=baidu.fn.blank;
q.cancel=function(){this.O&&Sa(this.O);this.M=this.s;this.restore();this.dispatchEvent("oncancel");this.dispose()};S.prototype.dispose=function(){delete R[this.guid];S.superClass.dispose.call(this)};
function Xa(a,b){var c=new S(b);c.element=a;c.K="ad.fx.opacity";c.W={};c.addEventListener("onbeforestart",function(){var a;this.A="att_"+this.K.replace(/\W/g,"_");a=this.element.getAttribute("baidu_current_effect");this.element.setAttribute("baidu_current_effect",(a||"")+"|"+this.guid+"|",0);this.za||((a=this.element.getAttribute(this.A))&&window[baidu.guid]._instances[a].cancel(),this.element.setAttribute(this.A,this.guid,0))});c.P=function(){var a,b;if(a=this.element)a.removeAttribute(this.A),b=
a.getAttribute("baidu_current_effect"),(b=b.replace("|"+this.guid+"|",""))?a.setAttribute("baidu_current_effect",b):a.removeAttribute("baidu_current_effect")};c.addEventListener("oncancel",function(){this.P()});c.addEventListener("onafterfinish",function(){this.P();this.X&&this.restore()});c.o=function(a){this.W[a]=this.element.style[a]};c.restore=function(){var a=this.W,b=this.element.style,c,g;for(g in a)c=a[g],"undefined"!==typeof c&&(b[g]=c,!c&&b.removeAttribute?b.removeAttribute(g):!c&&b.removeProperty&&
b.removeProperty(g))};return c}function Ya(a){var b=baidu.object.extend({C:1,Y:0.5,X:!0},{}),b=baidu.object.extend({C:0,Y:1},b||{});return Xa(a,baidu.object.extend({D:function(){baidu.dom.show(a);9>baidu.browser.ie?this.o("filter"):(this.o("opacity"),this.o("KHTMLOpacity"));this.fa=this.Y-this.C},render:function(b){b=this.fa*b+this.C;9<=baidu.browser.ie?(a.style.opacity=b,a.style.oa=b):a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity:"+Math.floor(100*b)+")"}},b)).launch()}
function Za(a){var b=Ya(a);b.addEventListener("onafterfinish",function(){baidu.dom.hide(a)});b.K="ad.fx.fadeOut";return b};function $a(a,b){if(!(a=baidu.g(a)))return null;b=baidu.extend({B:2,duration:2E3},b||{});var c=a,e=/alpha\([^)]*\)/i,d,f=Xa(c,baidu.extend({D:function(){9>baidu.browser.ie?f.o("filter"):f.o("opacity");d="none"!==y.getStyle(a,"display");d||(baidu.setStyle(a,"opacity",0),a.style.display="block")},render:function(a){var f=a*b.B*2;a=Math.floor(f);f-=a;a=0!==a%2;d||(a=!a);f=a?f:1-f;9>baidu.browser.ie?c.currentStyle&&(a=c.currentStyle.filter,f="alpha(opacity="+Math.floor(100*f)+")",c.style.filter=e.test(a)?
a.replace(e,f):a+" "+f):c.style.opacity=f}},b));f.addEventListener("onafterfinish",function(){d||(a.style.display="none")});f.X=!0;return f.launch()};function V(){}baidu.inherits(V,ua);V.prototype.n=function(a){var b=[];C(a,function(a){b.push(ab(a.getMainHtml(),a.getId()))});return b.join("")};function ab(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.w=function(a,b){var c=0;C(a,function(a){var d=b.children[c];if(!d)throw Error("Invalid pre-rendered html formated.");c++;a.r=d.id})};function W(a){P.call(this,a);this.v="AD_ad_widget_imageplus_box";this.d=new V;this.k=!1;this.f=[]}baidu.inherits(W,Q);W.prototype.I=function(){this.a&&(Da(this.a),Ca(this.a),this.a.box.icon_class=F("ad-widget-imageplus-box-icon-"+this.getData("trade_id")),this.a.box.icon_width=this.getData("box.icon_width",38),this.a.box.icon_height=this.getData("box.icon_height",38),this.a.box.icon_clickable=this.getData("box.icon_clickable",!0))};
W.prototype.m=function(){function a(a,c){var e=c||f.getImgRect(),g=d.a,h=e.width,k=e.height;if(e=d.getRoot()){var l=d.getData("box.icon_width"),n=d.getData("box.icon_height")-2,m,G;if(f){G=parseInt(g.position_type,10);var s={left:0,top:0};switch(parseInt(g.position_type,10)){case 0:m=g.icon_top_left_x;g=g.icon_top_left_y;s.left=parseInt(m,10)||0;"string"===typeof m&&"%"===m.charAt(m.length-1)&&(s.left=s.left*h/100);s.top=parseInt(g,10)||0;"string"===typeof g&&"%"===g.charAt(g.length-1)&&(s.top=s.top*
k/100);break;case 1:s.left=h-l;s.top=bb(f,a,n);break;case 2:s.left=h/3;s.top=k/2;break;case 3:s.left=2*h/3;s.top=k/2;break;case 4:s.top=bb(f,a,n,!0)}s.width=l;s.height=n;m=s}else m={left:10,top:50},G=0;baidu.dom.setStyles(e,{left:m.left+"px",top:m.top+"px"});var e=d.getData("box.content_width"),g=d.getData("box.content_height"),ga=d.getData("box.content_position",0),s=baidu.g(d.getId("content"));if(1===ga){G=m.top;m=m.left;var n=g?(-g+n)/2:0,l=e?(-e+l)/2:0,k=k-(g||0),h=h-(e||0),ga=G+n,Ta=m+l;0>ga?
n=-G:ga>k&&(n=k-G);0>Ta?l=-m:Ta>h&&(l=h-m);k={left:l,top:n};h=k.top;k=k.left}else switch(G){case 1:k=-e-2;h=0;break;case 4:k=l+2;h=0;break;default:h=n+2,k=-e/2+l/2,0>m.left+k&&(k=-m.left)}d.a.box.icon_cells&&(h=-1*Math.floor(g/2)+19);baidu.setStyles(s,{top:h+"px",left:k+"px",width:e+"px",height:g?g+"px":"auto"})}b()}function b(a,b){if(!k){var c={};a&&(c.B=a);b&&(c.duration=b);k=d.blink(function(){k=null;n?cb(d):db(d,e)},c)}}function c(){k&&(k.cancel(),k=null,n?cb(d):db(d,e))}function e(){n=!1}W.superClass.m.call(this);
var d=this,f=d.getData("api"),g=d.getData("position_type"),k,m=4==g,n=m;d.addListener("mouseover",function(){c();var a=f.getShareData("qid",!0);a&&baidu.cookie.set("baiduImageplusQid",a,{path:"/"})});f.addListener("resize",function(b,c){a(b.id,c)});var h=d.getData("box.blink_type","in_view");if("in_view"===h)f.addListener("inview",function(){b(1,d.getData("box.blink_time",2E3))});else if("mousemove"===h){var l;baidu.on(document.documentElement,"mousemove",function(){l&&D(l);l=oa(function(){b(1,d.getData("box.blink_time",
2E3))},250)});f.addListener("release",function(){baidu.un(document.documentElement,"mousemove")})}a("INITED");(function(){function a(){n||(n=!0,d.trigger("sendlog",7),k||cb(d))}f.addListener("mousemove",a);f.addListener("mouseover",a);f.addListener("mouseout",function(){m||(n=!1,k||db(d))});f.addListener("release",c)})();f.addListener("tipclick",function(){d.trigger("sendlog",6)});f.rendDone(4==g?!1:d.getData("box.imageplus_button",!0))};
W.prototype.l=function(){var a=this;W.superClass.l.call(a);var b=this.getRoot();if(b){eb(a);var c=baidu.g(a.getId("icon")),e=baidu.g(a.getId("content")),d=!1,f=!0,g,k=function(){f||(g&&D(g),g=oa(function(){g=null;d||(baidu.setStyle(e,"display","none"),baidu.setStyle(b,"z-index",12),f=!0,a.trigger("mouseout"))},250))};baidu.on(c,"mouseover",function(){f&&(g&&D(g),baidu.setStyle(e,"display","block"),baidu.setStyle(b,"z-index",13),f=!1,a.trigger("mouseover"))});baidu.on(c,"mouseout",k);baidu.on(e,"mouseout",
k);baidu.on(b,"mouseover",function(){d=!0});baidu.on(b,"mouseout",function(){d=!1})}};function eb(a){var b=a.getData("box.icon_clickable"),c,e=0,d;a.addListener("mouseover",function(){c=new Date;d=oa(function(){a.k=!0},1E3*a.getData("box.delay_click",0.2))});a.addListener("mouseout",function(){a.k&&(a.k=!1);D(d);e++});baidu.on(baidu.g(a.getId("icon")),"click",function(c){b&&a.k||baidu.event.preventDefault(c)});Ea(a,function(){return"|"+(new Date-c)/1E3+"|"+e})}
function bb(a,b,c,e){var d=e?"alignLeft":"";e="[widget.box]type1YPos"+d;d="[widget.box]currentWH"+d;a.getShareData(d)!==b?(a.setShareData(d,b),a.setShareData(e,5),b=5):b=a.getShareData(e);a.setShareData(e,b+c);return b}
W.prototype.blink=function(a,b){var c=baidu.g(this.getId("icon"));if(!c)return null;var e=baidu.extend({B:2,duration:3E3},b);if(6>=baidu.browser.ie){var d;cb(this);d=oa(function(){a&&a();d=null},e.duration);return{cancel:function(){d&&(D(d),d=null)}}}c=$a(c,e);a&&c.addEventListener("onafterfinish",a);return c};W.prototype.show=function(){var a=this.getRoot();a&&baidu.setStyle(a,"display","block")};W.prototype.hide=function(){var a=this.getRoot();a&&baidu.setStyle(a,"display","none")};
function cb(a){(a=baidu.g(a.getId("icon")))&&baidu.show(a)}function db(a,b){var c=baidu.g(a.getId("icon"));c&&(b?Za(c).addEventListener("onafterfinish",b):baidu.hide(c))};function fb(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 gb(){}baidu.inherits(gb,Ma);Na(new gb);
gb.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;fb(c+"&attach="+encodeURIComponent(d))}}}var c=RT_CONFIG.RCV2_URL;c&&0===c.indexOf("http://bzclk.baidu.com/")&&a.addListener("aftermaterialshow",b)};function hb(){}baidu.inherits(hb,Ma);Na(new hb);hb.prototype.attachTo=function(a){a.addListener("aftermaterialshow",function(){var b=B("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 ib={getContext:function(a){return B("ECOM_MA_LEGO.materials."+a)},ua:function(a){a=a||ib.getId();return(a=ib.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},ra: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},va: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){Q.call(this,{});this.d=new M({block_class:F("ad-block")});this.h=a||ib.getId();this.N="s-"+this.h;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.S=(this.S||[]).concat(["newadcanvas"])}baidu.inherits(X,Q);X.prototype.getRoot=function(){if(!baidu.g(this.h)){var a=RT_CONFIG.originId;a&&baidu.g(a)?baidu.g(a).id=this.h:document.write('<div id="'+this.h+'"></div>')}return baidu.g(this.h)};
X.prototype.getId=function(){return this.h};function jb(a){if("undefined"!==typeof AD_STYLE_CONTENT){var b=AD_STYLE_CONTENT.replace(/#canvas/g,"#"+a.h),c=baidu.g(a.N);if(c)c.styleSheet?c.styleSheet.cssText=b:c.textContent=b;else{c=a.N;a=a.getRoot();var e=y.j,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.d.n(this.f),b="";"function"!==typeof document.getElementById&&(b=' data-time="'+(new Date-0)+'"');return'<div class="'+F("layout")+'"'+b+">"+a+"</div>"};X.prototype.beforeShow=function(){try{"string"===typeof AD_STYLE_CONTENT&&(AD_STYLE_CONTENT=F(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){}};
X.prototype.init=function(){var a=this;this.forEach(function(b){baidu.each(a.S,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.d.w(this.f,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(){this.beforeShow();jb(this);this.init();this.m();this.l();baidu.show(this.getId());try{this.trigger("aftermaterialshow")}catch(a){}var b=this;E(function(){b.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 kb(a){X.call(this,a);this.d=new V}baidu.inherits(kb,X);kb.prototype.getMainHtml=function(){return this.d.n(this.f)};(function(a){ya.parse(F(AD_TEMPLATE_CONTENT,"template"));try{window.__ignore=document.getElementById("whatever")}catch(b){}"function"===typeof ECMA_define?ECMA_define(function(){return new La(a)}):a()})(function(a,b){var c=b||{};return function(){function b(a,c){var d=y.g(a.getId("content"));(new Qa(d,c,!1)).bind();d=y.g(a.getId("icon"));(new Qa(d,c,!0)).bind()}var d,f,g=AD_CONFIG;c.before&&c.before(g);(function(){d=new kb(g.id);d.d=new V;d.adConfig=g;f=new W(g);f.setWidgets([new a(g)]);var b;f.addListener("mouseover",
function(){b=new Date;d.trigger("sendlog",1)});f.addListener("mouseout",function(){d.trigger("sendlog",3,(new Date-b)/1E3)});d.setWidgets([f]);d.show()})();c.after&&c.after(g,f);f.getData("box.use_ck")&&b(f,g);return d}}(Ka));

})(/** AD_CONFIG */{}, /** LINKS */[], /** RT_CONFIG */{});
//Wed Oct 28 2015 21:57:57 GMT+0800 (CST)