;if (window.__ctm == undefined) { window.__ctm = {
config: {
  aid: 99668,
  cookie_dur: 0,
  host:"99668.tctm.co",
  sid:"59da757a00185545ee0f68fe",
  rules:[],
  mapping:{},
  xdomcookie:"0",
  country:"HR",
  region:"",
  dma:"0",
  area:"0",
  delayed:"false",
  gavar:"ga",
  gadim:"",
  pools:{}
} };;window.console||(window.console={log:function(){}}),window.__ctm_debug=!!document.cookie.match(/__ctm_debug=1/),window.__ctm_tracked_numbers={},window.__ctm_tracked=!1,window.__ctm_nodes_visible={},window.__ctm_nodes_clicked={},window.__ctm_queue={pageview:[],visible:[],click:[],form:[],custom:[]},window.__ctm.config.inverted_mapping={},function(){"use strict";var t={},e=__ctm.config.mapping;for(var n in e)for(var o=e[n],r=0,c=o.length;c>r;++r){var i=o[r];if(i)if("number"==i.t){var a=t[i.p.join(".")];a||(a=[]),a.push(n),t[i.p.join(".")]=a}else{var a=t[i.p];a||(a=[]),a.push(n),t[i.p]=a}}window.__ctm.config.inverted_mapping=t}(),window.__ctm_config||(window.__ctm_config={tracker_host:__ctm.config.tracker,duration:__ctm.config.cookie_dur}),function(){function t(o,r){function c(t){if(c[t]!==p)return c[t];var e;if("bug-string-char-index"==t)e="a"!="a"[0];else if("json"==t)e=c("json-stringify")&&c("json-parse");else{var n,o='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var _=r.stringify,u="function"==typeof _&&w;if(u){(n=function(){return 1}).toJSON=n;try{u="0"===_(0)&&"0"===_(new i)&&'""'==_(new a)&&_(v)===p&&_(p)===p&&_()===p&&"1"===_(n)&&"[1]"==_([n])&&"[null]"==_([p])&&"null"==_(null)&&"[null,null,null]"==_([p,v,null])&&_({a:[n,!0,!1,null,"\x00\b\n\f\r	"]})==o&&"1"===_(null,n)&&"[\n 1,\n 2\n]"==_([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==_(new l(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==_(new l(864e13))&&'"-000001-01-01T00:00:00.000Z"'==_(new l(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==_(new l(-1))}catch(f){u=!1}}e=u}if("json-parse"==t){var m=r.parse;if("function"==typeof m)try{if(0===m("0")&&!m(!1)){n=m(o);var s=5==n.a.length&&1===n.a[0];if(s){try{s=!m('"	"')}catch(f){}if(s)try{s=1!==m("01")}catch(f){}if(s)try{s=1!==m("1.")}catch(f){}}}}catch(f){s=!1}e=s}}return c[t]=!!e}o||(o=n.Object()),r||(r=n.Object());var i=o.Number||n.Number,a=o.String||n.String,_=o.Object||n.Object,l=o.Date||n.Date,u=o.SyntaxError||n.SyntaxError,f=o.TypeError||n.TypeError,m=o.Math||n.Math,s=o.JSON||n.JSON;"object"==typeof s&&s&&s.stringify.toString().match(/native/)&&(r.stringify=s.stringify,r.parse=s.parse);var d,g,p,h=_.prototype,v=h.toString,w=new l(-0xc782b5b800cec);try{w=-109252==w.getUTCFullYear()&&0===w.getUTCMonth()&&1===w.getUTCDate()&&10==w.getUTCHours()&&37==w.getUTCMinutes()&&6==w.getUTCSeconds()&&708==w.getUTCMilliseconds()}catch(y){}if(!c("json")){var b="[object Function]",k="[object Date]",C="[object Number]",S="[object String]",T="[object Array]",E="[object Boolean]",j=c("bug-string-char-index");if(!w)var A=m.floor,N=[0,31,59,90,120,151,181,212,243,273,304,334],x=function(t,e){return N[e]+365*(t-1970)+A((t-1969+(e=+(e>1)))/4)-A((t-1901+e)/100)+A((t-1601+e)/400)};if((d=h.hasOwnProperty)||(d=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=v?d=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,d=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,d.call(this,t)}),g=function(t,n){var o,r,c,i=0;(o=function(){this.valueOf=0}).prototype.valueOf=0,r=new o;for(c in r)d.call(r,c)&&i++;return o=r=null,i?g=2==i?function(t,e){var n,o={},r=v.call(t)==b;for(n in t)r&&"prototype"==n||d.call(o,n)||!(o[n]=1)||!d.call(t,n)||e(n)}:function(t,e){var n,o,r=v.call(t)==b;for(n in t)r&&"prototype"==n||!d.call(t,n)||(o="constructor"===n)||e(n);(o||d.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],g=function(t,n){var o,c,i=v.call(t)==b,a=!i&&"function"!=typeof t.constructor&&e[typeof t.hasOwnProperty]&&t.hasOwnProperty||d;for(o in t)i&&"prototype"==o||!a.call(t,o)||n(o);for(c=r.length;o=r[--c];a.call(t,o)&&n(o));}),g(t,n)},!c("json-stringify")){var R={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I="000000",O=function(t,e){return(I+(e||0)).slice(-t)},M="\\u00",L=function(t){for(var e='"',n=0,o=t.length,r=!j||o>10,c=r&&(j?t.split(""):t);o>n;n++){var i=t.charCodeAt(n);switch(i){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=R[i];break;default:if(32>i){e+=M+O(2,i.toString(16));break}e+=r?c[n]:t.charAt(n)}}return e+'"'},U=function(t,e,n,o,r,c,i){var a,_,l,u,m,s,h,w,y,b,j,N,R,I,M,H;try{a=e[t]}catch(D){}if("object"==typeof a&&a)if(_=v.call(a),_!=k||d.call(a,"toJSON"))"function"==typeof a.toJSON&&(_!=C&&_!=S&&_!=T||d.call(a,"toJSON"))&&(a=a.toJSON(t));else if(a>-1/0&&1/0>a){if(x){for(m=A(a/864e5),l=A(m/365.2425)+1970-1;x(l+1,0)<=m;l++);for(u=A((m-x(l,0))/30.42);x(l,u+1)<=m;u++);m=1+m-x(l,u),s=(a%864e5+864e5)%864e5,h=A(s/36e5)%24,w=A(s/6e4)%60,y=A(s/1e3)%60,b=s%1e3}else l=a.getUTCFullYear(),u=a.getUTCMonth(),m=a.getUTCDate(),h=a.getUTCHours(),w=a.getUTCMinutes(),y=a.getUTCSeconds(),b=a.getUTCMilliseconds();a=(0>=l||l>=1e4?(0>l?"-":"+")+O(6,0>l?-l:l):O(4,l))+"-"+O(2,u+1)+"-"+O(2,m)+"T"+O(2,h)+":"+O(2,w)+":"+O(2,y)+"."+O(3,b)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if(_=v.call(a),_==E)return""+a;if(_==C)return a>-1/0&&1/0>a?""+a:"null";if(_==S)return L(""+a);if("object"==typeof a){for(I=i.length;I--;)if(i[I]===a)throw f();if(i.push(a),j=[],M=c,c+=r,_==T){for(R=0,I=a.length;I>R;R++)N=U(R,a,n,o,r,c,i),j.push(N===p?"null":N);H=j.length?r?"[\n"+c+j.join(",\n"+c)+"\n"+M+"]":"["+j.join(",")+"]":"[]"}else g(o||a,function(t){var e=U(t,a,n,o,r,c,i);e!==p&&j.push(L(t)+":"+(r?" ":"")+e)}),H=j.length?r?"{\n"+c+j.join(",\n"+c)+"\n"+M+"}":"{"+j.join(",")+"}":"{}";return i.pop(),H}};r.stringify=function(t,n,o){var r,c,i,a;if(e[typeof n]&&n)if((a=v.call(n))==b)c=n;else if(a==T){i={};for(var _,l=0,u=n.length;u>l;_=n[l++],a=v.call(_),(a==S||a==C)&&(i[_]=1));}if(o)if((a=v.call(o))==C){if((o-=o%1)>0)for(r="",o>10&&(o=10);r.length<o;r+=" ");}else a==S&&(r=o.length<=10?o:o.slice(0,10));return U("",(_={},_[""]=t,_),c,i,r,"",[])}}if(!c("json-parse")){var H,D,X=a.fromCharCode,q={92:"\\",34:'"',47:"/",98:"\b",116:"	",110:"\n",102:"\f",114:"\r"},J=function(){throw H=D=null,u()},z=function(){for(var t,e,n,o,r,c=D,i=c.length;i>H;)switch(r=c.charCodeAt(H)){case 9:case 10:case 13:case 32:H++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=j?c.charAt(H):c[H],H++,t;case 34:for(t="@",H++;i>H;)if(r=c.charCodeAt(H),32>r)J();else if(92==r)switch(r=c.charCodeAt(++H)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=q[r],H++;break;case 117:for(e=++H,n=H+4;n>H;H++)r=c.charCodeAt(H),r>=48&&57>=r||r>=97&&102>=r||r>=65&&70>=r||J();t+=X("0x"+c.slice(e,H));break;default:J()}else{if(34==r)break;for(r=c.charCodeAt(H),e=H;r>=32&&92!=r&&34!=r;)r=c.charCodeAt(++H);t+=c.slice(e,H)}if(34==c.charCodeAt(H))return H++,t;J();default:if(e=H,45==r&&(o=!0,r=c.charCodeAt(++H)),r>=48&&57>=r){for(48==r&&(r=c.charCodeAt(H+1),r>=48&&57>=r)&&J(),o=!1;i>H&&(r=c.charCodeAt(H),r>=48&&57>=r);H++);if(46==c.charCodeAt(H)){for(n=++H;i>n&&(r=c.charCodeAt(n),r>=48&&57>=r);n++);n==H&&J(),H=n}if(r=c.charCodeAt(H),101==r||69==r){for(r=c.charCodeAt(++H),(43==r||45==r)&&H++,n=H;i>n&&(r=c.charCodeAt(n),r>=48&&57>=r);n++);n==H&&J(),H=n}return+c.slice(e,H)}if(o&&J(),"true"==c.slice(H,H+4))return H+=4,!0;if("false"==c.slice(H,H+5))return H+=5,!1;if("null"==c.slice(H,H+4))return H+=4,null;J()}return"$"},$=function(t){var e,n;if("$"==t&&J(),"string"==typeof t){if("@"==(j?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];t=z(),"]"!=t;n||(n=!0))n&&(","==t?(t=z(),"]"==t&&J()):J()),","==t&&J(),e.push($(t));return e}if("{"==t){for(e={};t=z(),"}"!=t;n||(n=!0))n&&(","==t?(t=z(),"}"==t&&J()):J()),(","==t||"string"!=typeof t||"@"!=(j?t.charAt(0):t[0])||":"!=z())&&J(),e[t.slice(1)]=$(z());return e}J()}return t},F=function(t,e,n){var o=P(t,e,n);o===p?delete t[e]:t[e]=o},P=function(t,e,n){var o,r=t[e];if("object"==typeof r&&r)if(v.call(r)==T)for(o=r.length;o--;)F(r,o,n);else g(r,function(t){F(r,t,n)});return n.call(t,e,r)};r.parse=function(t,e){var n,o;return H=0,D=""+t,n=$(z()),"$"!=z()&&J(),H=D=null,e&&v.call(e)==b?P((o={},o[""]=n,o),"",e):n}}}return r.runInContext=t,r}var e=("function"==typeof define&&define.amd,{"function":!0,object:!0}),n=__ctm,o=t(window,n.JSON3={noConflict:function(){return isRestored||(isRestored=!0,n.JSON=nativeJSON,n.JSON3=previousJSON,nativeJSON=previousJSON=null),o}});n.JSON={parse:o.parse,stringify:o.stringify}}.call(this),function(){function t(){__ctm.log=window.console.log.bind(window.console)}function e(){var t=window[__ctm.config.gavar];if(t&&"function"==typeof t.getAll){try{if(__ctm.config.gacode=t.getAll()[0].get("trackingId"),__ctm.config.gaid=t.getAll()[0].get("clientId"),__ctm.config.gaid&&(__ctm.config.gaid="GA1.2."+__ctm.config.gaid),"UA-XXXXX-X"==__ctm.config.gacode)return __ctm.config.gacode=null,!0}catch(e){}return!1}try{window._gaq&&void 0!=typeof _gaq&&!window.pageTracker?_gaq.push(function(){try{__ctm.config.gacode=_gaq._getAsyncTracker()._getAccount(),"UA-XXXXX-X"==__ctm.config.gacode&&(__ctm.config.gacode=null)}catch(t){}}):(window._gat&&void 0!=typeof _gat&&"function"==typeof _gat._getTrackers&&(__ctm.config.gacode=_gat._getTrackers()[0]._getAccount(),"UA-XXXXX-X"==__ctm.config.gacode&&(__ctm.config.gacode=null)),window._gaq&&void 0!=typeof _gaq&&_gaq.push(function(){__ctm.config.gacode=_gaq._getAsyncTracker()._getAccount(),"UA-XXXXX-X"==__ctm.config.gacode&&(__ctm.config.gacode=null)}))}catch(e){}return!0}function n(){try{e()&&setTimeout(checkForGa,100)}catch(t){}}function o(){try{var t=document.createElement("div");t.innerHTML="&nbsp;",t.className="adsbox",t.style="display:none",document.body.appendChild(t),window.setTimeout(function(){try{0===t.offsetHeight&&(__ctm.config.adblock=!0),t.parentNode.removeChild(t)}catch(e){}},100)}catch(e){}}try{if(window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.match(/Googlebot|bingbot|bot|Google Web Preview|spider|slurp/i))return}catch(r){}var c=window.__ctm.config.host,i=window.__ctm.config.rules;__ctm_debug&&window.console&&window.console.log&&Function.prototype.bind?t():__ctm.log=function(){if(window.__ctm_debug){for(var t=[],e=0,n=arguments.length;n>e;++e)t.push(arguments[e]);try{console.log(t,__ctm.JSON.stringify(t))}catch(o){console.log(t)}}},function(){"use strict";function t(t){Array.prototype[t]&&__ctm.safe.isFuncNative(Array.prototype[t])?__ctm[t]=function(e,n,o){return e[t](n,o)}:(__ctm.log("use safe method"),__ctm[t]=function(e,n,o){return __ctm.safe[t].call(e,n,o)})}__ctm.safe={},__ctm.safe.isFuncNative=function(t){return!!t&&"function"==(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code\]\s*}\s*$/i.test(String(t)))},__ctm.safe.indexOf=function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0===n)return-1;var o=0;if(arguments.length>1&&(o=Number(arguments[1]),o!=o?o=0:0!=o&&1/0!=o&&o!=-1/0&&(o=(o>0||-1)*Math.floor(Math.abs(o)))),o>=n)return-1;for(var r=o>=0?o:Math.max(n-Math.abs(o),0);n>r;r++)if(r in e&&e[r]===t)return r;return-1},__ctm.safe.forEach=function(t,e){for(var n=0,o=this.length;o>n;++n)t.call(e||this,this[n],n,this)},__ctm.safe.map=function(t,e){var n,o,r;if(null==this)throw new TypeError(" this is null or not defined");var c=Object(this),i=c.length>>>0;if("[object Function]"!={}.toString.call(t))throw new TypeError(t+" is not a function");for(e&&(n=e),o=new Array(i),r=0;i>r;){var a,_;r in c&&(a=c[r],_=t.call(n,a,r,c),o[r]=_),r++}return o},__ctm.safe.filter=function(t){if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var o=[],r=arguments[1],c=0;n>c;c++)if(c in e){var i=e[c];t.call(r,i,c,e)&&o.push(i)}return o},t("indexOf"),t("forEach"),t("map"),t("filter")}();var a=function(){"use strict";if("function"==typeof window.atob&&"function"==typeof window.btoa)var t={encode:window.btoa,decode:window.atob};else var t={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var n,o,r,c,i,a,_,l="",u=0;for(e=t._utf8_encode(e);u<e.length;)n=e.charCodeAt(u++),o=e.charCodeAt(u++),r=e.charCodeAt(u++),c=n>>2,i=(3&n)<<4|o>>4,a=(15&o)<<2|r>>6,_=63&r,isNaN(o)?a=_=64:isNaN(r)&&(_=64),l=l+t._keyStr.charAt(c)+t._keyStr.charAt(i)+t._keyStr.charAt(a)+t._keyStr.charAt(_);return l},decode:function(e){var n,o,r,c,i,a,_,l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)c=t._keyStr.indexOf(e.charAt(u++)),i=t._keyStr.indexOf(e.charAt(u++)),a=t._keyStr.indexOf(e.charAt(u++)),_=t._keyStr.indexOf(e.charAt(u++)),n=c<<2|i>>4,o=(15&i)<<4|a>>2,r=(3&a)<<6|_,l+=String.fromCharCode(n),64!=a&&(l+=String.fromCharCode(o)),64!=_&&(l+=String.fromCharCode(r));return l=t._utf8_decode(l)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var o=t.charCodeAt(n);128>o?e+=String.fromCharCode(o):o>127&&2048>o?(e+=String.fromCharCode(o>>6|192),e+=String.fromCharCode(63&o|128)):(e+=String.fromCharCode(o>>12|224),e+=String.fromCharCode(o>>6&63|128),e+=String.fromCharCode(63&o|128))}return e},_utf8_decode:function(t){for(var e="",n=0,o=0,r=0;n<t.length;)o=t.charCodeAt(n),128>o?(e+=String.fromCharCode(o),n++):o>191&&224>o?(r=t.charCodeAt(n+1),e+=String.fromCharCode((31&o)<<6|63&r),n+=2):(r=t.charCodeAt(n+1),c3=t.charCodeAt(n+2),e+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&c3),n+=3);return e}};return{compress:function(e,n){return(n?"":"b64")+t.encode(encodeURIComponent(e))},decompress:function(e){return e&&e.match(/^b64/)?decodeURIComponent(t.decode(e.replace(/^b64/,""))):void 0}}}();__ctm.base64=a;var _=function(){"use strict";{var t="https://";t+__ctm.config.host+"/x.html"}return{init:function(t){t()},set:function(){},get:function(t,e){e(null)},rem:function(){},mget:function(t,e){e([])}}}();__ctm.xstore=_;var l=function(){"use strict";function t(t,e){for(var n=t+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var c=o[r];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(n))return e?c.substring(n.length,c.length):a.decompress(c.substring(n.length,c.length))}return null}function e(t){return n(t,"",-1)}function n(t,e,n,o){if(n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var c="; expires="+r.toGMTString()}else var c="";var i=window.location.hostname,_=i.split(".");return _.length>2&&_.length<=3&&(_.shift(),i="."+_.join(".")),__ctm.log("set cookie: ",t,e,"domain",i,c),document.cookie=e&&e.length>0&&!o?t+"="+a.compress(e)+c+"; path=/; domain="+i:t+"="+e+c+"; path=/; domain="+i,e}function o(){var e=t("__ctmid",!0);return e&&24==e.length?__ctm.config.sid=e:(e=__ctm.config.sid,n("__ctmid",e,__ctm.config.cookie_dur,!0)),e}return{get:t,set:n,clear:e,sid:o}}();__ctm.cookie=l;var u=function(){"use strict";var t=window.localStorage&&"function"==typeof window.localStorage.getItem;if(t)try{window.localStorage.setItem("c____t____m","1"),window.localStorage.removeItem("c____t____m")}catch(e){t=!1}var n=null,o=null,r=null,c=60*window.__ctm.config.cookie_dur*24;if(t)n=function(t){var e=localStorage[t+"_ttl"],n=new Date(e),o=new Date;if(n>o){var r=localStorage[t+"_type"];if(r&&"string"!=r&&__ctm.JSON){var c=__ctm.JSON.parse(localStorage[t]);return"string"==typeof c?__ctm.JSON.parse(c):c}return localStorage[t]}return __ctm.log("expired",n,o),localStorage.removeItem(t+"_ttl"),localStorage.removeItem(t+"_type"),localStorage.removeItem(t),null},r=function(t,e){try{localStorage[t]=e}catch(n){console.error(n)}},o=function(t,e){var n=typeof e;"string"!=n&&__ctm.JSON&&(e=__ctm.JSON.stringify(e)),r(t+"_type",n);var o=new Date;return o.setMinutes(o.getMinutes()+c),r(t+"_ttl",o),r(t,e),e};else{var i={};n=function(t){return i[t]},o=function(t,e){return i[t]=e},r=o}return{write:r,set:o,get:n,hasLocal:t}}();__ctm.cache=u;var f=function(){"use strict";function t(t,e){var n=t[0];return""!=n||""!=t[1]&&null!=t[1]?""==n||""!=t[1]&&null!=t[1]?""==n&&""!=t[1]?!e.match(new RegExp(n,"gi")):!!e.match(new RegExp(n,"gi"))&&!e.match(new RegExp(t[1],"gi")):(null==n&&(n=""),!!e.match(new RegExp(n,"gi"))):!0}function e(t,e){var n=t[0],o=t[1];return(""==n||null==n)&&(n=".*"),""!=n&&""==o?!!e.match(new RegExp(n,"gi")):!!e.match(new RegExp(n,"gi"))&&!e.match(new RegExp(o,"gi"))}function n(t,e){__ctm.log("calling setCookieOrStorage:",t,e);try{if(u.hasLocal){window.localStorage[t]=e||"null";var n=new Date;n.setDate(n.getDate()+s),window.localStorage[t+"_ttl"]=n}else l.set(t,e||"null",__ctm.config.cookie_dur)}catch(o){console.error("localStorage error use cookies"),l.set(t,e||"null",__ctm.config.cookie_dur)}_.set(t,e)}function o(t){var e=null;if(u.hasLocal){e=window.localStorage[t]||l.get(t);var n=window.localStorage[t+"_ttl"];if(n){var o=new Date(n),r=new Date;o.getTime()<r.getTime()&&(e=null,window.localStorage.removeItem(t))}else e=null,window.localStorage.removeItem(t)}else e=l.get(t);return e}function r(t,e){var r=o(d);return null!=r&&(e=r),"null"==e&&(e=""),n(d,e),e}function c(t,e){var r=o(g);return null!=r&&(e=r),"null"==e&&(e=""),n(g,e),e}function a(n,o,r){if(null==n[1][0]&&""==n[0][0])var c=""==o,i=""!=r;else if(""==n[0][0]&&""==n[1][0]){__ctm.log("direct style match detected: ",n,o,r.toString(),n[1][1]);var c=!(""!=o&&null!=o||(o?!o.match(n[0][1]?n[0][1]:""):0)),i=r?!!r.match(n[1][1]?n[1][1]:""):!0}else var c=t(n[0],o),i=e(n[1],r);return __ctm.log("ref",c,"loc",i,n),c&&i}function f(t,e,o,i){var _=e,l=o;e=c(i,e),o=r(i,o),__ctm.log("location:",e,", referrer",o,"realLocation",_,"realReferrer",l),__ctm.log("fetched location:",e,", fetched referrer",o);var f={};return __ctm.filter(t,function(t){var r=a(t,o,e),c=!!t[4];if(c){var i=r;r|=a(t,l,_),!i&&r&&(n(d,l),n(g,_))}else{var m=!!t[6];if(!i&&r&&m){console.log("\n		\nweak source use lower ttl\n\n\n");var s=new Date;s.setMinutes(s.getMinutes()+10),u.write("__ctm2_"+__ctm.config.aid+"_"+window.__ctm.config.cookie_dur+"_ttl",s),u.write("__ctm_"+__ctm.config.aid+"_"+window.__ctm.config.cookie_dur+"_ttl",s),u.write("__ctmf_"+__ctm.config.aid+"_"+window.__ctm.config.cookie_dur+"_ttl",s)}}if(r){var p=t[3],h=0;for(var v in p)f[v]?delete p[v]:(f[v]=!0,++h);return __ctm.log("use rule: ",h>0,t),h>0}return!1})}var m=window.__ctm.config.aid,s=window.__ctm.config.cookie_dur,d="__ctm_"+m+"_"+s,g="__ctm2_"+m+"_"+s,p="__ctmf_"+m+"_"+s;return{filter:function(t,e,n){return f(i,t,e,n)},store:n,firstRef:function(){return o(d)},firstLoc:function(){return o(g)},checkFirst:function(){return!!o(p)},didFirst:function(){n(p,"1")}}}();__ctm.rules=f;var m=function(){"use strict";function t(e){return r?void e():void(document.addEventListener?document.addEventListener("DOMContentLoaded",function(){r=!0,e()},!1):window.addEventListener?window.addEventListener("DOMContentLoaded",function(){r=!0,e()},!1):/in/.test(document.readyState)?setTimeout(function(){t(e)},9):r=!0&&e())}function e(t){var e=document.createElement("style");return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(e),e}function n(){c||(c=e("html, body { opacity:0 !important; filter: alpha(opacity = 0); -ms-filter: alpha(opacity = 0); }"))}function o(){c&&(c.parentNode.removeChild(c),c=null)}var r=!1;t(function(){});var c=null;return{hide:n,show:o,ready:t}}();__ctm.page=m;var s=function(){"use strict";function t(t,e,n,o,r,c){if(t==c)return t;__ctm.log("specialSplit:number:",e);var i=e[0]==o,a=[],_=!0;__ctm.forEach(e,function(t){t.match(/^0\?/)&&(t=t.replace(/^0\?/,"")),t.length>1&&(!_&&i||!i)?a=a.concat(t.split("")):a.push(t),_=!1});a.length;__ctm.log("specialSplit:digits before:",a),a.length>10&&(__ctm.log("specialSplit too many digits"),a[1]=a[1]+a[2],a.splice(2,1)),__ctm.log("specialSplit:digits after:",a);var l=[];_=!0,__ctm.forEach(n,function(t){t.length>1&&(!_&&i||!i)?l=l.concat(t.split("")):l.push(t),_=!1}),l.length>10&&(__ctm.log("specialSplit too many digits in newDigits too"),l[1]=l[1]+l[2],l.splice(2,1)),__ctm.log("specialSplit:newDigits",l);for(var u=[],m=0,s=0,d=l.length,g=a.length;d>s;++s)m=s+1,u.push(m==d?l[s]:m==g&&d>g?l[s]+" ":l[s]+"$"+m);__ctm.log("specialSplit:digits final:",a),__ctm.log("specialSplit:replaceStr",u);var p,h=u.join(""),v=a.join(f),w=new RegExp(v,"g");return __ctm.log("specialSplit:text",t),__ctm.log("specialSplit:regex",w),__ctm.log("specialSplit:replaceResult",h),p=c?t.replace(w,c):t.replace(w,h),__ctm.log("specialSplit:result:",p),p}function e(e,o,r,c){__ctm.log("swap:text:",e),__ctm.log("swap:number:",o),__ctm.log("swap:newNumber:",r),__ctm.log("swap:options:",c),c=c||{};var i,a=c.countryCodeHint||c.cc_hint||null,_=c.custom_format||c.format||null,u=[],m=null;if("44"==a)try{var s=[];__ctm.forEach(o,function(t){if(t.length>2){for(var e=t.split("").reverse(),n=[];e.length>0;)n.push(e.splice(0,2).join(""));__ctm.forEach(n.reverse(),function(t){__ctm.forEach(t.split("").reverse(),function(t){s.push(t)})})}else if(t.match(/0/)){var o=null;__ctm.forEach(t.split(""),function(t){o?o+=t:o=t,o.match(/0$/)&&(s.push(o),o=null)}),o&&s.push(o)}else s.push(t)}),__ctm.log("Update numbers:",o,"to",s),o=s}catch(d){console.log(d)}if(null===_){for(var g=0,p=r.length,h=o.length;p>g;++g)m=g+1,u.push(m==p?r[g]:m==h&&p>h?r[g]+" ":r[g]+"$"+m);if(i=0,a||(i=1,a=10==o.join("").length?"1":r[0]),"1"!=a)switch(a){case"972":u[i].match(/^0/)||0!=i||(u[i]="0"+u[i],o[i].match(/^0/)||(o[i]="0?"+o[i]))}}__ctm.log("swap:replaceStr:",u);var v,w,y="";null===_?v=o.join(f):(_&&(w=_.match(/^(\D+0?)/),w&&(y=w[0].replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")),w=_.match(/^\+\d/),w&&(y="[\\+0]")),v="("+y+")?["+l+"]?"+o.join(f));var b=new RegExp(v,"g"),k=_||u.join("");__ctm.log("swap:regexPattern:",v),__ctm.log("swap:regex:",b),__ctm.log("swap:replaceResult",k),__ctm.log("swap:text",e);var C=e.replace(b,k);if(__ctm.log("swap:result",C),c&&c.href&&C.match(/tel:/)&&!C.match(/tel:\+/)&&C.match(/tel:\d+\+/)&&(C=C.replace(/tel:\d+/,"tel:")),C==e){if(_&&(v=o.join(f),b=new RegExp(v,"g"),k=_||u.join(""),__ctm.log(e,":(retry)regex:",b,",",k),C=e.replace(b,k),C!=e))return C;__ctm.log("did not swap: (",e,") :",b,": ",u);var S=e.replace(/\D/g,"");if(__ctm.log("swap:digitsOnly:",S),!S.match(/^0/)&&!S.match(new RegExp("^"+o[0]+"0"))||"1"==o[0]||"39"==o[0])return t(e,o,r,a,i,_);S.match(new RegExp("^"+o[0]+"0"))&&(o=o.slice(),o.splice(1,0,"0"));var T=o.join("").split("");return y="",_&&(w=_.match(/^(\D+0?)/),w&&(y=w[0].replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1"))),v="("+y+")?(["+l+"]*)?"+T.join(f+"?"),b=new RegExp(v,"g"),e.match(b)?_?e.replace(b,k):e.replace(b,r.join(" ")):e}return _&&C.match("0"+n(_))&&(C=C.replace(new RegExp("0"+n(_)),_)),C}function n(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function o(t,e,n,r,c,i){var a=[];if(!t)return a;if(t.className&&t.className.toString().match(/ctm-no-swap/))return a;if(d&&"function"==typeof t.hasAttribute&&t.hasAttribute("data-ctm-watch-id"))return a;if(!d&&void 0!==t["data-ctm-watch-id"])return a;var _=t.childNodes;if(!_)return a;for(var l=_.length,u=",HTML,HEAD,STYLE,LINK,META,SCRIPT,OBJECT,IFRAME,",f=null;l--;){var m=_[l];if(8!=m.nodeType){var s=m.tagName;1==m.nodeType&&-1==(u+",").indexOf(","+m.nodeName+",")&&"fb-root"!=m.id&&o(m,e,n,r,c+1,i);var g;if("A"==s&&m&&m.href){f=m.href.match(e),f&&r(m,f,!0),f=null;try{g=m.href,g&&__ctm.forEach(n,function(t){g&&(-1!=g.indexOf(t)||g.match(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")))&&i(m,t,!0)})}catch(p){console.error(p)}}else if("IMG"==s&&m.alt){f=m.alt.match(e),f&&r(m,f,!0),f=null;try{g=m.alt,g&&__ctm.forEach(n,function(t){g&&(-1!=g.indexOf(t)||g.match(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")))&&i(m,t,!0)})}catch(p){console.error(p)}}else{if(3==m.nodeType&&i&&__ctm.forEach(n,function(t){var e=m.data;(-1!=e.indexOf(t)||e.match(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")))&&i(m,t)}),3!==m.nodeType||!(f=m.data.match(e)))continue;r(m,f,!1),f=null}}}return a}function r(t,e){var n=t.join("."),o=t.join(f);s[t.join("")]=n,(0===e.length||-1==__ctm.indexOf(e,o))&&e.push(o),t=t.slice(0);var r=t.shift();if(s[t.join("")]=n,1!=r){var c=t.pop(),i=[];__ctm.forEach(t,function(t){__ctm.forEach(t.split(""),function(t){i.push(t)})}),o=i.join(f+"?"),o+=f+c;var a;4===c.length&&(a=i.join(f+"?"),a+=f+c.substr(0,1)+f+c.substr(1),a+="|"+f+c.substr(0,2)+f+c.substr(2),(0===e.length||-1==__ctm.indexOf(e,o))&&e.push(a))}else o=t.join(f);__ctm.log("regexPattern:(",t.join(""),")",o),(0===e.length||-1==__ctm.indexOf(e,o))&&e.push(o)}function c(t,e,n,o){var c=__ctm.config.mapping;for(var i in t){var a=i.split("."),_=a.join(".");r(a,e,_,o),c[i]&&c[i].length>0&&__ctm.forEach(c[i],function(t){t&&("number"==t.t?(__ctm.log(t.p),r(t.p,e,_,o)):"exact"==t.t&&n.push(t.p))})}}function i(t){var e=[],n=[];return __ctm.forEach(t,function(t,o){c(t[3],e,n,o)}),[new RegExp(e.join("|")),n]}function a(t,e){if(e.compareDocumentPosition){var n=e.compareDocumentPosition(t);return 0!==(n&Node.DOCUMENT_POSITION_CONTAINED_BY)}return e.hasChildNodes()?e.contains(t):!1}function _(t,e,n){var r,c=[],i=[];return e||(e=document.body),__ctm.log("Numbers.mark",e,t,n),i=o(e,t,n,function(t,e,n){var o=t.parentNode;n&&e[0]?(r=e[0].replace(m,""),c.push([t,s[r]])):e[0]&&0===__ctm.filter(c,function(e){return a(e[0],t)}).length&&(r=e[0].replace(m,""),c.push([o,s[r]]))},0,function(t,e,n){var o=__ctm.config.inverted_mapping[e];o&&__ctm.forEach(o,function(o){var r=s[o.replace(/\./g,"")];__ctm.log("exact mark: ",s,e,r),r&&(n?(t.setAttribute("data-ctm-exact",e),c.push([t,r])):(t.parentNode.setAttribute("data-ctm-exact",e),c.push([t.parentNode,r])))})}),c}var l="&;nbsp_\\.\\(\\)\\+\\-~\\*"+decodeURIComponent(escape(unescape("%E2%80%A2")))+decodeURIComponent(escape(unescape("%E2%80%93")))+decodeURIComponent(escape(unescape("%E2%80%91"))),u=l+"\\s",f="(["+u+"]*)",m=new RegExp(f,"g"),s={},d=function(){var t=!(!window.Element||!window.Element.prototype||"function"!=typeof window.Element.prototype.hasAttribute);if(!t&&!__ctm.safe.isFuncNative(window.Element)){var e=document.createElement("iframe");e.style.visibility="hidden",e.style.height="1px",e.style.width="1px",document.documentElement.appendChild(e);var n=e.contentWindow;t="function"==typeof n.Element.prototype.hasAttribute,e.parentElement.removeChild(e)}return t}();return{prepare:i,mark:function(t,e){var n=i(t);return __ctm.rule_table||(__ctm.rule_table={}),__ctm.forEach(t,function(t,e){var n=t[3];for(var o in n){var r=__ctm.config.mapping[o],c=o.split(".");c.shift(),c=c.join(""),__ctm.rule_table[c]||(__ctm.rule_table[c]={}),__ctm.rule_table[c][e]=e,r&&__ctm.forEach(r,function(t){if(t&&"number"==t.t){var n=t.p.slice(0);n.shift();var o=n.join("");__ctm.rule_table[o]||(__ctm.rule_table[o]={}),__ctm.rule_table[o][e]=e}})}}),_(n[0],e,n[1])},swap:e,separators:f,separators_regex:m}}();__ctm.numbers=s;var d=function(){"use strict";function t(t,e){var n=[],o={},r=!1;if(0==t.length)return __ctm.log("no poolids"),void e({});if(__ctm.forEach(t,function(t){var e=u.get(t);if(e){o[t]=e,r=!0;var c=[].concat("format",e).join("."),i=u.get(c);i&&(o[c]=i)}else n.push(t)}),n.length>0){__ctm.log("cache miss on",n),window.__ctm_invoke=function(t){var n={};__ctm.log("__ctm_invoke:",t);for(var o in t){var r=t[o],c=o.split("."),i=c.shift(),a=i.split("-")[0]+"."+c.join(".");__ctm.log("cache:",a,r),u.set(a,r),n[a]=r}e(n)};var i=document.getElementsByTagName("script")[0],a=document.createElement("script");a.async=!0;var _=!1;__ctm.forEach(__ctm.config.filtered_rules,function(t){_|=t[5]});var l=document.location.protocol+"//"+c+"/p.js?sid="+__ctm.config.sid+"&"+__ctm.map(n,function(t){return"pools[]="+t}).join("&");_&&__ctm.config.country&&"null"!=__ctm.config.country&&(l+="&c="+__ctm.config.country,__ctm.config.region&&"null"!=__ctm.config.region&&(l+="&r="+__ctm.config.region,__ctm.config.area&&"null"!=__ctm.config.area&&(l+="&a="+__ctm.config.area))),a.src=l,i.parentNode.insertBefore(a,i)}r&&(__ctm.log("cache hit on",o),e(o))}return{load:t}}();__ctm.pool=d,n(),setTimeout(n,300),setTimeout(n,1e3),setTimeout(n,1500),setTimeout(o,100),setTimeout(o,300),setTimeout(o,1e3);var g=function(){"use strict";function t(t){var e=null;try{e=new XMLHttpRequest}catch(n){}return e&&"withCredentials"in e?(e.open("POST",t,!0),e.withCredentials=!1,e.setRequestHeader("Content-type","application/json")):"undefined"!=typeof XDomainRequest?(e=new XDomainRequest,e.onerror=function(){},e.onprogress=function(){},e.onload=function(){},e.open("post",t)):e=null,e}function n(t){try{if("none"==t.style.display||"hidden"==t.style.visibility||parseInt(t.style.opacity)<.1)return!1;var e=t.getBoundingClientRect(),n=c();return e.top>=0&&e.left>=0&&e.bottom<=n[1]&&e.right<=n[0]}catch(o){return!1}}function r(t,e,o){function r(){__ctm_nodes_visible[t.getAttribute("data-ctm-watch-id")]||(n(t)?(__ctm_nodes_visible[t.getAttribute("data-ctm-watch-id")]=!0,o({event:e,target:t})):setTimeout(r,600))}if(t&&1==t.nodeType&&"function"==typeof t.setAttribute&&t.setAttribute("data-ctm-watch-id",d++),"visible"==e){if(__ctm_nodes_visible[t.getAttribute("data-ctm-watch-id")])return;r()}else"function"==typeof t.addEventListener?t.addEventListener(e,o,!1):"object"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(){var t=0,e=0;return"number"==typeof window.innerWidth?(t=window.innerWidth,e=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(t=document.documentElement.clientWidth,e=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(t=document.body.clientWidth,e=document.body.clientHeight),[t,e]}function i(n){function r(e,o){var r=__ctm_queue[e];for(o.nums=[],o.evt=e;r.length>0;){var e=r.pop();o.nums.push(e)}if(o.nums.length>0){if(!n)var c=t(document.location.protocol+"//"+window.__ctm.config.host+"/x.json");if(c){if(__ctm.log("track with xhr",e),c.onreadystatechange=function(){4==c.readyState&&__ctm.rules.didFirst()},window.___ctm_test_referrer_override)return;c.send(__ctm.JSON.stringify(o))}else{__ctm.log("track with pixel");var i=new Image;if(i.onload=function(){__ctm.log("pixel fired"),__ctm.rules.didFirst()},window.___ctm_test_referrer_override)return;i.src=document.location.protocol+"//"+window.__ctm.config.host+"/m.gif?d="+encodeURIComponent(a.compress(__ctm.JSON.stringify(o),!0))}}}__ctm.log("pop queue"),__ctm_tracked=!0;var c=__ctm.config.documentReferrer,i=__ctm.config.windowLocation,_=l.get("hubspotutk",!0),u=l.get("__utma",!0),f=l.get("__utmb",!0),m=l.get("__utmc",!0),s=l.get("__utmz",!0),d=(l.get("s_vi",!0),l.get("mmapi.store.p.0",!0)),g=null;if(__ctm.config.gaid)g=__ctm.config.gaid;else{var p=window[__ctm.config.gavar];try{p&&"function"==typeof p.getAll&&(__ctm.config.gaid=p.getAll()[0].get("clientId"),__ctm.config.gaid&&(__ctm.config.gaid="GA1.2."+__ctm.config.gaid),g=__ctm.config.gaid)}catch(h){}g||(g=l.get("_ga",!0))}var v=l.get("fbsr",!0),w=l.get("_mkto_trk",!0),y=l.get("_biz_uid",!0),b=l.get("ubpv",!0),k=l.get("ubvt",!0),C=__ctm.config.aid,S=__ctm.config.sid;try{b&&(b=decodeURIComponent(b).split(","))}catch(h){}try{e()}catch(h){}try{o()}catch(h){}var T={aid:C,ref:c,url:i,nums:[],sid:S,ga:{}};u&&(T.ga.utma=u),f&&(T.ga.utmb=f),m&&(T.ga.utmc=m),s&&(T.ga.utmz=s);try{k&&(T.ubvt=k),b&&b.length&&(T.ubv=b[0],T.ubp=b[1])}catch(h){}if(g&&(T.ga.ga_univ=g),__ctm.config.gacode&&(T.ga.actid=__ctm.config.gacode),_&&(T.hs=_),w&&(T.mkto=w),y&&(T.biz=y),__ctm.config.adblock&&(T.adblock=!!__ctm.config.adblock),d&&(T.mmapi1=d),v){var E=document.cookie.match(/fbsr_(\d+)=/);E&&E.length>1&&(T.fb=E[1])}try{T.t=document.title}catch(h){}try{window.KM&&"function"==typeof window.KM.i&&(T.kmi=KM.i())}catch(h){}try{if(window.piAId){var j=window.piAId-1e3,A=new RegExp("visitor_id"+j+"=(\\d+)"),E=document.cookie.match(A);2==E.length&&(T.pard=E[1])}}catch(h){}try{if(!n&&(__ctm.log("check for optimizely in",window.optimizely),window.optimizely&&window.optimizely.data&&window.optimizely.data.state&&window.optimizely.data.state.activeExperiments&&window.optimizely.data.state.activeExperiments.length&&"object"==typeof JSON&&"function"==typeof JSON.stringify)){var N=window.optimizely.data,x=N.variations,R=N.experiments;if(__ctm.log("optimizely found",N),x)for(var I in x)__ctm.log("check: ",I," in",x),x[I]&&(x[I].code="",delete x[I].code);if(__ctm.log("optimizely pruned 1"),R)for(var I in R)x[I]&&(R[I].code="",delete R[I].code);N.aid=window.optimizely.getAccountId(),N.pid=window.optimizely.getProjectId(),N.uid=l.get("optimizelyEndUserId",!0),N.map=decodeURIComponent(l.get("optimizelyBuckets",!0)),N.seg=decodeURIComponent(l.get("optimizelySegments",!0)),T.opt=JSON.stringify(N),window.optimizely.push({type:"integration",OAuthClientId:"5374922488"})}}catch(h){__ctm.log(h)}try{__ctm.log("check custom variables",window.__ctm_cvars),window.__ctm_cvars&&(T.cvars="string"==typeof __ctm_cvars?__ctm_cvars:JSON.stringify(__ctm_cvars))}catch(h){__ctm.log("custom variable error: ",h)
}__ctm.forEach(["pageview","visible","click","form","custom"],function(t){try{!function(t){r(t,T)}(t)}catch(e){__ctm.log(e)}})}function _(t,e,n){var o=(__ctm.config.aid,__ctm.config.sid,0);if(e){if(e=f(e),t){t=f(t);var r=s({current_number:t});r&&r[4]&&(o=1)}n&&(n=n.replace(/\D/g,"")),__ctm_tracked_numbers[e]||(__ctm_tracked_numbers[e]=!0,__ctm_queue.pageview.push([e,t,o]),__ctm_queue.timer||(__ctm_queue.timer=setTimeout(function(){__ctm_queue.timer=null,i()},800)))}}function u(t,e,n){var o=(__ctm.config.aid,__ctm.config.sid,0);if(e){if(e=f(e.replace(/\D/g,"")),t){t=f(t.replace(/\D/g,""));var r=s({current_number:t});r&&r[4]&&(o=1)}__ctm_queue[n].push([e,t,o]),__ctm_queue.timer||(__ctm_queue.timer=setTimeout(function(){__ctm_queue.timer=null,i()},800))}}function f(t){return t.replace(/\D/g,"")}function m(t,e,n){"1"!=t.getAttribute("data-ctm-tracked")&&(r(t,"click",function(){__ctm_nodes_clicked[t]||(__ctm_nodes_clicked[t]=!0,u(e,n,"click"))}),r(t,"visible",function(){u(e,n,"visible")}))}function s(t){if(!t.rule&&__ctm.rule_table){var e=__ctm.rule_table[t.current_number];if(e){var n=null;for(var o in e){n=o;break}return t.rule=__ctm.config.filtered_rules[n]}}}var d=0;return r(window,"unload",function(){__ctm_nodes_visible=null,__ctm_nodes_clicked=null;for(var t in __ctm_tracked_numbers)__ctm_queue.pageview.push([t,null,0]);i(!0)}),window.ptTrackVistor=_,window.ptTrackVisitor=_,window.ptTrackEvent=u,{popQueue:i,trackVisitor:ptTrackVisitor,trackEvent:u,attachEvents:m,lookupRuleForEvent:s}}();__ctm.tracker=g;var p=function(){"use strict";function t(t,e,n){var o=window.location.protocol+"//"+__ctm.config.host+"/cvrt.gif";o+="?aid="+__ctm.config.aid+"&sid="+__ctm.config.sid+"&num="+encodeURIComponent(t),e&&(o+="&em="+encodeURIComponent(e)),void 0==typeof n||isNaN(parseInt(n))||(o+="&val="+encodeURIComponent(n));var r=new Image;r.src=o,r.onload=function(){}}function e(t){var e=t.shift();if(e.match(/\./))var n=e.split("."),e=(n[0],n[1]),o=c[e];else var o=c[e];o.apply(o,t)}function n(t,e,n,o,c){function i(i,_){i.addEventListener(_,function(l){a&&(l.preventDefault(),l.stopPropagation(),r(t,e,n,o,c,function(){a=!1,i&&"function"==typeof i[_]&&i[_](),setTimeout(function(){a=!0},300)}))})}var a=!0;i(n,"submit");for(var _=n.getElementsByTagName("input"),l=n.getElementsByTagName("button"),u=0,f=_.length;f>u;++u)"submit"==_[u].type&&i(_[u],"click");for(var u=0,f=l.length;f>u;++u)i(l[u],"click")}function o(t,e,n,o){window.ptTrackEvent("",n,"form"),__ctm.tracker.popQueue();var r="https://"+t+"/form_reactors/"+e+"/start",c=new XMLHttpRequest,i=o.country_code;i||(i="1"),c.open("POST",r,!0);var a="_method=put&visitor_sid="+__ctm.config.sid+"&"+encodeURIComponent("form_reactor[caller_name]")+"="+encodeURIComponent(o.name)+"&"+encodeURIComponent("form_reactor[country_code]")+"="+encodeURIComponent(i.replace(/\D/g,""))+"&"+encodeURIComponent("form_reactor[phone_number]")+"="+encodeURIComponent(o.phone.replace(/\D/g,""))+"&"+encodeURIComponent("form_reactor[email]")+"="+encodeURIComponent(o.email);if(o.custom)for(var _ in o.custom)try{var l=o.custom[_];a+="&"+encodeURIComponent("field["+_+"]")+"="+encodeURIComponent(l)}catch(u){console.error(u)}c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c.onreadystatechange=function(){4==c.readyState&&"function"==typeof complete&&complete()},c.send(a)}function r(t,e,n,o,r,c){window.ptTrackEvent("",o,"form"),__ctm.tracker.popQueue();var i=r.country_code||"1",a=document.getElementById(r.phone).value;if("object"==typeof r.name&&r.name.length>0)var _=__ctm.map(r.name,function(t){return document.getElementById(t).value}).join(" ");else var _=document.getElementById(r.name).value;var l=document.getElementById(r.email).value,u="https://"+t+"/form_reactors/"+e+"/start",f=new XMLHttpRequest;f.open("POST",u,!0);var m="_method=put&visitor_sid="+__ctm.config.sid+"&"+encodeURIComponent("form_reactor[caller_name]")+"="+encodeURIComponent(_)+"&"+encodeURIComponent("form_reactor[country_code]")+"="+encodeURIComponent(i.replace(/\D/g,""))+"&"+encodeURIComponent("form_reactor[phone_number]")+"="+encodeURIComponent(a.replace(/\D/g,""))+"&"+encodeURIComponent("form_reactor[email]")+"="+encodeURIComponent(l);__ctm.forEach(r.fields||[],function(t){try{var e=document.getElementById(t).value;m+="&"+encodeURIComponent("field["+t+"]")+"="+encodeURIComponent(e)}catch(n){console.error(n)}}),f.setRequestHeader("Content-type","application/x-www-form-urlencoded"),f.onreadystatechange=function(){4==f.readyState&&"function"==typeof c&&c()},f.send(m)}var c={conversion:t,capture:n};if(window.__ctmi&&window.__ctmi.length)for(;window.__ctmi.length>0;)e(window.__ctmi.shift());return window.__ctmi={push:e},{conversion:t,capture:n,post:r,track:o}}();__ctm.form=p;var h=function(){"use strict";function t(t){return window.CTMSourceEvent&&"function"==typeof window.CTMSourceEvent?(g.lookupRuleForEvent(t),window.CTMSourceEvent(t)):void 0}function e(t,e){t||(t=document.body);try{var n=p(t),o=n[0],r=n[1];if(e||(h=o,v=r),!r.length)try{__ctm.log("lookup pools none found",__ctm.config.filtered_rules,"<<<",o,n);var c=__ctm.config.filtered_rules[0][3];r=[];for(var i in c)r.push(c[i]+"."+i)}catch(a){__ctm.log(a)}u(o,r,!0,t,e),__ctm.sweeps++}catch(a){__ctm.log("runNow, error:",a),setTimeout(function(){var n=p();__ctm.log("scan:",n),o=n[0],r=n[1],e||(h=o,v=r),u(o,r,!0,t,e),__ctm.sweeps++},500)}return v}function n(){var t=window[__ctm.config.gavar];if(t&&"function"==typeof t.getAll)try{__ctm.config.gadim&&__ctm.config.gadim.length>0&&t("set",__ctm.config.gadim,__ctm.config.tracking_source)}catch(e){__ctm.log(e)}else setTimeout(n,80)}function o(t,o,r){function c(){if(!i){if(!window.__ctm)return void setTimeout(c,1e3);i=!0,__ctm.main.runNow()}}__ctm.config.windowLocation=t,__ctm.config.documentReferrer=o;var i=(l.sid(),!1);setTimeout(c,800),_.init(function(){var c=["__ctm_"+__ctm.config.aid+"_"+__ctm.config.cookie_dur,"__ctm2_"+__ctm.config.aid+"_"+__ctm.config.cookie_dur,"__ctmf_"+__ctm.config.aid+"_"+__ctm.config.cookie_dur];_.mget(c,function(a){__ctm.log("XStore.mget.xstored:",a);for(var _=0,l=a.length;l>_;++_)f.store(c[_],a[_]);if(!__ctm.rules.checkFirst()){var u=__ctm.rules.firstLoc(),s=__ctm.rules.firstRef();"null"==u&&(u=null),"null"==s&&(s=null),u&&(__ctm.config.windowLocation=u),s&&(__ctm.config.documentReferrer=s)}__ctm.config.filtered_rules=f.filter(t,o,r),__ctm.config.filtered_rules[0]&&(__ctm.config.tracking_source=__ctm.config.filtered_rules[0][2],n()),__ctm.log("XStore.mget.rules:",__ctm.config.filtered_rules);var d,g=!1;if(__ctm.config.pools)for(var p in __ctm.config.pools)if(p&&"object"==typeof __ctm.config.pools[p]&&__ctm.config.pools[p].length){g=!0;break}if(g){var h=0;for(d in __ctm.config.pools)h++;var v=__ctm.filter(__ctm.config.filtered_rules,function(t){return t[4]});if(h&&!v.length){var w=__ctm.config.filtered_rules.length&&__ctm.config.filtered_rules[0][5],y=__ctm.config.filtered_rules.length&&__ctm.config.filtered_rules[0][6],b=["","","auto",{},!1,w,y];for(d in __ctm.config.pools){var k=d.split(".").shift(),C=d.replace(k+".","");b[3][C]=k}__ctm.config.filtered_rules.unshift(b)}}if(0===__ctm.config.filtered_rules.length)return void __ctm.log("no rules");if("function"==typeof window.CTMRulesReady)try{window.CTMRulesReady(__ctm.config.filtered_rules)}catch(S){__ctm.log(S)}var T=!1,E=!1,j=function(){T?(__ctm.log("timeout run"),setTimeout(e,100)):(E=!0,e()),i=!0};if(m.ready(j),window.jQuery&&window.jQuery(j),window.navigator.userAgent&&!window.navigator.userAgent.match(/MSIE/)&&document.body&&!E){T=!0;var A=e();0===A.length&&(__ctm.log("wait early start found nothing"),m.ready(e),i=!0)}})})}function r(t){window.Cufon&&!k&&(k=!0,setTimeout(function(){Cufon.refresh()},100));var e={};for(var n in t)e[t[n].join(".")]=n.replace(/\..*$/g,"");b=[[null,null,null,e]],setTimeout(c,y)}function c(){h=[],i(),setTimeout(c,y),y*=2}function i(){var t=s.mark(b);__ctm.forEach(t,function(t){for(var e=0,n=h.length;n>e;++e)if(h[e][0]==t[0])return;if(h.push(t),"1"!=t[0].getAttribute("data-ctm-tracked")){g.attachEvents(t[0],null,t[1]);var o=t[1].split(".");o.shift(),g.trackVisitor(null,o.join(""),null),t[0].setAttribute("data-ctm-tracked","1")}}),__ctm.sweeps++}function a(e,n,o,r){var c=e[0];if(!r&&"1"==c.getAttribute("data-ctm-tracked"))return void __ctm.log("skip");var i=e[2];if(n[i]){var a=__ctm.map(n[i],function(t){return t}),_=__ctm.map(e[1].split("."),function(t){return t}),l=o[a.join(".")],u=!1,f=!1;"A"==c.tagName&&(u=c.getAttribute("href")),"IMG"==c.tagName&&(f=c.getAttribute("alt"));var m=_.join(""),d=a.join("");__ctm.log("newNumber:",a,"newNumberStr:",d),__ctm.log("oldNumber:",_,"oldNumberStr:",m),__ctm.log("swap:"+m+" with "+d,l);var p=t({state:"node:before",current_number:m,new_number:d,node:c,current_number_split:_,new_number_split:a});if(__ctm.use_ret&&p)return;if(__ctm.no_swap)return;if(m==d)return _.shift(),a.shift(),m=_.join(""),d=a.join(""),g.trackVisitor(m,d,null),g.attachEvents(c,m,d),void c.setAttribute("data-ctm-tracked","1");var h;u&&(h=l?l:"+"+a.join(""));try{c.innerHTML=s.swap(c.innerHTML,_,a,{format:l})}catch(v){__ctm.log(v.message)}u&&(u=s.swap(u,_,a,{format:h,href:!0}),u.match(/clkn\/tel/)&&(u=u.replace(/\+/,""))),f&&(f=s.swap(f,_,a,{format:l,alt:!0}));var w=a.shift();try{c.innerHTML=s.swap(c.innerHTML,_,a,{cc_hint:w,format:l})}catch(v){__ctm.log(v.message)}u&&(u=s.swap(u,_,a,{cc_hint:w,format:h}),u.match(/clkn\/tel/)&&(u=u.replace(/\+/,""))),f&&(f=s.swap(f,_,a,{cc_hint:w,format:l})),_.shift();try{c.innerHTML=s.swap(c.innerHTML,_,a,{cc_hint:w,format:l})}catch(v){__ctm.log(v.message)}u&&(u=s.swap(u,_,a,{cc_hint:w,format:h})),f&&(f=s.swap(f,_,a,{cc_hint:w,format:l})),m=_.join(""),d=a.join(""),g.trackVisitor(m,d,null),g.attachEvents(c,m,d),c.setAttribute("data-ctm-tracked","1");var y=null;if(y=c.getAttribute("data-ctm-exact"))switch(w){case"1":c.innerHTML.match(/-/)?(c.innerHTML=c.innerHTML.replace(y,a.join("-")),u&&(u=u.replace(y,a.join("-"))),f&&(f=f.replace(y,a.join("-")))):(c.innerHTML=c.innerHTML.replace(y,a.join(".")),u&&(u=u.replace(y,a.join("."))),f&&(f=f.replace(y,a.join("."))));break;case"64":case"61":case"32":case"31":case"27":l||(c.innerHTML=c.innerHTML.replace(y,"0"+a.join(" ")),u&&(u=u.replace(y,"0"+a.join(" "))),f&&(f=f.replace(y,"0"+a.join(" "))));break;case"972":case"92":c.innerHTML=c.innerHTML.replace(y,"0"+a.join("-")),u&&(u=u.replace(y,"0"+a.join("-"))),f&&(f=f.replace(y,"0"+a.join("-")));break;case"46":var b=a.shift(),k=a.shift(),C="0"+b+"-"+k+a.join(" ");c.innerHTML=c.innerHTML.replace(y,C),u&&(u=u.replace(y,C)),f&&(f=f.replace(y,C));break;case"55":c.innerHTML=c.innerHTML.replace(y,a.join("-")),u&&(u=u.replace(y,a.join("-"))),f&&(f=f.replace(y,a.join("-")));break;default:c.innerHTML=l?c.innerHTML.replace(y,l):c.innerHTML.replace(y,a.join(" ")),u&&(u=u.replace(y,a.join(" "))),f&&(f=f.replace(y,a.join(" ")))}u&&c.setAttribute("href",u),f&&c.setAttribute("alt",f);try{if(window.Cufon&&"cufontext"==c.nodeName.toLowerCase()){__ctm.log("cufon detected");var S=c.parentNode.parentNode;if(S){for(var T=S.getElementsByTagName("cufontext"),E=[],j=0,A=T.length;A>j;++j)E.push(T[j].innerHTML);var N=E.join(" "),x=S.style.visibility;S.style.visibility="hidden",S.innerHTML=N,S.style.visibility=x,window.Cufon.replace(S)}}}catch(v){console.log(v)}t({state:"node:after",current_number:m,new_number:d,node:c,current_number_split:_,new_number_split:a})}else __ctm.log("no numbers for marked",i,e,n)}function u(n,o,c,i,_){__ctm.log("applyTracking:",o),d.load(o,function(i){__ctm.log("applyTracking for poolids:",o," received:",i);var l={},u={},f=/^format\.(.*)$/;for(var m in i){var s=m.match(f);s?l[s[1]]=i[m]:u[m]=i[m]}var d=[];for(var g in u){__ctm.log("pool number:",g,u[g]);var p=u[g],h=g.split("."),v=h.shift(),y=h.shift(),b=h,k=h.join("");h=__ctm.map(p,function(t){return t}),h.shift();var C=h,S=h.join(""),T=[].concat(y,C).join(".");d.push([k,S]),t({state:"before",current_number:k,new_number:S,current_number_split:b,pid:v,cc:y,format:l[T],new_number_split:C})}__ctm.log("all the numbers:",u),__ctm.forEach(n,function(t){if(a(t,u,l,c),"body"!=t[0].nodeName&&t[0].innerHTML.length>27){var n=parseInt(t[0].getAttribute("data-ctm-remark"));if(isNaN(n)&&(n=0),n>=3)return;t[0].setAttribute("data-ctm-remark",++n),setTimeout(function(){e(t[0],!0)},0)}}),_||(clearTimeout(w),r(u)),setTimeout(function(){__ctm.forEach(d,function(e){t({state:"after",current_number:e[0],new_number:e[1]})})},0)})}function p(t){t||(t=document.body);var e=s.mark(__ctm.config.filtered_rules,t);__ctm.log("rules:",__ctm.config.filtered_rules,"marked:",e);var n=[],o=__ctm.config.filtered_rules.length,r={},c=__ctm.config.inverted_mapping;return __ctm.log("scan main",o,c,e,__ctm.config.filtered_rules),__ctm.forEach(e,function(t){for(var e=t[1],i=0;o>i;++i){var a=__ctm.config.filtered_rules[i],_=a[3][e]+"."+e;if(__ctm.log("poolid:",_,a[3][e],e),!a[3][e]){__ctm.log("number not found",e,3,i),_=null;var l=c[e]||[];__ctm.log("ivnumbers",e,c),__ctm.forEach(l,function(e){var o,c=a[3][e];c&&(o=c+"."+e),o?(t.push(o),r[o]||(n.push(o),r[o]=!0)):__ctm.log("inverse mapping: no pool available",e," checking in: ",a)})}_?(t.push(_),r[_]||(n.push(_),r[_]=!0)):__ctm.log("no pool available",e)}}),__ctm.log("asked:",r,n),[e,n]}var h=[],v=[],w=null,y=500,b=[];__ctm.sweeps=0,__ctm&&"function"!=typeof __ctm.log&&(__ctm.log=function(t){window.console&&"function"==typeof window.console.log&&console.log(t)});var k=!1;return{runNow:e,init:o,scan:p,applyTracking:u}}();if(__ctm.main=h,__ctm.config.delayed="true"==__ctm.config.delayed?!0:!1,!__ctm.config.delayed){var v=document.referrer.toString();window.___ctm_test_referrer_override&&("string"==typeof window.___ctm_test_referrer_override&&(v=window.___ctm_test_referrer_override),window.___ctm_test_referrer_override=!0),h.init(window.location.toString(),v,document.cookie.toString())}if(window.__ctm_loaded)for(;window.__ctm_loaded.length;){var w=window.__ctm_loaded.pop();"function"==typeof w&&w()}window.__ctm_loaded=window.__ctm_loaded||[],window.__ctm_loaded.push=function(t){"function"==typeof t&&t()},window.__ctm_cvars=window.__ctm_cvars||[],window.__ctm_cvars._real_push=window.__ctm_cvars.push,window.__ctm_cvars.push=function(t){this._real_push(t);for(var e in __ctm_tracked_numbers)__ctm.tracker.trackEvent("",e,"custom");__ctm.tracker.popQueue()}}();}