oneweb.DocumentReadyManager.addApplicationAction(function(){var e=$(".login-boxes"),c=".login",f=".login-btn",g=$(".header .login-layer");var d=$(window).width();function b(){if(rwd.ScreenSize.is(rwd.ScreenSize.SIZES.LARGE)||rwd.ScreenSize.is(rwd.ScreenSize.SIZES.XLARGE)){rwd.HeightUtil.resetAndSyncHeight($(".note-content"))}}b();function a(){$("body").toggleClass("underlay")}$(f).on("click",function(){a()}).on("focusout",function(){$("body").removeClass("underlay")});$(c).on("click",function(){a();setTimeout(function(){b()},200)}).on("focusout",function(){$("body").removeClass("underlay")});$(document).bind(rwd.ScreenSize.RESIZE_EVENT_NAME,function(){if($(window).width()<d){$("body").removeClass("underlay")}b()});$(document).on("click",function(h){if(g.is(":visible")&&!$(h.target).hasClass("login")&&!$(h.target).hasClass("login-btn")&&!$(h.target).closest(g).length){$("body").removeClass("underlay")}});$(".note-content").each(function(){if($(this).is(":empty")){$(this).addClass("empty")}})});