var j=true,n=null;//2011-10-13
(function(){function r(a){this.k=a;this.g=new k;this.i=new o;this.l=3;this.p=n;this.j=s;this.f=n}function k(){}function b(){}function o(){this.b={};this.length=0}function u(a){m.z(a)}function v(a){m.A(a)}function w(){m.w()}var x="https:"==document.location.protocol?"https://metrics.adinsight.com/track/":"http://metrics.adinsight.com/track/",p=["adinsightnumber"],s=18E5,t=0,q=["1.7.0","1.6.0","1.5.0","1.4.2","1.1"];r.prototype={I:function(){if(this.k&&!isNaN(this.k)&&b.B()&&b.a("adiErr")==n){this.i=
b.D();var a=b.t(),e=b.s(),c=b.a("adiV"),d=b.a("adiVi");this.g.J(this.k,this.i,a,e,c,d)}else b.log("Unable to perform tracking - possible causes: No website id, website id NaN, cookies disabled or Error cookie set")},o:function(){this.l--;var a=b.a("__utma"),e=b.a("__utmz"),c=b.a("adiVi");!b.d(a)&&!b.d(e)&&!b.d(c)?this.g.G(b.c(a),b.c(e),c):this.l>0&&this.o()},M:function(a,e,c){var d=this.j,f=this.f;setInterval(function(){var a=b.a("adiVi"),h=b.a("adiLP"),l=(new Date).getTime();!b.d(a)&&h<l-3E4&&a!==
"null"&&(h=new Date,h.setTime(l+parseInt(d,10)),b.e("adiLP",l,h,f,"/"),c.H(a,e))},3E4+Math.floor(Math.random()*1E3))},z:function(a){if(a.adInsightVisitorId&&a.adInsightVisitorId>-1){var e=[],b=a.numberPlaceHolderTelephoneNumbers;if(b&&b.length>0)for(var d=0;d<b.length;d++){var f=b[d];this.L(f);e.push(f.numberId)}b=a.adInsightVisitorId;this.p=d=a.adInsightVisitId;this.j=f=a.cookieLength;this.f=a.cookieDomain;this.O(b,d,f);this.F();this.o();this.M(f,e,this.g)}},A:function(){b.log("Error response from server");
var a=new Date;a.setTime(a.getTime()+parseInt(s,10));var e=b.r();b.e("adiErr","trackingErr",a,e,"/")},w:function(){var a=new Date;a.setTime(a.getTime()+parseInt(this.j,10));b.e("adiVi",this.p,a,this.f,"/")},O:function(a,e,c){var d=new Date,f=this.f,g=new Date;g.setTime(d.getTime()+31536E6);var h=new Date;h.setTime(d.getTime()+parseInt(c,10));b.e("adiV",a,g,f,"/");b.e("adiVi",e,h,f,"/");b.e("adiLP",d.getTime(),h,f,"/")},L:function(a){var e=a.telephoneNumber;if((a=this.i.get(a.numberPlaceHolderId))&&
a.length>0)for(elementIter=0;elementIter<a.length;elementIter++)b.N(a[elementIter],e)},F:function(){typeof adInsightPostReplacement==="function"&&adInsightPostReplacement()}};k.prototype={J:function(a,e,c,d,f,g){var a="websiteId="+a,h=b.u(),l=b.v();c&&(a+="&windowLocation="+c);d&&(a+="&referrer="+d);f&&(a+="&adInsightVisitorId="+f);g&&(a+="&adInsightVisitId="+g);screen.height&&screen.width&&(a+="&displayResolution="+b.c(screen.width+"x"+screen.height));screen.colorDepth&&(a+="&displayColour="+b.c(screen.colorDepth));
h&&(a+="&flashVersion="+b.c(h));l&&(a+="&javaVersion="+b.c(l));if(!e.m())for(c=0;c<e.n().length;c++)a+="&numberPlaceHolderIds="+e.n()[c];k.h("numberReplacement.json",u,v,a)},G:function(a,e,b){a="adUtma="+a;a+="&adUtmz="+e;a+="&adInsightVisitId="+b;k.h("acs",n,n,a)},H:function(a,b){var c="adInsightVisitId="+a;if(b&&b.length>0)for(var d=0;d<b.length;d++)c+="&numberIds="+b[d];k.h("numberReplacementPing",w,n,c)}};k.h=function(a,e,c,d){var f=x;f+=a;e&&(a="json"+ ++t,window[a]=function(a){e(a)},f+=f.indexOf("?")>
-1?"&callback="+a:"?callback="+a);c&&(a="json"+ ++t,window[a]=function(a){c(a)},f+=f.indexOf("?")>-1?"&callbackFailure="+a:"?callbackFailure="+a);b.d(d)||(f+=f.indexOf("?")>-1?"&"+d:"?"+d);var g=document.createElement("script");g.src=f+"&noCache="+Math.random();g.async=j;var h=false;g.onload=g.onreadystatechange=function(){if(!h&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"))h=j,g.onload=g.onreadystatechange=n,g&&g.parentNode&&g.parentNode.removeChild(g)};try{document.body.appendChild(g)}catch(l){}};
b.r=function(){return window.location.hostname.replace(/^www./i,"")};b.B=function(){b.e("__adiCookieCheck","isEnabled",n,n,n);var a="isEnabled"===b.a("__adiCookieCheck");b.K();return a};b.e=function(a,b,c,d,f){a=a+"="+escape(b);c&&(a+=";expires="+(new Date(c)).toGMTString());d&&(a+=";domain="+d);f&&(a+=";path="+f);document.cookie=a};b.a=function(a){var e=document.cookie.toString();if(!b.d(e))for(var c,d,f=e.split(";"),e=0;e<f.length;e++)if(c=f[e].substr(0,f[e].indexOf("=")),d=f[e].substr(f[e].indexOf("=")+
1),c=c.replace(/^\s+|\s+$/g,""),c==a)return unescape(d);return n};b.K=function(){document.cookie="__adiCookieCheck=;expires=Fri, 02-Jan-1970 00:00:00 GMT"};b.D=function(){var a="html,head,title,meta,img,script,style".split(","),e=new o,c=document.getElementsByTagName("*"),d=c.length,f;do if(f=c[d-1],!b.q(a,f.nodeName.toLowerCase())&&!b.d(f.className))for(var g=f.className.split(" "),h=0;h<g.length;h++)for(var l=g[h],k=0;k<p.length;k++)if(l.toLowerCase().P(p[k])){var m=l.toLowerCase().substr(p[k].length);
isNaN(m)||e.put(m,f)}while(--d);return e};b.c=function(a){return encodeURIComponent(a).replace(/%20/g,"+")};b.t=function(){return b.c(window.location.href)};b.s=function(){return b.c(document.referrer)};b.N=function(a,e){a.innerHTML="t";a.firstChild.nodeValue=e;a.style.visibility="visible";if(b.C()&&a.tagName!="A"){var c=document.createElement("a");c.setAttribute("href","tel:"+e);c.appendChild(a.firstChild);a.appendChild(c)}};b.log=function(a){window.console&&window.console.R&&console.log(a)};b.q=
function(a,b){for(var c=a.length;c--;)if(this[c]===b)return j;return false};b.d=function(a){var b=j;a&&a!==""&&(b=false);return b};b.C=function(){var a=false,b="iphone,android,blackberry,iemobile,windows ce,series60,symbian,palm".split(","),c=navigator.userAgent.toLowerCase();for(i=0;i<b.length;i++)if(c.search(b[i])>-1){a=j;break}return a};b.u=function(){try{try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{a.Q="always"}catch(b){return"6.0.0"}}catch(c){}return(new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version").replace(/\D+/g,
".").match(/^.?(.+).?$/)[1]}catch(d){try{return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,".").match(/^.?(.+).?$/)[1]}catch(f){}}return n};b.v=function(){try{for(var a=0;a<q.length;a++)if(new ActiveXObject("JavaWebStart.isInstalled."+q[a]+".0")!=n)return q[a]}catch(b){try{for(a=0;a<navigator.mimeTypes.length;a++){var c=navigator.mimeTypes[a].type.match(/^application\/x-java-applet;jpi-version=(.*)$/);if(c!=n)return c[1]}}catch(d){}}return n};
o.prototype={put:function(a,b){var c;if(a&&b)if(c=this.b[a],this.b[a]===void 0){var d=[];d.push(b);this.b[a]=[a,d];this.length++}else d=this.get(a),d.push(b),this.b[a]=[a,d];return c===void 0?void 0:c[c.length-1]},get:function(a){var b;a&&(b=this.b[a]);if(b!==void 0)return b[1]},n:function(){if(!this.m()){var a=[],b;for(b in this.b)this.b.hasOwnProperty(b)&&a.push(b);return a}},m:function(){return this.b&&this.length>0?false:j}};String.prototype.P=function(a){return this.indexOf(a)===0};var m=new r(adiInit);
m.I()})();

