"+jQuery(this).text()+"")});jQuery("#view_form_btn").click(function(){jQuery(".tz_show_form_click").slideToggle("slow")});jQuery(".commen_select").select2({minimumResultsForSearch:-1});jQuery(".main_footer_menu").click(function(){jQuery(".footer_main_menu").slideToggle("slow")});jQuery(".commen_select_box select").select2({closeOnSelect:false,placeholder:"",allowHtml:true,allowClear:true,tags:true});jQuery("#program").select2({placeholder:"Select Program",closeOnSelect:false});jQuery("#state").select2({placeholder:"Select State",closeOnSelect:false});jQuery("#categorie").select2({placeholder:"Select Category",closeOnSelect:false});jQuery("#provider_drop_box, #programsLists").select2({placeholder:"Select Your Program",closeOnSelect:true,minimumResultsForSearch:-1});jQuery("#certification").select2({closeOnSelect:false,placeholder:"Product Certification",allowHtml:true,allowClear:true,tags:true});function r(e){var t=jQuery("#provider_drop_box").val();var r=jQuery("#tz_dym_service").val();var o=jQuery("#tz_dym_country").val();var i=jQuery("#tz_dym_state").val();var n=jQuery(".quick_search").val();if(e=="change_main_provider"){r=""}if(e=="change_country"){i=""}if(t==""){alert("Please Select Program");return false}jQuery.ajax({url:"https://achc.org/wp-admin/admin-ajax.php",type:"POST",dataType:"json",cache:false,data:{action:"filter_provider_data",provider_id:t,service_id:r,country_id:o,state_id:i,quick_search:n},beforeSend:function(){jQuery(".loading").show()},success:function(e){jQuery(".clear_search_btn a").css("display","inline-block");var t=jQuery(e.response_html);var r=jQuery(e.service_list);var o=jQuery(e.state_list);var i=jQuery(e.total_count);if(t!=""){jQuery(".main_listing_provider").html(t);jQuery(".tz_provider_count").html(i)}if(r!=""){jQuery("#tz_dym_service").html(r)}if(o!=""){jQuery("#tz_dym_state").html(o)}jQuery(".tz_nav_pg").css("opacity","1");var n={page:30,pagination:true,valueNames:["company_name"]};var a=new List("main_provider_listing",n);a.on("updated",function(e){jQuery([document.documentElement,document.body]).animate({scrollTop:jQuery("body .tz_main_provider_list").offset().top},500)})},complete:function(e){jQuery(".loading").hide()}})}jQuery("#tz_dym_service,#tz_dym_state").change(function(){r("")});jQuery("#provider_drop_box").change(function(){r("change_main_provider")});jQuery("#tz_dym_country").change(function(){r("change_country")});jQuery(".quick_search").on("keypress",function(e){var t=e.keyCode||e.which;if(t===13){jQuery(".tz_quick_search_btn").trigger("click")}});jQuery(".tz_quick_search_btn").click(function(){var e=jQuery(".quick_search").val();var t=jQuery("#provider_drop_box").val();var r=jQuery("#tz_dym_service").val();var o=jQuery("#tz_dym_country").val();var i=jQuery("#tz_dym_state").val();if(e==""){alert("Please Enter Text");return false}jQuery.ajax({url:"https://achc.org/wp-admin/admin-ajax.php",type:"POST",dataType:"json",cache:false,data:{action:"quick_search_list",quick_search:e,provider_id:t,service_id:r,country_id:o,state_id:i},beforeSend:function(){jQuery(".loading").show()},success:function(e){jQuery(".clear_search_btn a").css("display","inline-block");var t=jQuery(e.response_html);var r=jQuery(e.total_count);if(t!=""){jQuery(".main_listing_provider").html(t);jQuery(".tz_provider_count").html(r)}jQuery(".tz_nav_pg").css("opacity","1");var o={page:30,pagination:true,valueNames:["company_name"]};var i=new List("main_provider_listing",o);i.on("updated",function(e){jQuery([document.documentElement,document.body]).animate({scrollTop:jQuery("body .tz_main_provider_list").offset().top},500)})},complete:function(e){jQuery(".loading").hide()}})});jQuery(".tz_nav_pg").append('
> ');jQuery(".tz_nav_pg").prepend('
< ');jQuery(".btn-next").on("click",function(){jQuery(".pagination .active").next().trigger("click")});jQuery(".btn-prev").on("click",function(){jQuery(".pagination .active").prev().trigger("click")});jQuery(".get_in_touch_box").select2({placeholder:"Select Type",closeOnSelect:true,minimumResultsForSearch:-1});jQuery(".select_drop_down .select2-selection .select2-selection__arrow,.form_select_main .select2-selection .select2-selection__arrow").html('
');jQuery(".tz_contatc_pg_btn").click(function(){jQuery("#tz_complaints_form").slideUp("slow");if(jQuery("#get_in_touch_form").is(":visible")){jQuery("#get_in_touch_form").slideUp("slow")}else{jQuery("#get_in_touch_form").slideDown("slow")}});jQuery(".tz_btn_make_comp").click(function(){jQuery("#get_in_touch_form").slideUp("slow");if(jQuery("#tz_complaints_form").is(":visible")){jQuery("#tz_complaints_form").slideUp("slow")}else{jQuery("#tz_complaints_form").slideDown("slow")}});jQuery("body").on("click",".view_more_eye",function(){var e=jQuery(this).attr("data-company-id");jQuery.ajax({url:"https://achc.org/wp-admin/admin-ajax.php",type:"POST",dataType:"json",cache:false,data:{action:"view_provider_details",data_company_id:e},beforeSend:function(){jQuery(".loading").show()},success:function(e){var t=jQuery(e.response_html);if(t!=""){jQuery(".more_accrediation_detail").html(t);jQuery(".tz_thick_box_btn").trigger("click");tb_show("","#TB_inline?width=100%&inlineId=dym_more_info");jQuery("#TB_title #TB_ajaxWindowTitle").append("Accreditation Details")}},complete:function(e){jQuery(".loading").hide()}})});jQuery(".main_ser_select_box").change(function(){var e=jQuery(this).val();var t='