var hsm={};hsm.init=function(){hsm.events()};hsm.events=function(){hsm.common()}; hsm.common = function () { // go-top $(window).scroll(function(){if($(window).scrolltop()>500){$("#gotop").show()}else{$("#gotop").hide()}});$("#gotop").click(function(){$("body,html").animate({scrolltop:0},1000);return false}); } $(function () { hsm.init(); });