!function(){var e=window.baidu||{version:"1-1-0"};e.object=e.object||{},e.object.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e.extend=e.object.extend,e.dom=e.dom||{},e.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},e.g=e.G=e.dom.g,e.dom.getDocument=function(t){return t=e.dom.g(t),9==t.nodeType?t:t.ownerDocument||t.document},e.dom._styleFixer=e.dom._styleFixer||{},e.dom._styleFilter=e.dom._styleFilter||[],e.dom._styleFilter.filter=function(t,n,o){for(var i,r=0,a=e.dom._styleFilter;i=a[r];r++)(i=i[o])&&(n=i(t,n));return n},e.string=e.string||{},e.string.toCamelCase=function(e){return String(e).replace(/[-_]\D/g,function(e){return e.charAt(1).toUpperCase()})},e.dom.getStyle=function(t,n){var o=e.dom;t=o.g(t),n=e.string.toCamelCase(n);var i=t.style[n];if(i)return i;var r=o._styleFixer[n],a=t.currentStyle||(e.browser.ie?t.style:getComputedStyle(t,null));return i="object"==typeof r&&r.get?r.get(t,a):a[r||n],(r=o._styleFilter)&&(i=r.filter(n,i,"get")),i},e.getStyle=e.dom.getStyle,e.browser=e.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(e.ie=e.browser.ie=parseFloat(RegExp.$1)),/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(e.browser.opera=parseFloat(RegExp.$1)),e.browser.isWebkit=/webkit/i.test(navigator.userAgent),e.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),e.browser.isStrict="CSS1Compat"==document.compatMode,e.dom.getPosition=function(t){var n=e.dom.getDocument(t),o=e.browser;t=e.dom.g(t);var i=o.isGecko>0&&n.getBoxObjectFor&&"absolute"==e.dom.getStyle(t,"position")&&(""===t.style.top||""===t.style.left),r={left:0,top:0},a=o.ie&&!o.isStrict?n.body:n.documentElement;if(t==a)return r;var l,s=null;if(t.getBoundingClientRect)l=t.getBoundingClientRect(),r.left=Math.floor(l.left)+Math.max(n.documentElement.scrollLeft,n.body.scrollLeft),r.top=Math.floor(l.top)+Math.max(n.documentElement.scrollTop,n.body.scrollTop),r.left-=n.documentElement.clientLeft,r.top-=n.documentElement.clientTop,o.ie&&!o.isStrict&&(r.left-=2,r.top-=2);else if(n.getBoxObjectFor&&!i){l=n.getBoxObjectFor(t);var u=n.getBoxObjectFor(a);r.left=l.screenX-u.screenX,r.top=l.screenY-u.screenY}else{s=t;do{if(r.left+=s.offsetLeft,r.top+=s.offsetTop,o.isWebkit>0&&"fixed"==e.dom.getStyle(s,"position")){r.left+=n.body.scrollLeft,r.top+=n.body.scrollTop;break}s=s.offsetParent}while(s&&s!=t);for((o.opera>0||o.isWebkit>0&&"absolute"==e.dom.getStyle(t,"position"))&&(r.top-=n.body.offsetTop),s=t.offsetParent;s&&s!=n.body;)r.left-=s.scrollLeft,b.opera&&"TR"==s.tagName||(r.top-=s.scrollTop),s=s.offsetParent}return r},e.event=e.event||{},e.event._unload=function(){for(var t,n,o=e.event._listeners,i=o.length,r=!!window.removeEventListener;i--;)t=o[i],n=t[0],n.removeEventListener?n.removeEventListener(t[1],t[3],!1):n.detachEvent&&n.detachEvent("on"+t[1],t[3]);r?window.removeEventListener("unload",e.event._unload,!1):window.detachEvent("onunload",e.event._unload)},window.attachEvent?window.attachEvent("onunload",e.event._unload):window.addEventListener("unload",e.event._unload,!1),e.event._listeners=e.event._listeners||[],e.event.on=function(t,n,o){n=n.replace(/^on/i,""),"string"==typeof t&&(t=e.dom.g(t));var i=function(e){o.call(t,e)},r=e.event._listeners;return r[r.length]=[t,n,o,i],t.attachEvent?t.attachEvent("on"+n,i):t.addEventListener&&t.addEventListener(n,i,!1),t},e.on=e.event.on,e.event.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},e.ui=e.ui||{},e.suggestion=e.ui.suggestion=e.ui.suggestion||{},function(){var t={},n=function(e){var t={};e.listen=function(n,o){t[n]=t[n]||[];for(var i=0;i-1)try{o.apply(window,[n])}catch(l){}i&&!a&&i.submit()},view:function(e){return n&&n.width&&(e[2]=parseInt(n.width)),n&&n.XOffset&&n.YOffset?[e[0]-n.YOffset,e[1]-n.XOffset,e[2]]:[e[0],e[1],e[2]]},getData:function(n){var o=(new Date).getTime(),i=baidu.G("bdSug_script");i&&document.body.removeChild(i);var r=e("script");r.setAttribute("charset","gbk"),r.src="https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd="+encodeURIComponent(n)+"&p=3&cb=BaiduSuggestion.callbacks.give"+t+"&t="+o,r.id="bdSug_script",document.body.appendChild(r)},append_html:"
百度搜索框提示
",apd_body:!0}},createSugCallback:function(e){return function(t){if(t){for(var n=[],o=0;o