//! Calltracks Web Number Dynamics - 3rd generation - Copyright 2007 onwards, Calltracks //! This code is generated, and MUST be loaded from Calltracks. Do not simply copy and paste the code into your web site or tag manager. var class_names = []; var classNamesMatch = "exact"; // fix for ie 8 if (!document.getElementsByClassName) { document.getElementsByClassName = function(search) { var d = document, elements, pattern, i, results = []; if (d.querySelectorAll) { // IE8 return d.querySelectorAll("." + search); } if (d.evaluate) { // IE6, IE7 pattern = ".//*[contains(concat(' ', @class, ' '), ' " + search + " ')]"; elements = d.evaluate(pattern, d, null, 0, null); while ((i = elements.iterateNext())) { results.push(i); } } else { elements = d.getElementsByTagName("*"); pattern = new RegExp("(^|\\s)" + search + "(\\s|$)"); for (i = 0; i < elements.length; i++) { if ( pattern.test(elements[i].className) ) { results.push(elements[i]); } } } return results; } } // Source: Eli Grey @ https://eligrey.com/blog/post/textcontent-in-ie8 if (Object.defineProperty && Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(Element.prototype, "textContent") && !Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get) { (function() { var innerText = Object.getOwnPropertyDescriptor(Element.prototype, "innerText"); Object.defineProperty(Element.prototype, "textContent", // Passing innerText or innerText.get directly does not work, // wrapper function is required. { get: function() { return innerText.get.call(this); }, set: function(s) { return innerText.set.call(this, s); } } ); })(); } // end fix for ie 8 if (document.createElement && document.childNodes){ if (typeof(__ctwnd) == "object") { if(__ctwnd.isInitialised){__ctwnd.reinit()} } else{ function setCalltracksClassFromTextContent(elements) { for(var i = 0; i= __ctwnd.forceRefreshNumbersAfterMs) { continue; } } else { continue; } if(curr==identifierName||curr.indexOf(identifierName+lowercasedDelimiterForOriginalContent)===0){ spanIdentifiers.splice(l, 1); } } } if (spanIdentifiers.length == 0) { add=false; continue; } if (!__ctwnd.isInitialised && span.attributes['data-replace-delayed'] && span.attributes['data-replace-delayed'].value==='true'){add=false;break;} if(add){ reInitG3 = __ctwnd.isInitialised && true; var extra_info= delimiterForOriginalContent + "original-content=" + encodeURIComponent(encodeURIComponent(span.innerText || (span.textContent || '').replace(/\s+/g, ' ') )); var without_attr_data = []; for( var l=0; l