var initModule,animated_contents,minheight,alertinfo,exists,backtotop,fenleishow,loadtemp,navactive,scrollto,html_overflow,scroll,AddFavorite,SetHome;exists=function(t){"use strict";return jQuery(t).length>0},html_overflow=function(t){t?$("html").css("overflow-y","scroll"):$("html").css("overflow","hidden")},SetHome=function(t,e){try{t.style.behavior="url(#default#homepage)",t.setHomePage(e)}catch(t){if(window.netscape)try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(t){alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'")}else alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【"+e+"】设置为首页。")}},AddFavorite=function(t,e){try{window.external.addFavorite(e,t)}catch(n){try{window.sidebar.addPanel(t,e,"")}catch(t){alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请进入新网站后使用Ctrl+D进行添加")}}},animated_contents=function(){"use strict";exists(".animate-element")&&$(".animate-element:in-viewport").each(function(t){var e=$(this);e.hasClass("in-viewport")||setTimeout(function(){e.addClass("in-viewport")},100*t)})},navactive=function(t){$("header nav a").removeClass("on"),$("header nav a").eq(t).addClass("on")},alertinfo=function(t,e){$(".alert_player").fadeIn(),$(".alert_player .info").html(t),void 0===e||$(".alert_player .queren_btn,.alert_player .bg").click(function(){location.href=e})},backtotop=function(){$("#backtotop").on("click",function(){return $("body,html").animate({scrollTop:0},1e3),!1})},minheight=function(){var t,e=$("header").height(),n=$("footer").height();$(window).height(),$("nav").height();t=$(window).height()-n-e,t<458&&(t=458),$("article").css("min-height",t+"px")},loadtemp=function(){exists(".jiazai")&&$(".jiazai").each(function(t,e){var n=$(this).attr("id"),i=$(this).attr("data-callback");if(i)var a=i.split(",");$.get("./"+n+".html",function(t){if($("#"+n).html(t),i)for(var e=eval,o=0;o<a.length;o++){var l=a[o].split(":");e(l[1]?l[0]+'("'+l[1]+'");':l[0]+"();")}})})},scrollto=function(){$(".scrollto").click(function(t){t.preventDefault();var e=$(this).attr("href");$("html,body").animate({scrollTop:$(e).offset().top},800)})},scroll=function(){$(".scroller").scrollbar()},initModule=function(){$(window).width();minheight(),backtotop(),loadtemp(),scrollto(),animated_contents(),scroll(),$(window).scroll(function(t){animated_contents()}),$(window).on("debouncedresize",function(){minheight()}),$(".alert_player .bg,.alert_player .queren_btn").click(function(){$(".alert_player").fadeOut()})},$(document).ready(function(){initModule()});