!function($){"use strict";function t(){$("a.showSummary").click(function(t){t.preventDefault();var a=$(this).children(".fa").attr("class"),e=$(this).closest(".afs-PRTools").next();"fa fa-minus-square"===a?($(this).children(".fa").attr("class","fa fa-plus-square"),$(this).parent().removeClass("active"),e.css("display","none")):($(this).children(".fa").attr("class","fa fa-minus-square"),$(this).parent().addClass("active"),e.css("display","block"))}),$(".afs-Switch a").click(function(t){t.preventDefault();var a=$(".afs-TableWrapper"),e=$(this).attr("rel");a.hasClass(e)||($(".afs-Switch li").removeClass("active"),$(this).parent().addClass("active"),a.removeAttr("class"),a.addClass("afs-TableWrapper "+e))}),$(".afs-Tabs a").click(function(t){return $("input[name='filingType']").val(t.target.rel),$("select[name='category']").val(t.target.rel),a($(this)),!1}),$("#newsForm input[name='filterBy']").keydown(function(t){var e=t.keyCode||t.which;13===e&&a()}),$("#updateBtn, .filterBy").click(function(){return a(),!1}),$("#resetBtn").click(function(){var t=$("input[placeholder='Email']").val();return $("#newsForm")[0].reset(),$("input[placeholder='Email']").val(t),$("select[name='category']").val($("input[name='filingType']").val()),a(),!1}),$(".post-nav ul a").click(function(){$(".post-nav ul a").addClass("btn-default").removeClass("btn-primary"),$(this).addClass("btn-primary").removeClass("btn-default");var t=$(this).text();return"previous"===$(this).attr("title")?t=$(".post-nav ul a.btn-primary").attr("href"):"next"===$(this).attr("title")&&(t=$(".post-nav ul a.btn-primary").attr("href")),parseInt(t,10),a(t),!1})}var a=function(a){var e;e="filingType="+encodeURIComponent($("
").text($("input[name='filingType']").val()).html()),e+="&filterBy="+encodeURIComponent($("").text($("input[name='filterBy']").val()).html()),e+="&filterMonths="+("undefined"!=typeof $("select[name='filterMonths']").val()?$("select[name='filterMonths']").val():""),e+="&filterYears="+("undefined"!=typeof $("select[name='filterYears']").val()?$("select[name='filterYears']").val():""),e+="&withPDF="+$("input[name='withPDF']").is(":checked"),void 0!==a&&(isNaN(a)?($(".afs-Tabs a").parent("li").removeClass("active"),a.parent("li").addClass("active")):e+="&page="+a),$("#newsPanelResults").stop().animate({opacity:"0.5"},"fast",function(){$.ajax({type:"POST",url:ajaxurl,cache:!1,data:"action=my_action&"+e,complete:function(){},success:function(a){$("#newsPanelResults").html(a).stop().animate({opacity:1},"fast"),t()}})})};$(document).ready(function(){t()})}(jQuery);