function getUrlVars(){for(var t=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<r.length;i++)n=r[i].split("="),t.push(n[0]),t[n[0]]=n[1];return t}function LoadFilteredResults(n){$.ajax({url:"/api/findproject/getresults",data:{searchTerm:n},success:function(n){$("#results").html(n)},complete:function(){$(".search-loadding").hide();$(".find-proyect-form .tags-container").remove();$("#results .tags-container").appendTo(".find-proyect-form")},error:function(n,t,i){console.log(i)}})}function commonPestsCarousel(){$(".carousel--pest-library .slides, .carousel--home .slides").slick({dots:!0,infinite:!0,slidesToShow:5,slidesToScroll:5,responsive:[{breakpoint:1220,settings:{dots:!1,slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{dots:!1,slidesToShow:1,slidesToScroll:1}}]})}function init(){var n=$(".carousel--home .slick-dots"),t=n.closest(".carousel--home").find(".button__wrap--cta");n.detach().prependTo(t)}window.isOldIE=/MSIE (\d+\.\d+);/.test(navigator.userAgent)||navigator.userAgent.indexOf("Trident/")>-1;window.isOldIE&&(window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i<this.length;i++)n.call(t,this[i],i,this)}),typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(n){"use strict";var u,i,t,r;if(n===null||n===undefined)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==null&&t!==undefined)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);return u},writable:!0,configurable:!0}),function(n){n.forEach(function(n){n.hasOwnProperty("before")||Object.defineProperty(n,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t.forEach(function(t){var i=t instanceof Node;n.appendChild(i?t:document.createTextNode(String(t)))});this.parentNode.insertBefore(n,this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype])),function(n,t){"use strict";t.Orkin=t.Orkin||{};t.Orkin.navigation=function(){function i(){t();u();r();n(window).on("changed.zf.mediaquery",_.debounce(function(){t();Foundation.MediaQuery.is("small only")&&(Foundation.reInit(n("[data-drilldown]")),Foundation.reInit(n("[data-equalize]")))},500))}function r(){const i=n(".menu--mobile"),t=i.find(".service-silo");t.find("a").on("click",function(i){i.preventDefault();i.stopPropagation();const r=n(i.currentTarget),u=r.data("section");return t.find("a").removeClass("active"),r.addClass("active"),u==="com"?(n(".menu--mobile-com").addClass("active"),n(".menu--mobile-res").removeClass("active")):(n(".menu--mobile-com").removeClass("active"),n(".menu--mobile-res").addClass("active")),Foundation.reInit("drilldown"),!1});n(".js-drilldown-back").each(function(){const t=n(this).parent().closest(".is-drilldown-submenu-parent").find("> a").text();n(this).find("a").text(t)});n(".navbar--mobile .phone").on("click",function(){n("[data-off-canvas]").foundation("close",function(){})})}function u(){const t=n(".nav-menu-icon");t.on("click",function(){t.toggleClass("open")});n(window).on("opened.zf.offcanvas",function(){t.addClass("open")});n(window).on("closed.zf.offcanvas",function(){t.removeClass("open")})}function f(t){const i=t.next(".dropdown-pane");t.off("click.utilityNav");t.on("click.utilityNav",function(){i.hasClass("is-open")?i.removeClass("is-open"):(n(".dropdown-pane").removeClass("is-open"),i.addClass("is-open"))})}function t(){const r=n(".dropdown-trigger");r.each(function(t,i){f(n(i))});const t=n("#utility-nav--mobile"),i=n(".utility-panel__trigger");i.on("click",function(r){const u=n(r.currentTarget);t.hasClass("is-open")?u.hasClass("active")?(t.removeClass("is-open"),u.removeClass("active")):(i.removeClass("active"),u.addClass("active")):(i.removeClass("active"),u.addClass("active"),t.addClass("is-open"))});n(".utility-panel--mobile").on("close.zf.trigger",function(t){const i=n(t.currentTarget);return i.removeClass("is-open"),!1});n("body").on("click",function(r){const u=n(r.target);u.closest(".utility-nav").length===0&&(n(".utility-panel").removeClass("is-open"),t.removeClass("is-open"),i.removeClass("active"))})}return{init:i}}();n(document).ready(function(){t.Orkin.navigation.init()})}(jQuery,window);jQuery(document).ready(function(){var r,t=0,i=window.navigator.userAgent,n,u;i.indexOf("Android")>-1&&/Chrome\/[.0-9]*/.test(i)&&i.indexOf("Version")!=-1?(n=null,u=setInterval(function(){n==null||t?document.getElementById("container").innerHTML="default android browser":(n>9&&!t&&(addPhoneBox(),t=1),n++,document.getElementById("container").innerHTML="default android browser, last touch was: "+n+" seconds ago")},1e3),jQuery(document).bind("scroll",function(){n=0})):(jQuery(document).bind("touchend",function(){r=setTimeout(function(){t||(addPhoneBox(),t=1)},15e3)}),jQuery(document).bind("touchstart",function(){clearTimeout(r)}))});$(window).on("load",function(){var n=jQuery(".dyn-tel").closest("a").attr("href"),t=jQuery(".dyn-tel").eq(0).text(),i='<div class="ciq-phone">\t\t<a id="ciq-close" class="ciq-close">X<\/a>\t\t<a id="ciq-phone-link" class="ciq-phone-link" href="'+n+'">\t\t<span class="ciq-tap">Tap to Call:<\/span>\t\t<span class="ciq-number" itemprop="telephone" href="'+n+'">'+t+"<\/span>\t\t<\/a>\t\t<\/div>";document.URL.indexOf("ecommerce.orkin.com")==-1&&setTimeout(function(){jQuery(i).appendTo("body");$(".ciq-phone .ciq-phone-link .ciq-number").text($(".invocaNumber").html())},7500);jQuery(".ciq-phone .ciq-close").click(function(){jQuery(".ciq-phone").fadeOut()})});var addPhoneBox=function(){var n=jQuery(".call-orkin .dyn-tel").closest("a").attr("href"),t=jQuery(".call-orkin .dyn-tel").eq(0).text()};$(document).ready(function(){$("#btnSubmit").click(function(){var n=$("#txtSearch").val();$("#frmSearch").attr("action","/search?q="+n+"&limit=10")});$("#btnEcommerceSubmit").click(function(){var n=$("#txtSearch").val();$("#frmEcommerceSearch").attr("action","https://www.orkin.com/search?q="+n+"&limit=10")});$("#csbtnSubmit").click(function(){var n=$("#cstxtSearch").val();$("#csfrmSearch").attr("action","/commercial/case-studies/search?q="+n+"&limit=10")});$("#btnMobileSubmit").click(function(){var n=$("#txtMobileSearch").val();$("#frmMobileSearch").attr("action","/search?q="+n+"&limit=10")});$("#pdSubmit").click(function(){$("#results,.search-loadding").show();var n=$("#pdsearch").val();LoadFilteredResults(n);$("#pdsearch").val("")});$("#results").on("click","#pdcancel",function(){$("#results").hide()});var n=getUrlVars();n.q!==undefined&&(n=n.q.split("%20").join(" "),n=n.split("+").join(" "));$("#txtInnerSearch").val(n);$("#sortbyValue").change(function(){$("#frmsearch2").submit();$(".search-loadding").show()});$("#sortbyValue").val($("#ddlValue").val())});$(function(){function i(){var n=$(".testimonial-carousel");n.length!=0&&(n.hasClass("slick-initialized")?n.slick("refresh"):($(".testimonial-slick-dots-red").empty(),n.slick({dots:!0,infinite:!0,slidesToShow:3,slidesToScroll:3,prevArrow:$(".testimonial-prev-arrow"),nextArrow:$(".testimonial-next-arrow"),appendDots:$(".testimonial-slick-dots-red"),responsive:[{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]})))}function t(){$(".carousel-video>.slick-dots").prependTo(".button__wrap--cta")}function n(){$(".carousel-food-beverage .slick-next").appendTo(".carousel-food-beverage .slick-dots")}$(".carousel-video").slick({dots:!0,infinite:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}],lazyLoad:"ondemand"});$(".hero-slider").slick({dots:!1,arrows:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:4e3,responsive:[{breakpoint:800,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]});$(".carousel-pests").slick({dots:!0,infinite:!0,prevArrow:$(".prev-arrow"),nextArrow:$(".next-arrow"),appendDots:$(".slick-dots-red"),slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:800,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:3}}]});window.Orkin.initTestimonialCarousel=i;i();$(".carousel").find(".full-gallery").slick({dots:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]});t();$(window).on("resize",function(){t();setTimeout(t,100)});$(".carousel-facts").slick({dots:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,infinite:!0,arrows:!0,adaptiveHeight:!0});$(".carousel--pests-covered .slides, #color-carousel").slick({dots:!0,infinite:!0,slidesToShow:5,slidesToScroll:5,infinite:!1,responsive:[{breakpoint:99999,settings:"unslick"},{breakpoint:1120,settings:{dots:!1,slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{dots:!1,slidesToShow:2,slidesToScroll:2}},{breakpoint:620,settings:{dots:!1,slidesToShow:1,slidesToScroll:1}},]});$(window).on("resize orientationchange",function(){$(".carousel--pests-covered .slides").slick("resize")});$(".carousel-food-beverage").slick({dots:!0,infinite:!0});n();$(window).on("resize",function(){n();setTimeout(n,100)});$(window).on("load",function(){commonPestsCarousel();init();new Foundation.reInit($("[data-equalizer]"))});$(window).on("resize",function(){n();setTimeout(n,100);init()});if($(".media-room-carousel").each(function(){$(this).slick({dots:!0,infinite:!0,slidesToShow:3,slidesToScroll:3,adaptiveHeight:!0,responsive:[{breakpoint:1220,settings:{dots:!1,slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{dots:!1,slidesToShow:1,slidesToScroll:1}}]})}),$(".color-carousel").each(function(){$(this).slick({dots:!0,infinite:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:1220,settings:{settings:"unslick"}},{breakpoint:768,settings:{dots:!0,slidesToShow:1,slidesToScroll:1}}]})}),Foundation.MediaQuery.is("medium large")){function n(){$(".media-room-carousel").each(function(){$(this).find(".column").length>2==!1&&$(this).find(".column").parent(".slick-track").removeAttr("style")})}n();$(window).on("load resize scroll",function(){n();setTimeout(n,100)})}});$(function(){$(".slick-dots li").length==1&&$(".slick-dots").hide()}),function(n){n.fn.usPhoneFormat=function(t){var i=n.extend({format:"xxx-xxx-xxxx",international:!1},t);if(i.format==="xxx-xxx-xxxx"){n(this).bind("paste",function(t){t.preventDefault();var i=t.originalEvent.clipboardData.getData("Text");if(n.isNumeric(i))i=String(i.replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3")),n(this).val(i),n(this).val(""),i=i.substring(0,12),n(this).val(i);else return!1});n(this).on("keydown touchend",function(t){var i=this.value.length,r=n(this).val();i==3&&t.which!=8&&t.which!=0?n(this).val(r+"-"):i==7&&t.which!=8&&t.which!=0&&n(this).val(r+"-");n(this).attr("maxlength","12")})}else if(i.format==="(xxx) xxx-xxxx"){n(this).on("keydown touchend",function(t){var i=this.value.length,r=n(this).val();i==3&&t.which!=8&&t.which!=0?n(this).val("("+r+") "):i==9&&t.which!=8&&t.which!=0&&n(this).val(r+"-");n(this).attr("maxlength","14")});n(this).bind("paste",function(t){t.preventDefault();var i=t.originalEvent.clipboardData.getData("Text");if(n.isNumeric(i))i=String(i.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")),n(this).val(i),n(this).val(""),i=i.substring(0,14),n(this).val(i);else return!1})}}}(jQuery);$(function(){function r(){$("#captcha_container").length==0&&($(".checkbox").after($('<div id="captcha_container" class="google-cpatcha"><\/div>')),setTimeout(function(){grecaptcha.render("captcha_container",{sitekey:e})},1e3))}function n(n){var t=new RegExp($(n).attr("data-val-multiregex-pattern")),i=$.trim($.trim($(n).val()));return t.test(i)?!1:!0}function o(){$.ajax({type:"POST",url:"/api/BranchData/GetBranchCountFromZipcode",dataType:"json",data:{zipcodefromServiceAddress:document.getElementById("ServiceAddress_ZipCode").value},success:function(n){document.getElementById("BranchesCount").value=n?"true":"false"},error:function(){}})}function f(){var n=sessionStorage.getItem("UTCoffset");$.ajax({type:"POST",url:"/api/Appointment/GetAppointments",dataType:"json",success:function(n){$.each(n,function(n,t){$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").append('<option value="'+t.Text+'">'+t.Value+"<\/option>")})},error:function(){}});sessionStorage.removeItem("UTCoffset")}function s(){var t=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value option:selected"),n=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value"),i=t.text();$.ajax({type:"POST",url:"/api/Appointment/GetAppointmentTimes",dataType:"json",data:{selectedDateString:i},success:function(t){var r=n.children("option:selected").val(),i;n.empty();$.each(t,function(t,i){n.append('<option value="'+i.Text+'">'+i.Value+"<\/option>")});i=!1;$.each(n.children("option"),function(){if(this.value==r)return console.log("exiting!"),i=!0,!1});i?n.val(r):n.prop("selectedIndex",0).val()},error:function(){}})}var t="00000",i=0,e="6Le3Hd0UAAAAAPXN4icCBBAjQvw4ZaCEezgOjHV2",u;$(".form-free-estimate-wraper fieldset, .customercare-form fieldset").hide();$("#wffm9a94011b6475470f9d5238062451ee18 fieldset").show();$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_5__Value").hide();$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").val()!="Termite Control"||window.isOldIE||($(".form-free-estimate-wraper fieldset, .customercare-form fieldset").show(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Id").parent().hide(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Value").val(t),r(),f());$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").change(function(){var n=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").val();n!="Termite Control"||isOldIE?($(".form-free-estimate-wraper fieldset, .customercare-form fieldset").hide(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Id").parent().show(),$.trim($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Value").val())===t&&$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Value").val(""),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").val(t)):($(".form-free-estimate-wraper fieldset, .customercare-form fieldset").show(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Id").parent().hide(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Value").val(t),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").val(""),i==0&&(f(),i++),r())});$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed").find(".btn-default").on("click",function(){var t=!1,r,u,f,e,i,s,o,h;if($.trim($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value option:selected").val())==="Service Type")return t=!0,$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").css("border","2px solid #be0005"),!1;if($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").css("border",""),r="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_1__Value",$.trim($(r).val())===""&&(t=!0),$.trim($(r).val().split(/\s/).length<2)&&(t=!0),u="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_2__Value",$.trim($(u).val())===""&&(t=!0),f="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_3__Value",$.trim($(f).val())===""&&(t=!0),e="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_4__Value",$.trim($(e).val())===""&&(t=!0),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").val()==="Termite Control"&&(console.log("validate tc fields"),i=!1,$.trim($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").val())===""?($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").css("border","2px solid #be0005"),i=!0,console.log("tc address error")):$("#ServiceAddress_StreetNumber").val()===""||$("#ServiceAddress_StreetName").val()===""?($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").css("border","2px solid #be0005"),i=!0,console.log("tc street address error"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed").prepend("<div id='overlay'><ul><li>Please enter a full street address where you would like service.<\/li><\/ul><\/div>"),t=!0,$(".icon--close").click(function(){$("#overlay").hide();$("#overlay").remove()}),$("#overlay").click(function(n){n.stopPropagation()}),$("#overlay").fancybox().trigger("click"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").blur()):$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").css("border",""),s=$("input:checkbox:checked:last"),s.length===0||s.val().includes("property owner")?(console.log("validate tc date/times"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").val()==="Inspection Date"?($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").css("border","2px solid #be0005"),i=!0,console.log("tc date error")):$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").css("border",""),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").val()==="Inspection Time"?($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").css("border","2px solid #be0005"),i=!0,console.log("tc time error")):$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").css("border","")):($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").css("border",""),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").css("border","")),i))return console.log("tc fields error"),!1;if(document.getElementById("BranchesCount").value=="false"&&$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value")[0].value!="")return $("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value")[0].value="",$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value-error").hide(),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed").prepend("<div id='overlay'><ul><li>We're sorry, service is not currently available in your area.<\/li><li> If you think this is an error, please call 855-341-4047 for assistance.<\/li><\/ul><\/div>"),t=!0,console.log("No Service Available"),$(".icon--close").click(function(){$("#overlay").hide();$("#overlay").remove()}),$("#overlay").click(function(n){n.stopPropagation()}),$("#overlay").fancybox().trigger("click"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").blur(),!1;o="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value";$.trim($(o).val())===""&&(t=!0);h=$("input:checkbox:checked:last");h.length!==0&&h.val().includes("property owner")||(console.log("not property owner"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").val($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value option:first").val()),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").val($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value option:first").val()));$.trim($(r).val())!==""&&n(r)&&(t=!0);$.trim($(u).val())!==""&&n(u)&&(t=!0);$.trim($(f).val())!==""&&n(f)&&(t=!0);$.trim($(e).val())!==""&&n(e)&&(t=!0);$.trim($(o).val())!==""&&n(o)&&(t=!0)});$(".g-recaptcha").parent().css("clear","both");$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_3__Value").attr("checked","checked");(document.location.pathname.toLowerCase()==="/termite-control"||document.location.pathname.toLowerCase()==="/pest-control"||window.location.pathname.split("/").pop()==="bed-bugs")&&$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").hide();$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed").length&&($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_2__Value").usPhoneFormat({format:"(xxx) xxx-xxxx"}),u=document.getElementById("ServiceAddress_GpKey").value,$.getScript("https://maps.googleapis.com/maps/api/js?libraries=places&key="+u,function(){function f(){var s,f,e,i,u;for(document.getElementById("ServiceAddress_StreetNumber").value="",document.getElementById("ServiceAddress_StreetName").value="",document.getElementById("ServiceAddress_Sublocality").value="",document.getElementById("ServiceAddress_Neighborhood").value="",s=n.getPlace(),f=!1,sessionStorage.clear(),e=0;e<s.address_components.length;e++)i=s.address_components[e].types[0],r[i]&&t[i]&&(u=s.address_components[e][r[i]],document.getElementById(t[i])!=null&&(document.getElementById(t[i]).value=u),i==="street_number"&&u!=null&&sessionStorage.setItem("StreetNumber",document.getElementById("ServiceAddress_StreetNumber").value),i==="route"&&u!=null&&sessionStorage.setItem("StreetName",document.getElementById("ServiceAddress_StreetName").value),i==="locality"&&u!=null&&(sessionStorage.setItem("City",document.getElementById("ServiceAddress_City").value),f=!0),i==="administrative_area_level_1"&&u!=null&&sessionStorage.setItem("State",document.getElementById("ServiceAddress_State").value),i==="postal_code"&&u!=null&&sessionStorage.setItem("ZipCode",document.getElementById("ServiceAddress_ZipCode").value));f||document.getElementById("ServiceAddress_Sublocality").value===""||(sessionStorage.setItem("City",document.getElementById("ServiceAddress_Sublocality").value),f=!0);f||document.getElementById("ServiceAddress_Neighborhood").value===""||sessionStorage.setItem("City",document.getElementById("ServiceAddress_Neighborhood").value);o()}var n,u,r={street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",postal_code:"long_name",sublocality_level_1:"long_name",postal_code_suffix:"long_name",neighborhood:"long_name"},t={street_number:"ServiceAddress_StreetNumber",route:"ServiceAddress_StreetName",locality:"ServiceAddress_City",administrative_area_level_1:"ServiceAddress_State",postal_code:"ServiceAddress_ZipCode",sublocality_level_1:"ServiceAddress_Sublocality",postal_code_suffix:"ServiceAddress_ZipCodeSuffix",neighborhood:"ServiceAddress_Neighborhood"},i;n=new google.maps.places.Autocomplete(document.getElementById("wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value"));n.addListener("place_changed",f);n.setFields(["address_components"]);i=document.getElementById("wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value");i&&i.addEventListener("keydown",function(n){$(".pac-container").is(":visible")&&n.keyCode==13&&(n.preventDefault(),u=!0)})}));$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").change(function(){s()});$(".checkbox").change(function(){$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_3__Value").prop("checked")&&($("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").children()[0].value=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_1__Value").children()[0].text,$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").children()[0].value=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_2__Value").children()[0].text)})});$(function(){var k,y,f,n,t,p,w,o,b,s,i,h,r;$('input[type="radio"]').change(function(){$('input[name="'+this.name+'"]').not(this).next().removeClass("checked");$(this).next().toggleClass("checked",this.checked)});$(".hero").attr("style")!="background-image:url('')"&&$(".load-breadcrumb").appendTo(".hero");$(window).scroll(function(){$(this).scrollTop()>=50?$("#return-to-top").fadeIn(200):$("#return-to-top").fadeOut(200)});$("#return-to-top").on("click",function(){$("body,html").animate({scrollTop:0},500)});$(window).on("load",function(){var n=window.location.pathname.split("/").filter(function(n){return n!==""}).join("-");n==""?$("body").addClass("homepage"):$("body").addClass("body-"+n)});$(".accordion-title.getstarted").click("toggle",function(){return $("form, .free-pestcontrol-container small").slideToggle(),$(this).parent().toggleClass("is-active"),!1});$(".form-free-estimate-wraper .form-submit-border").prepend('<a href="javascript:void(0)" class="button secondary" data-toggle="form--free-estimate" aria-controls="form--free-estimate">Cancel<\/a>');$(window).on("load resize",function(){Foundation.MediaQuery.is("large only")?$(".form-free-estimate-wraper").insertAfter(".hero"):(Foundation.MediaQuery.is("medium only")||Foundation.MediaQuery.is("small only"))&&$(".form-free-estimate-wraper").insertAfter("h1+h3").first()});k=setInterval(function(){$(".customercare-form span.number").html($(".headerphonenumber").html())},1e3);setTimeout(function(){clearInterval(k)},15e3);$("ul#category").attr("data-equalizer","image-category");$("ul#category>li").attr("data-equalizer-watch","image-category");new Foundation.Equalizer($("ul#category")).applyHeight();y="By clicking the “Submit” button, I authorize Orkin to contact me about their services. I understand my consent to be contacted does not require me to make a purchase with Orkin.";f=$("div.left-rail-layout");$(window).on("load",function(){if(new Foundation.Equalizer(f).applyHeight(),$("body").is(".termite-landing")){let n=document.querySelector("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Id").parentNode;n.style.display="none"}});$(document).ready(function(){$("input[placeholder$='Phone']").attr({pattern:"[0-9]*",inputmode:"numeric"});$("input[placeholder$='ZIP']").attr({pattern:"[0-9]*",inputmode:"numeric",maxLength:"5"});$("input[placeholder$='ZIP'], input[placeholder$='Phone']").keydown(function(n){n.shiftKey==!0&&n.preventDefault();n.keyCode>=48&&n.keyCode<=57||n.keyCode>=96&&n.keyCode<=105||n.keyCode==8||n.keyCode==9||n.keyCode==37||n.keyCode==39||n.keyCode==46||n.keyCode==190||n.preventDefault();$(this).val().indexOf(".")!==-1&&n.keyCode==190&&n.preventDefault()});$("input[placeholder$='Full Name']").on("keydown",function(n){for(var i=["Backspace"," ","'","-",".","`"],t=65;t<=90;t++)i.push(String.fromCharCode(t).toLowerCase()),i.push(String.fromCharCode(t));jQuery.inArray(n.key,i)===-1&&n.preventDefault()});if($("body").hasClass("free-pest-landing")||$("body").hasClass("free-termite-landing"))$("form").on("submit",function(){document.querySelectorAll("div.form-group input.input-validation-error").forEach(function(n){n.addEventListener("blur",function(){this.classList.toggle("fixed",this.value.length>0)})})});if(f.length){$("form").on("submit",function(){document.querySelectorAll("div.form-group input.input-validation-error").forEach(function(n){n.addEventListener("blur",function(){this.classList.toggle("fixed",this.value.length>0)})})});var n=f.find("form ~ span");n&&n.text().indexOf("auto dialer")>0&&n.text(y)}});$('form [type="submit"].btn-default').on("click",function(){var n=setInterval(function(){$("form form").length==1&&($(".rail .customercare-form>span").remove(),$("form").parent().find("small").remove(),clearInterval(n))});n});n="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_";$(n+"1__Value").attr("placeholder","Full Name");$(n+"2__Value").attr("placeholder","Phone");$(n+"3__Value").attr("placeholder","Email");$(n+"4__Value").attr("placeholder","ZIP");$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").attr("placeholder","Street Address");(document.location.pathname.toLowerCase()==="/termite-control"||window.location.pathname.split("/").pop()==="bed-bugs")&&(n="#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_",$(n+"1__Value").removeAttr("placeholder"),$(n+"2__Value").removeAttr("placeholder"),$(n+"3__Value").removeAttr("placeholder"),$(n+"4__Value").removeAttr("placeholder"),$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_1__Fields_0__Value").removeAttr("placeholder"));(document.location.pathname.toLowerCase()==="/termite-control"||document.location.pathname.toLowerCase()==="/pest-control"||window.location.pathname.split("/").pop()==="bed-bugs")&&$(".form-submit-border:first").after("<small>"+y+"<\/small>");t="#wffmeeac8d615e5e4f3699a3e0e87d6df53b_Sections_0__Fields_";$(t+"0__Value").attr("placeholder","First Name");$(t+"1__Value").attr("placeholder","Last Name");$(t+"2__Value").attr("placeholder","xxx@xxx.com");$(t+"3__Value").attr("placeholder","(999) 999-9999");$(t+"4__Value").attr("placeholder","What's your question?");p="#wffm5d35c89c95a24419b4911b5530d4414d_Sections_0__Fields_";$(p+"2__Value").attr("placeholder","xxx@xxx.com");$(p+"3__Value").attr("placeholder","(999) 999-9999");$("form").find("#wffm5d35c89c95a24419b4911b5530d4414d_Sections_1__Fields_4__Value option:first").prop("label","Select a State");$("form").find("#wffm5d35c89c95a24419b4911b5530d4414d_Sections_1__Fields_4__Value option:first").text("Select a State");$("form").find("#wffm5d35c89c95a24419b4911b5530d4414d_Sections_1__Fields_4__Value option:first").prop("value","");$('button[type="submit"]').on("click",function(){return $.trim($(this).prev("input").val())==""?($(this).prev("input").focus(),!1):!0});$(".layer__background").each(function(){var n=$(this).attr("data-image-large"),t=$(this).attr("data-image-medium"),i=$(this).attr("data-image-small");Foundation.MediaQuery.is("large only")&&$(this).css("background-image","url("+n+")");Foundation.MediaQuery.is("medium only")&&($(this).attr("data-image-small")==""&&$(this).attr("data-image-medium")==""?$(this).css("background-image","url("+n+")"):$(this).attr("data-image-medium")==""?$(this).css("background-image","url("+n+")"):$(this).css("background-image","url("+t+")"));Foundation.MediaQuery.is("small only")&&($(this).attr("data-image-small")==""&&$(this).attr("data-image-medium")==""?$(this).css("background-image","url("+n+")"):$(this).attr("data-image-small")==""?$(this).css("background-image","url("+t+")"):$(this).css("background-image","url("+i+")"))});$('a[href$=".doc"], a[href$=".pdf"]').attr("target","_blank");var d=window.location.pathname.toLowerCase(),d=d.replace(/\/$/,""),u=d.split("/"),e=u[u.length-1];if(e=e.replace(/-/g," "),w=document.getElementById("hidIndustry"),o="",w!==null&&(o=w.value),o!==""&&(e=o.toLocaleLowerCase()),b=$("#wffmb7d38878102c4fd099b88700cadc4e38_Sections_0__Fields_0__Value option").filter(function(){return this.value.toLowerCase()==e.toLocaleLowerCase()}).attr("value"),typeof b!="undefined"&&$("#wffmb7d38878102c4fd099b88700cadc4e38_Sections_0__Fields_0__Value").val(b),s=$("#wffm5f291f16b5924705998818aee36dd85e_Sections_0__Fields_0__Value"),i=$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value"),(s.length||i.length)&&u.length>0)for(h=0;h<u.length;h++)r=u[h],(r=="termites"||r=="termite-control")&&(s.val("Termite Control").change(),i.val("Termite Control").change()),(r=="pest"||r=="pest-control"||r=="bed-bugs")&&(s.val("Pest Control").change(),i.val("Pest Control").change());i.length&&document.location.pathname.toLowerCase().slice(0,16)==="/termite-control"&&i.val("Termite Control").change();$("input[type='radio']").on("click",function(){$(this).attr("id")=="wffm63fb78d764b84f688901b0d62607cbe7_Sections_0__Fields_0__Value"&&($(this).val()=="home"?$("#custQuestions").attr("href","/about/faq"):$(this).val()=="business"&&$("#custQuestions").attr("href","/commercial/about/faq"))});var c="877-819-5097",l="877-819-5061",a="866-788-1506",v="877-480-5769";document.URL.indexOf("es.orkin.com")==-1&&document.URL.indexOf("ecommerce.orkin.com")==-1&&(document.URL.indexOf("/commercial/services/orkin-vitalclean")>-1?($("span.dyn-tel, span.number, a.dyn-tel").each(function(){$(this).text(a);$(this).removeAttr("href");$(this).parent("a").attr("href","tel:"+a)}),$("a.dyn-tel").each(function(){$(this).text(a);$(this).attr("href","tel:"+a)})):document.URL.indexOf("/other-services/orkin-vitalclean")>-1?($("span.dyn-tel, span.number, a.dyn-tel").each(function(){$(this).text(v);$(this).removeAttr("href");$(this).parent("a").attr("href","tel:"+v)}),$("a.dyn-tel").each(function(){$(this).text(v);$(this).attr("href","tel:"+v)})):document.URL.indexOf("/commercial")>-1?($("span.dyn-tel, span.number, a.dyn-tel").each(function(){$(this).text(c);$(this).removeAttr("href");$(this).parent("a").attr("href","tel:"+c)}),$("a.dyn-tel").each(function(){$(this).text(c);$(this).attr("href","tel:"+c)})):($("span.dyn-tel, span.number,span.tel").each(function(){$(this).text(l);$(this).removeAttr("href");$(this).parent("a").attr("href","tel:"+l)}),$("a.dyn-tel, a.tel,a.phone-number").each(function(){$(this).text(l);$(this).attr("href","tel:"+l)})),document.URL.indexOf("/customer-care")>-1&&$("a.phone-number").each(function(){$(this).text("1-888-675-4662");$(this).attr("href","tel:18886754662")}));window.location.href.indexOf("/commercial/blog")>-1?$(".breadcrumbs-bar").after('<div class="call-orkin alt show-for-small-only"><a href="tel:877-819-5097" class=" invocaTelLink" data-invoca-destination-id="8448946305"><span class="tap">Tap here to give us a call:<\/span><span class="call">Call<\/span><span itemprop="telephone" class="number dyn-tel" content="+8448946305"><span class="invocaNumber" data-invoca-destination-id="8448946305">877-819-5097<\/span><\/span><\/a><\/div>'):window.location.href.indexOf("/blog")>-1&&$(".breadcrumbs-bar").after('<div class="call-orkin alt show-for-small-only"><a href="tel:877-819-5061" class=" invocaTelLink" data-invoca-destination-id="8448946305"><span class="tap">Tap here to give us a call:<\/span><span class="call">Call<\/span><span itemprop="telephone" class="number dyn-tel" content="+8448946305"><span class="invocaNumber" data-invoca-destination-id="8448946305">877-819-5061<\/span><\/span><\/a><\/div>');$(".service-type").text()=="Commercial Only"&&$("#google-reviews, #google-reviews+.layer--extra-info").hide();$("a").click(function(){var n=$(this).attr("href"),r,u,i,t;if(typeof n!="undefined"&&(n.split(/[/?#]/)[2]=="es.orkin.com"||n.split(/[/?#]/)[2]=="ecommerce.orkin.com"||n.split(/[/?#]/)[2]=="search.orkin.com"||n.split(/[/?#]/)[2]=="signup.orkin.com"))for(r="gclid=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);t.indexOf(r)==0&&(n=n+t.substring(r.length,t.length))}else n=n;$(this).attr("href",n)});setTimeout(function(){document.cookie="marketingCampaignId="+localStorage.getItem("rol_adid")},5e3);$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed").find(".btn-default").on("click",function(){$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_0__Value").val()=="Termite Control"?$("#wffme98d3cc9a9b549e29b6bb247e8f1a9ed_Sections_0__Fields_5__Value").val(JSON.stringify(sessionStorage)):sessionStorage.clear()});document.URL.indexOf("ecommerce.orkin.com")==-1&&$("a:has(img),a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").fancybox()});jQuery(function(){var t=document.querySelector("title"),r=window.location.pathname,i=document.querySelector("#breadcrumbs li:last-of-type a span"),n;(matched=r.match(/^\/commercial\/blog\/(categories|tags)\/(.+)/))?(n=i.textContent,t.textContent=t.textContent.replace(matched[2],n).replace(/-/g," "),i.textContent=n.replace(/-/g," ")):(matched=r.match(/^\/ask-the-orkin-man-tags\/(.+)/))&&(n=document.querySelector("h1").textContent,t.textContent=n+" | Orkin",i.textContent=n.replace("Questions about ",""))});$(document).ready(function(){var n=/\b(®)/gi,t="<sup>$1<\/sup>";$(".vitalclean-blog .entry-title, .breadcrumbs li").each(function(){$(this).html($(this).html().replace(n,t))})});$(window).on("load",function(){});(function(n,t){function u(){function k(n,t){return{"@type":"Question",name:n,acceptedAnswer:{"@type":"Answer",text:t}}}var u={},b=n("h1:first-of-type").text(),e,tt=n("[data-provider-image]"),g,s,v,f,rt,y,h,nt,c,w,l;tt.length?(u.serviceType=b,e=tt.attr("data-provider-image")):n(".main article p img:first-of-type").length&&(e=n(".main article p img:first-of-type").attr("src"));var a=n("#canonical").attr("href"),d=t.location.pathname,o=d.split("/"),ut=d=="/other/bed-bugs",it=i.indexOf(o[1])>-1,ft=r.indexOf(o[1])>-1,et=o[1]=="ask-the-orkin-man",ot=o[1]=="locations";et?(f=[],o.length==2?n(".popular-questions li").each(function(t,i){var e=n(i),u=e.find("p:first-of-type").text().trim(),r;u=u.replace(/^\s*question:\s*/mi,"");r=e.find("p:last-of-type").text().trim();r=r.replace(/^\s*answer:\s*/mi,"");f.push(k(u,r))}):(g=n(".main article"),s=g.find(".question").text().trim(),s=s.replace(/^\s*question:\s*/mi,""),s.length>0&&(v=g.find(".answer").text().trim(),v=v.replace(/^\s*answer:\s*/mi,""),f.push(k(s,v)))),f.length>0&&(u.mainEntity=f,u["@type"]="FAQPage")):ot?(u["@type"]="Service",u.serviceType="Pest Control",u.provider={image:"https://www.orkin.com/-/media/Orkin/logo-xl.jpg"},o.length>2&&(u.provider.name=b)):ft||ut?u["@type"]="Service":it?(u["@type"]="Article",u.mainEntityOfPage={"@type":"WebPage","@id":a},u.headline=b,u.speakable={"@type":"SpeakableSpecification",cssSelector:["h1"]},u.image=e||"https://www.orkin.com/-/media/Orkin/logo-xl.jpg",u.author="Orkin",u.publisher={"@type":"Organization",name:"Orkin",logo:{"@type":"ImageObject",url:"https://www.orkin.com/-/media/Orkin/logo-xl.jpg"}},u.datePublished=n('meta[property="article:published_time"]').attr("content"),u.dateModified=n('meta[property="article:updated_time"]').attr("content")):d=="/about/faq"&&(u["@type"]="FAQPage",f=[],rt=n(".faq-item"),rt.each(function(t,i){var e=n(i),u=e.find(".question").text().trim(),r;u=u.replace(/^\s*question:\s*/mi,"");r=e.find(".answer").text().trim();r=r.replace(/^\s*answer:\s*/mi,"");f.push(k(u,r))}),u.mainEntity=f);y=[];n("#breadcrumbs li").each(function(t,i){var r=n(i),u=r.find("a").attr("href");y.push({name:r.find("a span").text().trim(),url:u})});h=document.createElement("script");h.id="ld-json-schema";h.setAttribute("type","application/ld+json");var st=n("html").attr("lang")=="es"?"en-ES":"en-US",ht=Object.assign({"@type":"LocalBusiness",name:"Orkin",image:e||"https://www.orkin.com/-/media/Orkin/logo-xl.jpg"},u.provider),p=Object.assign({"@context":"http://schema.org","@type":u["@type"]||"WebPage",subjectOf:{"@id":a+"#webpage","@type":"WebPage",name:"Orkin",url:a,description:n('meta[name="description"]').attr("content"),inLanguage:st,breadcrumb:{"@type":"BreadcrumbList",name:"Breadcrumbs",itemListElement:[]},isPartOf:{"@id":"https://www.orkin.com/#website","@type":"WebSite",url:"https://www.orkin.com/",name:"Orkin",description:"Call (866) 953-2896. Orkin is your pest control expert. Trust Orkin for your termite inspection &amp; pest control service needs. Our exterminators can treat termites, bed bugs, and other pests and rodents.",alternateName:"Orkin",author:{"@type":"Organization",name:"Orkin",url:"https://www.orkin.com/",logo:"https://www.orkin.com/-/media/Orkin/logo-xl.jpg",sameAs:["https://www.facebook.com/OrkinPestControl","https://twitter.com/orkinpest","https://www.youtube.com/user/OrkinVideo","https://www.pinterest.com/orkin/"]}}}},u,{provider:ht});if(e&&!it&&(p.provider.image=e),nt=y.length,nt>0)for(c=0;c<nt;c++)w=y[c],l=w.url=="#"?a:w.url,l[0]=="/"&&(l="https://www.orkin.com"+l),p.subjectOf.breadcrumb.itemListElement.push({"@type":"ListItem",position:c+1,item:{"@id":l,name:w.name}});else delete p.subjectOf.breadcrumb;h.textContent=JSON.stringify(p);document.head.appendChild(h)}var i=["ants","cockroaches","flies","other","rodents","stinging-pests","termites"],r=["pest-control","termite-control","other-services"];n(function(){u()})})(jQuery,window);$(document).ready(function(){var n,t,i,r;if(location.search.includes("gclid")){n="gclid";n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var f="[\\?&]"+n+"=([^&#]*)",e=new RegExp(f),u=e.exec(window.location.href);u!==null&&setTimeout(function(){setCookie("googleAwClickId",u[1],30)},1e3)}t=getURLParameter("utm_content");t!==null&&t!==""&&setTimeout(function(){setCookie("utmContent",t,30)},1e3);i=getURLParameter("utm_source");i!==null&&i!==""&&setTimeout(function(){setCookie("utmSource",i,30)},1e3);r=getURLParameter("utm_medium");r!==null&&r!==""&&setTimeout(function(){setCookie("utmMedium",r,30)},1e3)})