/* Adobe Visitor API-lite for JavaScript version: 1.5.2 Copyright 1996-2013 Adobe, Inc. All Rights Reserved More info available at http://www.omniture.com */ function Visitor(k,u){if(!k){throw"Visitor requires Adobe Marketing Cloud Org ID"}var F=this;F.version="1.5.2";var j=window,h=j.Visitor;j.s_c_in||(j.s_c_il=[],j.s_c_in=0);F._c="Visitor";F._il=j.s_c_il;F._in=j.s_c_in;F._il[F._in]=F;j.s_c_in++;var l=j.document,G=h.Ka;G||(G=null);var C=h.La;C||(C=void 0);var a=h.ja;a||(a=!0);var i=h.Ja;i||(i=!1);F.S=function(d){var b=0,e,c;if(d){for(e=0;ed;d++){H=Math.floor(Math.random()*I),e+=f.substring(H,H+1),H=Math.floor(Math.random()*I),g+=f.substring(H,H+1),I=16}return e+"-"+g}for(d=0;19>d;d++){H=Math.floor(Math.random()*c),e+=f.substring(H,H+1),0==d&&9==H?c=3:(1==d||2==d)&&10!=c&&2>H?c=10:2H?b=10:2=b[e].length&&(2==b[e-1].length||0>",ac,ad,ae,af,ag,ai,al,am,an,ao,aq,ar,as,at,au,aw,ax,az,ba,bb,be,bf,bg,bh,bi,bj,bm,bo,br,bs,bt,bv,bw,by,bz,ca,cc,cd,cf,cg,ch,ci,cl,cm,cn,co,cr,cu,cv,cw,cx,cz,de,dj,dk,dm,do,dz,ec,ee,eg,es,et,eu,fi,fm,fo,fr,ga,gb,gd,ge,gf,gg,gh,gi,gl,gm,gn,gp,gq,gr,gs,gt,gw,gy,hk,hm,hn,hr,ht,hu,id,ie,im,in,io,iq,ir,is,it,je,jo,jp,kg,ki,km,kn,kp,kr,ky,kz,la,lb,lc,li,lk,lr,ls,lt,lu,lv,ly,ma,mc,md,me,mg,mh,mk,ml,mn,mo,mp,mq,mr,ms,mt,mu,mv,mw,mx,my,na,nc,ne,nf,ng,nl,no,nr,nu,nz,om,pa,pe,pf,ph,pk,pl,pm,pn,pr,ps,pt,pw,py,qa,re,ro,rs,ru,rw,sa,sb,sc,sd,se,sg,sh,si,sj,sk,sl,sm,sn,so,sr,st,su,sv,sx,sy,sz,tc,td,tf,tg,th,tj,tk,tl,tm,tn,to,tp,tr,tt,tv,tw,tz,ua,ug,uk,us,uy,uz,va,vc,ve,vg,vi,vn,vu,wf,ws,yt,".indexOf(","+b[e]+","))&&c--;if(0=c;){d=b[e]+(d?".":"")+d,e--}}}}return d};F.cookieRead=function(d){var d=encodeURIComponent(d),b=(";"+l.cookie).split(" ").join(";"),e=b.indexOf(";"+d+"="),c=0>e?e:b.indexOf(";",e+1);return 0>e?"":decodeURIComponent(b.substring(e+2+d.length,0>c?b.length:c))};F.cookieWrite=function(d,c,b){var e=F.cookieLifetime,f,c=""+c,e=e?(""+e).toUpperCase():"";b&&"SESSION"!=e&&"NONE"!=e?(f=""!=c?parseInt(e?e:0,10):-60)?(b=new Date,b.setTime(b.getTime()+1000*f)):1==b&&(b=new Date,f=b.getYear(),b.setYear(f+2+(1900>f?1900:0))):b=0;return d&&"NONE"!=e?(l.cookie=encodeURIComponent(d)+"="+encodeURIComponent(c)+"; path=/;"+(b?" expires="+b.toGMTString()+";":"")+(F.cookieDomain?" domain="+F.cookieDomain+";":""),F.cookieRead(d)==c):0};F.g=G;F.O=function(c,b){try{"function"==typeof c?c.apply(j,b):c[1].apply(c[0],b)}catch(d){}};F.qa=function(b,c){c&&(F.g==G&&(F.g={}),F.g[b]==C&&(F.g[b]=[]),F.g[b].push(c))};F.o=function(d,c){if(F.g!=G){var b=F.g[d];if(b){for(;0g;){try{e=(e=l.getElementsByTagName(0g;){try{f=l.createElement(0=1000*c&&(F.d||(F.d={}),F.d[e]=a)))}}if(!F.b(m)&&(d=F.cookieRead("s_vi"))){d=d.split("|"),1c?(F.d||(F.d={}),F.d[d]=a):F.d&&(F.d[d]=i)};F.Q=function(b){if(b&&("object"==typeof b&&(b=b.d_mid?b.d_mid:b.visitorID?b.visitorID:b.id?b.id:b.uuid?b.uuid:""+b),b&&(b=b.toUpperCase(),"NOTARGET"==b&&(b=r)),!b||b!=r&&!b.match(/^[0-9a-fA-F\-]+$/))){b=""}return b};F.i=function(d,c){F.ka(d);F.h!=G&&(F.h[d]=i);if(d==E){var b=F.b(p);if(!b){b="object"==typeof c&&c.mid?c.mid:F.Q(c);if(!b){if(F.u){F.getAnalyticsVisitorID(G,i,a);return}b=F.q()}F.c(p,b)}if(!b||b==r){b=""}"object"==typeof c&&((c.d_region||c.dcs_region||c.d_blob||c.blob)&&F.i(B,c),F.u&&c.mid&&F.i(D,{id:c.id}));F.o(p,[b])}if(d==B&&"object"==typeof c){b=604800;c.id_sync_ttl!=C&&c.id_sync_ttl&&(b=parseInt(c.id_sync_ttl,10));var e=F.b(z);e||((e=c.d_region)||(e=c.dcs_region),e&&(F.l(z,b),F.c(z,e)));e||(e="");F.o(z,[e]);e=F.b(o);if(c.d_blob||c.blob){(e=c.d_blob)||(e=c.blob),F.l(o,b),F.c(o,e)}e||(e="");F.o(o,[e]);!c.error_msg&&F.s&&F.c(n,F.s);F.idSyncDisableSyncs?w.ba=a:(w.ba=i,b={},b.ibs=c.ibs,b.subdomain=c.subdomain,w.Ha(b))}if(d==D){b=F.b(m);b||((b=F.Q(c))?F.l(o,-1):b=r,F.c(m,b));if(!b||b==r){b=""}F.o(m,[b])}};F.h=G;F.r=function(d,c,b,e){var f="",g;if(F.isAllowed()&&(F.f(),f=F.b(d),!f&&(d==p?g=E:d==z||d==o?g=B:d==m&&(g=D),g))){if(c&&(F.h==G||!F.h[g])){F.h==G&&(F.h={}),F.h[g]=a,F.oa(g,c,function(){if(!F.b(d)){var H="";d==p?H=F.q():g==B&&(H={error_msg:"timeout"});F.i(g,H)}})}F.qa(d,b);c||F.i(g,{id:r});return""}if((d==p||d==m)&&f==r){f="",e=a}b&&e&&F.O(b,[f]);return f};F._setMarketingCloudFields=function(b){F.f();F.i(E,b)};F.setMarketingCloudVisitorID=function(b){F._setMarketingCloudFields(b)};F.u=i;F.getMarketingCloudVisitorID=function(d,c){if(F.isAllowed()){F.marketingCloudServer&&0>F.marketingCloudServer.indexOf(".demdex.net")&&(F.u=a);var b=F.A("_setMarketingCloudFields");return F.r(p,b,d,c)}return""};F.pa=function(){F.getAudienceManagerBlob()};h.AuthState={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2};F.p={};F.P=i;F.s="";F.setCustomerIDs=function(d){if(F.isAllowed()&&d){F.f();var c,b;for(c in d){if(!Object.prototype[c]&&(b=d[c])){if("object"==typeof b){var e={};b.id&&(e.id=b.id);b.authState!=C&&(e.authState=b.authState);F.p[c]=e}else{F.p[c]={id:b}}}}var d=F.getCustomerIDs(),e=F.b(n),f="";e||(e=0);for(c in d){Object.prototype[c]||(b=d[c],f+=(f?"|":"")+c+"|"+(b.id?b.id:"")+(b.authState?b.authState:""))}F.s=F.S(f);F.s!=e&&(F.P=a,F.pa())}};F.getCustomerIDs=function(){F.f();var d={},c,b;for(c in F.p){Object.prototype[c]||(b=F.p[c],d[c]||(d[c]={}),b.id&&(d[c].id=b.id),d[c].authState=b.authState!=C?b.authState:h.AuthState.UNKNOWN)}return d};F._setAnalyticsFields=function(b){F.f();F.i(D,b)};F.setAnalyticsVisitorID=function(b){F._setAnalyticsFields(b)};F.getAnalyticsVisitorID=function(d,c,b){if(F.isAllowed()){var e="";b||(e=F.getMarketingCloudVisitorID(function(){F.getAnalyticsVisitorID(d,a)}));if(e||b){var f=b?F.marketingCloudServer:F.trackingServer,g="";F.loadSSL&&(b?F.marketingCloudServerSecure&&(f=F.marketingCloudServerSecure):F.trackingServerSecure&&(f=F.trackingServerSecure));f&&(g="http"+(F.loadSSL?"s":"")+"://"+f+"/id?d_visid_ver="+F.version+"&callback=s_c_il%5B"+F._in+"%5D._set"+(b?"MarketingCloud":"Analytics")+"Fields&mcorgid="+encodeURIComponent(F.marketingCloudOrgID)+(e?"&mid="+e:""));return F.r(b?p:m,g,d,c)}}return""};F._setAudienceManagerFields=function(b){F.f();F.i(B,b)};F.A=function(H){var g=F.audienceManagerServer,d="",I=F.b(p),b=F.b(o,a),c=F.b(m),c=c&&c!=r?"&d_cid_ic=AVID%01"+encodeURIComponent(c):"";F.loadSSL&&F.audienceManagerServerSecure&&(g=F.audienceManagerServerSecure);if(g){var d=F.getCustomerIDs(),e,f;if(d){for(e in d){Object.prototype[e]||(f=d[e],c+="&d_cid_ic="+encodeURIComponent(e)+"%01"+encodeURIComponent(f.id?f.id:"")+(f.authState?"%01"+f.authState:""))}}H||(H="_setAudienceManagerFields");d="http"+(F.loadSSL?"s":"")+"://"+g+"/id?d_visid_ver="+F.version+"&d_rtbd=json&d_ver=2"+(!I&&F.u?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(F.marketingCloudOrgID)+"&d_nsid="+(F.idSyncContainerID||0)+(I?"&d_mid="+I:"")+(b?"&d_blob="+encodeURIComponent(b):"")+c+"&d_cb=s_c_il%5B"+F._in+"%5D."+H}return d};F.getAudienceManagerLocationHint=function(d,c){if(F.isAllowed()&&F.getMarketingCloudVisitorID(function(){F.getAudienceManagerLocationHint(d,a)})){var b=F.b(m);b||(b=F.getAnalyticsVisitorID(function(){F.getAudienceManagerLocationHint(d,a)}));if(b){return b=F.A(),F.r(z,b,d,c)}}return""};F.getAudienceManagerBlob=function(d,c){if(F.isAllowed()&&F.getMarketingCloudVisitorID(function(){F.getAudienceManagerBlob(d,a)})){var b=F.b(m);b||(b=F.getAnalyticsVisitorID(function(){F.getAudienceManagerBlob(d,a)}));if(b){return b=F.A(),F.P&&F.l(o,-1),F.r(o,b,d,c)}}return""};F.m="";F.t={};F.C="";F.D={};F.getSupplementalDataID=function(d,c){!F.m&&!c&&(F.m=F.q(1));var b=F.m;F.C&&!F.D[d]?(b=F.C,F.D[d]=a):b&&(F.t[d]&&(F.C=F.m,F.D=F.t,F.m=b=!c?F.q(1):"",F.t={}),b&&(F.t[d]=a));return b};var x={k:!!j.postMessage,ha:1,N:86400000};F.Ma=x;F.X={postMessage:function(d,b,e){var c=1;b&&(x.k?e.postMessage(d,b.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):b&&(e.location=b.replace(/#.*$/,"")+"#"+ +new Date+c+++"&"+d))},J:function(d,b){var e;try{if(x.k){if(d&&(e=function(f){if("string"===typeof b&&f.origin!==b||"[object Function]"===Object.prototype.toString.call(b)&&!1===b(f.origin)){return !1}d(f)}),window.addEventListener){window[d?"addEventListener":"removeEventListener"]("message",e,!1)}else{window[d?"attachEvent":"detachEvent"]("onmessage",e)}}}catch(c){}}};var v={Y:function(){if(l.addEventListener){return function(c,b,d){c.addEventListener(b,function(e){"function"===typeof d&&d(e)},i)}}if(l.attachEvent){return function(c,b,d){c.attachEvent("on"+b,function(e){"function"===typeof d&&d(e)})}}}(),map:function(f,b){if(Array.prototype.map){return f.map(b)}if(void 0===f||f===G){throw new TypeError}var g=Object(f),c=g.length>>>0;if("function"!==typeof b){throw new TypeError}for(var d=Array(c),e=0;e=c&&(d.splice(b,1),b--)}return{wa:g,xa:H}},Ca:function(b){if(b.join("*").length>this.M){for(b.sort(function(c,d){return parseInt(c.split("-")[1],10)-parseInt(d.split("-")[1],10)});b.join("*").length>this.M;){b.shift()}}},F:function(b){var c=encodeURIComponent;this.w.push((F.Oa?c("---destpub-debug---"):c("---destpub---"))+b)},ea:function(){var b=this,c;this.w.length?(c=this.w.shift(),F.X.postMessage(c,this.url,this.Aa.contentWindow),this.Da.push(c),setTimeout(function(){b.ea()},this.ca)):this.K=i},J:function(c){var b=/^---destpub-to-parent---/;"string"===typeof c&&b.test(c)&&(b=c.replace(b,"").split("|"),"canSetThirdPartyCookies"===b[0]&&(this.$="true"===b[1]?a:i,this.da=a,this.n()),this.Ea.push(c))},Ha:function(b){this.url===G&&(this.e="string"===typeof F.W&&F.W.length?F.W:b.subdomain||"",this.url=this.za());b.ibs instanceof Array&&b.ibs.length&&(this.G=a);if((this.G||F.la)&&this.e&&"nosubdomainreturned"!==this.e&&!this.L){(h.ga||"complete"===l.readyState||"loaded"===l.readyState)&&this.Z()}"function"===typeof F.idSyncIDCallResult?F.idSyncIDCallResult(b):this.n(b);"function"===typeof F.idSyncAfterIDCallResult&&F.idSyncAfterIDCallResult(b)},ta:function(b,c){return F.Pa||!b||c-b>x.ha}};F.Na=w;0>k.indexOf("@")&&(k+="@AdobeOrg");F.marketingCloudOrgID=k;F.cookieName="AMCV_"+k;F.cookieDomain=F.ma();F.cookieDomain==j.location.hostname&&(F.cookieDomain="");F.loadSSL=0<=j.location.protocol.toLowerCase().indexOf("https");F.loadTimeout=500;F.marketingCloudServer=F.audienceManagerServer="dpm.demdex.net";if(u&&"object"==typeof u){for(var s in u){!Object.prototype[s]&&(F[s]=u[s])}F.idSyncContainerID=F.idSyncContainerID||0;F.f();s=F.b(t);var y=Math.ceil((new Date).getTime()/x.N);!F.idSyncDisableSyncs&&w.ta(s,y)&&(F.l(o,-1),F.c(t,y));F.getMarketingCloudVisitorID();F.getAudienceManagerLocationHint();F.getAudienceManagerBlob()}if(!F.idSyncDisableSyncs){w.ua();v.Y(window,"load",function(){var b=w;h.ga=a;(b.G||F.la)&&b.e&&"nosubdomainreturned"!==b.e&&b.url&&!b.L&&b.Z()});try{F.X.J(function(b){w.J(b.data)},w.H)}catch(A){}}}Visitor.getInstance=function(a,g){var i,j=window.s_c_il,h;0>a.indexOf("@")&&(a+="@AdobeOrg");if(j){for(h=0;h