!function(e){var t=function(t,n){var a=this;a.$element=t,a.$container=n,a.w=t.width(),a.h=t.height(),a.ishidden=!0,a.show=function(){a.$element.addClass("active"),ISPHONE?(e("html, body").scrollTop(0),e("#title h1, .add-button").addClass("hideOnHelp"),a.$container.fadeIn(300).css("top",-6)):(a.$container.fadeIn(300).css("top",t.offset().top-a.h/2+4),a.$container.css("right",e(window).width()-t.position().left-a.w-a.w/2+8)),a.ishidden=!1},a.hide=function(){a.$element.removeClass("active"),a.$container.hide(200),a.ishidden=!0,ISPHONE&&(e("html, body").scrollTop(0),e("#title h1, .add-button").removeClass("hideOnHelp"))},a.toggle=function(){a.ishidden?a.show():a.hide()}};e(document).on("vclick.help.data-api","[data-help]",(function(n){n.stopImmediatePropagation(),n.preventDefault();var a=e(n.target),i=e(a.data("help")),o=a.data("cached");o||a.data("cached",o=new t(a,i)),o.toggle()})),e(document).on("resize orientationchange",(function(t){var n=e("[data-help]"),a=n.data("cached");a&&(a.offset=n.offset())}))}(jQuery);