!function(){function i(){var i=$(window).height(),e=$("#m-region>.curr").outerHeight(!0);$("#m-region>.scroll").height(i-(42+e))}function e(i){function e(){$(i).each(function(i,e){if(""!=$(this).attr("data-src")){var e=$(this).offset(),o=$(this).height()+8;e.top+o>=t&&e.top<t+5*n&&$(this).attr("src",$(this).attr("data-src"))}})}var n=($(".index").height(),$(window).height()),t=0;$(".index").scroll(function(){t=$(".index").scrollTop(),e()}),setTimeout(e,200)}var n=($(".container"),void 0),t=void 0,o=(new Swiper(".swiper-banner",{pagination:".swiper-pagination",paginationClickable:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1}),new Swiper(".swiper-letters",{direction:"vertical",loop:!0,autoplay:4e3,autoplayDisableOnInteraction:!1}),new Swiper(".swiper-list",{slidesPerView:"auto"}),new Swiper(".swiper-list-new",{slidesPerView:"auto",freeMode:!0}),navigator.userAgent);o.indexOf("iPhone")>-1&&o.indexOf("MicroMessenger")==-1?$(".appdownload").hide():($(".appdownload").slideDown(500),$("header").animate({top:"0"},500)),$(".close-download").click(function(){$(".appdownload").slideUp(500),$("header").animate({top:"0"},500)}),$(".position").click(function(){$(".positioning").show(),i()}),$(".icon-morehome").click(function(){$(".positioning").hide()}),i(),$(window).resize(function(){i()}),$("#region-ul>li.more>a").click(function(){"block"==$(this).siblings("ul.child").css("display")?$(this).parent().removeClass("in"):$(this).parent().addClass("in").siblings().removeClass("in"),$(this).siblings("ul.child").slideToggle(),$(this).parent().siblings().children("ul.child").slideUp()}),$(document).on("click",'#region-ul>li:not(".more"),.list>a,ul.child>li',function(){$(".positioning").hide();var i=$(this).text();$(".position").children("em").text(i)}),$("header>.search").click(function(i){i.preventDefault(),$(".search-box").css({display:"block"}),$(".search-box").animate({opacity:"1"}),$(".searchbar>input").val("")}),$(".navbar-header").click(function(){$(".search-box").animate({opacity:"0"},function(){$(".search-box").hide()})}),$(".clear-sign").click(function(){$(this).hide(),$(".history").hide().find("a").remove()});var s=$(".searchbar .icon-searchhomedel");$(".searchbar>input").on("input propertychange focus",function(){var i=$(this).val(),e=$(window).height();""!=i?(s.show(),$(".search-tips").slideDown("fast",function(){$(this).css("height",e-57)})):(s.hide(),$(".search-tips").slideUp("fast"))}),$(".index").scroll(function(){n=$(".index").scrollTop(),t=$(".index").scrollTop()/200<.9?$(".index").scrollTop()/200:.9,$("header").css("background","rgba(101,160,50,"+t+")")}),$(".search-tips li").click(function(){$(".searchbar>input").val($(this).children().text()),$(".search-tips").slideUp("fast")}),$(".keyword .con a").click(function(){$(".searchbar>input").val($(this).text()),s.show()}),s.on("click",function(){$(".searchbar>input").val("").focus()}),$(window).resize(function(){var i=$(window).height();$(".search-tips").css("height",i-57)});var a=1476343743703,r=1476343843703;setInterval(function(){var i=parseInt(r)-parseInt(a);i<=0&&$("#runTime").parents("a").remove(),$("#runTime").html(Tools.getRunTime(a,r,1,"0")),a+=1},1e3),e($("img"))}();