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

106 lines
52 KiB

(function(AD_CONFIG, LINKS, RT_CONFIG){
/*! Copyright 2017 Baidu Inc. All Rights Reserved. */
"";
"";
var baidu={version:"1.5.0"};baidu.guid="$BAIDU$";window[baidu.guid]=window[baidu.guid]||{};baidu.array=baidu.array||{};baidu.array.removeAt=function(b,a){return b.splice(a,1)[0]};baidu.dom=baidu.dom||{};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._matchNode=function(a,c,d){a=baidu.dom.g(a);for(var b=a[d];b;b=b[c]){if(b.nodeType==1){return b}}return null};baidu.dom.first=function(a){return baidu.dom._matchNode(a,"nextSibling","firstChild")};baidu.dom.next=function(a){return baidu.dom._matchNode(a,"nextSibling","nextSibling")};baidu.cookie=baidu.cookie||{};baidu.cookie._isValidKey=function(a){return(new RegExp('^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\"\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+\x24')).test(a)
};baidu.cookie.getRaw=function(b){if(baidu.cookie._isValidKey(b)){var c=new RegExp("(^| )"+b+"=([^;]*)(;|\x24)"),a=c.exec(document.cookie);if(a){return a[2]||null}}return null};baidu.cookie.get=function(a){var b=baidu.cookie.getRaw(a);if("string"==typeof b){b=decodeURIComponent(b);return b}return null};baidu.lang=baidu.lang||{};baidu.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)};baidu.page=baidu.page||{};baidu.page.getViewWidth=function(){var b=document,a=b.compatMode=="BackCompat"?b.body:b.documentElement;return a.clientWidth};baidu.page.getScrollTop=function(){var a=document;return window.pageYOffset||a.documentElement.scrollTop||a.body.scrollTop};baidu.dom.prev=function(a){return baidu.dom._matchNode(a,"previousSibling","previousSibling")};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.remove=function(b,a){a=a||{};a.expires=new Date(0);baidu.cookie.setRaw(b,"",a)};baidu.string=baidu.string||{};(function(){var a=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+\x24)","g");baidu.string.trim=function(b){return String(b).replace(a,"")}})();baidu.trim=baidu.string.trim;baidu.string.escapeReg=function(a){return String(a).replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\\x241")};baidu.dom.q=function(h,e,b){var j=[],d=baidu.string.trim,g,f,a,c;if(!(h=d(h))){return j}if("undefined"==typeof e){e=document
}else{e=baidu.dom.g(e);if(!e){return j}}b&&(b=d(b).toUpperCase());if(e.getElementsByClassName){a=e.getElementsByClassName(h);g=a.length;for(f=0;f<g;f++){c=a[f];if(b&&c.tagName!=b){continue}j[j.length]=c}}else{h=new RegExp("(^|\\s)"+baidu.string.escapeReg(h)+"(\\s|\x24)");a=b?e.getElementsByTagName(b):(e.all||e.getElementsByTagName("*"));g=a.length;for(f=0;f<g;f++){c=a[f];h.test(c.className)&&(j[j.length]=c)}}return j};baidu.q=baidu.Q=baidu.dom.q;baidu.sio=baidu.sio||{};baidu.lang.isFunction=function(a){return"[object Function]"==Object.prototype.toString.call(a)};baidu.lang.isString=function(a){return"[object String]"==Object.prototype.toString.call(a)};baidu.isString=baidu.lang.isString;baidu.sio._createScriptTag=function(b,a,c){b.setAttribute("type","text/javascript");c&&b.setAttribute("charset",c);
b.setAttribute("src",a);document.getElementsByTagName("head")[0].appendChild(b)};baidu.sio._removeScriptTag=function(b){if(b.clearAttributes){b.clearAttributes()}else{for(var a in b){if(b.hasOwnProperty(a)){delete b[a]}}}if(b&&b.parentNode){b.parentNode.removeChild(b)}b=null};baidu.sio.callByServer=function(a,m,n){var i=document.createElement("SCRIPT"),h="bd__cbs__",k,e,o=n||{},d=o.charset,f=o.queryField||"callback",l=o.timeOut||0,b,c=new RegExp("(\\?|&)"+f+"=([^&]*)"),g;if(baidu.lang.isFunction(m)){k=h+Math.floor(Math.random()*2147483648).toString(36);window[k]=j(0)}else{if(baidu.lang.isString(m)){k=m}else{if(g=c.exec(a)){k=g[2]}}}if(l){b=setTimeout(j(1),l)}a=a.replace(c,"\x241"+f+"="+k);if(a.search(c)<0){a+=(a.indexOf("?")<0?"?":"&")+f+"="+k}baidu.sio._createScriptTag(i,a,d);function j(p){return function(){try{if(p){o.onfailure&&o.onfailure()
}else{m.apply(window,arguments);clearTimeout(b)}window[k]=null;delete window[k]}catch(q){}finally{baidu.sio._removeScriptTag(i)}}}};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.page.getViewHeight=function(){var b=document,a=b.compatMode=="BackCompat"?b.body:b.documentElement;return a.clientHeight};baidu.dom.getDocument=function(a){a=baidu.dom.g(a);return a.nodeType==9?a:a.ownerDocument||a.document};baidu.dom._g=function(a){if(baidu.lang.isString(a)){return document.getElementById(a)}return a};baidu._g=baidu.dom._g;baidu.browser=baidu.browser||{};baidu.browser.ie=baidu.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?(document.documentMode||+RegExp["\x241"]):undefined;
baidu.dom.getComputedStyle=function(b,a){b=baidu.dom._g(b);var d=baidu.dom.getDocument(b),c;if(d.defaultView&&d.defaultView.getComputedStyle){c=d.defaultView.getComputedStyle(b,null);if(c){return c[a]||c.getPropertyValue(a)}}return""};baidu.dom._styleFixer=baidu.dom._styleFixer||{};baidu.dom._styleFilter=baidu.dom._styleFilter||[];baidu.dom._styleFilter.filter=function(b,e,f){for(var a=0,d=baidu.dom._styleFilter,c;c=d[a];a++){if(c=c[f]){e=c(b,e)}}return e};baidu.string.toCamelCase=function(a){if(a.indexOf("-")<0&&a.indexOf("_")<0){return a}return a.replace(/[-_][^-_]/g,function(b){return b.charAt(1).toUpperCase()})};baidu.dom.getStyle=function(c,b){var e=baidu.dom;c=e.g(c);b=baidu.string.toCamelCase(b);var d=c.style[b]||(c.currentStyle?c.currentStyle[b]:"")||e.getComputedStyle(c,b);if(!d){var a=e._styleFixer[b];
if(a){d=a.get?a.get(c):baidu.dom.getStyle(c,a)}}if(a=e._styleFilter){d=a.filter(b,d,"get")}return d};baidu.getStyle=baidu.dom.getStyle;baidu.browser.opera=/opera(\/| )(\d+(\.\d+)?)(.+?(version\/(\d+(\.\d+)?)))?/i.test(navigator.userAgent)?+(RegExp["\x246"]||RegExp["\x242"]):undefined;baidu.browser.isWebkit=/webkit/i.test(navigator.userAgent);baidu.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);baidu.browser.isStrict=document.compatMode=="CSS1Compat";baidu.dom.getPosition=function(a){a=baidu.dom.g(a);var j=baidu.dom.getDocument(a),d=baidu.browser,g=baidu.dom.getStyle,c=d.isGecko>0&&j.getBoxObjectFor&&g(a,"position")=="absolute"&&(a.style.top===""||a.style.left===""),h={left:0,top:0},f=(d.ie&&!d.isStrict)?j.body:j.documentElement,k,b;if(a==f){return h
}if(a.getBoundingClientRect){b=a.getBoundingClientRect();h.left=Math.floor(b.left)+Math.max(j.documentElement.scrollLeft,j.body.scrollLeft);h.top=Math.floor(b.top)+Math.max(j.documentElement.scrollTop,j.body.scrollTop);h.left-=j.documentElement.clientLeft;h.top-=j.documentElement.clientTop;var i=j.body,l=parseInt(g(i,"borderLeftWidth")),e=parseInt(g(i,"borderTopWidth"));if(d.ie&&!d.isStrict){h.left-=isNaN(l)?2:l;h.top-=isNaN(e)?2:e}}else{k=a;do{h.left+=k.offsetLeft;h.top+=k.offsetTop;if(d.isWebkit>0&&g(k,"position")=="fixed"){h.left+=j.body.scrollLeft;h.top+=j.body.scrollTop;break}k=k.offsetParent}while(k&&k!=a);if(d.opera>0||(d.isWebkit>0&&g(a,"position")=="absolute")){h.top-=j.body.offsetTop}k=a.offsetParent;while(k&&k!=j.body){h.left-=k.scrollLeft;if(!d.opera||k.tagName!="TR"){h.top-=k.scrollTop
}k=k.offsetParent}}return h};baidu.dom.getAncestorBy=function(a,b){a=baidu.dom.g(a);while((a=a.parentNode)&&a.nodeType==1){if(b(a)){return a}}return null};baidu.lang.toArray=function(b){if(b===null||b===undefined){return[]}if(baidu.lang.isArray(b)){return b}if(typeof b.length!=="number"||typeof b==="string"||baidu.lang.isFunction(b)){return[b]}if(b.item){var a=b.length,c=new Array(a);while(a--){c[a]=b[a]}return c}return[].slice.call(b)};baidu.page.getScrollLeft=function(){var a=document;return window.pageXOffset||a.documentElement.scrollLeft||a.body.scrollLeft};baidu.array.indexOf=function(e,b,d){var a=e.length,c=b;d=d|0;if(d<0){d=Math.max(0,a+d)}for(;d<a;d++){if(d in e&&e[d]===b){return d}}return -1};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;;
var p,r=r||{};r.global=this;r.Wa=!0;r.Ya="en";r.Xa=!0;r.Pa=function(a){return void 0!==a};r.Ja=function(a,b,c){a=a.split(".");c=c||r.global;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&r.Pa(b)?c[d]=b:c=c[d]?c[d]:c[d]={}};r.bb=function(a,b,c){r.Ja(a,b,c)};r.ab=function(a,b,c){a[b]=c};r.eb=function(){return!1};r.ib=function(){};r.cb=function(){};var aa,s;if(s=/msie (\d+\.\d)/i.exec(navigator.userAgent))var t=document.documentMode||+s[1];if(s=/firefox\/(\d+\.\d)/i.exec(navigator.userAgent))var ba=+s[1];if(s=/opera\/(\d+\.\d)/i.exec(navigator.userAgent))var ca=+s[1];var da=navigator.userAgent,ea=da.match(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i);ea&&!/chrome/i.test(da)&&(aa=+(ea[1]||ea[2]));var fa="CSS1Compat"===document.compatMode,ga=/webkit/i.test(navigator.userAgent);s=/UCBrowser\/(\d+\.\d)/i.exec(navigator.userAgent);window.$ECMA$=window.$ECMA$||{};function v(a){return"[object Array]"===Object.prototype.toString.call(a)}function ha(a){return"[object Number]"===Object.prototype.toString.call(a)&&isFinite(a)}function ia(a){if(null===a||void 0===a)return[];if(v(a))return a;if("number"!==typeof a.length||"string"===typeof a||"[object Function]"===Object.prototype.toString.call(a))return[a];if(a.item){for(var b=a.length,c=Array(b);b--;)c[b]=a[b];return c}return[].slice.call(a)}
window.$ECMA$._instances=window.$ECMA$._instances||{};(function(){var a=window.$ECMA$;a.ia=a.ia||1;return function(){return"ECMA__"+(a.ia++).toString(36)}})();function ja(a,b,c){var d=2<arguments.length?[].slice.call(arguments,2):null,e="[object String]"===Object.prototype.toString.call(a)?b[a]:a,f=b||e,g=Function.prototype.bind;if(g){var k=[].slice.call(arguments,2);k.unshift(f);return g.apply(e,k)}return function(){var a=d?d.concat([].slice.call(arguments,0)):arguments;return e.apply(f,a)}};function ka(a,b){if("function"===typeof b)for(var c in a)if(a.hasOwnProperty(c)&&!1===b.call(a,a[c],c))break}function x(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function la(a){var b=Object.prototype.hasOwnProperty,c;if(!(a&&"[object Object]"===Object.prototype.toString.call(a)&&"isPrototypeOf"in a)||a.constructor&&!b.call(a,"constructor")&&!b.call(a.constructor.prototype,"isPrototypeOf"))return!1;for(c in a);return void 0===c||b.call(a,c)};var y=[];function A(a,b,c){function d(b){c.call(a,b)}b=b.replace(/^on/i,"");"string"===typeof a&&(a=document.getElementById(a));var e=b;b=b.toLowerCase();if(B&&B[b])var f=B[b](a,b,d),e=f.type,d=f.wa;a.addEventListener?a.addEventListener(e,d,!1):a.attachEvent&&a.attachEvent("on"+e,d);y[y.length]=[a,b,c,d,e]}
function C(a,b,c){"string"===typeof a&&(a=document.getElementById(a));b=b.replace(/^on/i,"").toLowerCase();for(var d=y.length,e=!c,f,g;d--;)f=y[d],f[1]!==b||f[0]!==a||!e&&f[2]!==c||(g=f[4],f=f[3],a.removeEventListener?a.removeEventListener(g,f,!1):a.detachEvent&&a.detachEvent("on"+g,f),y.splice(d,1))}function ma(a){a.preventDefault?a.preventDefault():a.returnValue=!1}var B=B||{};
B.ja=function(a,b){var c=b.relatedTarget,d=b.currentTarget;if(c&&d!==c&&(!c||"xul"!==c.prefix&&!D.contains(d,c)))return a.call(d,b)};B.mouseenter=window.attachEvent?null:function(a,b,c){return{type:"mouseover",wa:ja(B.ja,this,c)}};B.mouseleave=window.attachEvent?null:function(a,b,c){return{type:"mouseout",wa:ja(B.ja,this,c)}};
(function(){function a(a,b){for(var c=0,d=a.length,e={};c<d;c++)e[a[c]]=b[a[c]],delete b[a[c]];return e}function b(b,c,d){d=x({},d);var e=a(k[c],d),f=[],g;for(g in e)e.hasOwnProperty(g)&&f.push(e[g]);e=document.createEvent(c);f.unshift(b);"KeyEvents"===c?e.initKeyEvent.apply(e,f):"MouseEvents"===c?e.initMouseEvent.apply(e,f):"UIEvents"===c?e.initUIEvent.apply(e,f):e.initEvent.apply(e,f);x(e,d);return e}function c(a){var b;document.createEventObject&&(b=document.createEventObject(),x(b,a));return b}
var d={fb:1,hb:1,gb:1},e={click:1,$a:1,jb:1,kb:1,nb:1,mb:1,lb:1},f={abort:1,blur:1,Ia:1,error:1,focus:1,load:t?0:1,reset:1,resize:1,scroll:1,select:1,submit:1,pb:t?0:1},g={scroll:1,resize:1,reset:1,submit:1,Ia: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"]};x(g,d);x(g,e);return function(m,q,h){q=q.replace(/^on/i,"");m=D.g(m);h=x({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(d[q]){var n=q;h=a(k.KeyEvents,h);var l;if(document.createEvent)try{l=b(n,"KeyEvents",h)}catch(u){try{l=b(n,"Events",h)}catch(w){l=b(n,"UIEvents",h)}}else h.keyCode=
0<h.charCode?h.charCode:h.keyCode,l=c(h);h=l}else if(e[q])l=q,h=a(k.MouseEvents,h),document.createEvent?(n=b(l,"MouseEvents",h),h.relatedTarget&&!n.relatedTarget&&("mouseout"===l.toLowerCase()?n.toElement=h.relatedTarget:"mouseover"===l.toLowerCase()&&(n.fromElement=h.relatedTarget))):(h.button=0===h.button?1:1===h.button?4:ha(h.button)?h.button:0,n=c(h)),h=n;else if(f[q]){l=q;h.bubbles=g.hasOwnProperty(l);h=a(k.HTMLEvents,h);if(document.createEvent)try{n=b(l,"HTMLEvents",h)}catch(z){try{n=b(l,"UIEvents",
h)}catch(E){n=b(l,"Events",h)}}else n=c(h);h=n}else throw Error(q+" is not support!");h&&(m.dispatchEvent?m.dispatchEvent(h):m.fireEvent&&m.fireEvent("on"+q,h))}})();var F;F=function(a,b,c){var d,e,f=a.length;if("function"===typeof b)for(e=0;e<f&&(d=a[e],d=b.call(c||a,d,e),!1!==d);e++);};var G="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 na(a,b){a=String(a);var c=arguments[1];if("undefined"!==typeof c){if(la(c))return a.replace(/\$\{(.+?)\}/g,function(a,b){var d=c[b];"function"===typeof d&&(d=d(b));return"undefined"===typeof d?"":d});var d=Array.prototype.slice.call(arguments,1),e=d.length;return a.replace(/\{(\d+)\}/g,function(a,b){b=parseInt(b,10);return b>=e?a:d[b]})}return a}function oa(a){return 0>a.indexOf("-")&&0>a.indexOf("_")?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};function pa(a){return String(a).replace(/%/g,"%25").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/ /g,"%20").replace(/\//g,"%2F").replace(/#/g,"%23").replace(/=/g,"%3D")}function qa(a){var b=[],c;ka(a,function(a,e){if(v(a))for(c=a.length;c--;)b.push(e+"="+pa(a[c]));else b.push(e+"="+pa(a))});return b.join("&")};function sa(a){a=a.split(".");for(var b=window,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function H(){return Math.floor(2147483648*Math.random()).toString(36)}var ua=RT_CONFIG.HOSTMAP;ua||(ua=RT_CONFIG.HOSTMAP={});"object"!==typeof RT_CONFIG||RT_CONFIG.HOST||(RT_CONFIG.HOST=function(a){return RT_CONFIG.HOSTMAP[a]||"http://"+a});function va(a){var b=sa("bds.ready");"function"===typeof b&&b(function(){a()})}
var wa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object Error]":"error"},xa=Object.prototype.toString;function ya(a){return null==a?String(a):"object"===typeof a||"function"===typeof a?wa[xa.call(a)]||"object":typeof a}
function I(a,b,c){for(var d in b)if(b.hasOwnProperty(d)&&(c||!a.hasOwnProperty(d))){var e=ya(b[d]);if("object"===e||"array"===e){var f=ya(a[d]);"object"!==f&&"array"!==f&&(a[d]="object"===e?{}:[]);I(a[d],b[d],c)}else a[d]=b[d]}}var J={},za={};function K(a,b){Aa();var c=setTimeout(a,b);J[c]=!0;return c}function Ba(a){a&&(delete J[a],clearTimeout(a))}var Ca=!1;
function Aa(){Ca||(L(function(){for(var a in J)J.hasOwnProperty(a)&&Ba(parseInt(a,10));for(a in za)if(za.hasOwnProperty(a)){var b=parseInt(a,10);b&&(delete za[b],clearInterval(b))}}),Ca=!0)}function L(a){var b=sa("bds.comm.registerUnloadHandler");"function"===typeof b?b(a):va(function(){L(a)})};function Da(a){this.p=a||document;Ea(this)}p=Da.prototype;p.g=function(a){return"[object String]"===Object.prototype.toString.call(a)?this.p.getElementById(a):a&&a.nodeName&&(1===a.nodeType||9===a.nodeType)?a:null};p.J=null;p.O=null;function Fa(a){var b=D;b.J=a;var c=b.p.head||b.p.getElementsByTagName("head")[0]||b.p.body;c.insertBefore(a,c.firstChild);b.J=null}
function Ga(){var a=D;if(a.J)return a.J;if(a.O&&"interactive"===a.O.readyState)return a.O;for(var b=a.p.getElementsByTagName("script"),c=b.length;c--;){var d=b[c];if("interactive"===d.readyState)return a.O=d}return null}p.remove=function(a){(a=this.g(a))&&a.parentNode&&a.parentNode.removeChild(a)};
p.getPosition=function(a){a=this.g(a);var b=a.ownerDocument||a.document,c={left:0,top:0},d=t&&!fa;if(a===(d?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),d&&(c.left-=isNaN(b)?2:b,c.top-=isNaN(a)?2:a);else{d=a;do{c.left+=d.offsetLeft;c.top+=d.offsetTop;if(0<ga&&"fixed"===this.getStyle(d,"position")){c.left+=b.body.scrollLeft;c.top+=b.body.scrollTop;break}d=d.offsetParent}while(d&&d!==a);if(0<ca||0<ga&&"absolute"===this.getStyle(a,"position"))c.top-=b.body.offsetTop;for(d=a.offsetParent;d&&d!==b.body;)c.left-=d.scrollLeft,ca&&"TR"===d.tagName||(c.top-=d.scrollTop),d=d.offsetParent}return c};
function N(a){var b=D;a=b.g(a);b=b.getPosition(a);b.width=a.offsetWidth;b.height=a.offsetHeight;return b}p.opacity=function(a,b){a=this.g(a);var c=t&&9>t;return null!=b||0===b?(c?(c=a.style,c.filter=""+(c.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(1===b?"":"alpha(opacity="+100*b+")"),c.zoom=1):a.style.opacity=b,""):c?(c=a.style.filter)&&0<=c.indexOf("opacity=")?parseFloat(c.match(/opacity=([^)]*)/)[1])/100+"":"1":this.getStyle(a,"opacity")};
p.contains=function(a,b){a=this.g(a);b=this.g(b);return a.contains?a!==b&&a.contains(b):!!(a.compareDocumentPosition(b)&16)};p.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):""};
p.getStyle=function(a,b){a=this.g(a);b=oa(b);var c=(a.currentStyle?a.currentStyle[b]:"")||this.getComputedStyle(a,b);if(!c||"auto"===c){var d=O[b];d&&(c=d.get?d.get(a,b,c):this.getStyle(a,d))}if(P)for(var d=b,e=0,f;f=P[e];e++)(f=f.get)&&(c=f(d,c));return c};var O=O||{};O.display=t&&8>t?{set:function(a,b){var c=a.style;"inline-block"===b?(c.display="inline",c.zoom=1):c.display=b}}:ba&&3>ba?{set:function(a,b){a.style.display="inline-block"===b?"-moz-inline-box":b}}:null;O["float"]=t?"styleFloat":"cssFloat";
O.opacity=t&&9>t?{get:function(a){return(a=a.style.filter)&&0<=a.indexOf("opacity=")?parseFloat(a.match(/opacity=([^)]*)/)[1])/100+"":"1"},set:function(a,b){var c=a.style;c.filter=(c.filter||"").replace(/alpha\([^\)]*\)/gi,"")+(1==b?"":"alpha(opacity="+100*b+")");c.zoom=1}}:null;var P=P||[];P[P.length]={get:function(a,b){if(/color/i.test(a)&&-1!==b.indexOf("rgb(")){var c=b.split(",");b="#";for(var d=0,e;e=c[d];d++)e=parseInt(e.replace(/[^\d]/gi,""),10).toString(16),b+=1===e.length?"0"+e:e;b=b.toUpperCase()}return b}};
P[P.length]={set:function(a,b){b.constructor!==Number||/zIndex|fontWeight|opacity|zoom|lineHeight/i.test(a)||(b+="px");return b}};function Ha(a,b,c,d){b=a.g(b);for(a=b[d];a;a=a[c])if(1===a.nodeType)return a;return null}p=Da.prototype;p.first=function(a){return Ha(this,a,"nextSibling","firstChild")};p.next=function(a){return Ha(this,a,"nextSibling","nextSibling")};p.prev=function(a){return Ha(this,a,"previousSibling","previousSibling")};
p.getAncestorBy=function(a,b){for(a=this.g(a);(a=a.parentNode)&&1===a.nodeType;)if(b(a))return a;return null};p.insertBefore=function(a,b){var c;a=this.g(a);b=this.g(b);(c=b.parentNode)&&c.insertBefore(a,b);return a};
p.q=function(a,b,c){var d=[],e,f,g;if(!(a=G(a)))return d;if("undefined"===typeof b)b=this.p;else if(b=this.g(b),!b)return d;c&&(c=G(c).toUpperCase());if(b.getElementsByClassName)for(f=b.getElementsByClassName(a),b=f.length,e=0;e<b;e++)g=f[e],c&&g.tagName!==c||(d[d.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,e=0;e<b;e++)g=f[e],a.test(g.className)&&(d[d.length]=
g);return d};
function Ea(a){a.Sa||(a.Sa=function(){function b(){if(!b.isReady){b.isReady=!0;for(var a=0,c=d.length;a<c;a++)d[a]()}}var c=!1,d=[];(function(){if(!c){c=!0;var d=a.p,f=window;if(t&&f===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);L(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,f=c.length;a<f;a++)"stylesheet"===c[a].getAttribute("rel")&&k++}d.styleSheets.length!==k?setTimeout(arguments.callee,0):b()}})()}f.attachEvent?(f.attachEvent("onload",b),L(function(){f.detachEvent("onload",
b)})):f.addEventListener&&(f.addEventListener("load",b,!1),L(function(){f.removeEventListener("load",b,!1)}))}})();return function(a){b.isReady?a():d[d.length]=a}}())}var D=new Da;var Q={},Ia=[];function Ja(a,b){function c(){d++;d>=e&&b.apply(null,Ka(a))}"string"===typeof a&&(a=[a]);for(var d=0,e=a.length,f=0;f<e;f++)La(a[f],c)}function Ka(a){for(var b=[],c=0;c<a.length;c++)b.push(Q[a[c]]||null);return b}
function La(a,b){function c(){var a=d.readyState;if("undefined"===typeof a||/^(?:loaded|complete)$/.test(a))if(a=d.src,d=d.onload=d.onreadystatechange=null,Q[a])b(Q[a]);else{var c=Ia.pop();c&&(Q[a]=c,b(c))}}if(Q[a])b(Q[a]);else{var d=Ma();d.src=a;document.addEventListener?d.onload=c:d.readyState&&(d.onreadystatechange=c);Fa(d)}}function Ma(){var a=document.createElement("script");a.type="text/javascript";a.charset="utf-8";a.async=!0;return a}
window.ECMA_define=window.ECMA_define||function(a){var b=Ga();b?(a=a(),(b=b.src)?Q[b]=a:Ia.push(a)):(b=a(),Ia.push(b))};window.ECMA_require=window.ECMA_require||function(a,b){Ja(a,b)};function Na(a){this.K=x({closeBoardRenderUrl:"http://ecma.bdimg.com/public03/imageplus/v2/dailog/close_board.app.js"},this.K||{});this.s=x(this.K,a)}Na.prototype.get=function(a,b){return a in this.s?this.s[a]:b};function Oa(a,b,c){this.w="f21ac82b21eeb7322631b6aa94e17f45"+H();this.R=c;this.Ga=this.render();a.insertBefore(this.Ga,a.firstChild);Pa(this,b)}function Pa(a,b){var c=D.g(a.w+"-icon");A(c,"mouseover",function(a){ma(a);if(a=c.nextSibling)a.style.display="block";b("tipmouseover")});A(c,"mouseout",function(a){ma(a);if(a=c.nextSibling)a.style.display="none";b("tipmouseout")});A(c,"click",function(a){ma(a);b("tipclick")})}
Oa.prototype.render=function(){var a="#${domId} {position:absolute;top:0;left:0;right:auto;bottom:auto;margin:0;padding:0;border:0;width:200px;background:transparent;-webkit-box-sizing:content-box;box-sizing:content-box;}#${domId} div{float:left;width:144px;height:17px;line-height:17px;margin:3px 0 0 -2px;background:url(${TIP_BACK_URL}) 0 0 no-repeat;_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='${TIP_BACK_URL}');font-family:sans-serif;text-align:center;font-size:12px;color:#666;padding:8px 10px;display:none;-webkit-box-sizing:content-box;box-sizing:content-box;}#${domId}-icon {float:left;height:38px;width:38px;cursor:default;background:url(${ICON_URL}) 0 0 no-repeat;_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='${ICON_URL}');-webkit-box-sizing:content-box;box-sizing:content-box;}#${domId}-icon:hover {float:left;height:38px;width:38px;}#${domId} #${domId}-icon:hover {background:url(${ICON_HOVER_URL}) 0 0 no-repeat;_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='corp',src='${ICON_HOVER_URL}');}";this.R&&
(a+="#${domId}-icon {width:34px;height:34px;margin:2px 0 0 2px;cursor:pointer;}#${domId}-icon:hover {width:34px;height:34px;}");var b=document.createElement("div");b.id=this.w;b.innerHTML='<a href="javascript:void(0);" id="'+this.w+'-icon"></a>'+(this.R?"":'<div id="'+this.w+'-msg">\u67e5\u770b\u6807\u8bc6\u83b7\u53d6\u66f4\u591a\u4fe1\u606f</div>');var c=b.childNodes[0],a=na(a,{domId:this.w,TIP_BACK_URL:"//ecma.bdimg.com/public03/imageplus/tip-back.png",ICON_URL:this.R?"//ecma.bdimg.com/public03/imageplus/i_2.png":
"//ecma.bdimg.com/public03/imageplus/tip.png",ICON_HOVER_URL:this.R?"//ecma.bdimg.com/public03/imageplus/i_2.png":"//ecma.bdimg.com/public03/imageplus/tip-hover.png"}),d=D.p,e=c.parentNode;if(e){var f=d.createElement("style");f.type="text/css";f.media="screen";e.insertBefore(f,c);f.styleSheet?f.styleSheet.cssText=a:f.appendChild(d.createTextNode(a))}return b};function R(a){this.d=this.m=0;this.a=[];this.L=[];this.config=a;this.$=a.get("cacheTime");this.$||(this.$=Math.ceil(new Date/36E5));this.W={};this.r=null;this.ba=!1}R.prototype.ea=function(){};R.prototype.ua=function(){};R.prototype.xa=function(){};
function Qa(a,b){var c=a.getImgIndex(b);if(!c){var c=++a.d,d=a.ua(b),e=function(b){Sa(a,b.relatedTarget||b.fromElement,c)||a.b(c,"mouseover")},f=function(b){Sa(a,b.relatedTarget||b.toElement,c)||a.b(c,"mouseout")},g=function(){a.b(c,"mousemove")};A(d,"mouseover",e);A(d,"mouseout",f);A(d,"mousemove",g);A(b,"mouseover",e);A(b,"mouseout",f);A(b,"mousemove",g);A(b,"click",function(){a.b(c,"clickimg")});a.a[c]={f:b,h:d,t:{},sa:{},u:{},o:{},ca:0,F:{},V:"",Ua:null,Ta:!1};a.m++}return c}
function Sa(a,b,c){a=a.a[c];if(!a||null==b)return!1;if(a.f===b||D.contains(a.h,b))return!0;var d=!1;a.links&&F(a.links,function(a){if(a===b||D.contains(a,b))return d=!0,!1});return d}
function Ta(a,b,c,d){var e="string"===typeof c?c:c.url,f="string"===typeof c?"":c.id,g=new S(a,b),k=g.getImgWrapper();if(k){c=e;var m=a.config.get("vReg");m&&m.test(c)||(c=-1!==c.indexOf("?")?c+"&":c+"?",c+="cacheTime="+a.$);ECMA_require(c,function(c){var h=a.a[b];if(null!=h&&D.contains(document.documentElement,k)){a.W[e]||(a.W[e]=c.get("AD_CONFIG"));var n={};I(n,a.W[e]);var l=d.id||n.id||"f21ac82b21eeb7322631b6aa94e17f45"+b+H();d.id=l;a.b(b,"renderloaded",e,l);var m=a.config.get("adConfig");m&&I(n,
m,!0);I(n,d,!0);n.api=g;c.set("AD_CONFIG",n);n=document.createElement("div");n.id=l;n.style.margin="0px";n.style.padding="0px";n.style.border="none";n.style.overflow="visible";n.style.textAlign="left";k.appendChild(n);h.t[l]=n;h.u[l]="canvasopen";h.o[l]={id:f,url:e};h.ca++;g.l=l;c=c.start(!0,!0);h.sa[l]=c}})}}R.prototype.da=function(a){var b=this,c=b.a[a];if(c&&!c.V){var d=new Oa(c.h,function(){var c=[].slice.call(arguments,0);c.unshift(a);b.b.apply(b,c)},b.ba);c.V=d.w;c.Ua=d}};
function Ua(a,b,c){function d(a){var b={},c;for(c in a)if(a.hasOwnProperty(c)){var e=ya(a[c]);if("object"===e||"array"===e){if("object"!==e||a[c].constructor===Object)b[c]=d(a[c])}else b[c]=a[c]}return b}var e=a.a[b];a=e.sa;var e=e.o,f=c||"ALL";c=[];if(v(f))c=f;else if("ALL"===f)for(var g in a)a.hasOwnProperty(g)&&c.push(g);else c=[f];f=[];b="f21ac82b21eeb7322631b6aa94e17f45closeBoardCavnasId"+b;for(var k=0;k<c.length;k++)if(g=c[k],g!==b){var m=e[g];f.push({renderId:m.id,renderUrl:m.url,data:d(a[g].adConfig)})}return f}
R.prototype.closeAd=function(a,b,c){var d=this.a[a],e=d.t,d=d.u;if("ALL"===b){for(var f in e)e.hasOwnProperty(f)&&(e[f].style.display="none",d[f]="canvasclose");this.b(a,"hide");this.b(a,"onclose",c)}else e[b].style.display="none",d[b]="canvasclose",this.fire(a,b,"hide"),this.fire(a,b,"onclose",c)};R.prototype.b=function(a,b,c){if(3<arguments.length){var d=Array.prototype.slice.call(arguments);d.shift();d.unshift("ALL");d.unshift(a);this.fire.apply(this,d)}else this.fire(a,"ALL",b,c)};
R.prototype.fire=function(a,b,c,d){var e=this.L[a];if(e){var f;"string"!==typeof c&&(f=c,c=c.type);if((e=e[c])&&0!==e.length){var g=Array.prototype.slice.call(arguments,3);f?f.imgIndex=a:f={imgIndex:a,id:H(),type:c};g.unshift(f);for(var k="ALL"===b,m,q=0,h=e.length;q<h;q++)f=e[q],m=f.canvas,(k||"ALL"===m||m===b)&&f.func.apply(null,g)}}};R.prototype.getImgIndex=function(a){if("number"===typeof a)return a;for(var b=this.a,c=1,d=b.length;c<d;c++)if(b[c]&&b[c].f===a)return c;return 0};
R.prototype.j=function(a){for(var b=this.a,c=1,d=b.length;c<d;c++)if(b[c]&&b[c].f===a)return b[c];return null};function U(a,b){for(var c=a.a,d=1,e=c.length;d<e;d++)c[d]&&b(c[d],d)}R.prototype.recordKey=function(a,b,c,d){if(a=this.a[a])a.F[b]=a.F[b]||[],a.F[b].push("string"===typeof c?{type:c,time:d}:c)};R.prototype.addListener=function(a,b,c,d){var e=this.L[a];e||(e=this.L[a]={});e[c]||(e[c]=[]);e[c].push({canvas:b,func:d})};
R.prototype.getImgs=function(){for(var a=[],b=1;b<=this.m;b++)null!=this.a[b]&&a.push(this.a[b].f);return a};function S(a,b){this.c=a;this.d=b;this.l="";this.version="1.0.7"}S.prototype.getImgs=function(){return this.c.getImgs()};S.prototype.j=function(){return this.c.a[this.d]};S.prototype.rendDone=function(a){var b=this.c,c;"object"===typeof a?(c=a.showTip,this.c.ba=null!=a.useV2Tip?a.useV2Tip:this.c.ba):c=a;c&&b.da(this.d);b.a[this.d].Ta=!0};
S.prototype.addListener=function(a,b){this.c.addListener(this.d,this.l,a,b)};S.prototype.getImg=function(){var a=this.j();return a?a.f:null};S.prototype.getImgWrapper=function(){var a=this.j();return a?a.h:null};S.prototype.getCanvas=function(){var a=this.j();return a&&a.t?a.t[this.l]:null};S.prototype.getImgIndex=function(){return this.d};S.prototype.getImgRect=S.prototype.getAdRect=function(){var a=this.j();return a.rect||N(a.f)};
S.prototype.setShareData=function(a,b,c){var d=this.c;if(c)d.r=d.r||{},d.r[a]=b;else if(c=d.a[this.d])c.U=c.U||{},c.U[a]=b};S.prototype.getShareData=function(a,b){if(b){var c=this.c.r;return c?c[a]||null:null}return(c=this.j())&&c.U?c.U[a]:null};S.prototype.recordKey=function(a,b){this.c.recordKey(this.d,this.l,a,b)};S.prototype.recordTime=S.prototype.recordKey;S.prototype.getRecordedKey=function(){var a=this.j();return a&&a.F?a.F[this.l]:null};S.prototype.getRecordedTime=S.prototype.getRecordedKey;
S.prototype.getRenderUrl=function(){var a=this.j();return a&&a.o?a.o[this.l].url||"":""};S.prototype.getRenderId=function(){var a=this.j();return a&&a.o?a.o[this.l].id||"":""};S.prototype.getLoaderConfig=function(a,b){var c=this.c.config;return c.get.apply(c,arguments)};
S.prototype.closeAd=function(a){var b={usePrompt:!0,reasons:"",availableReasons:null,canvas:"ALL",closeBy:"AD"};I(b,a||{},!0);a=b.canvas;if("string"===typeof a)"ME"===a.toUpperCase()&&(a=this.l,b.canvas=this.l);else for(var c=0;c<a.length;c++)"ME"===a[c].toUpperCase()&&(a[c]=this.l);if(b.usePrompt){b.materials=Ua(this.c,this.d,b.canvas);a=this.c;var c=this.d,d=a.a[c],e="f21ac82b21eeb7322631b6aa94e17f45closeBoardCavnasId"+c,f=d.u[e];if("canvasloading"!==f&&"canvasopen"!==f)if("canvasclose"===f)if(d=
a.a[c],b=d.t,d=d.u,"ALL"===e){for(var g in b)b.hasOwnProperty(g)&&(b[g].style.display="block",d[g]="canvasopen");a.b(c,"show");a.b(c,"reopen")}else b[e].style.display="block",d[e]="canvasopen",a.fire(c,e,"show"),a.fire(c,e,"reopen");else if(g=a.config.get("closeBoardRenderUrl"))d.u[e]="canvasloading",b=b||{},b.id=e,Ta(a,c,{url:g,id:"closeBoardRenderId"},b)}else for(g=[],g="string"===typeof a?[a]:a,c=0;c<g.length;c++)this.c.closeAd(this.d,g[c],b.reasons)};
S.prototype.triggerAll=function(a,b){if(2<arguments.length){var c=Array.prototype.slice.call(arguments);c.unshift(this.d);this.c.b.apply(this.c,c)}else this.c.b(this.d,a,b)};S.prototype.getRenderInfos=function(){var a=this.j(),b=[];if(!a||!a.o)return b;var a=a.o,c={},d,e;for(e in a)a.hasOwnProperty(e)&&(d=a[e],c[d.id]||(c[d.id]=!0,b.push({id:d.id,url:d.url})));return b};S.prototype.getEnv=function(){return{from:"desktop"}};S.prototype.inView=function(){var a=this.j();return a?a.inView:!0};function Va(){var a=document;return("BackCompat"===a.compatMode?a.body:a.documentElement).clientWidth}function Wa(){var a=document;return("BackCompat"===a.compatMode?a.body:a.documentElement).clientHeight};function W(a){var b={top:0,left:0,width:0,height:0};if(Xa(a))return b;var c=a.baiduImageplusOverflowParent;if(c&&Ya(c))return Za(a,c);if((c=a.baiduImageplusHiddenParent)&&Xa(c))return b;var d=!1,e=!1,f=null,c=baidu.dom.getAncestorBy(a,function(b){var c=D.getStyle(b,"position");if("absolute"===c||"fixed"===c)e=!0;if(Xa(b))return d=!0;if(e&&"static"===c||!Ya(b))return!1;f=Za(a,b);return f.clipped});if(!c)return N(a);if(d)return a.baiduImageplusHiddenParent=c,b;a.baiduImageplusOverflowParent=c;return f}
function Xa(a){return"none"===D.getStyle(a,"display")||"0"===D.getStyle(a,"opacity")||"hidden"===D.getStyle(a,"visibility")}function Ya(a){if("HTML"===a.nodeName||"BODY"===a.nodeName)return!1;var b=D.getStyle(a,"display"),c=D.getStyle(a,"float");return"inline"!==b||"none"!==c&&""!==c?"visible"!==D.getStyle(a,"overflow")?!0:!1:!1}
function Za(a,b){var c=N(a),d=N(b),e=c.top,f=c.left,g=c.width,k=c.height,m=d.top,q=d.left,h=d.width,d=d.height;if(e>=m&&f>=q&&f+g<=q+h&&e+k<=m+d)return c.clipped=!1,c;c={clipped:!0};f>q?(c.left=f,c.width=h-(f-q)):(c.left=q,c.width=g-(q-f));c.width=Math.min(c.width,g,h);e>m?(c.top=e,c.height=d-(e-m)):(c.top=m,c.height=k-(m-e));c.height=Math.min(c.height,k,d);return c};function X(a){this.N=a.get("imgRectKey","baiduImageplusRect");R.call(this,a);(a=baidu.cookie.get("baiduImageplusQid"))&&baidu.cookie.remove("baiduImageplusQid",{path:"/"});this.Ea=a||H()+(new Date).getTime();this.r=this.r||{};this.r.qid="";this.pa=this.config.get("maxAdCount");this.na=this.config.get("maxMiniAdCount");this.D=this.pa+this.na;this.H=this.I=0;this.n={};this.Ba={};this.Aa=document.getElementsByTagName("img").length;this.Ca=!1;this.Fa=[];this.qa=this.aa=0;this.X=null;this.Z=this.P=0;this.Da=
this.config.get("noLogo");this.oa=this.config.get("maxMultiFormImgCount");this.B=(this.M=this.config.get("formList"))?this.M.length:0;this.ma=!1}baidu.inherits(X,R);function $a(a){a=(a=a.config.get("imgContainerId"))&&D.g(a)||document;return baidu.lang.toArray("img"===a.nodeName.toLowerCase()?[a]:a.getElementsByTagName("img"))}p=X.prototype;
p.ea=function(){function a(){ab(b);b.ha();b.Ca=!0;F(b.Fa,function(a){a()})}var b=this;b.config.get("autoStart")&&("complete"===document.readyState?a():A(window,"load",a))};function ab(a){var b=a.m;0<b&&U(a,function(b,c){bb(a,c)});if(b<a.D){var c=$a(a),d=function(){if(c.length&&!(a.m>=a.D)){var b=c.shift();cb(a.config,b)?a.fa(b,function(c){c?(db(a,b),K(d,500)):d()}):d()}};d()}}function eb(a){var b;try{b=decodeURIComponent(a.src)}catch(c){b=pa(a.src)}return b}
function fb(a,b){if(!b)return!1;switch(b){case 1:return a.Z<a.na;case 2:return a.P<a.pa;default:return!1}}
p.fa=function(a,b){var c=this,d=c.getImgIndex(a);if(d)bb(c,d),b&&b(d);else if(c.m>=c.D)b&&b(0);else if(gb(c,a))b&&b(0);else{var e=(new Date).getTime();hb(a,function(d){if(!d||c.m>=c.D)b&&b(0);else{d=a[c.N]=W(a);var g=Y(c.config,d);if(fb(c,g)){var k=(new Date).getTime();c.getData(a,function(d){if(d&&fb(c,g)){var f=(new Date).getTime(),h;try{h=decodeURIComponent(a.src)}catch(n){h=a.src}for(var l,u,w,z,E=!1,V=!1,Db=function(a,b,d){if(a.imgIndex===l){for(var h in c.n)c.n.hasOwnProperty(h)&&c.recordKey(l,
d,h,c.n[h]);c.recordKey(l,d,"found",e);c.recordKey(l,d,"loading",k);c.recordKey(l,d,"loaded",f);c.recordKey(l,d,"render_loaded",(new Date).getTime());c.recordKey(l,d,"ad_count",c.aa);c.recordKey(l,d,"pg_rect",ib());a=M.rect;c.recordKey(l,d,"img_rect",[a.top,a.left,a.width,a.height].join("_"))}},ra=0,Eb=d.length;ra<Eb;ra++)if(u=d[ra],u.cproId&&c.config.get("growCookie")&&!c.ma&&(c.ma=!0,w=window.document.createElement("iframe"),w.style.cssText="display: none;",w.src=c.config.get("growCookie")+"CPROID="+
u.cproId,window.document.body.appendChild(w)),w=u.ads,"product"===u.name&&jb(c.config.get("unionId"),"c_"+(w||[]).length),w.length){for(var ta=0,Fb=w.length;ta<Fb;ta++)if(z=w[ta],h===z.image){var Ra=kb(c,u.render);if(Ra){z.position_type=u.position_type;z.exp_list=u.exp_list;u.box&&(z.box=z.box||{},I(z.box,u.box,!0));if(!V){E=a[c.N];l=Qa(c,a);c.aa++;1===g?c.Z++:c.P++;var M=c.a[l],V=W(a);M.rect=E||V;M.Oa=g;Y(c.config,V)?M.inView=lb(c,a):(M.inView=!1,M.h.style.display="none");V=!0;c.addListener(l,"ALL",
"renderloaded",Db)}Ta(c,l,{url:Ra,id:u.render_id},z);E=!0}}E&&mb(c,l)}b&&b(l||0)}else b&&b(0)},{imgType:g})}else b&&b(0)}})}};function kb(a,b){var c=a.config.get("renderReplaceRules");if(!c)return b;for(var d in c)if(c.hasOwnProperty(d)){var e=RegExp(d);if(b.match(e))return(c=c[d])?b.replace(e,c):""}return b}
p.T=function(a){if(a=this.getImgIndex(a)){this.ya(a);var b=this.a[a];if(b){var c=b.t,d=b.u,e=b.o;this.b(a,"release");for(var f in c)c.hasOwnProperty(f)&&(D.remove(f),c[f]=null,d[f]=null,e.ALL=null,b.ca--);0<b.ca||(b.V&&D.remove(b.V),f=b.f,C(f,"mouseover"),C(f,"mousemove"),C(f,"mouseout"),C(f,"click"),b=b.h,C(b,"mouseover"),C(b,"mousemove"),C(b,"mouseout"),this.xa(a),this.a[a]=null,this.L[a]=null,this.m--)}this.aa--}};
p.ua=function(a){var b=document.createElement("div");b.style.cssText="position:absolute;border:0;margin:0;padding:0;height:0;overflow:visible;text-align:left;";nb(b,a);document.body.appendChild(b);var c=a[this.N];a[this.N]=null;ob(this,c,b);return b};
function ob(a,b,c){b=b.nodeName?W(b):b;var d=a.X;d||("static"===D.getStyle(document.body,"position")?a.X=d={top:0,left:0}:a.X=d=baidu.dom.getPosition(document.body));c.style.top=b.top-d.top+"px";c.style.left=b.left-d.left+"px";c.style.width=b.width+"px"}p.xa=function(a){(a=this.a[a])&&D.remove(a.h)};
p.getData=function(a,b,c){if(location.href.match(/(\?|&)baiduImageplus=/))b(window.baiduImagePlusFakeData);else{c=1===(c||{}).imgType;var d=this,e,f,g;if(a.nodeName&&"img"===a.nodeName.toLowerCase()){e=eb(a);if(f=d.Ba[e]){b(f);return}f=d.config.get("apiWd");"function"===typeof f&&(f=f(a));f=encodeURIComponent(f);g=a.offsetWidth;a=a.offsetHeight}else e=a.image,f=a.wd||"",g=a.width,a=a.height;var k=d.config.get("api"),m=d.config.get("unionId"),q={src:d.config.get("apiSrc"),k:f,"iurl[]":e,qid:d.Ea,tu:m,
width:g,height:a,opt:d.n.opt||"",v:d.n.v||"",cached:0,pic:d.Aa,explist:d.config.get("expList",""),vn:pb,pagetitle:encodeURIComponent(window.document.title),screen_width:Va(),screen_height:Wa(),prot:1};if(d.config.get("clid")||d.config.get("cuid"))q.clid=d.config.get("clid"),q.cuid=d.config.get("cuid");"https:"==document.location.protocol&&(q.prot=2);var k=k+(-1===k.indexOf("?")?"?":"&"),h=function(a,b){I(a,q);baidu.sio.callByServer(k+qa(a),b,{charset:"gbk",timeOut:1E4,onfailure:b})},n=0;e=function(a,
b,c){var e={dri:++d.qa};c&&(e.is_small_pic=1);b&&d.B&&(I(e,d.M[n%d.B]),n++);h(e,a)};if(c)e(b,!1,!0);else if(0<=d.oa&&d.P>=d.oa)e(b,!0);else{var l=parseInt(d.config.get("yuetuFormId",0)||0,10),u=!1;0<l&&F(d.M||[],function(a){if(l===parseInt(a.formId||0,10))return u=!0,!1});var w=[],z=0,E=d.B;1>E&&(E=1);c=function(a){a&&w.push(a);z++;z>=E&&b(Array.prototype.concat.apply([],w))};0<l&&!u&&(E+=1,a={dri:++d.qa,formId:l},h(a,c));if(1>d.B)e(c,!1);else for(a=0;a<d.B;a++)e(c,!0)}}};
function hb(a,b){if(a.complete)b(!0);else{var c=function(){b(!0);C(a,"load",c)};A(a,"load",c);var d=function(){b(!1);C(a,"abort",d);C(a,"error",d)};A(a,"abort",d);A(a,"error",d)}}function qb(a,b,c){var d=[];c?(d[0]=c,d[1]=b):(d[0]=a.getImgIndex(b),d[1]=a.a[d[0]]);return d[0]&&d[1]?d:null}
p.ga=function(a,b){var c=qb(this,a,b);if(c){var d=c[0],c=c[1];if(D.contains(document.documentElement,c.f)){var e=W(c.f),f=c.rect;if(e.top!==f.top||e.left!==f.left||e.width!==f.width||e.height!==f.height)if(c.rect=e,Y(this.config,e))ob(this,e,c.h),bb(this,d),nb(c.h,c.f),this.b(d,"resize",e);else if(d=this.getImgIndex(d))c=this.a[d],c.inView=!1,c.h.style.display="none",this.b(d,"hide")}else this.T(d),1===c.Oa?this.Z--:this.P--}};
function bb(a,b){var c=a.a[b];c.h.style.display="block";c.inView=lb(a,c.f);a.b(b,"show")}p.za=function(){var a=this;U(a,function(b,c){a.ga(b,c)})};p.ha=function(){var a=this;rb(function(){a.m&&(sb(a),U(a,function(b,c){a.ga(b,c);tb(a,b,c)}))});ub(function(){a.m&&U(a,function(b,c){tb(a,b,c)})})};function rb(a){var b;A(window,"resize",function(){b&&Ba(b);var c=arguments,d=this;b=K(function(){a.apply(d,c);b=null},500)})}
function ub(a){function b(){d=g;c=null;a.apply(e,f);e=f=null}var c,d,e,f,g;A(window,"scroll",function(){e=this;f=arguments;g=(new Date).getTime();d=d||g;var a=1E3-(g-d);0>=a?(Ba(c),b()):c||(c=K(b,a))})}function tb(a,b,c){var d=lb(a,b.f);b.inView!==d&&(b.inView=d,a.b(c,d?"intoview":"outview"));d&&a.b(c,"inview")}function lb(a,b){a.I=a.I||baidu.page.getViewWidth();a.H=a.H||baidu.page.getViewHeight();var c=b.getBoundingClientRect();return 0<c.bottom&&c.top<a.H&&0<c.right&&c.left<a.I}
function sb(a){a.I=baidu.page.getViewWidth();a.H=baidu.page.getViewHeight()}function db(a,b){function c(a){(a="."===a.charAt(0)?baidu.q(a.replace(/^\./,"")):D.g(a.replace(/^#/,"")))&&(baidu.lang.isArray(a)?a.length&&F(a,function(a){d.S(a,f,e)}):d.S(a,f,e))}var d=a,e=b?d.getImgIndex(b):1,f=d.a[e];if(f){var g=d.config.get("imgCoverId");g&&c(g);(g=d.config.get("imgCovers"))&&F(g.split(","),c)}}
p.S=function(a,b,c){var d=this;if(b=qb(d,b,c)){var e=b[0];b=b[1];b.links=b.links||[];b.A=b.A||[];c=function(a){Sa(d,a.relatedTarget||a.fromElement,e)||d.b(e,"mouseover")};var f=function(a){Sa(d,a.relatedTarget||a.toElement,e)||d.b(e,"mouseout")},g=function(){d.b(e,"mousemove")},k=function(){d.b(e,"clickimg")};b.links.push(a);b.A.push({mouseover:c,mouseout:f,mousemove:g,click:k});A(a,"mouseover",c);A(a,"mouseout",f);A(a,"mousemove",g);A(a,"click",k);nb(b.h,a)}};
function nb(a,b){var c;var d=b,e=d;for(c=[d];(e=e.offsetParent)&&"body"!==e.nodeName.toLowerCase();)"static"!==D.getStyle(e,"position")&&(d=e,c.push(d));if(6===t)c=parseInt(D.getStyle(d,"z-index"),10)||0;else{for(e=0;c.length;)d=c.pop(),d=parseInt(D.getStyle(d,"z-index"),10),isNaN(d)||(e=Math.max(d,e));c=e}d=parseInt(D.getStyle(a,"z-index"),10)||0;c>d&&(a.style.zIndex=c+10)}
p.Va=function(a,b){var c=this.getImgIndex(b);if(c&&(c=this.a[c],c.links)){var d=baidu.array.indexOf(c.links,a);if(-1!==d){var e=c.A[d],f;for(f in e)e.hasOwnProperty(f)&&C(a,f,e[f]);baidu.array.removeAt(c.links,d);baidu.array.removeAt(c.A,d)}}};p.ya=function(a){if(a=this.getImgIndex(a)){var b=this.a[a];b.links&&(F(b.links,function(a,d){var e=b.A[d],f;for(f in e)e.hasOwnProperty(f)&&C(a,f,e[f])}),b.links.length=0,b.A.length=0)}};
function mb(a,b){if(a.config.get("autoDetectCover")){var c=a.config.get("findCoverLevel");if(!(0>=c)){var d=a.a[b];if(d){var e=d.f,f=-1,g={BODY:!0,HEAD:!0,SCRIPT:!0,STYLE:!0,META:!0,HTML:!0},k=function(m,q){if(!(f>=c||g[m.nodeName])){f++;var h;if(h=0!==q)if("a"===m.nodeName.toLowerCase()?h=!0:(h=D.getStyle(m,"cursor"),h="pointer"===h||0===h.indexOf("url(")),h&&(h=!D.contains(m,e))){h=N(m);var n=d.rect,l=h.top,u=h.left,w=n.top,z=n.left,u=Math.abs(u-z)<(u>z?n.width:h.width);h=Math.abs(l-w)<(l>w?n.height:
h.height)&&u}h&&a.S(m,d,b);4!==q&&(h=baidu.dom.first(m))&&k(h,1);3!==q&&(h=baidu.dom.next(m))&&k(h,2);2!==q&&(h=baidu.dom.prev(m))&&k(h,3);(0===q||4===q)&&(h=m.parentNode)&&k(h,4);f--}};k(e,0)}}}}function gb(a,b){var c=!1;U(a,function(a){c||a.h&&(c=D.contains(a.h,b))});return c}function ib(){var a=baidu.page.getViewHeight(),b=baidu.page.getViewWidth(),c=baidu.page.getScrollTop(),d=baidu.page.getScrollLeft();return[c,d,b,a].join("_")}p.da=function(){this.Da||X.superClass.da.apply(this,arguments)};function vb(a){var b=new Image,c="baidu_ecom_lego_log_"+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 Z(a){this.la=a.get("imgStatusKey","baiduImageplusStatus");this.ka=a.get("imgSnapshotKey","baiduImageplusSnapshot");this.Y=!1;this.ra=0;this.va={};this.La=/.(?:gif)(?:$|#|\?)/;this.Ma=/^(https?:\/\/)?[^/]+($|\/$)/;X.call(this,a)}baidu.inherits(Z,X);
Z.prototype.ea=function(){var a=this;if(a.config.get("autoStart")&&(!a.config.get("banHomePage")||!a.Ma.test(window.location.href))){a.n.opt=1;a.n.v=8;var b=a.config.get("startOnLoad"),c,d=function(){function d(){a.m<a.D&&wb(a);a.za();a.ra++;K(d,a.config.get("tickInterval"))}b&&(a.n.onload=(new Date).getTime());c&&clearTimeout(c);d();a.ha()};b&&"complete"!==document.readyState?(A(window,"load",d),c=setTimeout(d,a.config.get("onloadTimeout"))):d()}};
function xb(a,b){if(a.ra===parseInt(a.config.get("checkNoBigPicAtTickNum",8),10)){b=b||[];var c=0,d=!0;F(b,function(b){if(cb(a.config,b)){b=Y(a.config,b);if(1<b)return d=!1;1===b&&c++}});if(d){var e=a.config.get("noBigPicLogUrl","http://bzclk.baidu.com/nopic.jpg")+"?tu="+a.config.get("unionId","")+"&url="+encodeURIComponent(window.location.href)+"&simg="+c+"&cache="+(new Date).getTime();vb(e)}}}
function yb(a,b){b=b||[];F(b,function(b){if(!b||a.va[b.src]||!Y(a.config,b)||!a.La.test(b.src))return!0;a.va[b.src]=!0;b="gif&hostname="+encodeURIComponent(window.location.hostname)+"&gifsrc="+encodeURIComponent(b.src);jb(a.config.get("unionId"),b)})}function wb(a){var b=$a(a);xb(a,b);yb(a,b);var c=a.la;F(b,function(b){if(b&&cb(a.config,b))switch(b[c]||0){case 0:zb(a,b);break;case 1:var e=Ab(b),f=b[a.ka],g=!1,k;for(k in e)if(e.hasOwnProperty(k)&&e[k]!==f[k]){g=!0;break}g&&(b[c]=1,zb(a,b))}})}
function zb(a,b){var c={};if(c.immediate||!a.Y)a.Y=!0,a.fa(b,function(d){a.Y=!1;var e=a.la;d?(b[e]=2,db(a,b)):(b[e]=1,b[a.ka]=Ab(b));c.callback&&c.callback(d)})}function Ab(a){var b=W(a);return{src:a.src,opacity:D.getStyle(a,"opacity"),visibility:D.getStyle(a,"visibility"),width:a.offsetWidth,height:a.offsetHeight,Za:b.clipped}}Z.prototype.T=function(a){var b=a;if("number"===typeof b)if(b=this.a[b])b=b.f;else return;b.baiduImageplusStatus=0;Z.superClass.T.call(this,a)};function Bb(a){this.K=x({autoStart:!0,imgContainerId:"",ignoredContainers:"",imgCoverId:"",imgCovers:"",apiSrc:1E3,apiWd:function(a){return a.alt||""},api:"//imageplus.baidu.com/ui",minImgWidth:300,minImgHeight:200,maxAdCount:4,minMiniImgWidth:200,minMiniImgHeight:180,maxMiniAdCount:2,autoDetectCover:!0,findCoverLevel:4,supportGIF:!0,ignoreGIFs:"dot.gif grey.gif 1x1.gif none.gif loadb.gif tou.gif loading.gif load.gif lazyload.gif lazy.gif loader.gif lazy_loading.gif".split(" "),moreIgnoreGIFs:"",
growCookie:"//imageplus.baidu.com/cookie_iframe.html?",vReg:/[?&]v=\w+(&|$)/i,noLogo:!1,maxMultiFormImgCount:-1,moreFormList:[],clid:"",cuid:"",cacheTime:""},this.K||{});Na.call(this,a);a=this.get("moreFormList",[]);if(0<a.length){var b=this.get("formList",[]);1>b.length&&b.push({formId:0});var c={};F(b,function(a){c[a.formId]=!0});F(a,function(a){c[a.formId]||b.push({formId:a.formId})});this.s.formList=b}this.Ha=this.get("supportGIF")?/.(?:html|htm)(?:$|#|\?)/:/.(?:gif|html|htm)(?:$|#|\?)/;this.minWidth=
parseInt(this.get("minImgWidth"),10);this.minHeight=parseInt(this.get("minImgHeight"),10);this.Ra=parseInt(this.get("minMiniImgWidth"),10);this.Qa=parseInt(this.get("minMiniImgHeight"),10);(a=G(this.get("unionId")))&&0===a.indexOf("u")&&(a=a.slice(1));this.s.unionId=a;this.C=null;var d={};a=this.get("ignoreGIFs",[]).concat(this.get("moreIgnoreGIFs"));F(a,function(a){d[a]=!0});this.Na=d;this.Ka=/(?:\S+\/)(\w+\.gif)(?:$|#|\?)/i}baidu.inherits(Bb,Na);
function Cb(a,b){var c=a.get("ignoredContainers");if(!c)return!1;a.C||(a.C=[],F(c.split(","),function(b){b="."===b.charAt(0)?baidu.q(b.slice(1)):[D.g(b.slice(1))];a.C=a.C.concat(b)}));var d=!1;F(a.C,function(a){if(a&&(D.contains(a,b)||a===b))return d=!0,!1});return d}
function cb(a,b){var c=b.getAttributeNode("data-baiduimageplus-ignore");return c&&c.specified||a.Ha.test(b.src)||Cb(a,b)||a.get("supportGIF")&&(c=b.src,(c=(c=(c||"").match(a.Ka))?c[1]:!1)&&a.Na[c])?!1:!!Y(a,{width:b.offsetWidth,height:b.offsetHeight})}function Y(a,b){var c=b.width,d=b.height;return d>=a.minHeight&&c>=a.minWidth?2:d>=a.Qa&&c>=a.Ra?1:0};function Gb(a){Bb.call(this,a);this.s=x({tickInterval:1E3,onloadTimeout:5E3,startOnLoad:!1,banHomePage:!1,noBigPicLogUrl:"http://bzclk.baidu.com/nopic.jpg",checkNoBigPicAtTickNum:8},this.s)}baidu.inherits(Gb,Bb);function Hb(){return RegExp("^[^\\x00-\\x20\\x7f\\(\\)<>@,;:\\\\\\'\\[\\]\\?=\\{\\}\\/\\u0080-\\uffff]+$").test("BDTUJIAID")}function Ib(){if(Hb()){var a=/(^| )BDTUJIAID=([^;]*)(;|$)/.exec(document.cookie);if(a)return a[2]||null}return null};var Jb=window.cpro_id||"",$=window.baiduImagePlus||{},Kb={};Jb&&(window.cpro_id=null);!$.unionId&&Jb&&($.unionId=Jb);var pb="170525",Lb="http://bzclk.baidu.com/eye.php",Mb="https:"==document.location.protocol;Mb&&(Lb="https://sp0.baidu.com/9q9JcDHa2gU2pMbgoY3K/eye.php");function jb(a,b){baidu.sio.log(Lb+"?actionid=100&attach="+a+"_"+b+"&timestamp="+(new Date).getTime()+"_"+Math.floor(2147483648*Math.random()).toString(36)+"&vn="+pb)}
function Nb(a){function b(a){var b=(window.location.hostname||"").split(".");if(!(2>b.length))for(var c="."+b[b.length-1],d=b.length-2;0<=d;d--){var c="."+b[d]+c,e=a,f={path:"/",domain:c,ta:31536E6};if(Hb()){var f=f||{},g=f.ta;ha(g)&&(g=new Date,g.setTime(g.getTime()+f.ta));document.cookie="BDTUJIAID="+e+(f.path?"; path="+f.path:"")+(g?"; expires="+g.toGMTString():"")+(f.domain?"; domain="+f.domain:"")+(f.ob?"; secure":"")}if(!0===!!Ib())break}}function c(){for(var a="",b=10;32>a.length&&0<b;)a+=
Math.random().toString(16).slice(2),b-=1;for(b=32-a.length;0<b;)a="0"+a,b-=1;return a.substr(0,32)}function d(a){var b;a=a||"";b=b||4;for(var c=0,d=Math.pow(10,b),e=a.length,f=0;f<e;f+=b){var g=parseInt(a.substr(f,b),16);ha(g)&&(c=(c+g)%d)}return c}function e(a){return!0===!v(a)||1>a.length?!1:!0}var f=null,g=a.exp,k=Ib();k||b(c());k=Ib();if(!0===!!g&&!0===e(g)&&!0===!!k){f=x({},a);f.expList="";var m=d(k);F(g,function(a){var b=ia(a.flow),c=parseInt(b[1]||0,10),d=m%parseInt(a.mode||1E3,10);if(d<parseInt(b[0]||
0,10)||d>=c)return!0;f=x(f,a.config||{});f.expList=f.expList?f.expList+("_"+a.name):""+a.name});g="exp&explist="+f.expList+"&cookieid="+k+"&url="+encodeURIComponent(window.location.href)+"&referurl="+encodeURIComponent(window.document.referrer);jb(G(f.unionId||"").replace(/^u/,""),g)}return f||a}
function Ob(a){var b=[3,4,6,7,8,16],c=[],d=[];a.formList&&1<=a.formList.length&&(a.formList.map(function(a){-1===b.indexOf(a.formId)&&c.push(a)}),a.formList=c);a.moreFormList&&1<=a.moreFormList.length&&(a.moreFormList.map(function(a){-1===b.indexOf(a.formId)&&d.push(a)}),a.moreFormList=d);return a}
function Pb(a){if(a.unionId){a=Nb(a);var b=null;a=Ob(a||$);0!==a.formList&&(b=new Z(new Gb(a)),b.n=Kb,b.ea());window.baiduImagePlus={_status:"loaded",_loader:b};b||x(window.baiduImagePlus,{showAd:function(){return b.fa.apply(b,arguments)},removeAd:function(){return b.T.apply(b,arguments)},updateAd:function(){return b.ga.apply(b,arguments)},updateAds:function(){return b.za.apply(b,arguments)},watchAds:function(){return b.ha.apply(b,arguments)},linkAd:function(){return b.S.apply(b,arguments)},unlinkAd:function(){return b.Va.apply(b,
arguments)},unlinkAds:function(){return b.ya.apply(b,arguments)}})}}window.baiduTujia&&baidu.sio.log("http://bzclk.baidu.com/loader_repeat.jpg?tu="+G($.unionId||"").replace(/^u/,"")+"&pageurl="+encodeURIComponent(window.location.href));
if("loading"!==$._status&&"loaded"!==$._status){$._status="loading";window.baiduImagePlus=$;window.baiduTujia={config:$};Kb.start=(new Date).getTime();var Qb=$.api||"//imageplus.baidu.com/ui",Rb="&prot=1";Mb&&(Rb="&prot=2");Qb=Qb+(-1===Qb.indexOf("?")?"?":"&")+"api=config"+Rb+"&tu="+G($.unionId||"").replace(/^u/,"")+"&pic="+document.getElementsByTagName("img").length+"&vn="+pb;baidu.sio.callByServer(Qb,function(a){Kb.site_api_loaded=(new Date).getTime();a=a||{};var b=x({},a.union||{});0===parseInt(a.confPriority,
10)?(b=x(b,a),Pb(x(b,$))):(b=x(b,$),Pb(x(b,a)))},{charset:"gbk",timeOut:1E4,onfailure:Pb})};
})(/** AD_CONFIG */{}, /** LINKS */[], /** RT_CONFIG */{});
//Mon Jun 19 2017 18:56:49 GMT+0800 (CST)