var showNotice,adminMenu,columns,validateForm,screenMeta;!function(P,F){var e,n,R=P(document),_=P(F),L=P(document.body);function t(){R.trigger("wp-window-resized")}adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}},columns={init:function(){var t=this;P(".hide-column-tog","#adv-settings").click(function(){var e=P(this),n=e.val();e.prop("checked")?t.checked(n):t.unchecked(n),columns.saveManageColumnsState()})},saveManageColumnsState:function(){var e=this.hidden();P.post(ajaxurl,{action:"hidden-columns",hidden:e,screenoptionnonce:P("#screenoptionnonce").val(),page:pagenow})},checked:function(e){P(".column-"+e).removeClass("hidden"),this.colSpanChange(1)},unchecked:function(e){P(".column-"+e).addClass("hidden"),this.colSpanChange(-1)},hidden:function(){return P(".manage-column[id]").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return P(".hide-column-tog").not(":checked").map(function(){var e=this.id;return e.substring(e,e.length-5)}).get().join(",")}},colSpanChange:function(e){var n=P("table").find(".colspanchange");n.length&&(e=parseInt(n.attr("colspan"),10)+e,n.attr("colspan",e.toString()))}},R.ready(function(){columns.init()}),validateForm=function(e){return!P(e).find(".form-required").filter(function(){return""===P("input:visible",this).val()}).addClass("form-invalid").find("input:visible").change(function(){P(this).closest(".form-invalid").removeClass("form-invalid")}).size()},showNotice={warn:function(){var e=commonL10n.warnDelete||"";return!!confirm(e)},note:function(e){alert(e)}},screenMeta={element:null,toggles:null,page:null,init:function(){this.element=P("#screen-meta"),this.toggles=P("#screen-meta-links").find(".show-settings"),this.page=P("#wpcontent"),this.toggles.click(this.toggleEvent)},toggleEvent:function(){var e=P("#"+P(this).attr("aria-controls"));e.length&&(e.is(":visible")?screenMeta.close(e,P(this)):screenMeta.open(e,P(this)))},open:function(e,n){P("#screen-meta-links").find(".screen-meta-toggle").not(n.parent()).css("visibility","hidden"),e.parent().show(),e.slideDown("fast",function(){e.focus(),n.addClass("screen-meta-active").attr("aria-expanded",!0)}),R.trigger("screen:options:open")},close:function(e,n){e.slideUp("fast",function(){n.removeClass("screen-meta-active").attr("aria-expanded",!1),P(".screen-meta-toggle").css("visibility",""),e.parent().hide()}),R.trigger("screen:options:close")}},P(".contextual-help-tabs").delegate("a","click",function(e){var n=P(this);if(e.preventDefault(),n.is(".active a"))return!1;P(".contextual-help-tabs .active").removeClass("active"),n.parent("li").addClass("active"),n=P(n.attr("href")),P(".help-tab-content").not(n).removeClass("active").hide(),n.addClass("active").show()}),R.ready(function(){var t,i,o,s,e,n,a,r,c,l=!1,d=P("input.current-page"),u=d.val(),p=/iPhone|iPad|iPod/.test(navigator.userAgent),f=-1!==navigator.userAgent.indexOf("Android"),h=P(document.documentElement).hasClass("ie8"),m=P("#adminmenuwrap"),v=P("#wpwrap"),w=P("#adminmenu"),g=P("#wp-responsive-overlay"),b=P("#wp-toolbar"),k=b.find('a[aria-haspopup="true"]'),C=P(".meta-box-sortables"),y=!1,x=P("#wpadminbar"),S=0,M=!1,E=!1,T=0,D=!1,W={window:_.height(),wpwrap:v.height(),adminbar:x.height(),menu:m.height()};function A(){var e=P("a.wp-has-current-submenu"),n=F.innerWidth?Math.max(F.innerWidth,document.documentElement.clientWidth):961;L.hasClass("folded")||L.hasClass("auto-fold")&&n&&n<=960&&782'),t=commonL10n.dismiss||"";e.find(".screen-reader-text").text(t),e.on("click.wp-dismiss-notice",function(e){e.preventDefault(),n.fadeTo(100,0,function(){n.slideUp(100,function(){n.remove()})})}),n.append(e)})}function z(){r.prop("disabled",""===c.map(function(){return P(this).val()}).get().join(""))}function K(e){var n=_.scrollTop(),e=!e||"scroll"!==e.type;if(!(p||h||w.data("wp-responsive")))if(W.menu+W.adminbarW.wpwrap)O();else{if(D=!0,W.menu+W.adminbar>W.window){if(n<0)return void(M||(E=!(M=!0),m.css({position:"fixed",top:"",bottom:""})));if(n+W.window>R.height()-1)return void(E||(M=!(E=!0),m.css({position:"fixed",top:"",bottom:0})));Sn+W.window&&(T=n),m.css({position:"absolute",top:T,bottom:""})):!M&&m.offset().top>=n+W.adminbar&&(M=!0,m.css({position:"fixed",top:"",bottom:""})):e&&(M=E=!1,0<(T=n+W.window-W.menu-W.adminbar-1)?m.css({position:"absolute",top:T,bottom:""}):O())}S=n}}function N(){W={window:_.height(),wpwrap:v.height(),adminbar:x.height(),menu:m.height()}}function O(){!p&&D&&(M=E=D=!1,m.css({position:"",top:"",bottom:""}))}function j(){N(),w.data("wp-responsive")?(L.removeClass("sticky-menu"),O()):W.menu+W.adminbar>W.window?(K(),L.removeClass("sticky-menu")):(L.addClass("sticky-menu"),O())}w.on("click.wp-submenu-head",".wp-submenu-head",function(e){P(e.target).parent().siblings("a").get(0).click()}),P("#collapse-menu").on("click.collapse-menu",function(){var e;P("#adminmenu div.wp-submenu").css("margin-top",""),e=(e=F.innerWidth?Math.max(F.innerWidth,document.documentElement.clientWidth):961)&&e<960?L.hasClass("auto-fold")?(L.removeClass("auto-fold").removeClass("folded"),setUserSetting("unfold",1),setUserSetting("mfold","o"),"open"):(L.addClass("auto-fold"),setUserSetting("unfold",0),"folded"):L.hasClass("folded")?(L.removeClass("folded"),setUserSetting("mfold","o"),"open"):(L.addClass("folded"),setUserSetting("mfold","f"),"folded"),A(),R.trigger("wp-collapse-menu",{state:e})}),R.on("wp-window-resized wp-responsive-activate wp-responsive-deactivate",A),("ontouchstart"in F||/IEMobile\/[1-9]/.test(navigator.userAgent))&&(e=p?"touchstart":"click",L.on(e+".wp-mobile-hover",function(e){w.data("wp-responsive")||P(e.target).closest("#adminmenu").length||w.find("li.opensub").removeClass("opensub")}),w.find("a.wp-has-submenu").on(e+".wp-mobile-hover",function(e){var n=P(this).parent();w.data("wp-responsive")||n.hasClass("opensub")||n.hasClass("wp-menu-open")&&!(n.width()<40)||(e.preventDefault(),I(n),w.find("li.opensub").removeClass("opensub"),n.addClass("opensub"))})),p||f||(w.find("li.wp-has-submenu").hoverIntent({over:function(){var e=P(this),n=e.find(".wp-submenu"),n=parseInt(n.css("top"),10);isNaN(n)||-5 a",function(e){w.data("wp-responsive")&&(P(this).parent("li").toggleClass("selected"),e.preventDefault())}),e.trigger(),R.on("wp-window-resized.wp-responsive",P.proxy(this.trigger,this)),_.on("load.wp-responsive",function(){(-1').insertAfter("#wpcontent").hide().on("click.wp-responsive",function(){b.find(".menupop.hover").removeClass("hover"),P(this).hide()})),k.on("click.wp-responsive",function(){g.show()})},disableOverlay:function(){k.off("click.wp-responsive"),g.hide()},disableSortables:function(){if(C.length)try{C.sortable("disable")}catch(e){}},enableSortables:function(){if(C.length)try{C.sortable("enable")}catch(e){}}},F.wpResponsive.init(),j(),A(),U(),R.on("wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu",j)}),_.on("resize.wp-fire-once",function(){F.clearTimeout(e),e=F.setTimeout(t,200)}),"-ms-user-select"in document.documentElement.style&&navigator.userAgent.match(/IEMobile\/10\.0/)&&((n=document.createElement("style")).appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.getElementsByTagName("head")[0].appendChild(n))}(jQuery,window);