(function(window){window.ringba_known_numbers = [{"int":"+18447420247","loc":"(844) 742-0247","jstag":"JSff9613e4547a433fb632f7ce68375214","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333950668","loc":"(833) 395-0668","jstag":"JS160c624bd0134350b3916a333edbf8ab","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18334203338","loc":"(833) 420-3338","jstag":"JS69e6c929daef41d5bad624f378076d1f","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337671709","loc":"(833) 767-1709","jstag":"JS60baf388ba2c4f92867d7c91b7e503b9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338502661","loc":"(833) 850-2661","jstag":"JSbec9d31e53734a13afc16e8cbaf8165d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13215590777","loc":"(321) 559-0777","jstag":"JSc3090fd3120042b48eab6aa715646738","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18337642769","loc":"(833) 764-2769","jstag":"JSf89dbd8f0a544408b0386d87b44af2ca","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338481236","loc":"(833) 848-1236","jstag":"JSc6ccbd0fc9fa4cc79fe29f0efe1d3df2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338502659","loc":"(833) 850-2659","jstag":"JS1041ce8496e94122852e1a6a189901bc","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333950697","loc":"(833) 395-0697","jstag":"JS97f26f7e8a0d49e7b73b49db1bce7753","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18339851666","loc":"(833) 985-1666","jstag":"JSd76231ed301c4f5ca405934abfac3b53","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333950703","loc":"(833) 395-0703","jstag":"JSfe1bd8843c29436aa28f8dc8948a9e54","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333952163","loc":"(833) 395-2163","jstag":"JS2ba8e391f86641a9a9827bfe06f41d22","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333950896","loc":"(833) 395-0896","jstag":"JSaf3daee72b6b4ff9891507ff1743dddb","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18333950675","loc":"(833) 395-0675","jstag":"JS858dda64cbe64955b4f0410c048cd26a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335024448","loc":"(833) 502-4448","jstag":"JS7d484853847a4ebc8be1b18ca58f5f52","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335024437","loc":"(833) 502-4437","jstag":"JS9aab7899108442d0a3505805d1718123","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335024453","loc":"(833) 502-4453","jstag":"JS521df6dfba3a4666a7a7463e12b597f9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18335024420","loc":"(833) 502-4420","jstag":"JS92f3fcb4ff0a47d488f222d8906d6927","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338500610","loc":"(833) 850-0610","jstag":"JS3995df1f7216448f9cf0e6ec31b47282","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18338502459","loc":"(833) 850-2459","jstag":"JSf1507714dacf4335943b0f91988e8351","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&&(h(),_=p(_));null!=e&&e.length>0;){var t=e.pop();i(t)}k.length?N():s()}function u(e,t){if(e&&e.length){var n=JSON.parse(t);e.forEach(function(e){var t=n[e];t&&(l(e,t),A.push(e))})}s()}function s(){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 l(e,n){var r=t.getNumberFromResult(e,n);r.save(),x[e]=r,f(r),w(r)}function c(e,t){return e.getFmtNumber(t)}function f(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-1;i>=0;i--){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);