function addLoadEvent(t){if(window.jQuery&&window.jQuery(window).on)window.jQuery(window).on("load",t());else if(window.addEventListener)window.addEventListener("load",t,!1);else if(window.attachEvent)window.attachEvent("onload",t);else{var r=window.onload;"function"!=typeof window.onload?window.onload=t:window.onload=function(){r&&r(),t()}}}function set_cookie(t,r,e,n){if(1==n){var i=0,a=document.domain,o=a.split("."),s=escape(r);if(o.length>1)for(;i6&&(e=r[6]>(new Date).getTime()/1e3),e?(replaceSingleRegexSwitch(r[0],r[1],r[2],r[3]),!0):(nt_analyticsId=r[4],!1)}function loadJSurl(t,r){var e=document.createElement("script");e.src=t;var n=document.getElementsByTagName("head")[0],i=!1;n.appendChild(e),e.onload=e.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,r(),e.onload=e.onreadystatechange=null,n.removeChild(e))}}function parseUri(t){var r={strictMode:!0,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};for(m=r.parser[r.strictMode?"strict":"loose"].exec(t),uri={},i=14;i--;)uri[r.key[i]]=m[i]||"";return uri[r.q.name]={},uri[r.key[12]].replace(r.q.parser,function(t,e,n){e&&(uri[r.q.name][e]=n)}),uri}function getUrlVar(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)","i").exec(window.location.href);return null==r?"":r[1]}function getReferrer(){return void 0!==document.referrer?r=document.referrer:r=document.location.href,r}function domIterator(t,r,e,n){for(var i=(n||document.body).childNodes,a=i.length,o=["html","head","style","link","title","meta","script","object","iframe"];a--;){var s=i[a];if(1===s.nodeType){if("A"==s.nodeName&&(s.href.match(/^tel:/)||s.href.match(/\/tel\//)))s.href.replace(t,r)!=s.href&&(s.href.match(/^tel:/)?s.href="tel:+"+r:s.href.match(/\/tel\//)&&(s.href=s.href.replace(/tel\/\+\d{7,16}/i,"tel/+"+r),s.href=s.href.replace(/tel\/\d{7,16}/i,"tel/+"+r)));-1===o.indexOf(s.nodeName.toLowerCase())&&null==s.getAttribute("ninjatrack_ignore")&&arguments.callee(t,r,e,s)}if(null!=s&&3===s.nodeType&&void 0!==s.data){var g=s.data.replace(t,e);g!=s.data&&(parentV=null!=s.parentElement?s.parentElement:s.parentNode,null==parentV||parentV.getAttribute("ninjatrack_orig")||parentV.setAttribute("ninjatrack_orig",encodeURIComponent(s.data)),s.data=g,parentV.setAttribute("ninjatrack_timestamp",(new Date).getTime()))}}}function build_single_number_regex(t){var r=t.replace(/[.?*+^$[\]\\/(){}|-]/g,"\\$&"),e=new Array;if("1"==(t=t.replace(/[\s.?*+^$[\]\\/(){}|-]/g,"")).substring(0,1))var n="",a=t.substring(1,4),o=t.substring(4,7).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),s=t.substring(7).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");else n="",a=t.substring(0,3),o=t.substring(3,6).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),s=t.substring(6).replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");e[0]=n+"\\(\\s?\\u00A0?"+a+"\\s?\\u00A0?\\)[\\-\\.\\s\\u00A0]?"+o+"[\\-\\.\\s\\u00A0]?[\\-\\.\\s\\u00A0]?[\\-\\.\\s\\u00A0]?"+s+"(?!\\d)(?=[<\\s\\u00A0\\.\\!\\?\\,]?)",e[1]=n+a+"\\s?\\u00A0?[\\-\\.\\s\\u00A0]?"+o+"[\\-\\.\\s\\u00A0]?[\\-\\.\\s\\u00A0]?[\\-\\.\\s\\u00A0]?"+s+"(?!\\d)(?=[<\\s\\u00A0\\.\\!\\?\\,]?)",e[2]=n+"("+a+")\\u00A0?\\s?("+o+")\\u00A0?\\s?("+s+")(?!\\d)(?=[<\\s\\u00A0\\.\\!\\?\\,]?)";var g=e.length-1;for(i=0;i<=g;i++)r=r+"|"+e[i];return new RegExp(r,"gi")}function build_single_number_regex_uk(t,r){var e=t.replace(/[.?*+^$[\]\\/(){}|-]/g,"\\$&"),n=(new Array,0);(t=t.replace(/[\s.?*+^$[\]\\/(){}|-\u00A0]/g,"")).substring(0,r.length)==r&&(n=r.length),t.substring(0,r.length+1)=="+"+r&&(n=r.length+1),stringFormat="\\(\\u00A0?\\s?",stringFormat2=" ?\\)?[\\-\\.\\u00A0\\s]?",stringFormat3="[\\-\\.\\u00A0\\s]?",stringFormat4="(?!\\d)";var i=t.substring(n,n+1),a=t.substring(n,n+2),o=t.substring(n,n+3),s=t.substring(n,n+4),g=t.substring(n+1,n+4),m=t.substring(n+2,n+6),u=t.substring(n+2,n+5),c=t.substring(n+3,n+6),l=t.substring(n+4,n+10),d=t.substring(n+3,n+5),F=(t.substring(n+3,n+9),t.substring(n+4,n+9),t.substring(n+4,n+7)),p=t.substring(n+3),_=t.substring(n+4),b=t.substring(n+5),f=t.substring(n+6),h=t.substring(n+7);return e=(e=t.length==n+8?(e=(e=(e=(e=(e=(e=(e=e+"|"+stringFormat+i+stringFormat2+g+stringFormat3+_+stringFormat4)+"|"+i+stringFormat2+g+stringFormat3+_+stringFormat4)+"|"+stringFormat+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+stringFormat+o+stringFormat2+p+stringFormat4)+"|"+o+stringFormat2+p+stringFormat4)+"|"+stringFormat+s+stringFormat2+_+stringFormat4)+"|"+s+stringFormat2+_+stringFormat4:t.length==n+9?(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+"|"+stringFormat+i+stringFormat2+t.substring(n+1,n+3)+stringFormat3+t.substring(n+3,n+5)+stringFormat3+t.substring(n+5,n+7)+stringFormat3+t.substring(n+7)+stringFormat4)+"|"+i+stringFormat2+t.substring(n+1,n+3)+stringFormat3+t.substring(n+3,n+5)+stringFormat3+t.substring(n+5,n+7)+stringFormat3+t.substring(n+7)+stringFormat4)+"|"+stringFormat+a+stringFormat2+t.substring(n+2,n+5)+stringFormat3+t.substring(n+5,n+7)+stringFormat3+t.substring(n+7)+stringFormat4)+"|"+a+stringFormat2+t.substring(n+2,n+5)+stringFormat3+t.substring(n+5,n+7)+stringFormat3+t.substring(n+7)+stringFormat4)+"|"+stringFormat+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+stringFormat+o+stringFormat2+d+stringFormat3+b+stringFormat4)+"|"+o+stringFormat2+d+stringFormat3+b+stringFormat4)+"|"+stringFormat+o+stringFormat2+c+stringFormat3+f+stringFormat4)+"|"+o+stringFormat2+c+stringFormat3+f+stringFormat4)+"|"+stringFormat+o+stringFormat2+p+stringFormat4)+"|"+o+stringFormat2+p+stringFormat4)+"|"+stringFormat+s+stringFormat2+_+stringFormat4)+"|"+s+stringFormat2+_+stringFormat4:(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e+"|"+stringFormat+a+stringFormat2+t.substring(n+2,n+4)+stringFormat3+t.substring(n+4,n+6)+stringFormat3+t.substring(n+6,n+8)+stringFormat3+t.substring(n+8)+stringFormat4)+"|"+a+stringFormat2+t.substring(n+2,n+4)+stringFormat3+t.substring(n+4,n+6)+stringFormat3+t.substring(n+6,n+8)+stringFormat3+t.substring(n+8)+stringFormat4)+"|"+stringFormat+a+stringFormat2+m+stringFormat3+f+stringFormat4)+"|"+a+stringFormat2+m+stringFormat3+f+stringFormat4)+"|"+stringFormat+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+a+stringFormat2+u+stringFormat3+b+stringFormat4)+"|"+stringFormat+o+stringFormat2+c+stringFormat3+f+stringFormat4)+"|"+o+stringFormat2+c+stringFormat3+f+stringFormat4)+"|"+stringFormat+s+stringFormat2+_+stringFormat4)+"|"+s+stringFormat2+l+stringFormat4)+"|"+stringFormat+s+stringFormat2+F+stringFormat3+h+stringFormat4)+"|"+s+stringFormat2+F+stringFormat3+h+stringFormat4)+"|"+t.substring(n),new RegExp(e,"gi")}function replaceSingleRegexSwitch(t,r,e,n){switch(n){case"te":replaceSingleRegex_test(t,r,e);break;case"GB":replaceSingleRegex_alt(t,r,e,"44");break;case"IE":replaceSingleRegex_alt(t,r,e,"353");break;case"AU":replaceSingleRegex_alt(t,r,e,"61");break;case"NZ":replaceSingleRegex_alt(t,r,e,"64");break;case"FR":replaceSingleRegex_alt(t,r,e,"33");break;case"DE":replaceSingleRegex_alt(t,r,e,"49");break;case"IT":replaceSingleRegex_alt(t,r,e,"39");break;case"CL":replaceSingleRegex_alt(t,r,e,"56");case"CH":replaceSingleRegex_alt(t,r,e,"41");break;default:replaceSingleRegex(t,r,e)}}function replaceSingleRegex_test(t,r,e){0!=t.length&&domIterator(t,r,e,null)}function replaceSingleRegex(t,r,e){if(0!=(t=t.trim()).length){var n=build_single_number_regex(t);"1 "==e.substring(0,2)?e=e.substring(2):"1"==e.substring(0,1)&&(e=e.substring(1)),"+"==r.substring(0,1)&&(r=r.substring(1)),domIterator(n,r,e,null)}}function replaceSingleRegex_alt(t,r,e,n){if(0!=(t=t.trim()).length){var i=build_single_number_regex_uk(t,n);e.substring(0,n.length+1)==n+" "?e=e.substring(n.length+1):e.substring(0,n.length)==n&&(e=e.substring(n.length)),"+"==r.substring(0,1)&&(r=r.substring(1)),domIterator(i,r,e,null)}}addLoadEvent(function(){getReplacementNumber()}),window.jQuery&&window.jQuery(document).on&&(window.jQuery(document).on("pagebeforeshow",function(t,r){getReplacementNumber()}),window.jQuery(document).on("pagecontainerbeforetransition",function(t,r){getReplacementNumber()}));