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

2 lines
31 KiB
JavaScript

!function(t,e,i,n,a,o,l,r,s,m,h){var c={logId:'2610412292370349362',planId:57953,siteId:'e2558a635df8de4699c2101b454961e3',sampleId:'as:as_down',settings:{"antipornLevel":1,"autoWidth":0,"content-img":true,"content-text":false,"contentType":2,"css":{".hm-t-carousel .hm-t-carousel-digit":{"background-color":"#fcaa37","color":"#ffffff"},".hm-t-carousel-digit.hm-t-carousel-digit-active":{"background-color":"#ffffff","color":"#fcaa37"},".hm-t-container":{"background-color":"rgb(255, 255, 255)","border-color":"#E4E4e4","border-width":"1px","height":"309px","width":"298px"},".hm-t-header":{"background-color":"rgb(255, 255, 255)","color":"rgb(54, 54, 54)","display":"block","font-family":"arial,Microsoft YaHei,sans-serif","font-size":"16px","font-weight":"normal","height":"36px","line-height":"36px"},".hm-t-hot-word":{"background-color":"#ffffff"},".hm-t-hot-word-bg-wrap":{"background-color":"#ffa500"},".hm-t-hot-word-copy .hm-t-hot-word-txt":{"color":"#ffffff"},".hm-t-hot-word-txt":{"color":"#333333","font-family":"arial,SimSun,sans-serif","font-size":"12px","font-weight":"normal"},".hm-t-img-title":{"line-height":"16px"},".hm-t-img:hover":{"border-color":"rgb(237, 28, 36)"},".hm-t-item":{"list-style":"square inside"},".hm-t-item-txt":{"border-bottom":"1px solid #eeeeee"},".hm-t-list-txt li:first-child":{"border-top":"1px solid #eeeeee"},".hm-t-novel-type":{"font-size":"12px"},".hm-t-txt":{"line-height":"22px"},".hm-t-txt,.hm-t-img-title":{"color":"#333333","font-family":"arial,Microsoft YaHei,sans-serif","font-size":"12px","font-weight":"normal","text-decoration":"none"},".hm-t-txt:active,.hm-t-img-title:active":{"color":"#ff6600","text-decoration":"none"},".hm-t-txt:hover,.hm-t-img-title:hover":{"color":"#ff6600","text-decoration":"underline"}},"enableSmart":1,"foldStyle":{"goTop":0,"type":"txt"},"hotWord":0,"imgColumn":1,"imgHeight":100,"imgRatio":1,"imgRow":4,"imgSize":2,"imgTextPos":"outside","imgTextRow":1,"imgWidth":300,"linkTarget":"_blank","linkType":1,"planName":"咨询详情页","pos":0,"showDividerLine":true,"showType":1,"siteType":"common","style":"embed","switchMode":{"button":"digit","hasText":true,"icon":true,"interval":5,"text":"换一换","type":"single"},"template":"blindsImg-embed-1cols-ver","textColumn":0,"textRow":0,"timespan":0,"tplType":"img","units":[{"column":1,"imgColumn":1,"imgRow":1,"row":4,"textColumn":0,"textRow":0}],"video":false,"windowName":"猜你喜欢"},aspResult:{},txtResult:[],imgResult:[{"img_height":266,"img_url":"http://t12.baidu.com/it/u=2857360910,3242560449&fm=72","img_width":399,"title":"快速减肥小妙招 吃货必知的日常减肥小妙招","url":"http://www.wed114.cn/jiehun/jianfeijiqiao/20131222116116.html"},{"img_height":251,"img_url":"http://t11.baidu.com/it/u=3685289287,4231320656&fm=72","img_width":400,"title":"细数丰胸的最快方法 不同年龄女人的不同方法(2)","url":"http://www.wed114.cn/jiehun/fengxionganmo/2012041245752_2.html"},{"img_height":300,"img_url":"http://t11.baidu.com/it/u=370732930,1305006119&fm=72","img_width":232,"title":"搞笑图片好主动的妹子 如此好的朋友给我介绍认识认识吧(4)","url":"http://www.wed114.cn/jiehun/gaoxiaotupian/20140121118676_4.html"},{"img_height":300,"img_url":"http://t11.baidu.com/it/u=2481878590,3339695134&fm=72","img_width":386,"title":"新人如何选择婚庆公司 新人挑选婚庆公司的技巧","url":"http://www.wed114.cn/jiehun/hunlicehua/2012112981080.html?_t_t_t=0.31285033957101405"}],hotResult:{},hlWord:''}
var g;g={};var L;g.browser={},g.browser.Re=/msie (\d+\.\d+)/i.test(l.userAgent),g.browser.je=/webkit/i.test(l.userAgent),g.browser.Fi=/gecko/i.test(l.userAgent)&&!/like gecko/i.test(l.userAgent),g.browser.Oe="CSS1Compat"===e.compatMode,g.browser.pi=function(){var t=l.userAgent,e={Ni:t.indexOf("Trident")>-1,Ci:t.indexOf("Presto")>-1,Li:t.indexOf("AppleWebKit")>-1,zi:t.indexOf("Gecko")>-1&&-1==t.indexOf("KHTML"),vi:!!t.match(/AppleWebKit.*Mobile.*/),xi:!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),_i:t.indexOf("Android")>-1||t.indexOf("Linux")>-1,wi:t.indexOf("iPhone")>-1,bi:t.indexOf("iPad")>-1,Si:-1==t.indexOf("Safari")};return e.vi||e.xi||e._i||e.wi||e.bi?!0:!1},L=g.browser;var C;g.cookie={},g.cookie.set=function(t,i,n){var a;n.expires&&(a=new o,a.setTime(a.getTime()+n.expires)),e.cookie=t+"="+i+(n.domain?"; domain="+n.domain:"")+(n.path?"; path="+n.path:"")+(a?"; expires="+a.toGMTString():"")+(n.secure?"; secure":"")},g.cookie.get=function(t){var i=new m("(^| )"+t+"=([^;]*)(;|$)"),n=i.exec(e.cookie);return n?n[2]:null},C=g.cookie;var d;g.dom={},g.dom.C=function(t){return g.lang.G(t,"String")&&(t=e.getElementById(t)),t},g.dom.i=function(t,i){if(i=i||e,i.getElementsByClassName)return s.prototype.slice.call(i.getElementsByClassName(t));var n=[],a=i.getElementsByTagName("*");t=new m("(^|\\s)"+t.replace(/\-/g,"\\-")+"(\\s|$)");for(var o=0,l=a.length;l>o;o++)t.test(a[o].className)&&n.push(a[o]);return n},g.dom.R=function(t,e){t=g.dom.C(t);for(var i=e.split(/\s+/),n=t.className,a=" "+n+" ",o=0,l=i.length;l>o;o++)a.indexOf(" "+i[o]+" ")<0&&(n+=(n?" ":"")+i[o]);return t.className=n,t},g.dom.gi=function(t,e){t=g.dom.C(t);for(var i,n,a=t.className.split(/\s+/),o=e.split(/\s+/),l=o.length,r=0;l>r;++r)for(n=0,i=a.length;i>n;++n)if(a[n]===o[r]){a.splice(n,1);break}return t.className=a.join(" "),t},g.dom.ui=function(){var i,n=function(){if(!n.he){n.he=!0;for(var t=0,e=r.length;e>t;t++)r[t]()}},a=function(){try{e.documentElement.Ve("left")}catch(t){return void setTimeout(a,1)}n()},o=function(){if(!l)if(l=!0,"complete"===e.readyState)n.he=!0;else if(e.addEventListener)e.addEventListener("DOMContentLoaded",i,!1),t.addEventListener("load",n,!1);else if(e.attachEvent){e.attachEvent("onreadystatechange",i),t.attachEvent("onload",n);var o=!1;try{o=null==t.frameElement}catch(r){}e.documentElement.Ve&&o&&a()}},l=!1,r=[];return e.addEventListener?i=function(){e.removeEventListener("DOMContentLoaded",i,!1),n()}:e.attachEvent&&(i=function(){"complete"===e.readyState&&(e.detachEvent("onreadystatechange",i),n())}),o(),function(t){n.he?t():r.push(t)}}(),d=g.dom;var x;g.X={},g.X.W=function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},g.X.Ge=function(t){var e=String(t).replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&");return e.replace(/&#([\d]+);/g,function(t,e){return String.fromCharCode(i(e,10))})},g.X.oi=function(t){return t.indexOf("-")<0&&t.indexOf("_")<0?t:t.replace(/[-_][^-_]/g,function(t){return t.charAt(1).toUpperCase()})},x=g.X;var N;g.dom.We=function(t){return t=g.dom.C(t),9===t.nodeType?t:t.ownerDocument||t.document},g.dom.getComputedStyle=function(t,e){t=g.dom.C(t);var i,n=g.dom.We(t);return n.defaultView&&n.defaultView.getComputedStyle&&(i=n.defaultView.getComputedStyle(t,null))?i[e]||i.getPropertyValue(e):""},g.dom.De=g.dom.De||{},g.dom.Q=g.dom.Q||[],g.dom.Q.filter=function(t,e,i){for(var n,a=0,o=g.dom.Q;n=o[a];a++)(n=n[i])&&(e=n(t,e));return e},g.dom.de=function(t,e){var i=g.dom;t=i.C(t),e=g.X.oi(e);var n=t.style[e]||(t.currentStyle?t.currentStyle[e]:"")||i.getComputedStyle(t,e);if(!n||"auto"===n){var a=i.De[e];a&&(n=a.get?a.get(t,e,n):g.dom.de(t,a))}return(a=i.Q)&&(n=a.filter(e,n,"get")),n},g.dom.Ai=function(t){t=g.dom.C(t);var e,a,o=g.dom.We(t),l=g.browser,r=g.dom.de,s={left:0,top:0},m=l.Re&&!l.Oe?o.body:o.documentElement;if(t===m)return s;if(t.getBoundingClientRect){a=t.getBoundingClientRect(),s.left=n.floor(a.left)+n.max(o.documentElement.scrollLeft,o.body.scrollLeft),s.top=n.floor(a.top)+n.max(o.documentElement.scrollTop,o.body.scrollTop),s.left-=o.documentElement.clientLeft,s.top-=o.documentElement.clientTop;var h=o.body,p=i(r(h,"borderLeftWidth"),10),c=i(r(h,"borderTopWidth"),10);l.Re&&!l.Oe&&(s.left-=isNaN(p)?2:p,s.top-=isNaN(c)?2:c)}else{e=t;do{if(s.left+=e.offsetLeft,s.top+=e.offsetTop,l.je>0&&"fixed"===r(e,"position")){s.left+=o.body.scrollLeft,s.top+=o.body.scrollTop;break}e=e.offsetParent}while(e&&e!==t);for(l.je>0&&"absolute"===r(t,"position")&&(s.top-=o.body.offsetTop),e=t.offsetParent;e&&e!==o.body;)s.left-=e.scrollLeft,s.top-=e.scrollTop,e=e.offsetParent}return s},N=g.dom;var f;g.event={},g.event.t=function(t,e,i){t.attachEvent?t.attachEvent("on"+e,function(e){i.call(t,e)}):t.addEventListener&&t.addEventListener(e,i,!1)},g.event.ue=function(t,e,i){if("function"!=typeof i)throw new Error("listener must be a function");return t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent&&t.detachEvent("on"+e,i),t},g.event.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},f=g.event;var u;g.lang={},s.prototype.indexOf=s.prototype.indexOf||function(t,e){var n=this.length;for(e=i(e)||0,0>e&&(e+=n);n>e;e++)if(this[e]===t)return e;return-1},g.lang.G=function(t,e){return"[object "+e+"]"==={}.toString.call(t)},u=g.lang;var p;g.$e={},g.$e.log=function(e,i){var a=new Image,o="mini_tangram_log_"+n.floor(2147483648*n.random()).toString(36);t[o]=a,a.onload=a.onerror=a.onabort=function(){a.onload=a.onerror=a.onabort=null,t[o]=null,a=null,i&&i(e)},a.src=e},p=g.$e;var y=function(){var t=function(t){var e=[];return e.push("with(this){"),e.push(t.replace(/<(script|style)[^>]*>([\s\S]*?)<\/\1>/g,function(t,e,i){return["<",e,">",'#{decodeURIComponent("',a(i),'")}',"</",e,">"].join("")}).replace(/[\r\n]+/g,"\n").replace(/^\n+|\s+$/gm,"").replace(/((^\s*[#<].*$)\s?)+/gm,function(t){return t=['"',t.replace(/&none;/g,"").replace(/["'\\]/g,"\\$&").replace(/\n/g,"\\n").replace(/(!?#)\{(.*?)\}/g,function(t,e,i){i=i.replace(/\\n/g,"\n").replace(/\\([\\'"])/g,"$1");var n=/^[a-z$][\w+$]+$/i.test(i)&&!/^(true|false|NaN|null|this)$/.test(i);return['",',n?["typeof ",i,'=="undefined"?"":'].join(""):"","String("+i+').replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/\'/g, "&#39;")',',"'].join("")}),'"'].join("").replace(/^"",|,""$/g,""),t?["_output_.push(",t,");"].join(""):""})),e.push("}"),new Function("_output_","helper",e.join(""))},e=function(e){var i=t(e);return function(t,e){var n=[];return i.call(t,n,e),n.join("")}};return{format:function(t,i,n){return t?e(t)(i,n):""},Xi:e}}();var E=function(){var e,i,l=function(){return!0},h=function(t,e,i,n){return t.global?l(e||k,i,n):void 0},g=function(t){t.global&&0===C.Ne++&&h(t,null,"ajaxStart")},p=function(t){t.global&&!--C.Ne&&h(t,null,"ajaxStop")},c=function(t,e){var i=e.context;return e.Ue.call(i,t,e)===!1||h(e,i,"ajaxBeforeSend",[t,e])===!1?!1:void h(e,i,"ajaxSend",[t,e])},d=function(t,e,i){var n=i.context,a="success";i.O.call(n,t,a,e),h(i,n,"ajaxSuccess",[e,i,t]),f(a,e,i)},u=function(t,e,i,n){var a=n.context;n.error.call(a,i,e,t),h(n,a,"ajaxError",[i,n,t]),f(e,i,n)},f=function(t,e,i){var n=i.context;i.complete.call(n,e,t),h(i,n,"ajaxComplete",[e,i]),p(i)},x=function(){},v=function(t){return t&&(t==S?"html":t==I?"json":E.test(t)?"script":A.test(t)&&"xml")||"text"},_=function(t,e){return(t+"&"+e).replace(/[&?]{1,2}/,"?")},w=function(t){"object"===R(t.data)&&(t.data=y(t.data)),!t.data||t.type&&"GET"!=t.type.toUpperCase()||(t.url=_(t.url,t.data))},b=function(t,e,i,n){var a="array"===R(e);for(var o in e){var l=e[o];n&&(o=i?n:n+"["+(a?"":o)+"]"),!n&&a?t.add(l.name,l.value):(i?"array"===R(l):"object"===R(l))?b(t,l,i,o):t.add(o,l)}},y=function(t,e){var i=[];return i.add=function(t,e){this.push(N(t)+"="+N(e))},b(i,t,e),i.join("&").replace("%20","+")},T=function(t){var i=s.prototype.slice;return i.call(arguments,1).forEach(function(i){for(e in i)i[e]!==r&&(t[e]=i[e])}),t},R=function(t){return Object.prototype.toString.call(t).toLowerCase()},k=t.document,E=/^(?:text|application)\/javascript/i,A=/^(?:text|application)\/xml/i,I="application/json",S="text/html",L=/^\s*$/,C=function(n){var a=T({},n||{});for(e in C.oe)a[e]===r&&(a[e]=C.oe[e]);g(a),a.se||(a.se=/^([\w-]+:)?\/\/([^\/]+)/.test(a.url)&&m.$2!=t.location.host);var o=a.Y,l=/=\?/.test(a.url);if("jsonp"==o||l)return l||(a.url=_(a.url,"callback=?")),C.Ke(a);a.url||(a.url=t.location.toString()),w(a);var s,h=a.Ze[o],p={},f=/^([\w-]+:)\/\//.test(a.url)?m.$1:t.location.protocol,b=C.oe.ei();a.se||(p["X-Requested-With"]="XMLHttpRequest"),h&&(p.Accept=h,h.indexOf(",")>-1&&(h=h.split(",",2)[0]),b.overrideMimeType&&b.overrideMimeType(h)),(a.contentType||a.data&&"GET"!=a.type.toUpperCase())&&(p["Content-Type"]=a.contentType||"application/x-www-form-urlencoded"),a.headers=T(p,a.headers||{}),b.onreadystatechange=function(){if(4==b.readyState){clearTimeout(s);var t,e=!1;if(b.status>=200&&b.status<300||304==b.status||0==b.status&&"file:"==f){o=o||v(b.getResponseHeader("content-type")),t=b.responseText;try{"script"==o?(1,eval)(t):"xml"==o?t=b.responseXML:"json"==o&&(t=L.test(t)?null:JSON.parse(t))}catch(i){e=i}e?u(e,"parsererror",b,a):d(t,b,a)}else u(null,"error",b,a)}};var y="async"in a?a.async:!0;b.open(a.type,a.url,y);for(i in a.headers)b.setRequestHeader(i,a.headers[i]);return c(b,a)===!1?(b.abort(),!1):(a.timeout>0&&(s=setTimeout(function(){b.onreadystatechange=x,b.abort(),u(null,"timeout",b,a)},a.timeout)),b.send(a.data?a.data:null),b)};C.Ne=0,C.Ke=function(e){if(!("type"in e))return C(e);var i,a=e.ii||"jsonp"+ +new o+(n.random()+"").slice(-8),l=k.createElement("script"),r=function(){h(),a in t&&(t[a]=x),f("abort",s,e)},s={abort:r},m=k.getElementsByTagName("head")[0]||k.documentElement,h=function(){l.parentNode&&l.parentNode.removeChild(l),l=null};return e.error&&(l.onerror=function(){s.abort(),e.error()}),t[a]=function(n){clearTimeout(i),h(),delete t[a],d(n,s,e)},w(e),e.charset&&(l.charset=e.charset),l.src=e.url.replace(/=\?/,"="+a),m.insertBefore(l,m.firstChild),e.timeout>0&&(i=setTimeout(function(){s.abort(),f("timeout",s,e)},e.timeout)),s},C.oe={type:"GET",Ue:x,O:x,error:x,complete:x,context:null,global:!0,ei:function(){return new t.XMLHttpRequest},Ze:{Gi:"text/javascript, application/javascript",Di:I,Wi:"application/xml, text/xml",Hi:S,text:"text/plain"},se:!1,timeout:0},C.get=function(t,e){return C({url:t,O:e})},C.qi=function(t,e,i,n){return"function"===R(e)&&(n=n||i,i=e,e=null),C({type:"POST",url:t,data:e,O:i,Y:n})},C.Oi=function(t,e){return C({url:t,O:e,Y:"json"})};var N=a;return C}();var _=function(t){var e={};return t.t=function(t,i){e[t]=e[t]||[],e[t].push(i)},t.H=function(e,i){var n=function(){t.Ri(e,n),i.apply(null,arguments)};n.ki=i,this.t(e,n)},t.Ri=function(t,i){0==arguments.length&&(e={});var n=e[t];if(e[t]){if(1==arguments.length)return void delete e[t];for(var a,o=0;o<n.length;o++)if(a=n[o],a===i||a.ki===i){n.splice(o,1);break}}},t.s=function(t){var i=e[t]=e[t]||[],n=[].slice.call(arguments,1);i=i.slice(0);for(var a=0,o=i.length;o>a;a++)if(!1===i[a].apply(null,n))return!1},t};var w;w=_({});var b;b={send:function(){var t=c.siteId,e=c.settings.contentAdType;e="undefined"==typeof e?0:i(e)+1;for(var o=[],l=0,r=arguments.length;r>l;l++)o[l]=a((""+arguments[l]).replace(/'/g,"'0").replace(/\*/g,"'1"));(1==o[0]||4==o[0])&&(e=o.pop()),p.log(["http://rplog.baidu.com/tj.gif?si="+t,"st=4","nv=0","et=98","ep="+o.join("*"),"at="+e,"rnd="+n.round(2147483647*n.random())].join("&")),o.length=1==o[0]?5:4,p.log(["http://hm.baidu.com/hm.gif?si="+c.siteId,"st=4","nv=0","et=98","ep="+o.join("*"),"rnd="+n.round(2147483647*n.random())].join("&"))},ze:function(e){var i,n=function(){"[object Object]"===Object.prototype.toString.call(t._hmt)&&(clearInterval(i),e())};i=setInterval(n,200)}};var A;A=function(t){var e=function(t){n=t,i="fulfilled",setTimeout(function(){a.forEach(function(t){t(n)})},0)},i="pending",n=null,a=[];this.then=function(t){return"pending"===i?(a.push(t),this):(t(n),this)},t(e)};var v={};v.extend=function(t,e){for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},v.iterate=function(t,e){for(var i in t)if({}.hasOwnProperty.call(t,i)&&e.call(t,i,t[i])===!1)return!1},v.hi=function(t){var e=[];return v.iterate(t,function(t,i){e.push(t+"{"),v.iterate(i,function(t,i){e.push(t+":"+i+";")}),e.push("}")}),e.join("")},v.Vi=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var i,n=null,a=e+"";return a&&!a.replace(rvalidtokens,function(t,e,a,o){return i&&e&&(n=0),0===n?t:(i=a||e,n+=!o-!a,"")})?Function("return "+a)():{}},v.xe=function(){return n.max(e.documentElement.scrollHeight,e.body.clientHeight)},v.me=function(){return n.max(e.documentElement.scrollTop,e.body.scrollTop)},v.ee=function(){return t.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},v.ge=function(e){return(t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)})(e)},v.Je=function(t,e){var i;return function(){var n=this,a=arguments;clearTimeout(i),i=setTimeout(function(){t.apply(n,a)},e)}},v.ni=function(t,e,i,n){n=n||100,u.G(t,"Array")||u.G(t,"NodeList")||u.G(t,"HTMLCollection")||(t=[t]);for(var a=0,o=t.length;o>a;a++)if(t[a].style.visibility="visible","ellipsis"===t[a].getAttribute("data-overflow")){var l=0;for(t[a].offsetHeight>e&&(t[a].innerHTML+="\u2026");t[a].offsetHeight>e&&l++<n;){var r=x.Ge(t[a].innerHTML),s=r.substring(0,r.length-2)+"\u2026";t[a].innerHTML=x.W(s)}}i&&i()},v.li=function(t,e,a){var o=e||121,l=a||75,r=i(t.style.width,10),s=i(t.style.height,10),m=r,h=s,g=n.max(o/r,l/s);t.style.width=(m=r*g)+"px",t.style.height=(h=s*g)+"px",t.style.marginLeft=(o-m)/2+"px",t.style.marginTop=l>h?(l-h)/2+"px":(l-h)/3+"px"},v.Yi=function(e){(t.execScript||function(e){t.eval.call(t,e)})(e)},v.Ui=function(t){return(t||"").replace(/"/g,'\\"')},v.Be=function(t,e,i,n){var a=function(t){var i=t.touches[0];r=+i.pageX,s=+i.pageY,e({Z:r,He:s})},o=function(t){var e=t.touches[0];m=+e.pageX,h=+e.pageY,i({Z:r,He:s,x:m,y:h})},l=function(){n({Z:r,He:s,x:m,y:h})},r=0,s=0,m=0,h=0;f.t(t,"touchstart",a),f.t(t,"touchmove",o),f.t(t,"touchend",l)};var F;F={get:function(){var t=C.get("hm_t_vis_"+c.planId)||c.settings.showType;return"0"!==t},set:function(e){C.set("hm_t_vis_"+c.planId,e?"1":"0",{path:t.location.pathname})}};var z;z={j:!1,L:!1};/debug/.test(e.URL);var H=function(){this.create(function(e){w.s("shadowCreated",e);var i=e.wrap.style.position||"static",n=e.wrap.style.left;e.wrap.style.position="relative",e.wrap.style.left="-99999px";var a=function(){return e&&e.wrap?(e.wrap.style.position=i,e.wrap.style.left=n,w.s("done",e),void("_bdhm_t"in t&&t._bdhm_t.c&&t._bdhm_t.c.oncreate&&t._bdhm_t.c.oncreate())):!1};e.wrap.offsetHeight?setTimeout(a,100):N.ui(function(){setTimeout(a,100)})})};H.init=function(){return new H},H.prototype.create=function(i){for(var n,a=function(){var t=r.p=c.contentWindow.document;t.open(),t.write(y.format('<!doctype html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style>\rhtml,body{margin:0;overflow:hidden;}\r</style></head><body></body></html>')),t.close(),r.di=!0,r.body=t.body;var e=r.N=t.createElement("style"),n=t.getElementsByTagName("head")[0];n.appendChild(e),r.Me(c),i(r)},o=["createShadowRoot","webkitCreateShadowRoot"],l=0;l<o.length;l++)if("function"==typeof e.body[o[l]]){n=o[l];break}var r=_(this),s=r.wrap=e.createElement("div");if(n){var m=e.createElement("div");if(s.appendChild(m),w.s("shadowWrapCreate",r)===!1)return void r.w();var h=r.body=m[n](),g=r.p=h.ownerDocument,p=r.N=g.createElement("style");h.appendChild(p),r.Me(m),i(r)}else{var c=e.createElement("iframe");if(c.scrolling="no",c.frameBorder=0,c.allowTransparency=!0,s.appendChild(c),w.s("shadowWrapCreate",r)===!1)return void r.w();try{c.contentWindow.document,a()}catch(d){var u=e.getElementsByTagName("base");if(u&&u.length>0)for(var f={},l=0;l<u.length;l++)f[u[l]]=u[l].target,"_self"!==u[l].target&&(u[l].target="_self");if(c.src=["javascript:void((function(){","document.open();",'document.domain="'+e.domain+'";',"document.close();","})())"].join(""),t.XMLHttpRequest?a():setTimeout(a,0),u&&u.length>0)for(var l=0;l<u.length;l++)"_self"===u[l].target&&(u[l].target=f[u[l]])}}},H.prototype.Me=function(t){this.wrap.style.cssText=["display:block","margin:0","padding:0","float:none","clear:none","overflow:hidden","position:relative","border:0","background:none","max-width:none","min-width:none","max-height:none","min-height:none","border-radius:0","box-shadow:none","transition:none","text-align:left","box-sizing:content-box"].join(";"),t.style.cssText=this.wrap.style.cssText,t.style.width="100%",t.style.height="100%",this.info={},this.g=z,this.N.ve=[],this.N.fe=[];var i=this.te=e.createElement("style");i.ve=[],i.fe=[];var n=e.getElementsByTagName("head")[0];n&&n.appendChild(i),this.o=this.p.createElement("div"),this.o.className="hm-t-container",this.body.appendChild(this.o)},H.prototype.w=function(){this.s("dispose");var t=this.wrap;t&&t.parentNode&&t.parentNode.removeChild(t),this.wrap=null,this.p=null,this.body=null,this.N=null;var e=this.te;e&&e.parentNode.removeChild(e),this.te=null},H.prototype.l=function(t,i){var n=this.N,a=n.ve,o=n.fe;t&&(a.push(t),o.push(i||"")),n.styleSheet?n.styleSheet.cssText=a.join(""):(n.innerHTML="",n.appendChild(e.createTextNode(a.join(""))))},H.prototype.Te=function(t){var e=this.N.ve,i=this.N.fe;if(t!==r)for(var n=0,a=i.length;a>n;n++)t===i[n]&&(i[n]="",e[n]="");else e.length=0,i.length=0;this.l()},H.prototype.Ce=function(t,e){this.l.call({N:this.te},t,e)},H.prototype.Ii=function(t,e){this.Te.call({N:this.te},e)},H.prototype.si=function(){var i=this.wrap;try{var n=N.Ai(i).top,a=i.offsetHeight;0>=a&&(a=N.getComputedStyle(i,"elemHeight"),(0>a||null==a)&&(a=N.de(i,"elemHeight"))),a=parseFloat(a)||0;var o=t.pageYOffset||e.documentElement.scrollTop||e.body.scrollTop,l=("BackCompat"===e.compatMode?e.body:e.documentElement).clientHeight;return n+a>o&&o+l>n}catch(r){return!1}};var q={name:"",init:function(t){t.info.style=this.name,c.settings.linkTarget=c.settings.linkType?"_blank":t.di?"_parent":"_self",t.l(".hm-t-container,.hm-t-container *{box-sizing:content-box;margin:0;padding:0;float:none;clear:none;overflow:hidden;white-space:nowrap;word-wrap:normal;border:0;background:none;width:auto;height:auto;max-width:none;min-width:none;max-height:none;min-height:none;border-radius:0;box-shadow:none;transition:none;-webkit-tap-highlight-color:rgba(255, 255, 255, 0);}a{display:inline-block;}.hm-t-header{position:relative;}.hm-t-list{position:relative;*zoom:1;}.hm-t-list-txt{padding:12px 12px 0 0;}.hm-t-list-img{margin:0 12px;}.hm-t-item{position:relative;display:list-item;text-align:left;float:left;list-style:none!important;}.hm-t-item-img{margin-top:12px;}.hm-t-img,.hm-t-img-title{display:block;margin:auto;}.hm-t-img{position:relative;border:1px solid #cedbeb;}.hm-t-img img{border:none;line-height:0;}.hm-t-img-title{white-space:normal;margin-top:6px;}.hm-t-txt-wrapper{padding-left:20px;background:url(http://ecma.bdimg.com/holmes/t-list-styles.png) no-repeat;background-image:url(http://ecma.bdimg.com/holmes/t-list-styles.svg), \n none;}.hm-t-txt{white-space:normal;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;}.hm-t-footer{position:relative;height:22px;margin-top:5px;}.hm-t-footer a{position:absolute;top:0;right:5px;font-family:arial, sans-serif;font-size:12px;color:#aeaeae;text-decoration:none;line-height:22px;}.hm-t-container .hm-t-from{text-decoration:none;color:#989898;margin:auto;display:block;}"),this.create(t);var e=v.hi(c.settings.css);t.l(e),w.s("styleCreated",t)},create:function(){},pe:function(t){if(c.demo){var i=d.C("hm_t_"+c.planId);return i&&i.appendChild(t.wrap),!!i}e.body.appendChild(t.wrap),t.wrap.id="hm_t_"+c.planId},I:function(t){var e=this,n=t.info,a=t.o,o=d.i("hm-t-main",a)[0],l=o.offsetWidth,r=o.offsetHeight;if(0>=l&&0>=r)return void setTimeout(function(){e.I(t)},500);n.width=l,a.style.width=n.width+"px",n.height=r-2;var s=i(c.settings.css[".hm-t-container"].height,10);s>n.height&&(n.height=s),a.style.height=n.height+"px",t.wrap.style.width=n.width+2+"px",t.wrap.style.height=n.height+2+"px";var m=c.settings.css[".hm-t-container"].width;"100%"===m&&(t.wrap.style.width=m,a.style.width="auto"),w.s("done.adjustRect",t)},V:function(t){var e=t.p.createElement("div");e.className="hm-t-main",t.o.appendChild(e)},M:function(){},K:function(t){var e=d.i("hm-t-main",t.o)[0],i=t.p.createElement("div");i.className="hm-t-footer",e.appendChild(i),i.innerHTML='<a href="http://tuijian.baidu.com/" target="_blank">\u767e\u5ea6\u63a8\u8350</a>'}};w.t("shadowCreated",function(t){q.init(t)}),w.t("shadowWrapCreate",function(t){return q.pe(t)}),w.t("resize",function(t){q.I(t)});var T=function(){var e=function(t){for(var e=new o,i=e.getTime()+t;;)if(e=new o,e.getTime()>i)return},n=/MicroMessenger/i.test(l.userAgent),r={txt:0,img:1},s={tplStr:"",m:"",init:function(t){t.l(this.m),this.h(t),this.ne(t),this.le(t),this.J(t),this.create(t),w.s("tplCreated",t)},create:function(t){var e=t.o,i=d.i("hm-t-main",e)[0],n=t.p.createElement("div");n.className="hm-t-body",n.innerHTML=y.format(this.tplStr,c);var a=d.i("hm-t-header",i)[0];a?i.insertBefore(n,a.nextSibling):i.insertBefore(n,i.firstChild),this._(t),this.ae(n),+c.settings.imgTextRow&&this.Ei(t,n),this.Xe(n),this.Ye(n),this.qe(n)},w:function(t){t.s("tplDispose");var e=d.i("hm-t-body",t.o)[0];e&&e.parentNode.removeChild(e),t.Te("tpl")},h:function(){},_:function(){},ne:function(t){var e=c.settings.css[".hm-t-item"]["list-style"],n=i(c.settings.css[".hm-t-txt"]["line-height"],10);t.l(".hm-t-txt-wrapper{background-position:12px "+("square inside"===e?-2+n/2:"disc inside"===e?-48+n/2:"order inside"===e?"99px;padding-left:30":"99px;padding-left:10")+"px;height:"+n+"px}")},q:function(){return"undefined"!=typeof t["_bdhm_t_tpl_"+c.planId]?c.settings.units[0]:c.settings},le:function(t){var e=this.q(),i=100/e.imgColumn,n=100/e.textColumn;t.l([".hm-t-item-img{","width:"+i+"%;","*width:"+(i-.1)+"%","}",".hm-t-item-txt{","width:"+n+"%;","*width:"+(n-.1)+"%","}"].join(""))},J:function(t){var e=this.q();e.imgColumn;var n=c.settings.imgWidth,a=c.settings.imgHeight,o=c.settings.imgTextPos,l=c.settings.imgTextRow,r=i(c.settings.css[".hm-t-img-title"]["line-height"],10),s=l?r*l+"px;":"auto;",m="outside"===o?"width:"+n+"px; height:"+s:"display:none",h=m;"inside"===o&&(m=["position:absolute;","width:"+(n-8)+"px;","max-height:"+s,"padding-left:4px;","padding-right:4px;","left:1px;","right:1px;","bottom:0;","margin:auto;","color:#fff;","background:-webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);"].join(""),h="width:"+(n-10)+"px;"),t.imgTitleCss=m,t.fromCss=h,t.l([".hm-t-img{","width:"+n+"px;","height:"+a+"px","}",".hm-t-img-title{",m,"}",".hm-t-from{",h,"}"].join(""))},ae:function(t){for(var e=c.settings.imgWidth,i=c.settings.imgHeight,n=d.i("hm-t-img",t),a=0,o=n.length;o>a;a++){var l=n[a].getElementsByTagName("img")[0];v.li(l,e,i)}},Ei:function(t,e){var n=d.i("hm-t-img-title",e);if(n.length){var a=i(c.settings.css[".hm-t-img-title"]["line-height"],10);v.ni(n,a*c.settings.imgTextRow)}},Xe:function(e){for(var i=e.getElementsByTagName("img"),n=0,o=i.length;o>n;n++){var l=i[n];l.onerror=function(e){e=e||t.event;var i=e.target||e.srcElement;i.onerror=null,p.log("http://ers.baidu.com/crs.gif?type=deadthumb&src="+a(i.src))}}},Ye:function(o){f.t(o,"click",function(l){for(var s=l.target||l.srcElement;"a"!==s.tagName.toLowerCase()&&s!==o;)s=s.parentNode;if("a"===s.tagName.toLowerCase()){var m=s.href,h=s.className.substr(5),g=s.getAttribute("data-pos"),p=r[h]||0;if(!/^https?:\/\/(([a-zA-Z0-9_-])+(\.)?)*(:\d+)?(\/((\.)?(\?)?=?&?[a-zA-Z0-9_-](\?)?)*)*$/i.test(m))return;/^http:\/\/\w+\.baidu\.com\/(cpro|baidu|other)\.php\?.*$/.test(m)?(l.preventDefault?l.preventDefault():l.returnValue=!1,b.send(1,c.planId,c.logId,s.href,s.title,c.sampleId,p,g,i(c.settings.contentAdType||0)+1),n&&e(200),t.open("//crs.baidu.com/jump.html?url="+a(m))):(b.send(1,c.planId,c.logId,s.href,s.title,c.sampleId,p,g,0),n&&e(200))}})},qe:function(){}};return w.t("styleCreated",function(t){s.init(t)}),s}();q.name="embed",q.create=function(e){b.ze(function(){e.g.j||(e.g.j=!0,b.send(0,c.planId,c.logId,1,c.sampleId,c.uiTotal))}),e.l(".hm-t-container{position:relative;border:1px solid #ccc;}.hm-t-header{width:auto!important;padding-left:12px;text-align:left;border-bottom:1px solid #ccc;}"),c.demo&&(e.wrap.style.margin="0 auto"),this.V(e),this.M(e),this.K(e);var i=function(){!e.g.L&&e.si()&&(e.g.L=!0,b.ze(function(){b.send(2,c.planId,c.logId,1,c.sampleId,c.uiTotal)}),w.s("visible",e))};f.t(t,"scroll",i),f.t(t,"resize",i),f.t(t,"load",i)},q.M=function(t){var e=t.o,i=d.i("hm-t-main",e)[0],n=t.p.createElement("div");n.className="hm-t-header",i.insertBefore(n,i.firstChild),n.innerHTML=x.W(c.settings.windowName)},q.pe=function(t){var i=e.getElementById("hm_t_"+c.planId);return i&&(i.innerHTML="",i.appendChild(t.wrap)),!!i},w.t("done",function(t){q.I(t)});T.tplStr='var e=settings.linkTarget||(settings.linkType?"_blank":"_self"),t=Math.min(imgResult.length,settings.imgColumn*settings.imgRow),l=Math.min(txtResult.length,settings.textColumn*settings.textRow);if(t>0){\n<ul class="hm-t-list hm-t-list-img">\nfor(var g=0;t>g;g++){var a=imgResult[g]\n<li class="hm-t-item hm-t-item-img"><a class="hm-t-img-title" href="#{a.url}" target="#{e}" title="#{a.title}" data-pos="#{g}"><span>#{a.title}</span></a><a class="hm-t-img" href="#{a.url}" target="#{e}" title="#{a.title}" data-pos="#{g}"><img src="#{a.img_url}" style="width:#{a.img_width}px;height:#{a.img_height}px" /></a></li>\n}\n</ul>\n}if(l>0){\n<ul class="hm-t-list hm-t-list-txt">\nfor(var g=0;l>g;g++){var a=txtResult[g]\n<li class="hm-t-item hm-t-item-txt"><div class="hm-t-txt-wrapper"><a class="hm-t-txt" href="#{a.url}" target="#{e}" title="#{a.title}" data-pos="#{g}">#{a.title}</a>\nif("order inside"===settings.css[".hm-t-item"]["list-style"]){\n<span class="hm-t-txt-index #{3>g?"hm-t-txt-index-top":""}">#{g+1}</span>\n}\n</div></li>\n}\n</ul>\n}',T.m=".hm-t-txt-index{position:absolute;top:3px;left:10px;display:block;width:1.2em;height:1.2em;line-height:1.2em;text-align:center;}.hm-t-txt-index-top{background-color:#ffffff;color:#fe0000;}.hm-t-item{margin:0;float:none;}.hm-t-list-img{margin:0;}.hm-t-img{border:none;display:none;}.hm-t-img-title{padding:10px 0;margin-top:0;border-top:1px solid #ccc;}.hm-t-img-title span{display:block;border-left:3px solid #ff6600;padding-left:10px;margin-left:0;}.hm-t-header{border-bottom:none;}.hm-t-header .hm-t-change{color:#666;}",T.le=function(t){var e=this.q(),n=0;c.settings.css[".hm-t-container"].width,n=i(t.o.offsetWidth),c.settings.imgWidth=n;var a=100/e.imgColumn,o=100/e.textColumn;t.l([".hm-t-item-img{","width:"+a+"%;","*width:"+(a-.1)+"%","}",".hm-t-item-txt{","width:"+o+"%;","*width:"+(o-.1)+"%","}"].join(""))},T.qe=function(t){d.i("hm-t-img",t)[0].style.display="block",f.t(t,"mouseover",function(e){for(var i=e.target||e.srcElement;"a"!==i.tagName.toLowerCase()&&i!==t;)i=i.parentNode;if("a"===i.tagName.toLowerCase()&&"hm-t-img-title"===i.className){for(var n=0;n<d.i("hm-t-img",t).length;n++)d.i("hm-t-img",t)[n].style.display="none";i.parentNode.childNodes[1].style.display="block"}})};var W;if(c.uiTotal=c.txtResult.length+c.imgResult.length,c.platform=L,c.platform.isWireless=L.pi(),"_bdhm_t"in t&&t._bdhm_t.c&&(c=v.extend(c,t._bdhm_t.c),c.demo&&(t._bdhm_t={c:c,t:{create:function(){W&&W.w(),W=H.init()},dispose:function(){W.w(),W=null},fold:function(){W.s("fold")},unfold:function(){W.s("unfold")}}})),l&&(l.userAgent||"").indexOf("MSIE 6")>-1)try{e.execCommand("BackgroundImageCache",!1,!0)}catch(D){}w.t("init",function(){W&&W.w(),W=H.init()}),c.platform.isWireless&&"undefined"==typeof c.demo&&"undefined"!=typeof c.settings.template&&-1===c.settings.template.indexOf("wap")&&"embed"!==c.settings.style||w.s("init")}(window,document,parseInt,Math,encodeURIComponent,Date,navigator,void 0,Array,RegExp,location);