function targetPageParams(){return"pagename="+KBB.DataLayer[0].omniture.pagename+"&incentiveId="+KBB.DataLayer[0].incentives.incentiveid+"&displayedIncentive="+KBB.DataLayer[0].incentives.incentivepitriggereditem+"&vehicleSegmentId="+KBB.DataLayer[0].incentives.vehiclesegmentid}var mboxCopyright="Copyright 1996-2014. Adobe Systems Incorporated. All rights reserved.",TNT=TNT||{};TNT.a=TNT.a||{};TNT.a.nestedMboxes=[];TNT.a.b={companyName:"Test&amp;Target",isProduction:!0,adminUrl:"//admin3.testandtarget.omniture.com/admin",clientCode:"kelleybbook",serverHost:"kelleybbook.tt.omtrdc.net",mboxTimeout:15e3,mboxLoadedTimeout:16,mboxFactoryDisabledTimeout:3600,bodyPollingTimeout:16,sessionExpirationTimeout:1860,experienceManagerDisabledTimeout:1800,experienceManagerTimeout:5e3,tntIdLifetime:1209600,crossDomain:"disabled",trafficDuration:10368e3,trafficLevelPercentage:100,clientSessionIdSupport:!1,clientTntIdSupport:!1,passPageParameters:!0,usePersistentCookies:!0,crossDomainEnabled:!1,crossDomainXOnly:!1,imsOrgId:"93DD66EF5257065C0A490D45@AdobeOrg",includeExperienceManagerPlugin:!0,globalMboxName:"kbb_global",globalMboxLocationDomId:"",globalMboxAutoCreate:!0,experienceManagerPluginUrl:"//cdn.tt.omtrdc.net/cdn/target.js",siteCatalystPluginName:"tt",includeSiteCatalystPlugin:!1,mboxVersion:57,mboxIsSupportedFunction:function(){return!0},parametersFunction:function(){return""},cookieDomainFunction:function(){return mboxCookiePageDomain()}};TNT.a.c={};TNT.a.c.d="mboxPage";TNT.a.c.e="mboxMCGVID";TNT.a.c.f="mboxMCGLH";TNT.a.c.g="mboxAAMB";TNT.a.c.h="mboxMCAVID";TNT.a.c.i="mboxMCSDID";TNT.a.c.j="mboxCount";TNT.a.c.k="mboxHost";TNT.a.c.l="mboxFactoryId";TNT.a.c.m="mboxPC";TNT.a.c.n="screenHeight";TNT.a.c.o="screenWidth";TNT.a.c.p="browserWidth";TNT.a.c.q="browserHeight";TNT.a.c.r="browserTimeOffset";TNT.a.c.s="colorDepth";TNT.a.c.t="mboxXDomain";TNT.a.c.u="mboxURL";TNT.a.c.v="mboxReferrer";TNT.a.c.w="mboxVersion";TNT.a.c.x="mbox";TNT.a.c.y="mboxId";TNT.a.c.z="mboxDOMLoaded";TNT.a.c.A="mboxTime";TNT.a.c.B="scPluginVersion";TNT.a.C={};TNT.a.C.D="mboxDisable";TNT.a.C.E="mboxSession";TNT.a.C.F="mboxEnv";TNT.a.C.G="mboxDebug";TNT.a.H={};TNT.a.H.D="disable";TNT.a.H.E="session";TNT.a.H.m="PC";TNT.a.H.I="level";TNT.a.H.J="check";TNT.a.H.G="debug";TNT.a.H.K="em-disabled";TNT.a.L={};TNT.a.L.M="default";TNT.a.L.N="mbox";TNT.a.L.O="mboxImported-";TNT.a.L.P=6e4;TNT.a.L.Q="mboxDefault";TNT.a.L.R="mboxMarker-";TNT.a.L.S=250;TNT.a.L.B=1;TNT.getGlobalMboxName=function(){return TNT.a.b.globalMboxName};TNT.getGlobalMboxLocation=function(){return TNT.a.b.globalMboxLocationDomId};TNT.isAutoCreateGlobalMbox=function(){return TNT.a.b.globalMboxAutoCreate};TNT.getClientMboxExtraParameters=function(){return TNT.a.b.parametersFunction()};TNT.a.T={};TNT.a.T.U=function(n){var t={}.toString;return t.call(n)==="[object Undefined]"};TNT.a.T.X=function(n){var t={}.toString;return t.call(n)==="[object Null]"};TNT.a.T.Y=function(n){var t=TNT.a.T;return t.U(n)||t.X(n)?!0:n.length===0};TNT.a.T.Z=function(n){var t={}.toString;return t.call(n)==="[object Function]"};TNT.a.T._=function(n){var t={}.toString;return t.call(n)==="[object Array]"};TNT.a.T.ab=function(n){var t={}.toString;return t.call(n)==="[object String]"};TNT.a.T.bb=function(n){var t={}.toString;return t.call(n)==="[object Object]"};TNT.getTargetPageParameters=function(){var t=TNT.a.T,i=window.targetPageParams,n;if(!t.Z(i))return[];n=null;try{n=i()}catch(r){}return t.X(n)?[]:t._(n)?n:t.ab(n)&&!t.Y(n)?TNT.a.fb(n):t.bb(n)?TNT.a.gb(n,[]):[]};TNT.a.fb=function(n){for(var i=[],r=/([^&=]+)=([^&]*)/g,u=decodeURIComponent,t=r.exec(n);t;)i.push([u(t[1]),u(t[2])].join("=")),t=r.exec(n);return i};TNT.a.gb=function(n,t){var f=TNT.a.T,r=[],i,u;for(i in n)n.hasOwnProperty(i)&&(u=n[i],f.bb(u)?(t.push(i),r=r.concat(TNT.a.gb(u,t)),t.pop()):t.length>0?r.push([t.concat(i).join("."),u].join("=")):r.push([i,u].join("=")));return r};TNT.a.ob=function(){};TNT.a.ob.prototype.getType=function(){return"ajax"};TNT.a.ob.prototype.fetch=function(n){n.setServerType(this.getType());document.write('<script src="'+n.buildUrl()+'"><\/script>')};TNT.a.ob.prototype.cancel=function(){};mboxUrlBuilder=function(n,t){this.qb=n;this.rb=t;this.sb=[];this.tb=function(n){return n};this.ub=null};mboxUrlBuilder.prototype.addNewParameter=function(n,t){return this.sb.push({name:n,value:t}),this};mboxUrlBuilder.prototype.addParameterIfAbsent=function(n,t){var i,r;if(t){for(i=0;i<this.sb.length;i++)if(r=this.sb[i],r.name===n)return this;return this.checkInvalidCharacters(n),this.addNewParameter(n,t)}};mboxUrlBuilder.prototype.addParameter=function(n,t){var i,r;for(this.checkInvalidCharacters(n),i=0;i<this.sb.length;i++)if(r=this.sb[i],r.name===n)return r.value=t,this;return this.addNewParameter(n,t)};mboxUrlBuilder.prototype.addParameters=function(n){var t,i;if(!n)return this;for(t=0;t<n.length;t++)(i=n[t].indexOf("="),i!==-1&&i!==0)&&this.addParameter(n[t].substring(0,i),n[t].substring(i+1,n[t].length));return this};mboxUrlBuilder.prototype.setServerType=function(n){this.Ab=n};mboxUrlBuilder.prototype.setBasePath=function(n){this.ub=n};mboxUrlBuilder.prototype.setUrlProcessAction=function(n){this.tb=n};mboxUrlBuilder.prototype.buildUrl=function(){for(var u=this.ub?this.ub:"/m2/"+this.rb+"/mbox/"+this.Ab,f=document.location.protocol=="file:"?"http:":document.location.protocol,t=f+"//"+this.qb+u,r=t.indexOf("?")!=-1?"&":"?",i,n=0;n<this.sb.length;n++)i=this.sb[n],t+=r+encodeURIComponent(i.name)+"="+encodeURIComponent(i.value),r="&";return this.Fb(this.tb(t))};mboxUrlBuilder.prototype.getParameters=function(){return this.sb};mboxUrlBuilder.prototype.setParameters=function(n){this.sb=n};mboxUrlBuilder.prototype.clone=function(){var n=new mboxUrlBuilder(this.qb,this.rb),t;for(n.setServerType(this.Ab),n.setBasePath(this.ub),n.setUrlProcessAction(this.tb),t=0;t<this.sb.length;t++)n.addParameter(this.sb[t].name,this.sb[t].value);return n};mboxUrlBuilder.prototype.Fb=function(n){return n.replace(/\"/g,"&quot;").replace(/>/g,"&gt;")};mboxUrlBuilder.prototype.checkInvalidCharacters=function(n){var t=new RegExp("('|\")");if(t.exec(n))throw"Parameter '"+n+"' contains invalid characters";};mboxStandardFetcher=function(){};mboxStandardFetcher.prototype.getType=function(){return"standard"};mboxStandardFetcher.prototype.fetch=function(n){n.setServerType(this.getType());document.write('<script src="'+n.buildUrl()+'"><\/script>')};mboxStandardFetcher.prototype.cancel=function(){};mboxAjaxFetcher=function(){};mboxAjaxFetcher.prototype.getType=function(){return"ajax"};mboxAjaxFetcher.prototype.fetch=function(n){n.setServerType(this.getType());var t=n.buildUrl();this.Jb=document.createElement("script");this.Jb.src=t;document.body.appendChild(this.Jb)};mboxAjaxFetcher.prototype.cancel=function(){};mboxMap=function(){this.Kb={};this.mb=[]};mboxMap.prototype.put=function(n,t){this.Kb[n]||(this.mb[this.mb.length]=n);this.Kb[n]=t};mboxMap.prototype.get=function(n){return this.Kb[n]};mboxMap.prototype.remove=function(n){var i,t;for(this.Kb[n]=undefined,i=[],t=0;t<this.mb.length;t++)this.mb[t]!==n&&i.push(this.mb[t]);this.mb=i};mboxMap.prototype.each=function(n){for(var i,r,u,t=0;t<this.mb.length;t++)if(i=this.mb[t],r=this.Kb[i],r&&(u=n(i,r),u===!1))break};mboxMap.prototype.isEmpty=function(){return this.mb.length===0};mboxFactory=function(n,t,i){var r=TNT.a.b,u=TNT.a.H,o=TNT.a.C,s=TNT.a.L,c=r.mboxVersion,e,h,f;this.Pb=!1;this.Nb=i;this.Qb=new mboxList;mboxFactories.put(i,this);this.Rb=r.mboxIsSupportedFunction()&&typeof(window.attachEvent||document.addEventListener||window.addEventListener)!="undefined";this.Sb=this.Rb&&mboxGetPageParameter(o.D,!0)===null;e=i==s.M;h=s.N+(e?"":"-"+i);this.Vb=new mboxCookieManager(h,r.cookieDomainFunction());r.crossDomainXOnly&&(this.Sb=this.Sb&&this.Vb.isEnabled());this.Sb=this.Sb&&TNT.a.T.X(this.Vb.getCookie(u.D))&&TNT.a.T.X(this.Vb.getCookie(u.K));this.isAdmin()&&this.enable();this.Wb();this.Xb=mboxGenerateId();this.Yb=mboxScreenHeight();this.Zb=mboxScreenWidth();this._b=mboxBrowserWidth();this.ac=mboxBrowserHeight();this.bc=mboxScreenColorDepth();this.cc=mboxBrowserTimeOffset();this.dc=new mboxSession(this.Xb,o.E,u.E,r.sessionExpirationTimeout,this.Vb);this.ec=new mboxPC(u.m,r.tntIdLifetime,this.Vb);this.pb=new mboxUrlBuilder(n,t);this.fc(this.pb,e,c);this.gc=(new Date).getTime();this.hc=this.gc;f=this;this.addOnLoad(function(){f.hc=(new Date).getTime()});this.Rb&&(this.addOnLoad(function(){f.Pb=!0;f.getMboxes().each(function(n){n.kc();n.setFetcher(new mboxAjaxFetcher);n.finalize()});TNT.a.nestedMboxes=[]}),this.Sb?(this.limitTraffic(r.trafficLevelPercentage,r.trafficDuration),this.lc(),this.mc=new mboxSignaler(this)):r.isProduction||this.isAdmin()&&(this.isEnabled()?alert("It looks like your browser will not allow "+r.companyName+" to set its administrative cookie. To allow setting the cookie please lower the privacy settings of your browser.\n(this message will only appear in administrative mode)"):alert("mbox disabled, probably due to timeout\nReset your cookies to re-enable\n(this message will only appear in administrative mode)")))};mboxFactory.prototype.forcePCId=function(n){TNT.a.b.clientTntIdSupport&&this.ec.forceId(n)&&this.dc.forceId(mboxGenerateId())};mboxFactory.prototype.forceSessionId=function(n){TNT.a.b.clientSessionIdSupport&&this.dc.forceId(n)};mboxFactory.prototype.isEnabled=function(){return this.Sb};mboxFactory.prototype.getDisableReason=function(){return this.Vb.getCookie(TNT.a.H.D)};mboxFactory.prototype.isSupported=function(){return this.Rb};mboxFactory.prototype.disable=function(n,t){typeof n=="undefined"&&(n=3600);typeof t=="undefined"&&(t="unspecified");this.isAdmin()||(this.Sb=!1,this.Vb.setCookie(TNT.a.H.D,t,n))};mboxFactory.prototype.enable=function(){this.Sb=!0;this.Vb.deleteCookie(TNT.a.H.D)};mboxFactory.prototype.isAdmin=function(){return document.location.href.indexOf(TNT.a.C.F)!=-1};mboxFactory.prototype.limitTraffic=function(n,t){if(TNT.a.b.trafficLevelPercentage!=100){if(n==100)return;var i=!0;parseInt(this.Vb.getCookie(TNT.a.H.I))!=n&&(i=Math.random()*100<=n);this.Vb.setCookie(TNT.a.H.I,n,t);i||this.disable(3600,"limited by traffic")}};mboxFactory.prototype.addOnLoad=function(n){if(this.isDomLoaded())n();else{var t=!1,i=function(){t||(t=!0,n())};this.vc.push(i);this.isDomLoaded()&&!t&&i()}};mboxFactory.prototype.getEllapsedTime=function(){return this.hc-this.gc};mboxFactory.prototype.getEllapsedTimeUntil=function(n){return n-this.gc};mboxFactory.prototype.getMboxes=function(){return this.Qb};mboxFactory.prototype.get=function(n,t){return this.Qb.get(n).getById(t||0)};mboxFactory.prototype.update=function(n,t){if(this.isEnabled()){var i=this;if(!this.isDomLoaded()){this.addOnLoad(function(){i.update(n,t)});return}if(this.Qb.get(n).length()===0)throw"Mbox "+n+" is not defined";this.Qb.get(n).each(function(r){var u=r.getUrlBuilder();u.addParameter(TNT.a.c.d,mboxGenerateId());i.wc(u);i.xc(u,n);i.setVisitorIdParameters(u,n);r.load(t)})}};mboxFactory.prototype.setVisitorIdParameters=function(n,t){var r,i;typeof Visitor!="undefined"&&TNT.a.b.imsOrgId&&(r=Visitor.getInstance(TNT.a.b.imsOrgId),r.isAllowed()&&(i=function(t,i,u){if(r[i]){var f=function(i){i&&n.addParameter(t,i)},e;e=typeof u!="undefined"?r[i]("mbox:"+u):r[i](f);f(e)}},i(TNT.a.c.e,"getMarketingCloudVisitorID"),i(TNT.a.c.f,"getAudienceManagerLocationHint"),i(TNT.a.c.g,"getAudienceManagerBlob"),i(TNT.a.c.h,"getAnalyticsVisitorID"),i(TNT.a.c.i,"getSupplementalDataID",t)))};mboxFactory.prototype.create=function(n,t,i){var o,f,r,s;if(!this.isSupported())return null;var e=new Date,h=e.getTime()-e.getTimezoneOffset()*TNT.a.L.P,u=this.pb.clone();if(u.addParameter(TNT.a.c.j,this.Qb.length()+1),u.addParameter(TNT.a.c.A,h),u.addParameters(t),this.wc(u),this.xc(u,n),this.setVisitorIdParameters(u,n),i)f=new mboxLocatorNode(i);else{if(this.Pb)throw"The page has already been loaded, can't write marker";f=new mboxLocatorDefault(this.Bc(n))}try{o=this.Qb.get(n).length();r=new mbox(n,o,u,f,this.Cc(n),this);this.Sb&&r.setFetcher(this.Pb?new mboxAjaxFetcher:new mboxStandardFetcher);s=this;r.setOnError(function(n){r.setMessage(n);r.activate();r.isActivated()||(s.disable(TNT.a.b.mboxFactoryDisabledTimeout,n),window.location.reload(!1))});this.Qb.add(r)}catch(c){this.disable();throw'Failed creating mbox "'+n+'", the error was: '+c;}return r};mboxFactory.prototype.wc=function(n){var t=this.ec.getId();t&&n.addParameter(TNT.a.c.m,t)};mboxFactory.prototype.xc=function(n,t){var i=!TNT.isAutoCreateGlobalMbox()&&TNT.getGlobalMboxName()===t;i&&n.addParameters(TNT.getTargetPageParameters())};mboxFactory.prototype.getCookieManager=function(){return this.Vb};mboxFactory.prototype.getPageId=function(){return this.Xb};mboxFactory.prototype.getPCId=function(){return this.ec};mboxFactory.prototype.getSessionId=function(){return this.dc};mboxFactory.prototype.getSignaler=function(){return this.mc};mboxFactory.prototype.getUrlBuilder=function(){return this.pb};mboxFactory.prototype.Gc=function(n){return this.Nb+"-"+n+"-"+this.Qb.get(n).length()};mboxFactory.prototype.Bc=function(n){return TNT.a.L.R+this.Gc(n)};mboxFactory.prototype.Cc=function(n){return TNT.a.L.O+this.Gc(n)};mboxFactory.prototype.fc=function(n,t,i){n.addParameter(TNT.a.c.k,document.location.hostname);n.addParameter(TNT.a.c.d,this.Xb);n.addParameter(TNT.a.c.n,this.Yb);n.addParameter(TNT.a.c.o,this.Zb);n.addParameter(TNT.a.c.p,this._b);n.addParameter(TNT.a.c.q,this.ac);n.addParameter(TNT.a.c.r,this.cc);n.addParameter(TNT.a.c.s,this.bc);n.addParameter(TNT.a.C.E,this.dc.getId());t||n.addParameter(TNT.a.c.l,this.Nb);this.wc(n);TNT.a.b.crossDomainEnabled&&n.addParameter(TNT.a.c.t,TNT.a.b.crossDomain);var r=TNT.getClientMboxExtraParameters();r&&n.addParameters(r.split("&"));n.setUrlProcessAction(function(n){if(TNT.a.b.passPageParameters){n+="&";n+=TNT.a.c.u;n+="="+encodeURIComponent(document.location);var t=encodeURIComponent(document.referrer);n.length+t.length<2e3&&(n+="&",n+=TNT.a.c.v,n+="="+t)}return n+="&",n+=TNT.a.c.w,n+("="+i)})};mboxFactory.prototype.lc=function(){document.write("<style>."+TNT.a.L.Q+" { visibility:hidden; }<\/style>")};mboxFactory.prototype.isDomLoaded=function(){return this.Pb};mboxFactory.prototype.Wb=function(){if(!this.vc){this.vc=[];var n=this;(function(){var i=document.addEventListener?"DOMContentLoaded":"onreadystatechange",u=!1,t=function(){if(!u){u=!0;for(var t=0;t<n.vc.length;++t)n.vc[t]()}},r;document.addEventListener?(document.addEventListener(i,function(){document.removeEventListener(i,arguments.callee,!1);t()},!1),window.addEventListener("load",function(){document.removeEventListener("load",arguments.callee,!1);t()},!1)):document.attachEvent&&(self!==self.top?document.attachEvent(i,function(){document.readyState==="complete"&&(document.detachEvent(i,arguments.callee),t())}):(r=function(){try{document.documentElement.doScroll("left");t()}catch(n){setTimeout(r,13)}},r()));document.readyState==="complete"&&t()})()}};mboxSignaler=function(n){this.Nc=document;this.Mc=n};mboxSignaler.prototype.signal=function(n,t){var i,r,u;this.Mc.isEnabled()&&(i=this.Qc(this.Mc.Bc(t)),this.Rc(this.Nc.body,i),r=this.Mc.create(t,mboxShiftArray(arguments),i),u=r.getUrlBuilder(),u.addParameter(TNT.a.c.d,mboxGenerateId()),r.load())};mboxSignaler.prototype.Qc=function(n){var t=this.Nc.createElement("DIV");return t.id=n,t.style.visibility="hidden",t.style.display="none",t};mboxSignaler.prototype.Rc=function(n,t){n.appendChild(t)};mboxList=function(){this.Qb=[]};mboxList.prototype.add=function(n){var t=TNT.a.T;t.U(n)||t.X(n)||(this.Qb[this.Qb.length]=n)};mboxList.prototype.get=function(n){for(var r=new mboxList,i,t=0;t<this.Qb.length;t++)i=this.Qb[t],i.getName()==n&&r.add(i);return r};mboxList.prototype.getById=function(n){return this.Qb[n]};mboxList.prototype.length=function(){return this.Qb.length};mboxList.prototype.each=function(n){if(typeof n!="function")throw"Action must be a function, was: "+typeof n;for(var t=0;t<this.Qb.length;t++)n(this.Qb[t])};mboxLocatorDefault=function(n){this.Wc=n;document.write('<div id="'+this.Wc+'" style="visibility:hidden;display:none">&nbsp;<\/div>')};mboxLocatorDefault.prototype.locate=function(){for(var n=document.getElementById(this.Wc);n;){if(n.nodeType==1&&n.className=="mboxDefault")return n;n=n.previousSibling}return null};mboxLocatorDefault.prototype.force=function(){var t=document.createElement("div"),n;return t.className="mboxDefault",n=document.getElementById(this.Wc),n&&n.parentNode.insertBefore(t,n),t};mboxLocatorNode=function(n){this.Uc=n};mboxLocatorNode.prototype.locate=function(){return typeof this.Uc=="string"?document.getElementById(this.Uc):this.Uc};mboxLocatorNode.prototype.force=function(){return null};mboxCreate=function(n){var t=mboxFactoryDefault.create(n,mboxShiftArray(arguments));return t&&mboxFactoryDefault.isEnabled()&&t.load(),t};mboxDefine=function(n,t){return mboxFactoryDefault.create(t,mboxShiftArray(mboxShiftArray(arguments)),n)};mboxUpdate=function(n){mboxFactoryDefault.update(n,mboxShiftArray(arguments))};mbox=function(n,t,i,r,u,f){this.bd=null;this.cd=0;this.Ac=r;this.ad=u;this.dd=null;this.ed=new mboxOfferContent;this.Yc=null;this.pb=i;this.message="";this.fd={};this.gd=0;this.Sc=t;this.vb=n;this.hd();i.addParameter(TNT.a.c.x,n);i.addParameter(TNT.a.c.y,t);this.id=function(){};this.jd=function(){};this.kd=null;this.ld=document.documentMode>=10&&!f.isDomLoaded();this.ld&&(this.md=TNT.a.nestedMboxes,this.md.push(this.vb))};mbox.prototype.getId=function(){return this.Sc};mbox.prototype.hd=function(){var n=TNT.a.L.S;if(this.vb.length>n)throw"Mbox Name "+this.vb+" exceeds max length of "+n+" characters.";else if(this.vb.match(/^\s+|\s+$/g))throw"Mbox Name "+this.vb+" has leading/trailing whitespace(s).";};mbox.prototype.getName=function(){return this.vb};mbox.prototype.getParameters=function(){for(var t=this.pb.getParameters(),i=[],n=0;n<t.length;n++)t[n].name.indexOf("mbox")!==0&&(i[i.length]=t[n].name+"="+t[n].value);return i};mbox.prototype.setOnLoad=function(n){return this.jd=n,this};mbox.prototype.setMessage=function(n){return this.message=n,this};mbox.prototype.setOnError=function(n){return this.id=n,this};mbox.prototype.setFetcher=function(n){return this.dd&&this.dd.cancel(),this.dd=n,this};mbox.prototype.getFetcher=function(){return this.dd};mbox.prototype.load=function(n){var i,t;return this.dd===null?this:(this.setEventTime("load.start"),this.cancelTimeout(),this.cd=0,i=n&&n.length>0?this.pb.clone().addParameters(n):this.pb,this.dd.fetch(i),t=this,this.od=setTimeout(function(){t.id("browser timeout",t.dd.getType())},TNT.a.b.mboxTimeout),this.setEventTime("load.end"),this)};mbox.prototype.loaded=function(){if(this.cancelTimeout(),!this.activate()){var n=this;setTimeout(function(){n.loaded()},TNT.a.b.mboxLoadedTimeout)}};mbox.prototype.activate=function(){return this.cd?this.cd:(this.setEventTime("activate"+ ++this.gd+".start"),this.ld&&this.md[this.md.length-1]!==this.vb)?this.cd:(this.show()&&(this.cancelTimeout(),this.cd=1),this.setEventTime("activate"+this.gd+".end"),this.ld&&this.md.pop(),this.cd)};mbox.prototype.isActivated=function(){return this.cd};mbox.prototype.setOffer=function(n){var r=n&&n.show&&n.setOnLoad,t,i;if(!r)throw"Invalid offer";return(t=TNT.a.b.globalMboxName===this.vb,t=t&&n instanceof mboxOfferDefault,t=t&&this.dd!==null,t=t&&this.dd.getType()==="ajax",!t)?(this.ed=n,this):(i=this.ed.jd,this.ed=n,this.ed.setOnLoad(i),this)};mbox.prototype.getOffer=function(){return this.ed};mbox.prototype.show=function(){this.setEventTime("show.start");var n=this.ed.show(this);return this.setEventTime(n==1?"show.end.ok":"show.end"),n};mbox.prototype.showContent=function(n){return mbox.td(n)?(this.Yc=mbox.ud(this,this.Yc),this.Yc===null)?0:mbox.vd(document.body,this.Yc)?this.Yc===n?(this.wd(this.Yc),this.jd(),1):(this.xd(this.Yc),this.xd(n),mbox.yd(this,n),this.wd(this.Yc),this.jd(),1):0:0};mbox.td=function(n){return n!==undefined&&n!==null};mbox.vd=function(n,t){var i=n.contains!==undefined;return i?n!==t&&n.contains(t):Boolean(n.compareDocumentPosition(t)&16)};mbox.ud=function(n,t){return t!==undefined&&t!==null&&mbox.vd(document.body,t)?t:n.getDefaultDiv()};mbox.yd=function(n,t){n.Yc.parentNode.replaceChild(t,n.Yc);n.Yc=t};mbox.prototype.hide=function(){this.setEventTime("hide.start");var n=this.showContent(this.getDefaultDiv());return this.setEventTime(n==1?"hide.end.ok":"hide.end.fail"),n};mbox.prototype.finalize=function(){this.setEventTime("finalize.start");this.cancelTimeout();this.getDefaultDiv()||(this.Ac.force()?this.setMessage("No default content, an empty one has been added"):this.setMessage("Unable to locate mbox"));this.activate()||(this.hide(),this.setEventTime("finalize.end.hide"));this.setEventTime("finalize.end.ok")};mbox.prototype.cancelTimeout=function(){this.od&&clearTimeout(this.od);this.dd&&this.dd.cancel()};mbox.prototype.getDiv=function(){return this.Yc};mbox.prototype.getDefaultDiv=function(){return this.kd===null&&(this.kd=this.Ac.locate()),this.kd};mbox.prototype.setEventTime=function(n){this.fd[n]=(new Date).getTime()};mbox.prototype.getEventTimes=function(){return this.fd};mbox.prototype.getImportName=function(){return this.ad};mbox.prototype.getURL=function(){return this.pb.buildUrl()};mbox.prototype.getUrlBuilder=function(){return this.pb};mbox.prototype.Ed=function(n){return n.style.display!="none"};mbox.prototype.wd=function(n){this.Fd(n,!0)};mbox.prototype.xd=function(n){this.Fd(n,!1)};mbox.prototype.Fd=function(n,t){n.style.visibility=t?"visible":"hidden";n.style.display=t?"block":"none"};mbox.prototype.kc=function(){this.ld=!1};mbox.prototype.relocateDefaultDiv=function(){this.kd=this.Ac.locate()};mboxOfferContent=function(){this.jd=function(){}};mboxOfferContent.prototype.show=function(n){var t=n.showContent(document.getElementById(n.getImportName()));return t==1&&this.jd(),t};mboxOfferContent.prototype.setOnLoad=function(n){this.jd=n};mboxOfferAjax=function(n){this.sd=n;this.jd=function(){}};mboxOfferAjax.prototype.setOnLoad=function(n){this.jd=n};mboxOfferAjax.prototype.show=function(n){var t=document.createElement("div"),i;return t.id=n.getImportName(),t.innerHTML=this.sd,i=n.showContent(t),i==1&&this.jd(),i};mboxOfferDefault=function(){this.jd=function(){}};mboxOfferDefault.prototype.setOnLoad=function(n){this.jd=n};mboxOfferDefault.prototype.show=function(n){var t=n.hide();return t==1&&this.jd(),t};mboxCookieManager=function(n,t){this.vb=n;this.Id=t===""||t.indexOf(".")===-1?"":"; domain="+t;this.Jd=new mboxMap;this.loadCookies()};mboxCookieManager.prototype.isEnabled=function(){return this.setCookie(TNT.a.H.J,"true",60),this.loadCookies(),this.getCookie(TNT.a.H.J)=="true"};mboxCookieManager.prototype.setCookie=function(n,t,i){if(typeof n!="undefined"&&typeof t!="undefined"&&typeof i!="undefined"){var r={};r.name=n;r.value=encodeURIComponent(t);r.expireOn=Math.ceil(i+(new Date).getTime()/1e3);this.Jd.put(n,r);this.saveCookies()}};mboxCookieManager.prototype.getCookie=function(n){var t=this.Jd.get(n);return t?decodeURIComponent(t.value):null};mboxCookieManager.prototype.deleteCookie=function(n){this.Jd.remove(n);this.saveCookies()};mboxCookieManager.prototype.getCookieNames=function(n){var t=[];return this.Jd.each(function(i){i.indexOf(n)===0&&(t[t.length]=i)}),t};mboxCookieManager.prototype.saveCookies=function(){var u=TNT.a.b.crossDomainXOnly,f=TNT.a.H.D,t=[],i=0,r,n;this.Jd.each(function(n,r){u&&n!==f||(t[t.length]=n+"#"+r.value+"#"+r.expireOn,i<r.expireOn&&(i=r.expireOn))});r=new Date(i*1e3);n=[];n.push(this.vb,"=",t.join("|"));TNT.a.b.usePersistentCookies&&n.push("; expires=",r.toGMTString());n.push("; path=/",this.Id);document.cookie=n.join("")};mboxCookieManager.prototype.loadCookies=function(){var i,n,f,e,u,r,t;if(this.Jd=new mboxMap,i=document.cookie.indexOf(this.vb+"="),i!=-1)for(n=document.cookie.indexOf(";",i),n==-1&&(n=document.cookie.indexOf(",",i),n==-1&&(n=document.cookie.length)),f=document.cookie.substring(i+this.vb.length+1,n).split("|"),e=Math.ceil((new Date).getTime()/1e3),u=0;u<f.length;u++)r=f[u].split("#"),e<=r[2]&&(t={},t.name=r[0],t.value=r[1],t.expireOn=r[2],this.Jd.put(t.name,t))};mboxSession=function(n,t,i,r,u){this.Zd=t;this.Ub=i;this._d=r;this.Vb=u;this.Sc=typeof mboxForceSessionId!="undefined"?mboxForceSessionId:mboxGetPageParameter(this.Zd,!0);(this.Sc===null||this.Sc.length===0)&&(this.Sc=u.getCookie(i),(this.Sc===null||this.Sc.length===0)&&(this.Sc=n));this.Vb.setCookie(i,this.Sc,r)};mboxSession.prototype.getId=function(){return this.Sc};mboxSession.prototype.forceId=function(n){this.Sc=n;this.Vb.setCookie(this.Ub,this.Sc,this._d)};mboxPC=function(n,t,i){this.Ub=n;this._d=t;this.Vb=i;this.Sc=typeof mboxForcePCId!="undefined"?mboxForcePCId:i.getCookie(n);this.Sc&&i.setCookie(n,this.Sc,t)};mboxPC.prototype.getId=function(){return this.Sc};mboxPC.prototype.forceId=function(n){return this.Sc!=n?(this.Sc=n,this.Vb.setCookie(this.Ub,this.Sc,this._d),!0):!1};mboxGetPageParameter=function(n,t){var u,r,i;return t=t||!1,u=t?new RegExp("\\?[^#]*"+n+"=([^&;#]*)","i"):new RegExp("\\?[^#]*"+n+"=([^&;#]*)"),r=null,i=u.exec(document.location),i&&i.length>=2&&(r=i[1]),r};mboxSetCookie=function(n,t,i){return mboxFactoryDefault.getCookieManager().setCookie(n,t,i)};mboxGetCookie=function(n){return mboxFactoryDefault.getCookieManager().getCookie(n)};mboxCookiePageDomain=function(){var n=/([^:]*)(:[0-9]{0,5})?/.exec(document.location.host)[1],t;return/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/.exec(n)||(t=/([^\.]+\.[^\.]{3}|[^\.]+\.[^\.]+\.[^\.]{2})$/.exec(n),t&&(n=t[0],n.indexOf("www.")===0&&(n=n.substr(4)))),n?n:""};mboxShiftArray=function(n){for(var i=[],t=1;t<n.length;t++)i[i.length]=n[t];return i};mboxGenerateId=function(){return(new Date).getTime()+"-"+Math.floor(Math.random()*999999)};mboxScreenHeight=function(){return screen.height};mboxScreenWidth=function(){return screen.width};mboxBrowserWidth=function(){return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.clientWidth:document.body.clientWidth};mboxBrowserHeight=function(){return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.clientHeight:document.body.clientHeight};mboxBrowserTimeOffset=function(){return-(new Date).getTimezoneOffset()};mboxScreenColorDepth=function(){return screen.pixelDepth};TNT.a.ge=function(n,t,i,r,u){t.targetJSLoaded||(u.setCookie(i,!0,r),n.location.reload())};TNT.a.je=function(n,t,i,r,u){var f="_AT",s=50,e=r.K,h=i.experienceManagerDisabledTimeout,c=i.experienceManagerTimeout,l=i.experienceManagerPluginUrl,o=n.setTimeout,a=function(){},v=function(t){o(function(){n[f].applyWhenReady(t)},s)};f in n||(n[f]={},u.getCookie(e)!=="true"?(t.write('<script src="'+l+'"><\/script>'),n[f].applyWhenReady=v,o(function(){TNT.a.ge(n,n[f],e,h,u)},c)):n[f].applyWhenReady=a)};mboxVizTargetUrl=function(n){var r;if(mboxFactoryDefault.isEnabled()){var i=TNT.a.c,f=TNT.a.L.P,e=TNT.a.b.clientCode,u=new Date,o=u.getTimezoneOffset()*f,t=mboxFactoryDefault.getUrlBuilder().clone();return t.setBasePath("/m2/"+e+"/viztarget"),t.addParameter(i.x,n),t.addParameter(i.y,0),t.addParameter(i.j,mboxFactoryDefault.getMboxes().length()+1),t.addParameter(i.A,u.getTime()-o),t.addParameter(i.d,mboxGenerateId()),t.addParameter(i.z,mboxFactoryDefault.isDomLoaded()),r=mboxShiftArray(arguments),r&&r.length>0&&t.addParameters(r),mboxFactoryDefault.wc(t),mboxFactoryDefault.xc(t,n),mboxFactoryDefault.setVisitorIdParameters(t,n),t.buildUrl()}};TNT.createGlobalMbox=function(){var r=TNT.getGlobalMboxName(),t=TNT.getGlobalMboxLocation(),n,u,f,i;t||(t="mbox-"+r+"-"+mboxGenerateId(),n=document.createElement("div"),n.className="mboxDefault",n.id=t,n.style.visibility="hidden",n.style.display="none",u=setInterval(function(){document.body&&(clearInterval(u),document.body.insertBefore(n,document.body.firstChild))},TNT.a.b.bodyPollingTimeout));f=TNT.getTargetPageParameters();i=mboxFactoryDefault.create(r,f,t);i&&mboxFactoryDefault.isEnabled()&&(i.setFetcher(new TNT.a.ob),i.load())};TNT.a.ye=function(n,t,i){return mboxGetPageParameter(t,!0)||n.getCookie(i)};TNT.a.Be=function(n){setTimeout(function(){typeof mboxDebugLoaded=="undefined"&&alert("Could not load the remote debug.\nPlease check your connection to "+n.companyName+" servers")},3600);var t=n.adminUrl+"/mbox/mbox_debug.jsp?mboxServerHost="+n.serverHost+"&clientCode="+n.clientCode;document.write('<script src="'+t+'"><\/script>')};TNT.a.Ce=function(n){var t=TNT.a.T;return!t.U(n)&&!t.X(n)&&t.bb(n)};TNT.a.De=function(n,t){var u=TNT.a.T,f,e,r,i;for(i in n)f=n.hasOwnProperty(i)&&t.hasOwnProperty(i),r=n[i],e=!u.U(r)&&!u.X(r),f&&e&&(t[i]=r);return t};TNT.a.He=function(){var n=window.targetGlobalSettings;TNT.a.Ce(n)&&(TNT.a.b=TNT.a.De(n,TNT.a.b));var t=TNT.a.b.mboxVersion,i=TNT.a.b.serverHost,r=TNT.a.b.clientCode,u=TNT.a.L.M,f=TNT.a.C.G,e=TNT.a.H.G;typeof mboxVersion=="undefined"&&(window.mboxFactories=new mboxMap,window.mboxFactoryDefault=new mboxFactory(i,r,u),window.mboxVersion=t);TNT.a.ye(mboxFactoryDefault.getCookieManager(),f,e)&&TNT.a.Be(TNT.a.b)};TNT.a.He(),function(){var n=TNT.a.b,t=TNT.a.H,i=mboxFactoryDefault.getCookieManager();TNT.a.je(window,document,n,t,i)}();TNT.isAutoCreateGlobalMbox()&&TNT.createGlobalMbox()