(function(window){window.ringba_known_numbers = [{"int":"+18888592635","loc":"(888) 859-2635","jstag":"JS7a836dc0eb4f49e1b622fc5ce7269431","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889131750","loc":"(888) 913-1750","jstag":"JSc9aefeb9f3dc4dad871a0523402330f1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18885130666","loc":"(888) 513-0666","jstag":"JS6c9b3e70eb444022bfbc0a45c992e51e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18882711731","loc":"(888) 271-1731","jstag":"JS0b2426ff2ddf44a19fa149c09c8e4304","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884462346","loc":"(888) 446-2346","jstag":"JSc43f568e92c649ca8cdbb505c2338da2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886042276","loc":"(888) 604-2276","jstag":"JSc36937ff0bc14f0287e80e2d3326b04f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889183832","loc":"(888) 918-3832","jstag":"JS0957ec43b3bb4461b7a33e93faaac09b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18885113432","loc":"(888) 511-3432","jstag":"JS5174018f75d942c791bbac722e47c306","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884401410","loc":"(888) 440-1410","jstag":"JSa05e691e949c468292e510a8b9775998","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886571519","loc":"(888) 657-1519","jstag":"JSd7eea99b602d40aa8eb49ea0b79fc3ea","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883110086","loc":"(888) 311-0086","jstag":"JSd8ded3861b554e299af41a5b769ebc2f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884980738","loc":"(888) 498-0738","jstag":"JSc865b4ac015943ae8cb67f96cc08ede1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884152779","loc":"(888) 415-2779","jstag":"JS90028437591941ab82d6533ae8ed1daa","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886293405","loc":"(888) 629-3405","jstag":"JS58124c8c7ca342d885cd6e300228afa1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883415677","loc":"(888) 341-5677","jstag":"JS81d3d04df9c04d25adc9c83a292bd237","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886430285","loc":"(888) 643-0285","jstag":"JSc2525e2cdbea4346bc8364fdf9380ba5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883940142","loc":"(888) 394-0142","jstag":"JSea152df2de574362b950b0e1e400840c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886786995","loc":"(888) 678-6995","jstag":"JS1cfc7c38a28a4141a7349f393932b3ea","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888512854","loc":"(888) 851-2854","jstag":"JS65489e2a09de45d7bebc26e38b4ab6ed","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889020132","loc":"(888) 902-0132","jstag":"JS9386703e87e246589ca242d56dac856d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888710801","loc":"(888) 871-0801","jstag":"JS9d771b785e104509bc21e66f3bfd207d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883870442","loc":"(888) 387-0442","jstag":"JS318cd2aa1d844476b6ae4b65a77ac28f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886500979","loc":"(888) 650-0979","jstag":"JS5eee13d66e8f4a7984903592ff32bf85","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883489768","loc":"(888) 348-9768","jstag":"JS3ab62f64cecb4f04969f54038d83bef6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884791809","loc":"(888) 479-1809","jstag":"JS200b4bd99ec248d19c5ea937fc1d2f26","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889180549","loc":"(888) 918-0549","jstag":"JS1bc1d0ef2bda4ec19d3be2961d17eced","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884906677","loc":"(888) 490-6677","jstag":"JS78a5e86100674039a465d70972d0a4fa","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18885314101","loc":"(888) 531-4101","jstag":"JS8a7d334c43f04ec29825bc9f47dd5881","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883490867","loc":"(888) 349-0867","jstag":"JS5a6e78787a0c46ac8e33bcd2a7b7f0ca","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887800929","loc":"(888) 780-0929","jstag":"JS7343fd50f9414b51b667da2c421c997d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889100665","loc":"(888) 910-0665","jstag":"JS7f4b48ea824245d0b6782c4aa0f9609a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884510553","loc":"(888) 451-0553","jstag":"JS8c1252873d3041dbb8a22a4e7d53e839","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889780249","loc":"(888) 978-0249","jstag":"JSd815b2fd42e74131a87d893d9997b410","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18885081743","loc":"(888) 508-1743","jstag":"JSf8d9c9c14f434f9fbff5ad5930ee0725","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18886011491","loc":"(888) 601-1491","jstag":"JS4a0374568ef54cdab3d12a03586838d3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18883561399","loc":"(888) 356-1399","jstag":"JS99214f1fb8fc49e9ba45f86d18756c28","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888240126","loc":"(888) 824-0126","jstag":"JSe2f12e06165c4307aa49ddb87cb89ada","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18884044168","loc":"(888) 404-4168","jstag":"JS84ffc3ce4a3b47be9c7cd7a29a3a1a3f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18888308357","loc":"(888) 830-8357","jstag":"JS081003d5532e4179b14e27a937781ce3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18889926746","loc":"(888) 992-6746","jstag":"JSd79e8e134d9c45ffb1cef9a852b65d27","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18887731340","loc":"(888) 773-1340","jstag":"JS1fed6585b968438fa9c0dc55441e93c5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true}];!function(e){function t(){this.tagId="",this.id="",this.displayNumber="",this.phoneNumber="",this.impressionQueryPath="",this.maxEpoch=0,this.timeBetweenTicks=0,this.heartBeatMs=0,this.exp=0,this.displayFmt=0,this.heartBeatTimeout=null,this.ready=!0}var n=function(){function t(e){return JSON.stringify(e)}return{postRequest:function(n,r,a,i){if("XDomainRequest"in e&&null!==e.XDomainRequest){var o=new XDomainRequest;o.open("POST",n),o.onload=function(){result=o.responseText,a(result)},o.onerror=function(){i&&i()},o.send(t(r))}else{if(navigator.userAgent.indexOf("MSIE")!=-1&&parseInt(navigator.userAgent.match(/MSIE ([\d.]+)/)[1],10)<8)return!1;var u=new XMLHttpRequest;u.onreadystatechange=function(){4==u.readyState&&(200==u.status?a(u.responseText):i&&i())},u.open("POST",n,!0),u.setRequestHeader("Content-type","text/plain"),u.send(t(r))}}}};"undefined"!=typeof e.localStorage&&"undefined"!=typeof e.sessionStorage||function(){var t=function(t){function n(e,t,n){var r,a;n?(r=new Date,r.setTime(r.getTime()+24*n*60*60*1e3),a="; expires="+r.toGMTString()):a="",document.cookie=e+"="+t+a+"; path=/"}function r(e){var t,n,r=e+"=",a=document.cookie.split(";");for(t=0;t-1&&t>-1;i--){var r=e.charAt(i);n="n"==r||"N"==r?this.phoneNumber.charAt(t--)+n:r+n}return n}return this.displayNumber},t.prototype.save=function(){var e=JSON.parse(JSON.stringify(this));delete e.ready,delete e.heartBeatTimeout,localStorage.setItem("ringbaNumber_"+this.tagId,JSON.stringify(e))},t.prototype.isExpired=function(){var e=(new Date).getTime();return e>this.exp||this.maxEpoch>0&&e>this.maxEpoch},t.prototype.incrementExp=function(){this.exp=(new Date).getTime()+this.timeBetweenTicks,this.save()};var r=function(r){function a(e){if(""==e)return{};for(var t=[],n=0;n0&&!D&&p();null!=e&&e.length>0;){var t=e.pop();o(t)}k.length?N():l()}function s(e,t){if(e&&e.length){var n=JSON.parse(t);e.forEach(function(e){var t=n[e];t&&(c(e,t),A.push(e))})}l()}function l(){if(A&&A.length){var e=[];F&&A.forEach(function(t){var n=x[t];n&&e.push({tagId:t,number:n.phoneNumber,numberLocal:n.phoneNumberLocal,displayNumber:n.displayNumber})}),A=[],F&&setTimeout(function(){F(e)},0)}}function c(e,n){var r=t.getNumberFromResult(e,n);r.save(),x[e]=r,h(r),w(r)}function f(e,t){return e.getFmtNumber(t)}function h(e){var t=e.tagId,n=L[t];if(null!=n)for(var r=0;r0?(l=t[r],r+=n?1:-1,a--,u==i&&n&&a>0&&(l+=t.slice(-a))):l=" "),o=n?o+l:l+o}return o}function u(e){var t={replacement:null,foundMatch:!1,missingReplacements:!1,missingNumbers:null};if(!e)return t;var n=a(e);return n.forEach(function(n){var r=s(t.replacement||e,n);r?t.replacement=r:(t.missingReplacements=!0,(t.missingNumbers=t.missingNumbers||[]).push(n))}),t.foundMatch=n.length>0,t}function s(e,t){var n=t.isInternational,r=n?t.number.replaceWithInt:t.number.replaceWithLoc,a=null;return r&&(r=r.replace("+",""),r=o(t.format,r,t.number.replaceLeftToRight),a=e.replace(t.str,r)),a}function l(){return{Text_Data:{get:function(e){return e&&e.data},set:function(e,t){e&&e.data!=t&&(e.data=t)}},IMG_Alt:{get:function(e){return e&&e.alt},set:function(e,t){e&&e.alt!=t&&(e.alt=t)}},Anchor_HRef:{get:function(e){return e&&e.href},set:function(e,t){e&&e.href!=t&&(e.href=t)}}}}function c(e,t){var n=t.get(e),r=u(n);return r.replacement&&t.set(e,r.replacement),r.missingNumbers}function f(e,t,n){this.node=e,this.actionsGetSet=t,this.missingNumbers=n}function h(e,t){var n=c(e,t);return n&&n.length>0?new f(e,t,n):null}function p(e){var t=[],n=null;if(e){var r=e.nodeType;if(8==r)return t;if(3==r)n=h(e,O.Text_Data);else if(1==r&&!(e.className&&e.className.toString().indexOf("rb-ignore-number")>=0)){"IMG"==e.tagName?n=h(e,O.IMG_Alt):"A"==e.tagName&&(n=h(e,O.Anchor_HRef));var a=e.childNodes;if(a)for(var i=a.length;i--;i>=0){var o=a[i],u=p(o);u.forEach(function(e){t.push(e)})}}return n&&t.push(n),t}}function g(e){var t=[];return e?(e.forEach(function(e){var n=h(e.node,e.actionsGetSet);n&&t.push(n)}),t):t}function m(e){var t={},n=[];return e.forEach(function(e){e.missingNumbers.forEach(function(e){var r=e.number.jstag;t[r]||(t[r]=!0,n.push(e.number.jstag))})}),n}function d(e){return D=p(e||t.body),T(D)}function b(){return D=g(D),T(D)}function v(e){y(e),b()}function y(e){e.forEach(function(e){N(e)})}function N(e){if(!(e instanceof n))throw"'numberInfo' should be an instance of 'JSTagNumberInfo'";var t=_[e.jstag];if(!t)throw"Unknown jstag";t.replaceWithInt=i(e.numberInternational,!0),t.replaceWithLoc=i(e.numberLocal),t.replaceLeftToRight=e.formatLeftToRight}function T(e){if(!e)return null;var t=m(e);return w(t),t}function w(e){e&&e.forEach(function(e){I(e)}),S()}function I(e){var t=_[e];t&&(t.infoRequested||(t.infoRequested=!0,M.push(e)))}function S(){M.length>0&&R&&(R(M),M=[])}function E(e){if(null!=e&&"function"!=typeof e)throw"'cbFunction' should be a function";R=e,S()}var L=[];r&&r.length&&r.forEach(function(e){L.push({"int":i(e["int"],!0),loc:i(e.loc),jstag:e.jstag,replaceWithInt:i(e.replaceWithInt,!0),replaceWithLoc:i(e.replaceWithLoc),replaceLeftToRight:e.replaceLeftToRight})});var x={},_={},D=null,R=null,M=[];L.forEach(function(e){x[e["int"].replace("+","")]={number:e,isInternational:!0},x[e.loc]={number:e,isInternational:!1},_[e.jstag]=e});var O=l(),q=function(){var t=e.MutationObserver||e.WebKitMutationObserver||e.MozMutationObserver,n=e.addEventListener;return function(e,r){var a=!1,i=function(){a||(a=!0,setTimeout(function(){a=!1,r()},0))};if(t){var o=new t(function(e,t){(e[0].addedNodes.length||e[0].removedNodes.length||e[0].target)&&i()});o.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}else n&&(e.addEventListener("DOMNodeInserted",i,!1),e.addEventListener("DOMNodeRemoved",i,!1),e.addEventListener("DOMCharacterDataModified",i,!1),e.addEventListener("DOMAttrModified",i,!1))}}();return{InitialPass:d,FollowUp:b,SetNumberInfoAndFollowup:v,SetNewTagCallback:E,SetupObserver:function(e){q(e||t.body,function(){d()})}}};e.ringba&&(e.ringba.SetupNumberReplacement=i),t&&t.body?i():t.addEventListener("DOMContentLoaded",i)}(window,document);})(window);