var hsm={};hsm.init=function(){hsm.events()};hsm.events=function(){hsm.common()}; hsm.common = function () { $(".m-search-b").click(function(){ $(".header-m .search-w").stop().fadetoggle(); }); } $(function () { hsm.init(); });