(function(window){window.ringba_known_numbers = [{"int":"+18009430917","loc":"(800) 943-0917","jstag":"JSc8a9a0964282465d9bf4174686ed50c2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004585964","loc":"(800) 458-5964","jstag":"JSf0c51811ff394770a97174947533be5c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004751432","loc":"(800) 475-1432","jstag":"JS8beed3e318e443d49c1d0fa6448d4952","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004751491","loc":"(800) 475-1491","jstag":"JSbc6380014d284bbbb7015424978dbcac","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004970615","loc":"(800) 497-0615","jstag":"JS83ef0d2738d4465aa70fea7a68f672e7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004978231","loc":"(800) 497-8231","jstag":"JS42b5071a2e57430c988e61115340297d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004979716","loc":"(800) 497-9716","jstag":"JS5cc7e06d6cf2490aa0b094cb8aa6a7f7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004984860","loc":"(800) 498-4860","jstag":"JS78b851d590e94dcb8a65ff4af41e9ead","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004974591","loc":"(800) 497-4591","jstag":"JS04a50d71760549f8802483b37ca18bb7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006368420","loc":"(800) 636-8420","jstag":"JS5955edd2df9a41d086f0dc035d1f391c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006398898","loc":"(800) 639-8898","jstag":"JS205fb3b1a6a1416594ba997862192ad0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006406510","loc":"(800) 640-6510","jstag":"JS6051ea10571046be8a0db9db670d559c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006408713","loc":"(800) 640-8713","jstag":"JSac092b0c69d44b0bb81ff364cf737f9e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006409130","loc":"(800) 640-9130","jstag":"JSbc8ec5be6cea40958069c599e7e52273","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006428806","loc":"(800) 642-8806","jstag":"JS78d404224f5640bcb8bde913048d2375","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006435036","loc":"(800) 643-5036","jstag":"JS124432364936483f8ada63024a8c419e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006448606","loc":"(800) 644-8606","jstag":"JSd3733ad5c48948abaeb7b9b09a8796b0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006472175","loc":"(800) 647-2175","jstag":"JSae04bf1b9b764bcc974d35a94a72929a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006492404","loc":"(800) 649-2404","jstag":"JS9789c69774c7475ca4734692b168e94b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006503115","loc":"(800) 650-3115","jstag":"JSd46fca41c2e74d58814de245c456db36","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004970631","loc":"(800) 497-0631","jstag":"JSb082b0c5e85c44508345f040c5cf6960","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006531037","loc":"(800) 653-1037","jstag":"JSd27f1bc8fe55456eab0a156864a3cda1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006544059","loc":"(800) 654-4059","jstag":"JS29f381ab560543bcaa0c54e9ab24dbe7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006544838","loc":"(800) 654-4838","jstag":"JS13c1266be2054f4389530e3b15f6b232","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006545340","loc":"(800) 654-5340","jstag":"JS86062f9bda364eb1b3c44297fba17d4d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006547791","loc":"(800) 654-7791","jstag":"JS45e33600a06646bb83a1640fcbbf8604","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006552858","loc":"(800) 655-2858","jstag":"JS3d2be663ab9a44e9b793bdec5bb78ea5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006554066","loc":"(800) 655-4066","jstag":"JSd9de5a0f456e426ab8e598bf1dae55fd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006559267","loc":"(800) 655-9267","jstag":"JS572b4da4a0ac4b1d9ca190fe9ec36877","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006562553","loc":"(800) 656-2553","jstag":"JS28102381d3614fd1886119bc0c742783","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006565992","loc":"(800) 656-5992","jstag":"JS5ff29f9d0e9c4eb79bde1a5d304116a8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006566340","loc":"(800) 656-6340","jstag":"JS933d138010814eaf8122ff1ae33bc5b0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006571984","loc":"(800) 657-1984","jstag":"JS502b5fe34eb144a788318ed7cd7ba2c2","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006572017","loc":"(800) 657-2017","jstag":"JSac85b30a8a1143daa47c5c35dae4305c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18006442716","loc":"(800) 644-2716","jstag":"JS782ec5a1227e49a59f68cc2b06d41bd9","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+18004754651","loc":"(800) 475-4651","jstag":"JS37eb169264714641b3fad7a2eea48126","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false}];!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);