$(function(){$("#mayi_rmenu").each(function(){$(this).find(".btn-wx").mouseenter(function(){$(this).find(".pic").fadeIn("fast")});$(this).find(".btn-wx").mouseleave(function(){$(this).find(".pic").fadeOut("fast")});$(this).find(".btn-phone").mouseenter(function(){$(this).find(".phone").fadeIn("fast")});$(this).find(".btn-phone").mouseleave(function(){$(this).find(".phone").fadeOut("fast")});$(this).find(".btn-top").click(function(){$("html, body").animate({"scroll-top":0},"fast")})});var lastRmenuStatus=false;$(window).scroll(function(){var _top=$(window).scrollTop();if(_top>200){$("#mayi_rmenu").data("expanded",true)}else{$("#mayi_rmenu").data("expanded",false)}if($("#mayi_rmenu").data("expanded")!=lastRmenuStatus){lastRmenuStatus=$("#mayi_rmenu").data("expanded");if(lastRmenuStatus){$("#mayi_rmenu .btn-top").slideDown()}else{$("#mayi_rmenu .btn-top").slideUp()}}})});