(function(window){window.ringba_known_numbers = [{"int":"+904140000149","loc":"(0414) 000 01 49","jstag":"JS6be708bb4d4447b6a7e477aee1e026ad","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000141","loc":"(0414) 000 01 41","jstag":"JS522d709e2725477ba799fd5af73cf70b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000158","loc":"(0414) 000 01 58","jstag":"JS7f9ae099f9cb4e29a9b9752d2f0e4df8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000144","loc":"(0414) 000 01 44","jstag":"JS8932cf3db4d14e4d81623c1b189fa471","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000139","loc":"(0414) 000 01 39","jstag":"JS9e7e2304665b4d04b24882f4e3dd70fe","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000142","loc":"(0414) 000 01 42","jstag":"JS5067039cd16a4a20ada7f52faa14d113","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000156","loc":"(0414) 000 01 56","jstag":"JSfac24935c1a34b3fbb6291ea73ab6364","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000147","loc":"(0414) 000 01 47","jstag":"JS342dd8f121a144ddb0b78d70d6af619d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000150","loc":"(0414) 000 01 50","jstag":"JSf05923664afa40ec92927d0ce27728d3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000146","loc":"(0414) 000 01 46","jstag":"JS506d393b85a2454eaa11274c3932e29b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000148","loc":"(0414) 000 01 48","jstag":"JSb503cfb55f8c4fc090c95826d05d9c89","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000138","loc":"(0414) 000 01 38","jstag":"JSca3f101789b44676a455bb6e528e1c44","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000140","loc":"(0414) 000 01 40","jstag":"JSa670938ab8a74901914ed8754178a99e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000152","loc":"(0414) 000 01 52","jstag":"JS3449b4aadacf4575828f671716c3bb06","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000151","loc":"(0414) 000 01 51","jstag":"JS3a68ed47561d4c64af096e22b12a27a0","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000157","loc":"(0414) 000 01 57","jstag":"JS56ae140167114c12af375c3dff9b731a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000160","loc":"(0414) 000 01 60","jstag":"JS727ccf9bfcc445c7a0ba96cdb68d0929","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000133","loc":"(0414) 000 01 33","jstag":"JS6e671a985d0243e7b763779833ab56b4","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000153","loc":"(0414) 000 01 53","jstag":"JSf43ca33fa4f24dc4837c454d1b462265","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000159","loc":"(0414) 000 01 59","jstag":"JSc6522821cd8646c7a275cbce23cb4e66","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000136","loc":"(0414) 000 01 36","jstag":"JSb273aaf7b1da4543911b12c89c5a415a","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000145","loc":"(0414) 000 01 45","jstag":"JSdccf82bab9f642bf94c0940d0a1d6c4b","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000143","loc":"(0414) 000 01 43","jstag":"JS51150ce7900544f4a313ff3b36a9657e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000132","loc":"(0414) 000 01 32","jstag":"JS7aece4759349421d848c42354088f5c8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000135","loc":"(0414) 000 01 35","jstag":"JS7ab476dbb7af45c19cc0081af9b0e82d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140000154","loc":"(0414) 000 01 54","jstag":"JSc47d36384e0d4a5a9ee85ed2348773ee","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140009813","loc":"(0414) 000 98 13","jstag":"JSdbeb888fef664d99ac0181d1b637b38e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010689","loc":"(0414) 001 06 89","jstag":"JS8cca849b9775498ba5bb1f18ee244e81","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010217","loc":"(0414) 001 02 17","jstag":"JS8690991639e843f68ef543fb8a7b9205","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010365","loc":"(0414) 001 03 65","jstag":"JS1b53b2039fef4b48bd05d45064873573","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010191","loc":"(0414) 001 01 91","jstag":"JS37b569585c494f028f7f591189e6e1e8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010364","loc":"(0414) 001 03 64","jstag":"JSa54d38cc91d44c4cadc7ca14118674ee","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140009915","loc":"(0414) 000 99 15","jstag":"JS3f028d94a8cc45eeb20b26dc2fcfab83","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010789","loc":"(0414) 001 07 89","jstag":"JS53dd1f5499354d428f4f9a9fd1152a1e","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010162","loc":"(0414) 001 01 62","jstag":"JSc095c3ac13184497843d2e938dc4bcec","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010218","loc":"(0414) 001 02 18","jstag":"JS0fc9b779c4b14099901cb2588c51c4b3","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010283","loc":"(0414) 001 02 83","jstag":"JS5edf8ae81107459b9007a4c435bed4da","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010494","loc":"(0414) 001 04 94","jstag":"JS58e8146fdb2746f4982091b5bc90f10c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010190","loc":"(0414) 001 01 90","jstag":"JSfd78af26b2664657baa743655ac5a10d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010470","loc":"(0414) 001 04 70","jstag":"JS9595b493201140f1a8330dab083681a5","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010768","loc":"(0414) 001 07 68","jstag":"JS11544c3b352444f0a916fa525188e2df","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010247","loc":"(0414) 001 02 47","jstag":"JSd07130172aa941caae07dbb29b26d5a1","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140009961","loc":"(0414) 000 99 61","jstag":"JS5a4ca32f512c479b9bb72bcc436f8df8","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010347","loc":"(0414) 001 03 47","jstag":"JSd8899c69dac74f7582b6917adf3ddefd","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010476","loc":"(0414) 001 04 76","jstag":"JS90eed8f33167493d981b0e8da5508ce7","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010368","loc":"(0414) 001 03 68","jstag":"JS30f3e9e1731b445c953be5fc66e79e2c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010027","loc":"(0414) 001 00 27","jstag":"JS313b9ad6727044b0ac15a76e9c9950ff","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140009821","loc":"(0414) 000 98 21","jstag":"JS214b8d15088f41899c80be1044bb5503","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140009825","loc":"(0414) 000 98 25","jstag":"JS788d4c7f3e52493eb8bcf1f6ebc5d26e","replaceWithInt":"+904140009825","replaceWithLoc":"+904140009825","replaceLeftToRight":false},{"int":"+904140009827","loc":"(0414) 000 98 27","jstag":"JSf8009faf0a2a4be2ad2f69dc4bec289f","replaceWithInt":"+904140009827","replaceWithLoc":"+904140009827","replaceLeftToRight":false},{"int":"+904140010309","loc":"(0414) 001 03 09","jstag":"JSc5902b687b174f52aa43a17cfa972b56","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010231","loc":"(0414) 001 02 31","jstag":"JScb05e5be5387457f8a52405970f089ad","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010042","loc":"(0414) 001 00 42","jstag":"JSd5bbf7ad3aa14089838369c059c90d2c","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010488","loc":"(0414) 001 04 88","jstag":"JS30286e4d8e7e46beb5695bd73bf0f016","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010313","loc":"(0414) 001 03 13","jstag":"JS090508ce980b41b9a4bb120b31bd6c49","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010478","loc":"(0414) 001 04 78","jstag":"JS56267ac65d294637b0cf43ac03f7d73d","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010317","loc":"(0414) 001 03 17","jstag":"JS2110d7dfa58449d8bfb8b8a0399159c6","replaceWithInt":null,"replaceWithLoc":null,"replaceLeftToRight":false},{"int":"+904140010006","loc":"(0414) 001 00 06","jstag":"JS4157175ea4404bad831f60bc6c788d8f","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&&(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);