(function(window){window.ringba_known_numbers = [{"int":"+18335040383","loc":"(833) 504-0383","jstag":"JS890662cb27fb43baa3e3eedc15b23d83","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14023609399","loc":"(402) 360-9399","jstag":"JSb1237b5eb89f47e5a2c5bda97efbb082","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15053548215","loc":"(505) 354-8215","jstag":"JS3d5bb626f90b4e85baaae8309ae4d739","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18014327552","loc":"(801) 432-7552","jstag":"JS02b094de9aa947d680ca266255091c26","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15153160920","loc":"(515) 316-0920","jstag":"JS62b09657a7894cc48edc59e4437d9c14","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14104298700","loc":"(410) 429-8700","jstag":"JS1a3ce1f2dc30428fbcf913e39d0109c0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12057086238","loc":"(205) 708-6238","jstag":"JS809ceaa31deb425bb1abc10c18b9adfe","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12164600765","loc":"(216) 460-0765","jstag":"JSf803d2381b714ae8911754e9c95b283b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15012988673","loc":"(501) 298-8673","jstag":"JSe84adc36053d42f68ade91349cbbc0c0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13125790644","loc":"(312) 579-0644","jstag":"JS230d5d993afe46c48450eb2b13f1f35a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13137264122","loc":"(313) 726-4122","jstag":"JS8cfc97b3fafb46e0ae46be1e31b72f68","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13037490095","loc":"(303) 749-0095","jstag":"JScec8fc7e7cb6410babcc964001c4cf9a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14055629362","loc":"(405) 562-9362","jstag":"JS906ffdf75ef44c94ae4737a022be5937","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14012478581","loc":"(401) 247-8581","jstag":"JS4253b41c82804c5d942c4443356f96d8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18022948323","loc":"(802) 294-8323","jstag":"JS225d9888c75445aa8f327d406794a6ab","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15417165602","loc":"(541) 716-5602","jstag":"JSf4635e64cd3949e1a654f1b4af85a78d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18049341591","loc":"(804) 934-1591","jstag":"JScff7bc86805141489e26304cdfb4f91d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13144616435","loc":"(314) 461-6435","jstag":"JS03f8cd119ecf40cfb07bf5ae287c4a9c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13076707367","loc":"(307) 670-7367","jstag":"JS8099567554a04efaad77abeae3711e73","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18036378242","loc":"(803) 637-8242","jstag":"JS9439588f61754830bad5eff1baca6825","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12082179314","loc":"(208) 217-9314","jstag":"JSe7d694cc872d446180bc25fc061e44df","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+18086630115","loc":"(808) 663-0115","jstag":"JSe7a8705ceef444d39da408eb9e79a51c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13179349027","loc":"(317) 934-9027","jstag":"JS32530cb194974621853154b718fc5def","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16025870637","loc":"(602) 587-0637","jstag":"JS803f304d1c0a4997aa036e2bcae31aeb","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13024349788","loc":"(302) 434-9788","jstag":"JSb6c59dce50194bcf85a5c781b1f44150","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13044416853","loc":"(304) 441-6853","jstag":"JS0eebfdcb5227467499e1893058711d66","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17046108183","loc":"(704) 610-8183","jstag":"JSafabec59c24b45abb219cc5c125c4977","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12074190851","loc":"(207) 419-0851","jstag":"JSa7d4759c83be4b5ead3032394b3aaa31","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12066720718","loc":"(206) 672-0718","jstag":"JSb7281b3673d949a38f78e510f0a39954","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14078636082","loc":"(407) 863-6082","jstag":"JS531a63311f574fb994710fe9cb149577","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17012910748","loc":"(701) 291-0748","jstag":"JSc571a94a1b7542fdab8f25ece5c38317","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16054994512","loc":"(605) 499-4512","jstag":"JS522c35a736e04cb4a455948f60d1a499","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12137212041","loc":"(213) 721-2041","jstag":"JS960896c6f5e34e53b7b71fbce82c7e79","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17067031017","loc":"(706) 703-1017","jstag":"JS4a28a8960bf6453f9098f445dde988f4","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12014269309","loc":"(201) 426-9309","jstag":"JS6465e613410f498493a0fe4d4dfac634","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15042170899","loc":"(504) 217-0899","jstag":"JSedecd534732f45399defdb6cc097706d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16124480892","loc":"(612) 448-0892","jstag":"JS4a93e3ca21814b739505576a1a98a502","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12144416845","loc":"(214) 441-6845","jstag":"JS55f94ea7d0124798b88d89ba604c9119","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+13163340120","loc":"(316) 334-0120","jstag":"JS11a129d732b04f3db2b6fda4f6699e44","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16158458001","loc":"(615) 845-8001","jstag":"JSdf02d5a315584e5998924ef9bfec664b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+15028298281","loc":"(502) 829-8281","jstag":"JS5139567fe54b422e8a91d3c9ff604263","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17188149986","loc":"(718) 814-9986","jstag":"JScc542ecc991a449fa4fe4dc3d736855e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12157168074","loc":"(215) 716-8074","jstag":"JS368522800db54f10808d124f1ea1141b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+12038848589","loc":"(203) 884-8589","jstag":"JS6e8f520de4cb472eb32bdd2606ce4ab3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16018618939","loc":"(601) 861-8939","jstag":"JSc5f9a813cb414b419ae5b9b3f7913bc6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+19076153762","loc":"(907) 615-3762","jstag":"JS2442e12f1da541129b41432a9a29c799","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16172718766","loc":"(617) 271-8766","jstag":"JS45bf28c103b74f949805d408a3438b54","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14065489133","loc":"(406) 548-9133","jstag":"JSa9b4fa3b468a46448cdc37509ab9a5c6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+17026029917","loc":"(702) 602-9917","jstag":"JSd517fa2d7e5f43d8bfabe32cc350db05","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+16034200393","loc":"(603) 420-0393","jstag":"JS8272c53cd0d047eabd2cd59bb957488b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":true},{"int":"+14146352974","loc":"(414) 635-2974","jstag":"JSfceed0229ffc4e60a37bc2a84bde9e51","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);