var $gp=function(s){return{notices:{element:null,init:function(){$gp.notices.element=s("#gp-js-message"),$gp.notices.element.on("click",".gp-js-message-dismiss",$gp.notices.clear)},error:function(e){$gp.notices.genericMessage("gp-js-error",e,!0)},notice:function(e){$gp.notices.genericMessage("gp-js-notice",e,!0)},success:function(e){$gp.notices.genericMessage("gp-js-success",e,!1),$gp.notices.element.fadeOut(1e4)},clear:function(){$gp.notices.element.html("").hide()},genericMessage:function(e,s,t){var n="";$gp.notices.element.stop(!0,!0),!0===t&&(n=' "),$gp.notices.element.removeClass().addClass("gp-js-message").addClass(e).html('
'+s+n+"
"),$gp.notices.center(),$gp.notices.element.show()},center:function(){$gp.notices.element.css("left",(s(document).width()-$gp.notices.element.width())/2)}},esc_html:function(e){return s("
").text(e).html()},init:function(){$gp.notices.init()}}}(jQuery);$gp.showhide=function(p){return function(e,s,t){var n=p.extend({},{show_text:"Show",hide_text:"Hide",focus:!1,group:"default"},t),i=p(e),o=p(s);$gp.showhide.registry[n.group]||($gp.showhide.registry[n.group]=[]);function c(){for(var e=0;e