﻿btoe = '\u6280\u672f\u652f\u6301\uff1a\u52a8\u529b\u65e0\u9650\u007c\u0062\u0074\u006f\u0065\u002e\u0063\u006e';

/*! Search */

function SiteSearchkwf(a) { var b = $.trim($(a).val()); 0 < b.length && "\u8f93\u5165\u5173\u5065\u5b57" != b && (window.location.href = "/search_" + encodeURI($(a).val()) + ".html"); return !1 };



/*! WJDH Message 1.1  */

$(function(){$("[href='#wjdh-message']").click(function(b){$.get("/message.html",function(a){$("body").append(a)})})});



/*! 分享代码  */

window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} };

with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];



/*! 平滑滚动*/

function docscroll(eid){$("html,body").animate({scrollTop:$(eid).offset().top+"px"},800,"swing")};



/*! WJDH Lazy Load 2.0  */

(function(c,g,n,q){var e=c(g);c.fn.lazyload=function(a){function b(){var a=0;m.each(function(){var b=c(this);0==b.offset().top&&(b.trigger("appear"),a=0);if(!d.skip_invisible||b.is(":visible"))if(!c.belowthefold(this,d)&&!c.abovethetop(this,d))b.trigger("appear"),a=0;else if(++a>d.failure_limit)return!1})}var m=this,d={threshold:0,failure_limit:999,event:"scroll",effect:"fadeIn",container:g,data_attribute:"src",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};a&&(void 0!==a.failurelimit&&(a.failure_limit=a.failurelimit,delete a.failurelimit),void 0!==a.effectspeed&&(a.effect_speed=a.effectspeed,delete a.effectspeed),c.extend(d,a));a=void 0===d.container||d.container===g?e:c(d.container);0===d.event.indexOf("scroll")&&a.bind(d.event,function(){return b()});this.each(function(){var a=this,b=c(a);a.loaded=!1;(void 0===b.attr("src")||!1===b.attr("src"))&&b.is("img")&&b.attr("src",d.placeholder);b.one("appear",function(){this.loaded||(d.appear&&d.appear.call(a,m.length,d),c("<img />").bind("load",function(){function g(){if(0<f.width&&0<f.height)if(f.width/f.height<=k/l){h.width(k);var a=f.height*k/f.width;h.height(a);h.css("margin-top",-(a-l)/2+"px")}else h.height(l),a=f.width*l/f.height,h.width(a),h.css("margin-left",-(a-k)/2+"px")}var e=b.attr("data-"+d.data_attribute);b.hide();b.is("img")?b.attr("src",e):b.css("background-image","url('"+e+"')");b[d.effect](d.effect_speed);a.loaded=!0;var p=c.grep(m,function(a){return!a.loaded});m=c(p);d.load&&d.load.call(a,m.length,d);var h=b;if(-1!=b.closest(".img").attr("class").indexOf("img")){var k=b.closest(".img").width(),l=b.closest(".img").height(),f=new Image;f.src=e;e=c("#thumbimg").val();1==e?g():2==e?0<f.width&&0<f.height&&(f.width/f.height<=k/l?(h.height(l),h.css({margin:"auto",display:"block"})):(h.width(k),h.css("padding-top",(l-f.height*k/f.width)/2+"px"))):h.width(k).height(l);console.log(btoe)}}).attr("src",b.attr("data-"+d.data_attribute)))});0!==d.event.indexOf("scroll")&&b.bind(d.event,function(){a.loaded||b.trigger("appear")})});e.bind("resize",function(){b()});/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(a){a.originalEvent&&a.originalEvent.persisted&&m.each(function(){c(this).trigger("appear")})});c(n).ready(function(){b()});return this};c.belowthefold=function(a,b){return(void 0===b.container||b.container===g?(g.innerHeight?g.innerHeight:e.height())+e.scrollTop():c(b.container).offset().top+c(b.container).height())<=c(a).offset().top-b.threshold};c.rightoffold=function(a,b){return(void 0===b.container||b.container===g?e.width()+e.scrollLeft():c(b.container).offset().left+c(b.container).width())<=c(a).offset().left-b.threshold};c.abovethetop=function(a,b){return(void 0===b.container||b.container===g?e.scrollTop():c(b.container).offset().top)>=c(a).offset().top+b.threshold+c(a).height()};c.leftofbegin=function(a,b){return(void 0===b.container||b.container===g?e.scrollLeft():c(b.container).offset().left)>=c(a).offset().left+b.threshold+c(a).width()};c.inviewport=function(a,b){return!c.rightoffold(a,b)&&!c.leftofbegin(a,b)&&!c.belowthefold(a,b)&&!c.abovethetop(a,b)};c.extend(c.expr[":"],{"below-the-fold":function(a){return c.belowthefold(a,{threshold:0})},"above-the-top":function(a){return!c.belowthefold(a,{threshold:0})},"right-of-screen":function(a){return c.rightoffold(a,{threshold:0})},"left-of-screen":function(a){return!c.rightoffold(a,{threshold:0})},"in-viewport":function(a){return c.inviewport(a,{threshold:0})},"above-the-fold":function(a){return!c.belowthefold(a,{threshold:0})},"right-of-fold":function(a){return c.rightoffold(a,{threshold:0})},"left-of-fold":function(a){return!c.rightoffold(a,{threshold:0})}})})(jQuery,window,document);$(function(){$("img").lazyload({});console.log(btoe)});



/*导航吸顶*/

$(function(){var $nav=$('#fixedNav');var $top = $nav.offset().top;if($nav.length!=-1){$(window).scroll(function(){if($(window).scrollTop()>=$top){$("#fixedNav").addClass("fixedNav")}else{$("#fixedNav").removeClass("fixedNav")}})}});



