!function(a){a(document.body).on("click","#ced_caf_save_active_filters",function(){var b=window.location.href;a.ajax({url:pro_cat_script_ajax.ajax_url,type:"post",data:{action:"setCookieForSavingFilters",currentURL:b},success:function(b){b=JSON.parse(b);var c=b.changesMade;b=JSON.parse(b.cookieArray);var d=0;a("span.ced_caf_saced_filter_div").html("");for(var e in b)d++,a("span.ced_caf_saced_filter_div").append('Saved Filter-'+d+"
");alert("true_new"==c?"Your curent combination of filters has been saved successfully.":"true_replace"==c?"Your curent combination of filters has been saved successfully. Your oldest combination of filters has been removed as you are only allowed to save 5.":"This combination of filters is already saved. Try another one.")}})}),a(document.body).on("click","li.ccas_chosen",function(b){var c=a(this).find("a").first().attr("href");b.preventDefault(),window.history.pushState("","",c),ajaxifyShop(c),window.scrollTo(0,0)}),function b(){a(".blink_me").fadeOut(500).fadeIn(500,b)}(),a("select.orderby").addClass("orderbydev"),a("select.orderby").removeClass("orderby"),a(document.body).on("change",".woocommerce-ordering select.orderbydev",function(){var c=window.location.href,d=c.split("?"),e=d[0],f=d[1],g=e+"?";if("undefined"==a.type(f))g+="orderby="+this.value;else if("undefined"!=a.type(f)){g+="orderby="+this.value;var h=f.split("&"),i=0;for(i=0;i