Thu May 02 2019
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
!function t(e,n,i){function a(o,s){if(!n[o]){if(!e[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[o]={exports:{}};e[o][0].call(d.exports,function(t){return a(e[o][1][t]||t)},d,d.exports,t,e,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;o<i.length;o++)a(i[o]);return a}({1:[function(t,e){(function(n){t("./utils/polyfills");var i=t("./strategies/LocalVisitor"),a=t("./strategies/ProxyVisitor"),r=t("./strategies/PlaceholderVisitor"),o=t("./utils/callbackRegistryFactory"),s=t("./Message"),c=t("./enums").MESSAGES;e.exports=function(t,e,l,d){function u(t){Object.assign(b,t)}function p(t){Object.assign(b.state,t),b.callbackRegistry.executeAll(b.state)}function g(t){if(!x.isInvalid(t)){w=!1;var e=x.parse(t);b.setStateAndPublish(e.state)}}function m(t){!w&&k&&(w=!0,x.send(d,t))}function f(){u(new i(l._generateID)),b.getMarketingCloudVisitorID(),b.callbackRegistry.executeAll(b.state,!0),n.removeEventListener("message",h)}function h(t){if(!x.isInvalid(t)){var e=x.parse(t);w=!1,n.clearTimeout(this.timeout),n.removeEventListener("message",h),u(new a(b)),n.addEventListener("message",g),b.setStateAndPublish(e.state),b.callbackRegistry.hasCallbacks()&&m(c.GETSTATE)}}function _(){k&&postMessage?(n.addEventListener("message",h),m(c.HANDSHAKE),this.timeout=setTimeout(f,250)):f()}function v(){n.s_c_in||(n.s_c_il=[],n.s_c_in=0),b._c="Visitor",b._il=n.s_c_il,b._in=n.s_c_in,b._il[b._in]=b,n.s_c_in++}function y(){function t(t){0!==t.indexOf("_")&&"function"==typeof l[t]&&(b[t]=function(){})}Object.keys(l).forEach(t),b.getSupplementalDataID=l.getSupplementalDataID}var b=this,k=e.whitelistParentDomain;b.state={},b.version=l.version,b.marketingCloudOrgID=t;var w=!1,x=new s(t,k);b.callbackRegistry=o(),b.findField=function(t,e){if(b.state[t])return e(b.state[t]),b.state[t]},b.messageParent=m,b.setStateAndPublish=p,v(),y(),u(new r(b)),_()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Message":2,"./enums":4,"./strategies/LocalVisitor":5,"./strategies/PlaceholderVisitor":6,"./strategies/ProxyVisitor":7,"./utils/callbackRegistryFactory":9,"./utils/polyfills":11}],2:[function(t,e){var n=t("./enums").MESSAGES,i={0:"prefix",1:"orgID",2:"state"};e.exports=function(t,e){this.parse=function(t){try{var e={};return t.data.split("|").forEach(function(t,n){void 0!==t&&(e[i[n]]=2!==n?t:JSON.parse(t))}),e}catch(t){}},this.isInvalid=function(i){var a=this.parse(i);if(!a||Object.keys(a).length<2)return!0;var r=t!==a.orgID,o=!e||i.origin!==e,s=-1===Object.keys(n).indexOf(a.prefix);return r||o||s},this.send=function(n,i,a){var r=i+"|"+t;a&&a===Object(a)&&(r+="|"+JSON.stringify(a));try{n.postMessage(r,e)}catch(t){}}}},{"./enums":4}],3:[function(e,t,i){(function(i){function n(){function t(){l.windowLoaded=!0}i.addEventListener?i.addEventListener("load",t):i.attachEvent&&i.attachEvent("onload",t),l.codeLoadEnd=(new Date).getTime()}
/** @license ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! ============

Adobe Visitor API for JavaScript version: 2.5.0
Copyright 1996-2015 Adobe, Inc. All Rights Reserved
More info available at https://marketing.adobe.com/resources/help/en_US/mcvid/
*/var r=e("./ChildVisitor"),a=e("./Message"),s=e("./utils/makeChildMessageListener"),o=e("./utils/asyncParallelApply"),l=function(e,t){function n(t){var e=t;return function(t){var n=t||p.location.href;try{var i=_._extractParamFromUri(n,e);if(i)return F.parsePipeDelimetedKeyValues(i)}catch(t){}}}function r(t){function e(t,e){t&&t.match(C.VALID_VISITOR_ID_REGEX)&&e(t)}e(t[I],_.setMarketingCloudVisitorID),_._setFieldExpire(P,-1),e(t[T],_.setAnalyticsVisitorID)}function l(t){t=t||{},_._supplementalDataIDCurrent=t.supplementalDataIDCurrent||"",_._supplementalDataIDCurrentConsumed=t.supplementalDataIDCurrentConsumed||{},_._supplementalDataIDLast=t.supplementalDataIDLast||"",_._supplementalDataIDLastConsumed=t.supplementalDataIDLastConsumed||{}}function u(t){for(var e="",n=0,i=t.length;n<i;n++){var a=t[n],r=a[0],o=a[1];null!=o&&o!==R&&(e=(s=(s=e)?s+="|":s)+(r+"=")+encodeURIComponent(o))}var s,c;return(c=(c=e)?c+="|":c)+"TS="+F.getTimestampInSeconds()}function c(t){var e=t.minutesToLive,n="";return _.idSyncDisableSyncs&&(n=n||"Error: id syncs have been disabled"),"string"==typeof t.dpid&&t.dpid.length||(n=n||"Error: config.dpid is empty"),"string"==typeof t.url&&t.url.length||(n=n||"Error: config.url is empty"),void 0===e?e=20160:(e=parseInt(e,10),(isNaN(e)||e<=0)&&(n=n||"Error: config.minutesToLive needs to be a positive number")),{error:n,ttl:e}}function d(t){for(var e=0,n=t.length;e<n;e++)if(!C.POSITIVE_INT_REGEX.test(t[e]))return!1;return!0}function f(t,e){for(;t.length<e.length;)t.push("0");for(;e.length<t.length;)e.push("0")}function g(t,e){for(var n=0;n<t.length;n++){var i=parseInt(t[n],10),a=parseInt(e[n],10);if(i>a)return 1;if(a>i)return-1}return 0}if(!e)throw new Error("Visitor requires Adobe Marketing Cloud Org ID");var _=this;_.version="2.5.0";var p=i,m=p.Visitor;m.version=_.version,p.s_c_in||(p.s_c_il=[],p.s_c_in=0),_._c="Visitor",_._il=p.s_c_il,_._in=p.s_c_in,_._il[_._in]=_,p.s_c_in++,_._log={requests:[]};var h=p.document,C={POST_MESSAGE_ENABLED:!!p.postMessage,DAYS_BETWEEN_SYNC_ID_CALLS:1,MILLIS_PER_DAY:864e5,ADOBE_MC:"adobe_mc",ADOBE_MC_SDID:"adobe_mc_sdid",VALID_VISITOR_ID_REGEX:/^[0-9a-fA-F\-]+$/,ADOBE_MC_TTL_IN_MIN:5,POSITIVE_INT_REGEX:/^\d+$/,VERSION_REGEX:/vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/,HAS_JSON_STRINGIFY:window.JSON===Object(window.JSON)&&"function"==typeof window.JSON.stringify},S=function(t){return!Object.prototype[t]};_._hash=function(t){var e,n=0;if(t)for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n&=n;return n},_._generateID=function(t,e){var n,i,a="0123456789",r="",o="",s=8,c=10,l=10;if(e===I&&(V.isClientSideMarketingCloudVisitorID=!0),1===t){for(a+="ABCDEF",n=0;n<16;n++)i=Math.floor(Math.random()*s),r+=a.substring(i,i+1),i=Math.floor(Math.random()*s),o+=a.substring(i,i+1),s=16;return r+"-"+o}for(n=0;n<19;n++)i=Math.floor(Math.random()*c),r+=a.substring(i,i+1),0===n&&9===i?c=3:(1===n||2===n)&&10!==c&&i<2?c=10:n>2&&(c=10),i=Math.floor(Math.random()*l),o+=a.substring(i,i+1),0===n&&9===i?l=3:(1===n||2===n)&&10!==l&&i<2?l=10:n>2&&(l=10);return r+o},_._getDomain=function(t){var e;if(!t&&p.location&&(t=p.location.hostname),e=t)if(/^[0-9.]+$/.test(e))e="";else{var n=",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,",i=e.split("."),a=i.length-1,r=a-1;if(a>1&&i[a].length<=2&&(2===i[a-1].length||n.indexOf(","+i[a]+",")<0)&&r--,r>0)for(e="";a>=r;)e=i[a]+(e?".":"")+e,a--}return e},_.cookieRead=function(t){t=encodeURIComponent(t);var e=(";"+h.cookie).split(" ").join(";"),n=e.indexOf(";"+t+"="),i=n<0?n:e.indexOf(";",n+1);return n<0?"":decodeURIComponent(e.substring(n+2+t.length,i<0?e.length:i))},_.cookieWrite=function(t,e,n){var i,a=_.cookieLifetime;if(e=""+e,a=a?(""+a).toUpperCase():"",n&&"SESSION"!==a&&"NONE"!==a){if(i=""!==e?parseInt(a||0,10):-60)(n=new Date).setTime(n.getTime()+1e3*i);else if(1===n){var r=(n=new Date).getYear();n.setYear(r+2+(r<1900?1900:0))}}else n=0;return t&&"NONE"!==a?(h.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+"; path=/;"+(n?" expires="+n.toGMTString()+";":"")+(_.cookieDomain?" domain="+_.cookieDomain+";":""),_.cookieRead(t)===e):0},_._callbackList=null,_._callCallback=function(t,e){try{"function"==typeof t?t.apply(p,e):t[1].apply(t[0],e)}catch(t){}},_._registerCallback=function(t,e){e&&(null==_._callbackList&&(_._callbackList={}),null==_._callbackList[t]&&(_._callbackList[t]=[]),_._callbackList[t].push(e))},_._callAllCallbacks=function(t,e){if(null!=_._callbackList){var n=_._callbackList[t];if(n)for(;n.length>0;)_._callCallback(n.shift(),e)}},_._addQuerystringParam=function(t,e,n,i){var a=encodeURIComponent(e)+"="+encodeURIComponent(n),r=F.parseHash(t),o=F.hashlessUrl(t);if(-1===o.indexOf("?"))return o+"?"+a+r;var s=o.split("?"),c=s[0]+"?",l=s[1];return c+F.addQueryParamAtLocation(l,a,i)+r},_._extractParamFromUri=function(t,e){var n=new RegExp("[\\?&#]"+e+"=([^&#]*)").exec(t);if(n&&n.length)return decodeURIComponent(n[1])},_._parseAdobeMcFromUrl=n(C.ADOBE_MC),_._parseAdobeMcSdidFromUrl=n(C.ADOBE_MC_SDID),_._attemptToPopulateSdidFromUrl=function(t){var n=_._parseAdobeMcSdidFromUrl(t),i=1e9;n&&n.TS&&(i=F.getTimestampInSeconds()-n.TS),n&&n.SDID&&n[v]===e&&i<_.sdidParamExpiry&&(_._supplementalDataIDCurrent=n.SDID,_._supplementalDataIDCurrentConsumed.SDID_URL_PARAM=!0)},_._attemptToPopulateIdsFromUrl=function(){var t=_._parseAdobeMcFromUrl();if(t&&t.TS){var n=F.getTimestampInSeconds()-t.TS;if(Math.floor(n/60)>C.ADOBE_MC_TTL_IN_MIN||t[v]!==e)return;r(t)}},_.resetState=function(t){t?_._mergeServerState(t):l()},_._mergeServerState=function(t){if(t)try{if(i=t,(t=F.isObject(i)?i:F.parseJSON(i))[_.marketingCloudOrgID]){var e=t[_.marketingCloudOrgID];n=e.customerIDs,F.isObject(n)&&_.setCustomerIDs(n),l(e.sdid)}}catch(t){throw new Error("`serverState` has an invalid format.")}var n,i},_._timeout=null,_._loadData=function(t,e,n,i){e=_._addQuerystringParam(e,"d_fieldgroup",t,1),i.url=_._addQuerystringParam(i.url,"d_fieldgroup",t,1),i.corsUrl=_._addQuerystringParam(i.corsUrl,"d_fieldgroup",t,1),V.fieldGroupObj[t]=!0,i===Object(i)&&i.corsUrl&&"XMLHttpRequest"===_._requestProcs.corsMetadata.corsType?_._requestProcs.fireCORS(i,n,t):_.useCORSOnly||_._loadJSONP(t,e,n)},_._loadJSONP=function(t,e,n){var i,a=0,r=0;if(e&&h){for(i=0;!a&&i<2;){try{a=(a=h.getElementsByTagName(i>0?"HEAD":"head"))&&a.length>0?a[0]:0}catch(t){a=0}i++}if(!a)try{h.body&&(a=h.body)}catch(t){a=0}if(a)for(i=0;!r&&i<2;){try{r=h.createElement(i>0?"SCRIPT":"script")}catch(t){r=0}i++}}if(e&&a&&r){r.type="text/javascript",r.src=e,a.firstChild?a.insertBefore(r,a.firstChild):a.appendChild(r);var o=_.loadTimeout;n&&(null==_._timeout&&(_._timeout={}),_._timeout[t]=setTimeout(function(){n(!0)},o)),_._log.requests.push(e)}else n&&n()},_._clearTimeout=function(t){null!=_._timeout&&_._timeout[t]&&(clearTimeout(_._timeout[t]),_._timeout[t]=0)},_._isAllowedDone=!1,_._isAllowedFlag=!1,_.isAllowed=function(){return _._isAllowedDone||(_._isAllowedDone=!0,(_.cookieRead(_.cookieName)||_.cookieWrite(_.cookieName,"T",1))&&(_._isAllowedFlag=!0)),_._isAllowedFlag},_._fields=null,_._fieldsExpired=null;var D="MC",I="MCMID",v="MCORGID",A="MCCIDH",y="MCSYNCS",M="MCSYNCSOP",b="MCIDTS",E="MCOPTOUT",O="A",T="MCAID",k="AAM",L="MCAAMLH",P="MCAAMB",R="NONE";_.FIELDS={MCMID:"MCMID",MCOPTOUT:"MCOPTOUT",MCAID:"MCAID",MCAAMLH:"MCAAMLH",MCAAMB:"MCAAMB"},_._settingsDigest=0,_._getSettingsDigest=function(){if(!_._settingsDigest){var t=_.version;_.audienceManagerServer&&(t+="|"+_.audienceManagerServer),_.audienceManagerServerSecure&&(t+="|"+_.audienceManagerServerSecure),_._settingsDigest=_._hash(t)}return _._settingsDigest},_._readVisitorDone=!1,_._readVisitor=function(){if(!_._readVisitorDone){_._readVisitorDone=!0;var t,e,n,i,a,r,o=_._getSettingsDigest(),s=!1,c=_.cookieRead(_.cookieName),l=new Date;if(null==_._fields&&(_._fields={}),c&&"T"!==c)for((c=c.split("|"))[0].match(/^[\-0-9]+$/)&&(parseInt(c[0],10)!==o&&(s=!0),c.shift()),c.length%2==1&&c.pop(),t=0;t<c.length;t+=2)n=(e=c[t].split("-"))[0],i=c[t+1],e.length>1?(a=parseInt(e[1],10),r=e[1].indexOf("s")>0):(a=0,r=!1),s&&(n===A&&(i=""),a>0&&(a=l.getTime()/1e3-60)),n&&i&&(_._setField(n,i,1),a>0&&(_._fields["expire"+n]=a+(r?"s":""),(l.getTime()>=1e3*a||r&&!_.cookieRead(_.sessionCookieName))&&(_._fieldsExpired||(_._fieldsExpired={}),_._fieldsExpired[n]=!0)));!_._getField(T)&&F.isTrackingServerPopulated()&&(c=_.cookieRead("s_vi"))&&((c=c.split("|")).length>1&&c[0].indexOf("v1")>=0&&((t=(i=c[1]).indexOf("["))>=0&&(i=i.substring(0,t)),i&&i.match(C.VALID_VISITOR_ID_REGEX)&&_._setField(T,i)))}},_._appendVersionTo=function(t){var e="vVersion|"+_.version,n=t?_._getCookieVersion(t):null;return n?F.areVersionsDifferent(n,_.version)&&(t=t.replace(C.VERSION_REGEX,e)):t+=(t?"|":"")+e,t},_._writeVisitor=function(){var t,e,n=_._getSettingsDigest();for(t in _._fields)S(t)&&_._fields[t]&&"expire"!==t.substring(0,6)&&(e=_._fields[t],n+=(n?"|":"")+t+(_._fields["expire"+t]?"-"+_._fields["expire"+t]:"")+"|"+e);n=_._appendVersionTo(n),_.cookieWrite(_.cookieName,n,1)},_._getField=function(t,e){return null==_._fields||!e&&_._fieldsExpired&&_._fieldsExpired[t]?null:_._fields[t]},_._setField=function(t,e,n){null==_._fields&&(_._fields={}),_._fields[t]=e,n||_._writeVisitor()},_._getFieldList=function(t,e){var n=_._getField(t,e);return n?n.split("*"):null},_._setFieldList=function(t,e,n){_._setField(t,e?e.join("*"):"",n)},_._getFieldMap=function(t,e){var n=_._getFieldList(t,e);if(n){var i,a={};for(i=0;i<n.length;i+=2)a[n[i]]=n[i+1];return a}return null},_._setFieldMap=function(t,e,n){var i,a=null;if(e)for(i in a=[],e)S(i)&&(a.push(i),a.push(e[i]));_._setFieldList(t,a,n)},_._setFieldExpire=function(t,e,n){var i=new Date;i.setTime(i.getTime()+1e3*e),null==_._fields&&(_._fields={}),_._fields["expire"+t]=Math.floor(i.getTime()/1e3)+(n?"s":""),e<0?(_._fieldsExpired||(_._fieldsExpired={}),_._fieldsExpired[t]=!0):_._fieldsExpired&&(_._fieldsExpired[t]=!1),n&&(_.cookieRead(_.sessionCookieName)||_.cookieWrite(_.sessionCookieName,"1"))},_._findVisitorID=function(t){return t&&("object"==typeof t&&(t=t.d_mid?t.d_mid:t.visitorID?t.visitorID:t.id?t.id:t.uuid?t.uuid:""+t),t&&"NOTARGET"===(t=t.toUpperCase())&&(t=R),t&&(t===R||t.match(C.VALID_VISITOR_ID_REGEX))||(t="")),t},_._setFields=function(t,e){if(_._clearTimeout(t),null!=_._loading&&(_._loading[t]=!1),V.fieldGroupObj[t]&&V.setState(t,!1),t===D){!0!==V.isClientSideMarketingCloudVisitorID&&(V.isClientSideMarketingCloudVisitorID=!1);var n=_._getField(I);if(!n||_.overwriteCrossDomainMCIDAndAID){if(!(n="object"==typeof e&&e.mid?e.mid:_._findVisitorID(e))){if(_._use1stPartyMarketingCloudServer&&!_.tried1stPartyMarketingCloudServer)return _.tried1stPartyMarketingCloudServer=!0,void _.getAnalyticsVisitorID(null,!1,!0);n=_._generateID(0,I)}_._setField(I,n)}n&&n!==R||(n=""),"object"==typeof e&&((e.d_region||e.dcs_region||e.d_blob||e.blob)&&_._setFields(k,e),_._use1stPartyMarketingCloudServer&&e.mid&&_._setFields(O,{id:e.id})),_._callAllCallbacks(I,[n])}if(t===k&&"object"==typeof e){var i=604800;null!=e.id_sync_ttl&&e.id_sync_ttl&&(i=parseInt(e.id_sync_ttl,10));var a=N.getRegionAndCheckIfChanged(e,i);_._callAllCallbacks(L,[a]);var r=_._getField(P);(e.d_blob||e.blob)&&((r=e.d_blob)||(r=e.blob),_._setFieldExpire(P,i),_._setField(P,r)),r||(r=""),_._callAllCallbacks(P,[r]),!e.error_msg&&_._newCustomerIDsHash&&_._setField(A,_._newCustomerIDsHash)}if(t===O){var o=_._getField(T);o&&!_.overwriteCrossDomainMCIDAndAID||((o=_._findVisitorID(e))?o!==R&&_._setFieldExpire(P,-1):o=R,_._setField(T,o)),o&&o!==R||(o=""),_._callAllCallbacks(T,[o])}if(_.idSyncDisableSyncs)N.idCallNotProcesssed=!0;else{N.idCallNotProcesssed=!1;var s={};s.ibs=e.ibs,s.subdomain=e.subdomain,N.processIDCallData(s)}var c,l;e===Object(e)&&(_.isAllowed()&&(c=_._getField(E)),c||(c=R,e.d_optout&&e.d_optout instanceof Array&&(c=e.d_optout.join(",")),l=parseInt(e.d_ottl,10),isNaN(l)&&(l=7200),_._setFieldExpire(E,l,!0),_._setField(E,c)),_._callAllCallbacks(E,[c]))},_._loading=null,_._getRemoteField=function(t,e,n,i,a){var r,o="",s=F.isFirstPartyAnalyticsVisitorIDCall(t);if(_.isAllowed())if(_._readVisitor(),!(!(o=_._getField(t,!0===j[t]))||_._fieldsExpired&&_._fieldsExpired[t])||_.disableThirdPartyCalls&&!s)o||(t===I?(_._registerCallback(t,n),o=_._generateID(0,I),_.setMarketingCloudVisitorID(o)):t===T?(_._registerCallback(t,n),o="",_.setAnalyticsVisitorID(o)):(o="",i=!0));else if(t===I||t===E?r=D:t===L||t===P?r=k:t===T&&(r=O),r)return!e||null!=_._loading&&_._loading[r]||(null==_._loading&&(_._loading={}),_._loading[r]=!0,_._loadData(r,e,function(e){if(!_._getField(t)){e&&V.setState(r,!0);var n="";t===I?n=_._generateID(0,I):r===k&&(n={error_msg:"timeout"}),_._setFields(r,n)}},a)),_._registerCallback(t,n),o||(e||_._setFields(r,{id:R}),"");return t!==I&&t!==T||o!==R||(o="",i=!0),n&&i&&_._callCallback(n,[o]),o},_._setMarketingCloudFields=function(t){_._readVisitor(),_._setFields(D,t)},_.setMarketingCloudVisitorID=function(t){_._setMarketingCloudFields(t)},_._use1stPartyMarketingCloudServer=!1,_.getMarketingCloudVisitorID=function(t,e){if(_.isAllowed()){_.marketingCloudServer&&_.marketingCloudServer.indexOf(".demdex.net")<0&&(_._use1stPartyMarketingCloudServer=!0);var n=_._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;return _._getRemoteField(I,i,t,e,n)}return""},_.getVisitorValues=function(t,e){var n={MCMID:{fn:_.getMarketingCloudVisitorID,args:[!0],context:_},MCOPTOUT:{fn:_.isOptedOut,args:[void 0,!0],context:_},MCAID:{fn:_.getAnalyticsVisitorID,args:[!0],context:_},MCAAMLH:{fn:_.getAudienceManagerLocationHint,args:[!0],context:_},MCAAMB:{fn:_.getAudienceManagerBlob,args:[!0],context:_}};o(function(){if(!e||!e.length)return n;var t={};return e.forEach(function(e){n[e]&&(t[e]=n[e])}),t}(),t)},_._mapCustomerIDs=function(t){_.getAudienceManagerBlob(t,!0)},m.AuthState={UNKNOWN:0,AUTHENTICATED:1,LOGGED_OUT:2},_._currentCustomerIDs={},_._customerIDsHashChanged=!1,_._newCustomerIDsHash="",_.setCustomerIDs=function(t){function e(){_._customerIDsHashChanged=!1}if(_.isAllowed()&&t){var n,i;for(n in _._readVisitor(),t)if(S(n)&&(i=t[n]))if("object"==typeof i){var a={};i.id&&(a.id=i.id),null!=i.authState&&(a.authState=i.authState),_._currentCustomerIDs[n]=a}else _._currentCustomerIDs[n]={id:i};var r=_.getCustomerIDs(),o=_._getField(A),s="";for(n in o||(o=0),r)S(n)&&(s+=(s?"|":"")+n+"|"+((i=r[n]).id?i.id:"")+(i.authState?i.authState:""));_._newCustomerIDsHash=_._hash(s),_._newCustomerIDsHash!==o&&(_._customerIDsHashChanged=!0,_._mapCustomerIDs(e))}},_.getCustomerIDs=function(){_._readVisitor();var t,e,n={};for(t in _._currentCustomerIDs)S(t)&&(e=_._currentCustomerIDs[t],n[t]||(n[t]={}),e.id&&(n[t].id=e.id),null!=e.authState?n[t].authState=e.authState:n[t].authState=m.AuthState.UNKNOWN);return n},_._setAnalyticsFields=function(t){_._readVisitor(),_._setFields(O,t)},_.setAnalyticsVisitorID=function(t){_._setAnalyticsFields(t)},_.getAnalyticsVisitorID=function(t,e,n){if(!F.isTrackingServerPopulated()&&!n)return _._callCallback(t,[""]),"";if(_.isAllowed()){var i="";if(n||(i=_.getMarketingCloudVisitorID(function(){_.getAnalyticsVisitorID(t,!0)})),i||n){var a=n?_.marketingCloudServer:_.trackingServer,r="";_.loadSSL&&(n?_.marketingCloudServerSecure&&(a=_.marketingCloudServerSecure):_.trackingServerSecure&&(a=_.trackingServerSecure));var o={};if(a){var s="http"+(_.loadSSL?"s":"")+"://"+a+"/id",c="d_visid_ver="+_.version+"&mcorgid="+encodeURIComponent(_.marketingCloudOrgID)+(i?"&mid="+encodeURIComponent(i):"")+(_.idSyncDisable3rdPartySyncing?"&d_coppa=true":""),l=["s_c_il",_._in,"_set"+(n?"MarketingCloud":"Analytics")+"Fields"];r=s+"?"+c+"&callback=s_c_il%5B"+_._in+"%5D._set"+(n?"MarketingCloud":"Analytics")+"Fields",o.corsUrl=s+"?"+c,o.callback=l}return o.url=r,_._getRemoteField(n?I:T,r,t,e,o)}}return""},_._setAudienceManagerFields=function(t){_._readVisitor(),_._setFields(k,t)},_._getAudienceManagerURLData=function(t){var e=_.audienceManagerServer,n="",i=_._getField(I),a=_._getField(P,!0),r=_._getField(T),o=r&&r!==R?"&d_cid_ic=AVID%01"+encodeURIComponent(r):"";if(_.loadSSL&&_.audienceManagerServerSecure&&(e=_.audienceManagerServerSecure),e){var s,c,l=_.getCustomerIDs();if(l)for(s in l)S(s)&&(c=l[s],o+="&d_cid_ic="+encodeURIComponent(s)+"%01"+encodeURIComponent(c.id?c.id:"")+(c.authState?"%01"+c.authState:""));t||(t="_setAudienceManagerFields");var d="http"+(_.loadSSL?"s":"")+"://"+e+"/id",u="d_visid_ver="+_.version+"&d_rtbd=json&d_ver=2"+(!i&&_._use1stPartyMarketingCloudServer?"&d_verify=1":"")+"&d_orgid="+encodeURIComponent(_.marketingCloudOrgID)+"&d_nsid="+(_.idSyncContainerID||0)+(i?"&d_mid="+encodeURIComponent(i):"")+(_.idSyncDisable3rdPartySyncing?"&d_coppa=true":"")+(!0===U?"&d_coop_safe=1":!1===U?"&d_coop_unsafe=1":"")+(a?"&d_blob="+encodeURIComponent(a):"")+o,p=["s_c_il",_._in,t];return{url:n=d+"?"+u+"&d_cb=s_c_il%5B"+_._in+"%5D."+t,corsUrl:d+"?"+u,callback:p}}return{url:n}},_.getAudienceManagerLocationHint=function(t,e){if(_.isAllowed()&&_.getMarketingCloudVisitorID(function(){_.getAudienceManagerLocationHint(t,!0)})){var n=_._getField(T);if(!n&&F.isTrackingServerPopulated()&&(n=_.getAnalyticsVisitorID(function(){_.getAudienceManagerLocationHint(t,!0)})),n||!F.isTrackingServerPopulated()){var i=_._getAudienceManagerURLData(),a=i.url;return _._getRemoteField(L,a,t,e,i)}}return""},_.getLocationHint=_.getAudienceManagerLocationHint,_.getAudienceManagerBlob=function(t,e){if(_.isAllowed()&&_.getMarketingCloudVisitorID(function(){_.getAudienceManagerBlob(t,!0)})){var n=_._getField(T);if(!n&&F.isTrackingServerPopulated()&&(n=_.getAnalyticsVisitorID(function(){_.getAudienceManagerBlob(t,!0)})),n||!F.isTrackingServerPopulated()){var i=_._getAudienceManagerURLData(),a=i.url;return _._customerIDsHashChanged&&_._setFieldExpire(P,-1),_._getRemoteField(P,a,t,e,i)}}return""},_._supplementalDataIDCurrent="",_._supplementalDataIDCurrentConsumed={},_._supplementalDataIDLast="",_._supplementalDataIDLastConsumed={},_.getSupplementalDataID=function(t,e){_._supplementalDataIDCurrent||e||(_._supplementalDataIDCurrent=_._generateID(1));var n=_._supplementalDataIDCurrent;return _._supplementalDataIDLast&&!_._supplementalDataIDLastConsumed[t]?(n=_._supplementalDataIDLast,_._supplementalDataIDLastConsumed[t]=!0):n&&(_._supplementalDataIDCurrentConsumed[t]&&(_._supplementalDataIDLast=_._supplementalDataIDCurrent,_._supplementalDataIDLastConsumed=_._supplementalDataIDCurrentConsumed,_._supplementalDataIDCurrent=n=e?"":_._generateID(1),_._supplementalDataIDCurrentConsumed={}),n&&(_._supplementalDataIDCurrentConsumed[t]=!0)),n},m.OptOut={GLOBAL:"global"},_.getOptOut=function(t,e){if(_.isAllowed()){var n=_._getAudienceManagerURLData("_setMarketingCloudFields"),i=n.url;return _._getRemoteField(E,i,t,e,n)}return""},_.isOptedOut=function(t,e,n){if(_.isAllowed()){e||(e=m.OptOut.GLOBAL);var i=_.getOptOut(function(n){var i=n===m.OptOut.GLOBAL||n.indexOf(e)>=0;_._callCallback(t,[i])},n);return i?i===m.OptOut.GLOBAL||i.indexOf(e)>=0:null}return!1},_.appendVisitorIDsTo=function(t){var e=C.ADOBE_MC,n=u([[I,_._getField(I)],[T,_._getField(T)],[v,_.marketingCloudOrgID]]);try{return _._addQuerystringParam(t,e,n)}catch(e){return t}},_.appendSupplementalDataIDTo=function(t,e){if(!(e=e||_.getSupplementalDataID(F.generateRandomString(),!0)))return t;var n=C.ADOBE_MC_SDID,i="SDID="+encodeURIComponent(e)+"|";i+=v+"="+encodeURIComponent(_.marketingCloudOrgID)+"|",i+="TS="+F.getTimestampInSeconds();try{return _._addQuerystringParam(t,n,i)}catch(e){return t}},_._xd={postMessage:function(t,e,n){var i=1;e&&(C.POST_MESSAGE_ENABLED?n.postMessage(t,e.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):e&&(n.location=e.replace(/#.*$/,"")+"#"+ +new Date+i+++"&"+t))},receiveMessage:function(t,e){var n;try{C.POST_MESSAGE_ENABLED&&(t&&(n=function(n){if("string"==typeof e&&n.origin!==e||"[object Function]"===Object.prototype.toString.call(e)&&!1===e(n.origin))return!1;t(n)}),p.addEventListener?p[t?"addEventListener":"removeEventListener"]("message",n,!1):p[t?"attachEvent":"detachEvent"]("\xe5",n))}catch(t){}}};var F={addListener:h.addEventListener?function(t,e,n){t.addEventListener(e,function(t){"function"==typeof n&&n(t)},!1)}:h.attachEvent?function(t,e,n){t.attachEvent("on"+e,function(t){"function"==typeof n&&n(t)})}:void 0,map:function(t,e){if(Array.prototype.map)return t.map(e);if(void 0===t||null==t)throw new TypeError;var n=Object(t),i=n.length>>>0;if("function"!=typeof e)throw new TypeError;for(var a=new Array(i),r=arguments[1],o=0;o<i;o++)o in n&&(a[o]=e.call(r,n[o],o,n));return a},encodeAndBuildRequest:function(t,e){return this.map(t,function(t){return encodeURIComponent(t)}).join(e)},parseHash:function(t){var e=t.indexOf("#");return e>0?t.substr(e):""},hashlessUrl:function(t){var e=t.indexOf("#");return e>0?t.substr(0,e):t},addQueryParamAtLocation:function(t,e,n){var i=t.split("&");return n=null!=n?n:i.length,i.splice(n,0,e),i.join("&")},isFirstPartyAnalyticsVisitorIDCall:function(t,e,n){return t===T&&(e||(e=_.trackingServer),n||(n=_.trackingServerSecure),!("string"!=typeof(i=_.loadSSL?n:e)||!i.length)&&i.indexOf("2o7.net")<0&&i.indexOf("omtrdc.net")<0);var i},isObject:function(t){return Boolean(t&&t===Object(t))},isLessThan:function(t,e){return _._compareVersions(t,e)<0},areVersionsDifferent:function(t,e){return 0!==_._compareVersions(t,e)},removeCookie:function(t){document.cookie=encodeURIComponent(t)+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},isTrackingServerPopulated:function(){return!!_.trackingServer||!!_.trackingServerSecure},parseJSON:function(e,t){function i(e,n){var a,r,o=e[n];if(o&&"object"==typeof o)for(a in o)Object.prototype.hasOwnProperty.call(o,a)&&(void 0!==(r=i(o,a))?o[a]=r:delete o[a]);return t.call(e,n,o)}if("object"==typeof JSON&&"function"==typeof JSON.parse)return JSON.parse(e,t);var n,r=/^[\],:{}\s]*$/,a=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,s=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,l=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(e=String(e),l.lastIndex=0,l.test(e)&&(e=e.replace(l,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),r.test(e.replace(a,"@").replace(s,"]").replace(o,"")))return n=eval("("+e+")"),"function"==typeof t?i({"":n},""):n;throw new SyntaxError("JSON.parse")},getTimestampInSeconds:function(){return Math.round((new Date).getTime()/1e3)},parsePipeDelimetedKeyValues:function(t){for(var e={},n=t.split("|"),i=0,a=n.length;i<a;i++){var r=n[i].split("=");e[r[0]]=decodeURIComponent(r[1])}return e},generateRandomString:function(t){t=t||5;for(var e="",n="abcdefghijklmnopqrstuvwxyz0123456789";t--;)e+=n[Math.floor(Math.random()*n.length)];return e},parseBoolean:function(t){return"true"===t||"false"!==t&&null}};_._helpers=F;var w={corsMetadata:(gh="none",hh=!0,"undefined"!=typeof XMLHttpRequest&&XMLHttpRequest===Object(XMLHttpRequest)&&("withCredentials"in new XMLHttpRequest?gh="XMLHttpRequest":"undefined"!=typeof XDomainRequest&&XDomainRequest===Object(XDomainRequest)&&(hh=!1),Object.prototype.toString.call(p.HTMLElement).indexOf("Constructor")>0&&(hh=!1)),{corsType:gh,corsCookiesEnabled:hh}),getCORSInstance:function(){return"none"===this.corsMetadata.corsType?null:new p[this.corsMetadata.corsType]},fireCORS:function(t,e){function n(e){var n;try{if((n=JSON.parse(e))!==Object(n))return void i.handleCORSError(t,null,"Response is not JSON")}catch(e){return void i.handleCORSError(t,e,"Error parsing response as JSON")}try{for(var a=t.callback,r=p,o=0;o<a.length;o++)r=r[a[o]];r(n)}catch(e){i.handleCORSError(t,e,"Error forming callback function")}}var i=this;e&&(t.loadErrorHandler=e);try{var a=this.getCORSInstance();a.open("get",t.corsUrl+"&ts="+(new Date).getTime(),!0),"XMLHttpRequest"===this.corsMetadata.corsType&&(a.withCredentials=!0,a.timeout=_.loadTimeout,a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onreadystatechange=function(){4===this.readyState&&200===this.status&&n(this.responseText)}),a.onerror=function(e){i.handleCORSError(t,e,"onerror")},a.ontimeout=function(e){i.handleCORSError(t,e,"ontimeout")},a.send(),_._log.requests.push(t.corsUrl)}catch(e){this.handleCORSError(t,e,"try-catch")}},handleCORSError:function(t,e,n){_.CORSErrors.push({corsData:t,error:e,description:n}),t.loadErrorHandler&&("ontimeout"===n?t.loadErrorHandler(!0):t.loadErrorHandler(!1))}},gh,hh;_._requestProcs=w;var N={THROTTLE_START:3e4,MAX_SYNCS_LENGTH:649,throttleTimerSet:!1,id:null,onPagePixels:[],iframeHost:null,getIframeHost:function(t){if("string"==typeof t){var e=t.split("/");return e[0]+"//"+e[2]}},subdomain:null,url:null,getUrl:function(){var t,e="http://fast.",n="?d_nsid="+_.idSyncContainerID+"#"+encodeURIComponent(h.location.href);return this.subdomain||(this.subdomain="nosubdomainreturned"),_.loadSSL&&(e=_.idSyncSSLUseAkamai?"https://fast.":"https://"),t=e+this.subdomain+".demdex.net/dest5.html"+n,this.iframeHost=this.getIframeHost(t),this.id="destination_publishing_iframe_"+this.subdomain+"_"+_.idSyncContainerID,t},checkDPIframeSrc:function(){var t="?d_nsid="+_.idSyncContainerID+"#"+encodeURIComponent(h.location.href);"string"==typeof _.dpIframeSrc&&_.dpIframeSrc.length&&(this.id="destination_publishing_iframe_"+(_._subdomain||this.subdomain||(new Date).getTime())+"_"+_.idSyncContainerID,this.iframeHost=this.getIframeHost(_.dpIframeSrc),this.url=_.dpIframeSrc+t)},idCallNotProcesssed:null,doAttachIframe:!1,startedAttachingIframe:!1,iframeHasLoaded:null,iframeIdChanged:null,newIframeCreated:null,originalIframeHasLoadedAlready:null,regionChanged:!1,timesRegionChanged:0,sendingMessages:!1,messages:[],messagesPosted:[],messagesReceived:[],messageSendingInterval:C.POST_MESSAGE_ENABLED?null:100,jsonForComparison:[],jsonDuplicates:[],jsonWaiting:[],jsonProcessed:[],canSetThirdPartyCookies:!0,receivedThirdPartyCookiesNotification:!1,readyToAttachIframe:function(){return!_.idSyncDisable3rdPartySyncing&&(this.doAttachIframe||_._doAttachIframe)&&(this.subdomain&&"nosubdomainreturned"!==this.subdomain||_._subdomain)&&this.url&&!this.startedAttachingIframe},attachIframe:function(){function t(){(i=document.createElement("iframe")).sandbox="allow-scripts allow-same-origin",i.title="Adobe ID Syncing iFrame",i.id=n.id,i.name=n.id+"_name",i.style.cssText="display: none; width: 0; height: 0;",i.src=n.url,n.newIframeCreated=!0,e(),document.body.appendChild(i)}function e(){F.addListener(i,"load",function(){i.className="aamIframeLoaded",n.iframeHasLoaded=!0,n.requestToProcess()})}this.startedAttachingIframe=!0;var n=this,i=document.getElementById(this.id);i?"IFRAME"!==i.nodeName?(this.id+="_2",this.iframeIdChanged=!0,t()):(this.newIframeCreated=!1,"aamIframeLoaded"!==i.className?(this.originalIframeHasLoadedAlready=!1,e()):(this.originalIframeHasLoadedAlready=!0,this.iframeHasLoaded=!0,this.iframe=i,this.requestToProcess())):t(),this.iframe=i},requestToProcess:function(t){function e(){i.jsonForComparison.push(t),i.jsonWaiting.push(t),i.processSyncOnPage(t)}var n,i=this;if(t===Object(t)&&t.ibs)if(C.HAS_JSON_STRINGIFY)if(n=JSON.stringify(t.ibs||[]),this.jsonForComparison.length){var a,r,o,s=!1;for(a=0,r=this.jsonForComparison.length;a<r;a++)if(o=this.jsonForComparison[a],n===JSON.stringify(o.ibs||[])){s=!0;break}s?this.jsonDuplicates.push(t):e()}else e();else e();if((this.receivedThirdPartyCookiesNotification||!C.POST_MESSAGE_ENABLED||this.iframeHasLoaded)&&this.jsonWaiting.length){var c=this.jsonWaiting.shift();this.process(c),this.requestToProcess()}!_.idSyncDisableSyncs&&this.iframeHasLoaded&&this.messages.length&&!this.sendingMessages&&(this.throttleTimerSet||(this.throttleTimerSet=!0,setTimeout(function(){i.messageSendingInterval=C.POST_MESSAGE_ENABLED?null:150},this.THROTTLE_START)),this.sendingMessages=!0,this.sendMessages())},getRegionAndCheckIfChanged:function(t,e){var n=_._getField(L),i=t.d_region||t.dcs_region;return n?i&&(_._setFieldExpire(L,e),_._setField(L,i),parseInt(n,10)!==i&&(this.regionChanged=!0,this.timesRegionChanged++,_._setField(M,""),_._setField(y,""),n=i)):(n=i)&&(_._setFieldExpire(L,e),_._setField(L,n)),n||(n=""),n},processSyncOnPage:function(t){var e,n,i,a;if((e=t.ibs)&&e instanceof Array&&(n=e.length))for(i=0;i<n;i++)(a=e[i]).syncOnPage&&this.checkFirstPartyCookie(a,"","syncOnPage")},process:function(t){var e,n,i,a,r,o=encodeURIComponent,s=!1;if((e=t.ibs)&&e instanceof Array&&(n=e.length))for(s=!0,i=0;i<n;i++)a=e[i],r=[o("ibs"),o(a.id||""),o(a.tag||""),F.encodeAndBuildRequest(a.url||[],","),o(a.ttl||""),"","",a.fireURLSync?"true":"false"],a.syncOnPage||(this.canSetThirdPartyCookies?this.addMessage(r.join("|")):a.fireURLSync&&this.checkFirstPartyCookie(a,r.join("|")));s&&this.jsonProcessed.push(t)},checkFirstPartyCookie:function(t,e,n){var i="syncOnPage"===n,a=i?M:y;_._readVisitor();var r,o,s=_._getField(a),c=!1,l=!1,d=Math.ceil((new Date).getTime()/C.MILLIS_PER_DAY);s?(r=s.split("*"),c=(o=this.pruneSyncData(r,t.id,d)).dataPresent,l=o.dataValid,c&&l||this.fireSync(i,t,e,r,a,d)):(r=[],this.fireSync(i,t,e,r,a,d))},pruneSyncData:function(t,e,n){var i,a,r,o=!1,s=!1;for(a=0;a<t.length;a++)i=t[a],r=parseInt(i.split("-")[1],10),i.match("^"+e+"-")?(o=!0,n<r?s=!0:(t.splice(a,1),a--)):n>=r&&(t.splice(a,1),a--);return{dataPresent:o,dataValid:s}},manageSyncsSize:function(t){if(t.join("*").length>this.MAX_SYNCS_LENGTH)for(t.sort(function(t,e){return parseInt(t.split("-")[1],10)-parseInt(e.split("-")[1],10)});t.join("*").length>this.MAX_SYNCS_LENGTH;)t.shift()},fireSync:function(t,e,n,i,a,r){var o=this;if(t){if("img"===e.tag){var s,c,l,d,u=e.url,p=_.loadSSL?"https:":"http:";for(s=0,c=u.length;s<c;s++){l=u[s],d=/^\/\//.test(l);var g=new Image;F.addListener(g,"load",function(t,e,n,i){return function(){o.onPagePixels[t]=null,_._readVisitor();var r,s,c,l,d=_._getField(a),u=[];if(d)for(s=0,c=(r=d.split("*")).length;s<c;s++)(l=r[s]).match("^"+e.id+"-")||u.push(l);o.setSyncTrackingData(u,e,n,i)}}(this.onPagePixels.length,e,a,r)),g.src=(d?p:"")+l,this.onPagePixels.push(g)}}}else this.addMessage(n),this.setSyncTrackingData(i,e,a,r)},addMessage:function(t){var e=encodeURIComponent(_._enableErrorReporting?"---destpub-debug---":"---destpub---");this.messages.push((C.POST_MESSAGE_ENABLED?"":e)+t)},setSyncTrackingData:function(t,e,n,i){t.push(e.id+"-"+(i+Math.ceil(e.ttl/60/24))),this.manageSyncsSize(t),_._setField(n,t.join("*"))},sendMessages:function(){var t,e=this,n="",i=encodeURIComponent;this.regionChanged&&(n=i("---destpub-clear-dextp---"),this.regionChanged=!1),this.messages.length?C.POST_MESSAGE_ENABLED?(t=n+i("---destpub-combined---")+this.messages.join("%01"),this.postMessage(t),this.messages=[],this.sendingMessages=!1):(t=this.messages.shift(),this.postMessage(n+t),setTimeout(function(){e.sendMessages()},this.messageSendingInterval)):this.sendingMessages=!1},postMessage:function(t){_._xd.postMessage(t,this.url,this.iframe.contentWindow),this.messagesPosted.push(t)},receiveMessage:function(t){var e,n=/^---destpub-to-parent---/;"string"==typeof t&&n.test(t)&&("canSetThirdPartyCookies"===(e=t.replace(n,"").split("|"))[0]&&(this.canSetThirdPartyCookies="true"===e[1],this.receivedThirdPartyCookiesNotification=!0,this.requestToProcess()),this.messagesReceived.push(t))},processIDCallData:function(t){(null==this.url||t.subdomain&&"nosubdomainreturned"===this.subdomain)&&("string"==typeof _._subdomain&&_._subdomain.length?this.subdomain=_._subdomain:this.subdomain=t.subdomain||"",this.url=this.getUrl()),t.ibs instanceof Array&&t.ibs.length&&(this.doAttachIframe=!0),this.readyToAttachIframe()&&(_.idSyncAttachIframeOnWindowLoad?(m.windowLoaded||"complete"===h.readyState||"loaded"===h.readyState)&&this.attachIframe():this.attachIframeASAP()),"function"==typeof _.idSyncIDCallResult?_.idSyncIDCallResult(t):this.requestToProcess(t),"function"==typeof _.idSyncAfterIDCallResult&&_.idSyncAfterIDCallResult(t)},canMakeSyncIDCall:function(t,e){return _._forceSyncIDCall||!t||e-t>C.DAYS_BETWEEN_SYNC_ID_CALLS},attachIframeASAP:function(){function t(){e.startedAttachingIframe||(document.body?e.attachIframe():setTimeout(t,30))}var e=this;t()}};_._destinationPublishing=N,_.timeoutMetricsLog=[];var x,V={isClientSideMarketingCloudVisitorID:null,MCIDCallTimedOut:null,AnalyticsIDCallTimedOut:null,AAMIDCallTimedOut:null,fieldGroupObj:{},
setState:function(t,e){switch(t){case D:!1===e?!0!==this.MCIDCallTimedOut&&(this.MCIDCallTimedOut=!1):this.MCIDCallTimedOut=e;break;case O:!1===e?!0!==this.AnalyticsIDCallTimedOut&&(this.AnalyticsIDCallTimedOut=!1):this.AnalyticsIDCallTimedOut=e;break;case k:!1===e?!0!==this.AAMIDCallTimedOut&&(this.AAMIDCallTimedOut=!1):this.AAMIDCallTimedOut=e}}};_.isClientSideMarketingCloudVisitorID=function(){return V.isClientSideMarketingCloudVisitorID},_.MCIDCallTimedOut=function(){return V.MCIDCallTimedOut},_.AnalyticsIDCallTimedOut=function(){return V.AnalyticsIDCallTimedOut},_.AAMIDCallTimedOut=function(){return V.AAMIDCallTimedOut},_.idSyncGetOnPageSyncInfo=function(){return _._readVisitor(),_._getField(M)},_.idSyncByURL=function(t){var e=c(t||{});if(e.error)return e.error;var n,i,a=t.url,r=encodeURIComponent,o=N;return a=a.replace(/^https:/,"").replace(/^http:/,""),n=F.encodeAndBuildRequest(["",t.dpid,t.dpuuid||""],","),i=["ibs",r(t.dpid),"img",r(a),e.ttl,"",n],o.addMessage(i.join("|")),o.requestToProcess(),"Successfully queued"},_.idSyncByDataSource=function(t){return t===Object(t)&&"string"==typeof t.dpuuid&&t.dpuuid.length?(t.url="//dpm.demdex.net/ibs:dpid="+t.dpid+"&dpuuid="+t.dpuuid,_.idSyncByURL(t)):"Error: config or config.dpuuid is empty"},_._compareVersions=function(t,e){if(t===e)return 0;var n=t.toString().split("."),i=e.toString().split(".");return d(n.concat(i))?(f(n,i),g(n,i)):NaN},_._getCookieVersion=function(t){t=t||_.cookieRead(_.cookieName);var e=C.VERSION_REGEX.exec(t);return e&&e.length>1?e[1]:null},_._resetAmcvCookie=function(t){var e=_._getCookieVersion();e&&!F.isLessThan(e,t)||F.removeCookie(_.cookieName)},_.setAsCoopSafe=function(){U=!0},_.setAsCoopUnsafe=function(){U=!1},e.indexOf("@")<0&&(e+="@AdobeOrg"),_.marketingCloudOrgID=e,_.cookieName="AMCV_"+e,_.sessionCookieName="AMCVS_"+e,_.cookieDomain=_._getDomain(),_.cookieDomain===p.location.hostname&&(_.cookieDomain=""),_.loadSSL=p.location.protocol.toLowerCase().indexOf("https")>=0,_.loadTimeout=3e4,_.CORSErrors=[],_.marketingCloudServer=_.audienceManagerServer="dpm.demdex.net",_.sdidParamExpiry=30;var j={};j[L]=!0,j[P]=!0;var U=null;if(t&&"object"==typeof t){var H;for(H in t)S(H)&&(_[H]=t[H]);_.idSyncContainerID=_.idSyncContainerID||0,U="boolean"==typeof _.isCoopSafe?_.isCoopSafe:F.parseBoolean(_.isCoopSafe),_.resetBeforeVersion&&_._resetAmcvCookie(_.resetBeforeVersion),_._attemptToPopulateIdsFromUrl(),_._attemptToPopulateSdidFromUrl(),_._readVisitor();var B=_._getField(b),G=Math.ceil((new Date).getTime()/C.MILLIS_PER_DAY);!_.idSyncDisableSyncs&&N.canMakeSyncIDCall(B,G)&&(_._setFieldExpire(P,-1),_._setField(b,G)),_.getMarketingCloudVisitorID(),_.getAudienceManagerLocationHint(),_.getAudienceManagerBlob(),_._mergeServerState(_.serverState)}else _._attemptToPopulateIdsFromUrl(),_._attemptToPopulateSdidFromUrl();if(!_.idSyncDisableSyncs){N.checkDPIframeSrc();var q=function(){var t=N;t.readyToAttachIframe()&&t.attachIframe()};F.addListener(p,"load",function(){m.windowLoaded=!0,q()});try{_._xd.receiveMessage(function(t){N.receiveMessage(t.data)},N.iframeHost)}catch(e){}}_.whitelistIframeDomains&&C.POST_MESSAGE_ENABLED&&(_.whitelistIframeDomains=_.whitelistIframeDomains instanceof Array?_.whitelistIframeDomains:[_.whitelistIframeDomains],_.whitelistIframeDomains.forEach(function(t){var n=new a(e,t),i=s(_,n);_._xd.receiveMessage(i,t)}))};l.getInstance=function(t,e){if(!t)throw new Error("Visitor requires Adobe Marketing Cloud Org ID");t.indexOf("@")<0&&(t+="@AdobeOrg");var n=function(){var e=i.s_c_il;if(e)for(var n=0;n<e.length;n++){var a=e[n];if(a&&"Visitor"===a._c&&a.marketingCloudOrgID===t)return a}}();if(n)return n;var a=new l(t),o=a.isAllowed();return i.s_c_il.splice(--i.s_c_in,1),function(){try{return i.self!==i.parent}catch(t){return!0}}()&&!o&&i.parent?new r(t,e,a,i.parent):new l(t,e)},n(),i.Visitor=l,t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ChildVisitor":1,"./Message":2,"./utils/asyncParallelApply":8,"./utils/makeChildMessageListener":10}],4:[function(t,e,n){n.MESSAGES={HANDSHAKE:"HANDSHAKE",GETSTATE:"GETSTATE",PARENTSTATE:"PARENTSTATE"},n.STATE_KEYS_MAP={MCMID:"MCMID",MCAID:"MCAID",MCAAMB:"MCAAMB",MCAAMLH:"MCAAMLH",MCOPTOUT:"MCOPTOUT",CUSTOMERIDS:"CUSTOMERIDS"},n.ASYNC_API_MAP={MCMID:"getMarketingCloudVisitorID",MCAID:"getAnalyticsVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"getOptOut"},n.SYNC_API_MAP={CUSTOMERIDS:"getCustomerIDs"},n.ALL_APIS={MCMID:"getMarketingCloudVisitorID",MCAAMB:"getAudienceManagerBlob",MCAAMLH:"getAudienceManagerLocationHint",MCOPTOUT:"getOptOut",MCAID:"getAnalyticsVisitorID",CUSTOMERIDS:"getCustomerIDs"},n.FIELDGROUP_TO_FIELD={MC:"MCMID",A:"MCAID",AAM:"MCAAMB"}},{}],5:[function(t,e){var n=t("../enums").STATE_KEYS_MAP;e.exports=function(t){function e(){}function i(e,i){var a=this;return function(){var e=t(0,n.MCMID),r={};return r[n.MCMID]=e,a.setStateAndPublish(r),i(e),e}}this.getMarketingCloudVisitorID=function(t){t=t||e;var a=this.findField(n.MCMID,t),r=i.call(this,n.MCMID,t);return void 0!==a?a:r()}}},{"../enums":4}],6:[function(t,e){var n=t("../enums").ASYNC_API_MAP;e.exports=function(){Object.keys(n).forEach(function(t){this[n[t]]=function(e){this.callbackRegistry.add(t,e)}},this)}},{"../enums":4}],7:[function(t,e){var n=t("../enums"),i=n.MESSAGES,a=n.ASYNC_API_MAP,r=n.SYNC_API_MAP;e.exports=function(){function t(){}function e(t,e){var n=this;return function(){return n.callbackRegistry.add(t,e),n.messageParent(i.GETSTATE),""}}function n(n){this[a[n]]=function(i){i=i||t;var a=this.findField(n,i),r=e.call(this,n,i);return void 0!==a?a:r()}}function o(e){this[r[e]]=function(){return this.findField(e,t)||{}}}Object.keys(a).forEach(n,this),Object.keys(r).forEach(o,this)}},{"../enums":4}],8:[function(t,e){e.exports=function(t,e){function n(t){return function(n){i[t]=n,++a===r&&e(i)}}var i={},a=0,r=Object.keys(t).length;Object.keys(t).forEach(function(e){var i=t[e];if(i.fn){var a=i.args||[];a.unshift(n(e)),i.fn.apply(i.context||null,a)}})}},{}],9:[function(t,e){function n(){return{callbacks:{},add:function(t,e){this.callbacks[t]=this.callbacks[t]||[];var n=this.callbacks[t].push(e)-1;return function(){this.callbacks[t].splice(n,1)}},execute:function(t,e){if(this.callbacks[t]){e=(e=void 0===e?[]:e)instanceof Array?e:[e];try{for(;this.callbacks[t].length;){var n=this.callbacks[t].shift();"function"==typeof n?n.apply(null,e):n instanceof Array&&n[1].apply(n[0],e)}delete this.callbacks[t]}catch(t){}}},executeAll:function(t,e){(e||t&&!i.isObjectEmpty(t))&&Object.keys(this.callbacks).forEach(function(e){var n=void 0!==t[e]?t[e]:"";this.execute(e,n)},this)},hasCallbacks:function(){return Boolean(Object.keys(this.callbacks).length)}}}var i=t("./utils");e.exports=n},{"./utils":12}],10:[function(t,e){var n=t("../enums"),i=t("./utils"),a=n.MESSAGES,r=n.ALL_APIS,o=n.ASYNC_API_MAP,s=n.FIELDGROUP_TO_FIELD;e.exports=function(t,e){function n(){var e={};return Object.keys(r).forEach(function(n){var a=r[n],o=t[a]();i.isValueEmpty(o)||(e[n]=o)}),e}function c(){var e=[];return t._loading&&Object.keys(t._loading).forEach(function(n){if(t._loading[n]){var i=s[n];e.push(i)}}),e.length?e:null}function l(e){return function n(){var i=c();if(i){var a=o[i[0]];t[a](n,!0)}else e()}}function d(t,i){var a=n();e.send(t,i,a)}function u(t){g(t),d(t,a.HANDSHAKE)}function p(t){l(function(){d(t,a.PARENTSTATE)})()}function g(n){function i(i){r.call(t,i),e.send(n,a.PARENTSTATE,{CUSTOMERIDS:t.getCustomerIDs()})}var r=t.setCustomerIDs;t.setCustomerIDs=i}return function(t){e.isInvalid(t)||(e.parse(t).prefix===a.HANDSHAKE?u:p)(t.source)}}},{"../enums":4,"./utils":12}],11:[function(){Object.keys=Object.keys||function(t){var e=[];for(var n in t)e.hasOwnProperty.call(t,n)&&e.push(n);return e},Array.prototype.forEach=Array.prototype.forEach||function(t,e){for(var n=this,i=0,a=n.length;i<a;i++)t.call(e,n[i],i,n)},Object.assign=Object.assign||function(t){for(var e,n,i=1;i<arguments.length;++i)for(e in n=arguments[i])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}},{}],12:[function(t,e,n){n.isObjectEmpty=function(t){return t===Object(t)&&0===Object.keys(t).length},n.isValueEmpty=function(t){return""===t||n.isObjectEmpty(t)}},{}]},{},[1,2,3,4]),
// All code and conventions are protected by copyright
function(t,e,n){function i(){I.addEventHandler(t,"orientationchange",i.orientationChange)}function a(e){e=e||I.rules,this.rules=I.filter(e,function(t){return"inview"===t.event}),this.elements=[],this.eventHandler=I.bind(this.track,this),I.addEventHandler(t,"scroll",this.eventHandler),I.addEventHandler(t,"load",this.eventHandler)}function r(){this.rules=I.filter(I.rules,function(t){return"videoplayed"===t.event.substring(0,11)}),this.eventHandler=I.bind(this.onUpdateTime,this)}function o(){I.getToolsByType("nielsen").length>0&&I.domReady(I.bind(this.initialize,this))}function c(t){this.delay=250,this.FB=t,I.domReady(I.bind(function(){I.poll(I.bind(this.initialize,this),this.delay,8)},this))}function l(){this.defineEvents(),this.visibilityApiHasPriority=!0,e.addEventListener?this.setVisibilityApiPriority(!1):this.attachDetachOlderEventListeners(!0,e,"focusout");I.bindEvent("aftertoolinit",function(){I.fireEvent(I.visibility.isHidden()?"tabblur":"tabfocus")})}function u(){this.lastURL=I.URL(),this._fireIfURIChanged=I.bind(this.fireIfURIChanged,this),this._onPopState=I.bind(this.onPopState,this),this._onHashChange=I.bind(this.onHashChange,this),this._pushState=I.bind(this.pushState,this),this._replaceState=I.bind(this.replaceState,this),this.initialize()}function p(){var t=I.filter(I.rules,function(t){return 0===t.event.indexOf("dataelementchange")});this.dataElementsNames=I.map(t,function(t){return t.event.match(/dataelementchange\((.*)\)/i)[1]},this),this.initPolling()}function g(){this.rules=I.filter(I.rules,function(t){return"elementexists"===t.event})}function m(){var t=this.eventRegex=/^hover\(([0-9]+)\)$/,e=this.rules=[];I.each(I.rules,function(n){n.event.match(t)&&e.push([Number(n.event.match(t)[1]),n.selector])})}function f(e){I.domReady(I.bind(function(){this.twttr=e||t.twttr,this.initialize()},this))}function h(t){I.BaseTool.call(this,t),this.styleElements={},this.targetPageParamsStore={}}function _(t){I.BaseTool.call(this,t),this.defineListeners(),this.beaconMethod="plainBeacon",this.adapt=new _.DataAdapters,this.dataProvider=new _.DataProvider.Aggregate}function v(t){I.BaseTool.call(this,t),this.varBindings={},this.events=[],this.products=[],this.customSetupFuns=[]}function y(){I.BaseTool.call(this),this.asyncScriptCallbackQueue=[],this.argsForBlockingScripts=[]}function b(t){I.BaseTool.call(this,t),this.name=t.name||"Basic"}function k(t){I.BaseTool.call(this,t),this.name=t.name||"VisitorID",this.initialize()}function w(t){I.BaseTool.call(this,t)}function x(t){I.BaseTool.call(this,t)}var C,E,S,T=Object.prototype.toString,A=t._satellite&&t._satellite.override,I={initialized:!1,$data:function(t,e,i){if(t){var a="__satellite__",r=I.dataCache,o=t[a];o||(o=t[a]=I.uuid++);var s=r[o];if(s||(s=r[o]={}),i===n)return s[e];s[e]=i}},uuid:1,dataCache:{},keys:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},values:function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},isArray:Array.isArray||function(t){return"[object Array]"===T.apply(t)},isObject:function(t){return null!=t&&!I.isArray(t)&&"object"==typeof t},isString:function(t){return"string"==typeof t},isNumber:function(t){return"[object Number]"===T.apply(t)&&!I.isNaN(t)},isNaN:function(t){return t!=t},isRegex:function(t){return t instanceof RegExp},isLinkTag:function(t){return!(!t||!t.nodeName||"a"!==t.nodeName.toLowerCase())},each:function(t,e,n){for(var i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t)},map:function(t,e,n){for(var i=[],a=0,r=t.length;a<r;a++)i.push(e.call(n,t[a],a,t));return i},filter:function(t,e,n){for(var i=[],a=0,r=t.length;a<r;a++){var o=t[a];e.call(n,o,a,t)&&i.push(o)}return i},any:function(t,e,n){for(var i=0,a=t.length;i<a;i++){var r=t[i];if(e.call(n,r,i,t))return!0}return!1},every:function(t,e,n){for(var i=!0,a=0,r=t.length;a<r;a++){var o=t[a];i=i&&e.call(n,o,a,t)}return i},contains:function(t,e){return-1!==I.indexOf(t,e)},indexOf:function(t,e){if(t.indexOf)return t.indexOf(e);for(var n=t.length;n--;)if(e===t[n])return n;return-1},find:function(t,e,n){if(!t)return null;for(var i=0,a=t.length;i<a;i++){var r=t[i];if(e.call(n,r,i,t))return r}return null},textMatch:function(t,e){if(null==e)throw new Error("Illegal Argument: Pattern is not present");return null!=t&&("string"==typeof e?t===e:e instanceof RegExp&&e.test(t))},stringify:function(t,e){if(e=e||[],I.isObject(t)){if(I.contains(e,t))return"<Cycle>";e.push(t)}if(I.isArray(t))return"["+I.map(t,function(t){return I.stringify(t,e)}).join(",")+"]";if(I.isString(t))return'"'+String(t)+'"';if(I.isObject(t)){var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(i+": "+I.stringify(t[i],e));return"{"+n.join(", ")+"}"}return String(t)},trim:function(t){return null==t?null:t.trim?t.trim():t.replace(/^ */,"").replace(/ *$/,"")},bind:function(t,e){return function(){return t.apply(e,arguments)}},throttle:function(t,e){var n=null;return function(){var i=this,a=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(i,a)},e)}},domReady:function(t){function n(t){for(p=1;t=a.shift();)t()}var i,a=[],r=!1,o=e,s=o.documentElement,c=s.doScroll,l="DOMContentLoaded",d="addEventListener",u="onreadystatechange",p=/^loade|^c/.test(o.readyState);return o[d]&&o[d](l,i=function(){o.removeEventListener(l,i,r),n()},r),c&&o.attachEvent(u,i=function(){/^c/.test(o.readyState)&&(o.detachEvent(u,i),n())}),t=c?function(e){self!=top?p?e():a.push(e):function(){try{s.doScroll("left")}catch(n){return setTimeout(function(){t(e)},50)}e()}()}:function(t){p?t():a.push(t)}}(),loadScript:function(t,n){var i=e.createElement("script");I.scriptOnLoad(t,i,n),i.src=t,e.getElementsByTagName("head")[0].appendChild(i)},scriptOnLoad:function(t,e,n){function i(t){t&&I.logError(t),n&&n(t)}"onload"in e?(e.onload=function(){i()},e.onerror=function(){i(new Error("Failed to load script "+t))}):"readyState"in e&&(e.onreadystatechange=function(){var t=e.readyState;"loaded"!==t&&"complete"!==t||(e.onreadystatechange=null,i())})},loadScriptOnce:function(t,e){I.loadedScriptRegistry[t]||I.loadScript(t,function(n){n||(I.loadedScriptRegistry[t]=!0),e&&e(n)})},loadedScriptRegistry:{},loadScriptSync:function(t){e.write?I.domReadyFired?I.notify('Cannot load sync the "'+t+'" script after DOM Ready.',1):(t.indexOf('"')>-1&&(t=encodeURI(t)),e.write('<script src="'+t+'"></script>')):I.notify('Cannot load sync the "'+t+'" script because "document.write" is not available',1)},pushAsyncScript:function(t){I.tools["default"].pushAsyncScript(t)},pushBlockingScript:function(t){I.tools["default"].pushBlockingScript(t)},addEventHandler:t.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:function(t,e,n){t.attachEvent("on"+e,n)},removeEventHandler:t.removeEventListener?function(t,e,n){t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent("on"+e,n)},preventDefault:t.addEventListener?function(t){t.preventDefault()}:function(t){t.returnValue=!1},stopPropagation:function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation()},containsElement:function(t,e){return t.contains?t.contains(e):!!(16&t.compareDocumentPosition(e))},matchesCss:function(n){function i(t,e){var n=e.tagName;return!!n&&t.toLowerCase()===n.toLowerCase()}var a=n.matchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||n.msMatchesSelector;return a?function(n,i){if(i===e||i===t)return!1;try{return a.call(i,n)}catch(r){return!1}}:n.querySelectorAll?function(t,e){if(!e.parentNode)return!1;if(t.match(/^[a-z]+$/i))return i(t,e);try{for(var n=e.parentNode.querySelectorAll(t),a=n.length;a--;)if(n[a]===e)return!0}catch(r){}return!1}:function(t,e){if(t.match(/^[a-z]+$/i))return i(t,e);try{return I.Sizzle.matches(t,[e]).length>0}catch(n){return!1}}}(e.documentElement),cssQuery:(C=e,C.querySelectorAll?function(t,e){var n;try{n=C.querySelectorAll(t)}catch(i){n=[]}e(n)}:function(t,e){if(I.Sizzle){var n;try{n=I.Sizzle(t)}catch(i){n=[]}e(n)}else I.sizzleQueue.push([t,e])}),hasAttr:function(t,e){return t.hasAttribute?t.hasAttribute(e):t[e]!==n},inherit:function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t},extend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},toArray:function(){try{var t=Array.prototype.slice;return t.call(e.documentElement.childNodes,0)[0].nodeType,function(e){return t.call(e,0)}}catch(n){return function(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n]);return e}}}(),equalsIgnoreCase:function(t,e){return null==t?null==e:null!=e&&String(t).toLowerCase()===String(e).toLowerCase()},poll:function(t,e,n){function i(){I.isNumber(n)&&a++>=n||t()||setTimeout(i,e)}var a=0;e=e||1e3,i()},escapeForHtml:function(t){return t?String(t).replace(/\&/g,"&amp;").replace(/\</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#x27;").replace(/\//g,"&#x2F;"):t}};I.availableTools={},I.availableEventEmitters=[],I.fireOnceEvents=["condition","elementexists"],I.initEventEmitters=function(){I.eventEmitters=I.map(I.availableEventEmitters,function(t){return new t})},I.eventEmitterBackgroundTasks=function(){I.each(I.eventEmitters,function(t){"backgroundTasks"in t&&t.backgroundTasks()})},I.initTools=function(t){var e={"default":new y},n=I.settings.euCookieName||"sat_track";for(var i in t)if(t.hasOwnProperty(i)){var a,r,o;if((a=t[i]).euCookie)if("true"!==I.readCookie(n))continue;if(!(r=I.availableTools[a.engine])){var s=[];for(var c in I.availableTools)I.availableTools.hasOwnProperty(c)&&s.push(c);throw new Error("No tool engine named "+a.engine+", available: "+s.join(",")+".")}(o=new r(a)).id=i,e[i]=o}return e},I.preprocessArguments=function(t,e,n,i,a){function r(t){return i&&I.isString(t)?t.toLowerCase():t}function o(t){var c={};for(var l in t)if(t.hasOwnProperty(l)){var d=t[l];I.isObject(d)?c[l]=o(d):I.isArray(d)?c[l]=s(d,i):c[l]=r(I.replace(d,e,n,a))}return c}function s(t){for(var i=[],a=0,s=t.length;a<s;a++){var c=t[a];I.isString(c)?c=r(I.replace(c,e,n)):c&&c.constructor===Object&&(c=o(c)),i.push(c)}return i}return t?s(t,i):t},I.execute=function(t,e,n,i){function a(a){var r=i[a||"default"];if(r)try{r.triggerCommand(t,e,n)}catch(o){I.logError(o)}}if(!_satellite.settings.hideActivity)if(i=i||I.tools,t.engine){var r=t.engine;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s.settings&&s.settings.engine===r&&a(o)}}else t.tool instanceof Array?I.each(t.tool,function(t){a(t)}):a(t.tool)},I.Logger={outputEnabled:!1,messages:[],keepLimit:100,flushed:!1,LEVELS:[null,null,"log","info","warn","error"],message:function(t,e){var n=this.LEVELS[e]||"log";this.messages.push([n,t]),this.messages.length>this.keepLimit&&this.messages.shift(),this.outputEnabled&&this.echo(n,t)},getHistory:function(){return this.messages},clearHistory:function(){this.messages=[]},setOutputState:function(t){this.outputEnabled!=t&&(this.outputEnabled=t,t?this.flush():this.flushed=!1)},echo:function(e,n){t.console&&t.console[e]("SATELLITE: "+n)},flush:function(){this.flushed||(I.each(this.messages,function(t){!0!==t[2]&&(this.echo(t[0],t[1]),t[2]=!0)},this),this.flushed=!0)}},I.notify=I.bind(I.Logger.message,I.Logger),I.cleanText=function(t){return null==t?null:I.trim(t).replace(/\s+/g," ")},I.cleanText.legacy=function(t){return null==t?null:I.trim(t).replace(/\s{2,}/g," ").replace(/[^\000-\177]*/g,"")},I.text=function(t){return t.textContent||t.innerText},I.specialProperties={text:I.text,cleanText:function(t){return I.cleanText(I.text(t))}},I.getObjectProperty=function(t,e,i){for(var a,r=e.split("."),o=t,s=I.specialProperties,c=0,l=r.length;c<l;c++){if(null==o)return n;var d=r[c];if(i&&"@"===d.charAt(0))o=s[d.slice(1)](o);else if(o.getAttribute&&(a=d.match(/^getAttribute\((.+)\)$/))){var u=a[1];o=o.getAttribute(u)}else o=o[d]}return o},I.getToolsByType=function(t){if(!t)throw new Error("Tool type is missing");var e=[];for(var n in I.tools)if(I.tools.hasOwnProperty(n)){var i=I.tools[n];i.settings&&i.settings.engine===t&&e.push(i)}return e},I.setVar=function(){var t=I.data.customVars;if(null==t&&(I.data.customVars={},t=I.data.customVars),"string"==typeof arguments[0])t[arguments[0]]=arguments[1];else if(arguments[0]){var e=arguments[0];for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}},I.dataElementSafe=function(t,e){if(arguments.length>2){var n=arguments[2];"pageview"===e?I.dataElementSafe.pageviewCache[t]=n:"session"===e?I.setCookie("_sdsat_"+t,n):"visitor"===e&&I.setCookie("_sdsat_"+t,n,730)}else{if("pageview"===e)return I.dataElementSafe.pageviewCache[t];if("session"===e||"visitor"===e)return I.readCookie("_sdsat_"+t)}},I.dataElementSafe.pageviewCache={},I.realGetDataElement=function(e){var n;return e.selector?I.hasSelector&&I.cssQuery(e.selector,function(t){if(t.length>0){var i=t[0];"text"===e.property?n=i.innerText||i.textContent:e.property in i?n=i[e.property]:I.hasAttr(i,e.property)&&(n=i.getAttribute(e.property))}}):e.queryParam?n=e.ignoreCase?I.getQueryParamCaseInsensitive(e.queryParam):I.getQueryParam(e.queryParam):e.cookie?n=I.readCookie(e.cookie):e.jsVariable?n=I.getObjectProperty(t,e.jsVariable):e.customJS?n=e.customJS():e.contextHub&&(n=e.contextHub()),I.isString(n)&&e.cleanText&&(n=I.cleanText(n)),n},I.getDataElement=function(t,e,i){if(null==(i=i||I.dataElements[t]))return I.settings.undefinedVarsReturnEmpty?"":null;var a=I.realGetDataElement(i);return a===n&&i.storeLength?a=I.dataElementSafe(t,i.storeLength):a!==n&&i.storeLength&&I.dataElementSafe(t,i.storeLength,a),a||e||(a=i["default"]||""),I.isString(a)&&i.forceLowerCase&&(a=a.toLowerCase()),a},I.getVar=function(i,a,r){var o,s,c=I.data.customVars,l=r?r.target||r.srcElement:null,d={uri:I.URI(),protocol:e.location.protocol,hostname:e.location.hostname};if(I.dataElements&&i in I.dataElements)return I.getDataElement(i);if((s=d[i.toLowerCase()])===n)if("this."===i.substring(0,5))i=i.slice(5),s=I.getObjectProperty(a,i,!0);else if("event."===i.substring(0,6))i=i.slice(6),s=I.getObjectProperty(r,i);else if("target."===i.substring(0,7))i=i.slice(7),s=I.getObjectProperty(l,i);else if("window."===i.substring(0,7))i=i.slice(7),s=I.getObjectProperty(t,i);else if("param."===i.substring(0,6))i=i.slice(6),s=I.getQueryParam(i);else if(o=i.match(/^rand([0-9]+)$/)){var u=Number(o[1]),p=(Math.random()*(Math.pow(10,u)-1)).toFixed(0);s=Array(u-p.length+1).join("0")+p}else s=I.getObjectProperty(c,i);return s},I.getVars=function(t,e,n){var i={};return I.each(t,function(t){i[t]=I.getVar(t,e,n)}),i},I.replace=function(t,e,n,i){return"string"!=typeof t?t:t.replace(/%(.*?)%/g,function(t,a){var r=I.getVar(a,e,n);return null==r?I.settings.undefinedVarsReturnEmpty?"":t:i?I.escapeForHtml(r):r})},I.escapeHtmlParams=function(t){return t.escapeHtml=!0,t},I.searchVariables=function(t,e,n){if(!t||0===t.length)return"";for(var i=[],a=0,r=t.length;a<r;a++){var o=t[a],s=I.getVar(o,e,n);i.push(o+"="+escape(s))}return"?"+i.join("&")},I.fireRule=function(t,e,n){var i=t.trigger;if(i){for(var a=0,r=i.length;a<r;a++){var o=i[a];I.execute(o,e,n)}I.contains(I.fireOnceEvents,t.event)&&(t.expired=!0)}},I.isLinked=function(t){for(var e=t;e;e=e.parentNode)if(I.isLinkTag(e))return!0;return!1},I.firePageLoadEvent=function(t){for(var n=e.location,i={type:t,target:n},a=I.pageLoadRules,r=I.evtHandlers[i.type],o=a.length;o--;){var s=a[o];I.ruleMatches(s,i,n)&&(I.notify('Rule "'+s.name+'" fired.',1),I.fireRule(s,n,i))}for(var c in I.tools)if(I.tools.hasOwnProperty(c)){var l=I.tools[c];l.endPLPhase&&l.endPLPhase(t)}r&&I.each(r,function(t){t(i)})},I.track=function(t){t=t.replace(/^\s*/,"").replace(/\s*$/,"");for(var e=0;e<I.directCallRules.length;e++){var n=I.directCallRules[e];if(n.name===t)return I.notify('Direct call Rule "'+t+'" fired.',1),void I.fireRule(n,location,{type:t})}I.notify('Direct call Rule "'+t+'" not found.',1)},I.basePath=function(){return I.data.host?("https:"===e.location.protocol?"https://"+I.data.host.https:"http://"+I.data.host.http)+"/":this.settings.basePath},I.setLocation=function(e){t.location=e},I.parseQueryParams=function(t){var e=function(t){var e=t;try{e=decodeURIComponent(t)}catch(n){}return e};if(""===t||!1===I.isString(t))return{};0===t.indexOf("?")&&(t=t.substring(1));var n={},i=t.split("&");return I.each(i,function(t){(t=t.split("="))[1]&&(n[e(t[0])]=e(t[1]))}),n},I.getCaseSensitivityQueryParamsMap=function(t){var e=I.parseQueryParams(t),n={};for(var i in e)e.hasOwnProperty(i)&&(n[i.toLowerCase()]=e[i]);return{normal:e,caseInsensitive:n}},I.updateQueryParams=function(){I.QueryParams=I.getCaseSensitivityQueryParamsMap(t.location.search)},I.updateQueryParams(),I.getQueryParam=function(t){return I.QueryParams.normal[t]},I.getQueryParamCaseInsensitive=function(t){return I.QueryParams.caseInsensitive[t.toLowerCase()]},I.encodeObjectToURI=function(t){if(!1===I.isObject(t))return"";var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")},I.readCookie=function(t){for(var i=t+"=",a=e.cookie.split(";"),r=0;r<a.length;r++){for(var o=a[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(i))return o.substring(i.length,o.length)}return n},I.setCookie=function(t,n,i){var a;if(i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3),a="; expires="+r.toGMTString()}else a="";e.cookie=t+"="+n+a+"; path=/"},I.removeCookie=function(t){I.setCookie(t,"",-1)},I.getElementProperty=function(t,e){if("@"===e.charAt(0)){var i=I.specialProperties[e.substring(1)];if(i)return i(t)}return"innerText"===e?I.text(t):e in t?t[e]:t.getAttribute?t.getAttribute(e):n},I.propertiesMatch=function(t,e){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],a=I.getElementProperty(e,n);if("string"==typeof i&&i!==a)return!1;if(i instanceof RegExp&&!i.test(a))return!1}return!0},I.isRightClick=function(t){var e;return t.which?e=3==t.which:t.button&&(e=2==t.button),e},I.ruleMatches=function(t,e,n,i){var a=t.condition,r=t.conditions,o=t.property,s=e.type,c=t.value,l=e.target||e.srcElement,d=n===l;if(t.event!==s&&("custom"!==t.event||t.customEvent!==s))return!1;if(!I.ruleInScope(t))return!1;if("click"===t.event&&I.isRightClick(e))return!1;if(t.isDefault&&i>0)return!1;if(t.expired)return!1;if("inview"===s&&e.inviewDelay!==t.inviewDelay)return!1;if(!d&&(!1===t.bubbleFireIfParent||0!==i&&!1===t.bubbleFireIfChildFired))return!1;if(t.selector&&!I.matchesCss(t.selector,n))return!1;if(!I.propertiesMatch(o,n))return!1;if(null!=c)if("string"==typeof c){if(c!==n.value)return!1}else if(!c.test(n.value))return!1;if(a)try{if(!a.call(n,e,l))return I.notify('Condition for rule "'+t.name+'" not met.',1),!1}catch(p){return I.notify('Condition for rule "'+t.name+'" not met. Error: '+p.message,1),!1}if(r){var u=I.find(r,function(i){try{return!i.call(n,e,l)}catch(p){return I.notify('Condition for rule "'+t.name+'" not met. Error: '+p.message,1),!0}});if(u)return I.notify("Condition "+u.toString()+' for rule "'+t.name+'" not met.',1),!1}return!0},I.evtHandlers={},I.bindEvent=function(t,e){var n=I.evtHandlers;n[t]||(n[t]=[]),n[t].push(e)},I.whenEvent=I.bindEvent,I.unbindEvent=function(t,e){var n=I.evtHandlers;if(n[t]){var i=I.indexOf(n[t],e);n[t].splice(i,1)}},I.bindEventOnce=function(t,e){var n=function(){I.unbindEvent(t,n),e.apply(null,arguments)};I.bindEvent(t,n)},I.isVMLPoisoned=function(t){if(!t)return!1;try{t.nodeName}catch(e){if("Attribute only valid on v:image"===e.message)return!0}return!1},I.handleEvent=function(t){if(!I.$data(t,"eventProcessed")){var e=t.type.toLowerCase(),n=t.target||t.srcElement,i=0,a=I.rules,r=(I.tools,I.evtHandlers[t.type]);if(I.isVMLPoisoned(n))I.notify("detected "+e+" on poisoned VML element, skipping.",1);else{r&&I.each(r,function(e){e(t)}),n&&n.nodeName?I.notify("detected "+e+" on "+n.nodeName,1):I.notify("detected "+e,1);for(var o=n;o;o=o.parentNode){var s=!1;if(I.each(a,function(e){I.ruleMatches(e,t,o,i)&&(I.notify('Rule "'+e.name+'" fired.',1),I.fireRule(e,o,t),i++,e.bubbleStop&&(s=!0))}),s)break}I.$data(t,"eventProcessed",!0)}}},I.onEvent=e.querySelectorAll?function(t){I.handleEvent(t)}:(E=[],(S=function(t){t.selector?E.push(t):I.handleEvent(t)}).pendingEvents=E,S),I.fireEvent=function(t,e){I.onEvent({type:t,target:e})},I.registerEvents=function(t,e){for(var n=e.length-1;n>=0;n--){var i=e[n];I.$data(t,i+".tracked")||(I.addEventHandler(t,i,I.onEvent),I.$data(t,i+".tracked",!0))}},I.registerEventsForTags=function(t,n){for(var i=t.length-1;i>=0;i--)for(var a=t[i],r=e.getElementsByTagName(a),o=r.length-1;o>=0;o--)I.registerEvents(r[o],n)},I.setListeners=function(){var t=["click","submit"];I.each(I.rules,function(e){"custom"===e.event&&e.hasOwnProperty("customEvent")&&!I.contains(t,e.customEvent)&&t.push(e.customEvent)}),I.registerEvents(e,t)},I.getUniqueRuleEvents=function(){return I._uniqueRuleEvents||(I._uniqueRuleEvents=[],I.each(I.rules,function(t){-1===I.indexOf(I._uniqueRuleEvents,t.event)&&I._uniqueRuleEvents.push(t.event)})),I._uniqueRuleEvents},I.setFormListeners=function(){if(!I._relevantFormEvents){var t=["change","focus","blur","keypress"];I._relevantFormEvents=I.filter(I.getUniqueRuleEvents(),function(e){return-1!==I.indexOf(t,e)})}I._relevantFormEvents.length&&I.registerEventsForTags(["input","select","textarea","button"],I._relevantFormEvents)},I.setVideoListeners=function(){if(!I._relevantVideoEvents){var t=["play","pause","ended","volumechange","stalled","loadeddata"];I._relevantVideoEvents=I.filter(I.getUniqueRuleEvents(),function(e){return-1!==I.indexOf(t,e)})}I._relevantVideoEvents.length&&I.registerEventsForTags(["video"],I._relevantVideoEvents)},I.readStoredSetting=function(e){try{return e="sdsat_"+e,t.localStorage.getItem(e)}catch(n){return I.notify("Cannot read stored setting from localStorage: "+n.message,2),null}},I.loadStoredSettings=function(){var t=I.readStoredSetting("debug"),e=I.readStoredSetting("hide_activity");t&&(I.settings.notifications="true"===t),e&&(I.settings.hideActivity="true"===e)},I.isRuleActive=function(t,e){function n(t,e){return e=a(e,{hour:t[g](),minute:t[m]()}),Math.floor(Math.abs((t.getTime()-e.getTime())/864e5))}function i(t,e){function n(t){return 12*t[u]()+t[p]()}return Math.abs(n(t)-n(e))}function a(t,e){var n=new Date(t.getTime());for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];switch(i){case"hour":n[f](a);break;case"minute":n[h](a);break;case"date":n[_](a)}}return n}function r(t,e){return 60*t[g]()+t[m]()>60*e[g]()+e[m]()}function o(t,e){return 60*t[g]()+t[m]()<60*e[g]()+e[m]()}var s=t.schedule;if(!s)return!0;var c=s.utc,l=c?"getUTCDate":"getDate",d=c?"getUTCDay":"getDay",u=c?"getUTCFullYear":"getFullYear",p=c?"getUTCMonth":"getMonth",g=c?"getUTCHours":"getHours",m=c?"getUTCMinutes":"getMinutes",f=c?"setUTCHours":"setHours",h=c?"setUTCMinutes":"setMinutes",_=c?"setUTCDate":"setDate";if(e=e||new Date,s.repeat){if(r(s.start,e))return!1;if(o(s.end,e))return!1;if(e<s.start)return!1;if(s.endRepeat&&e>=s.endRepeat)return!1;if("daily"===s.repeat){if(s.repeatEvery)if(n(s.start,e)%s.repeatEvery!=0)return!1}else if("weekly"===s.repeat){if(s.days){if(!I.contains(s.days,e[d]()))return!1}else if(s.start[d]()!==e[d]())return!1;if(s.repeatEvery)if(n(s.start,e)%(7*s.repeatEvery)!=0)return!1}else if("monthly"===s.repeat){if(s.repeatEvery)if(i(s.start,e)%s.repeatEvery!=0)return!1;if(s.nthWeek&&s.mthDay){if(s.mthDay!==e[d]())return!1;var v=Math.floor((e[l]()-e[d]()+1)/7);if(s.nthWeek!==v)return!1}else if(s.start[l]()!==e[l]())return!1}else if("yearly"===s.repeat){if(s.start[p]()!==e[p]())return!1;if(s.start[l]()!==e[l]())return!1;if(s.repeatEvery)if(Math.abs(s.start[u]()-e[u]())%s.repeatEvery!=0)return!1}}else{if(s.start>e)return!1;if(s.end<e)return!1}return!0},I.isOutboundLink=function(t){if(!t.getAttribute("href"))return!1;var e=t.hostname,n=(t.href,t.protocol);return("http:"===n||"https:"===n)&&(!I.any(I.settings.domainList,function(t){return I.isSubdomainOf(e,t)})&&e!==location.hostname)},I.isLinkerLink=function(t){return!(!t.getAttribute||!t.getAttribute("href"))&&(I.hasMultipleDomains()&&t.hostname!=location.hostname&&!t.href.match(/^javascript/i)&&!I.isOutboundLink(t))},I.isSubdomainOf=function(t,e){if(t===e)return!0;var n=t.length-e.length;return n>0&&I.equalsIgnoreCase(t.substring(n),e)},I.getVisitorId=function(){var t=I.getToolsByType("visitor_id");return 0===t.length?null:t[0].getInstance()},I.URI=function(){var t=e.location.pathname+e.location.search;return I.settings.forceLowerCase&&(t=t.toLowerCase()),t},I.URL=function(){var t=e.location.href;return I.settings.forceLowerCase&&(t=t.toLowerCase()),t},I.filterRules=function(){function t(t){return!!I.isRuleActive(t)}I.rules=I.filter(I.rules,t),I.pageLoadRules=I.filter(I.pageLoadRules,t)},I.ruleInScope=function(t,n){function i(t,e){function n(t){return e.match(t)}var i=t.include,r=t.exclude;if(i&&a(i,e))return!0;if(r){if(I.isString(r)&&r===e)return!0;if(I.isArray(r)&&I.any(r,n))return!0;if(I.isRegex(r)&&n(r))return!0}return!1}function a(t,e){function n(t){return e.match(t)}return!(!I.isString(t)||t===e)||(!(!I.isArray(t)||I.any(t,n))||!(!I.isRegex(t)||n(t)))}n=n||e.location;var r=t.scope;if(!r)return!0;var o=r.URI,s=r.subdomains,c=r.domains,l=r.protocols,d=r.hashes;return(!o||!i(o,n.pathname+n.search))&&((!s||!i(s,n.hostname))&&((!c||!a(c,n.hostname))&&((!l||!a(l,n.protocol))&&(!d||!i(d,n.hash)))))},I.backgroundTasks=function(){new Date;I.setFormListeners(),I.setVideoListeners(),I.loadStoredSettings(),I.registerNewElementsForDynamicRules(),I.eventEmitterBackgroundTasks();new Date},I.registerNewElementsForDynamicRules=function(){function t(e,n){var i=t.cache[e];if(i)return n(i);I.cssQuery(e,function(i){t.cache[e]=i,n(i)})}t.cache={},I.each(I.dynamicRules,function(e){t(e.selector,function(t){I.each(t,function(t){var n="custom"===e.event?e.customEvent:e.event;I.$data(t,"dynamicRules.seen."+n)||(I.$data(t,"dynamicRules.seen."+n,!0),I.propertiesMatch(e.property,t)&&I.registerEvents(t,[n]))})})})},I.ensureCSSSelector=function(){e.querySelectorAll?I.hasSelector=!0:(I.loadingSizzle=!0,I.sizzleQueue=[],I.loadScript(I.basePath()+"selector.js",function(){if(I.Sizzle){var t=I.onEvent.pendingEvents;I.each(t,function(t){I.handleEvent(t)},this),I.onEvent=I.handleEvent,I.hasSelector=!0,delete I.loadingSizzle,I.each(I.sizzleQueue,function(t){I.cssQuery(t[0],t[1])}),delete I.sizzleQueue}else I.logError(new Error("Failed to load selector.js"))}))},I.errors=[],I.logError=function(t){I.errors.push(t),I.notify(t.name+" - "+t.message,5)},I.pageBottom=function(){I.initialized&&(I.pageBottomFired=!0,I.firePageLoadEvent("pagebottom"))},I.stagingLibraryOverride=function(){if("true"===I.readStoredSetting("stagingLibrary")){for(var t,n,i,a=e.getElementsByTagName("script"),r=/^(.*)satelliteLib-([a-f0-9]{40})\.js$/,o=/^(.*)satelliteLib-([a-f0-9]{40})-staging\.js$/,s=0,c=a.length;s<c&&(!(i=a[s].getAttribute("src"))||(t||(t=i.match(r)),n||(n=i.match(o)),!n));s++);if(t&&!n){var l=t[1]+"satelliteLib-"+t[2]+"-staging.js";if(e.write)e.write('<script src="'+l+'"></script>');else{var d=e.createElement("script");d.src=l,e.head.appendChild(d)}return!0}}return!1},I.checkAsyncInclude=function(){t.satellite_asyncLoad&&I.notify('You may be using the async installation of Satellite. In-page HTML and the "pagebottom" event will not work. Please update your Satellite installation for these features.',5)},I.hasMultipleDomains=function(){return!!I.settings.domainList&&I.settings.domainList.length>1},I.handleOverrides=function(){if(A)for(var t in A)A.hasOwnProperty(t)&&(I.data[t]=A[t])},I.privacyManagerParams=function(){var t={};I.extend(t,I.settings.privacyManagement);var e=[];for(var n in I.tools)if(I.tools.hasOwnProperty(n)){var i=I.tools[n],a=i.settings;if(!a)continue;"sc"===a.engine&&e.push(i)}var r=I.filter(I.map(e,function(t){return t.getTrackingServer()}),function(t){return null!=t});t.adobeAnalyticsTrackingServers=r;for(var o=["bannerText","headline","introductoryText","customCSS"],s=0;s<o.length;s++){var c=o[s],l=t[c];if(l)if("text"===l.type)t[c]=l.value;else{if("data"!==l.type)throw new Error("Invalid type: "+l.type);t[c]=I.getVar(l.value)}}return t},I.prepareLoadPrivacyManager=function(){function e(t){function e(){++r===a.length&&(n(),clearTimeout(o),t())}function n(){I.each(a,function(t){I.unbindEvent(t.id+".load",e)})}function i(){n(),t()}var a=I.filter(I.values(I.tools),function(t){return t.settings&&"sc"===t.settings.engine});if(0===a.length)return t();var r=0;I.each(a,function(t){I.bindEvent(t.id+".load",e)});var o=setTimeout(i,5e3)}I.addEventHandler(t,"load",function(){e(I.loadPrivacyManager)})},I.loadPrivacyManager=function(){var t=I.basePath()+"privacy_manager.js";I.loadScript(t,function(){var t=I.privacyManager;t.configure(I.privacyManagerParams()),t.openIfRequired()})},I.init=function(e){if(!I.stagingLibraryOverride()){I.configurationSettings=e;var i=e.tools;for(var a in delete e.tools,e)e.hasOwnProperty(a)&&(I[a]=e[a]);I.data.customVars===n&&(I.data.customVars={}),I.data.queryParams=I.QueryParams.normal,I.handleOverrides(),I.detectBrowserInfo(),I.trackVisitorInfo&&I.trackVisitorInfo(),I.loadStoredSettings(),I.Logger.setOutputState(I.settings.notifications),I.checkAsyncInclude(),I.ensureCSSSelector(),I.filterRules(),I.dynamicRules=I.filter(I.rules,function(t){return t.eventHandlerOnElement}),I.tools=I.initTools(i),I.initEventEmitters(),I.firePageLoadEvent("aftertoolinit"),I.settings.privacyManagement&&I.prepareLoadPrivacyManager(),I.hasSelector&&I.domReady(I.eventEmitterBackgroundTasks),I.setListeners(),I.domReady(function(){I.poll(function(){I.backgroundTasks()},I.settings.recheckEvery||3e3)}),I.domReady(function(){I.domReadyFired=!0,I.pageBottomFired||I.pageBottom(),I.firePageLoadEvent("domready")}),I.addEventHandler(t,"load",function(){I.firePageLoadEvent("windowload")}),I.firePageLoadEvent("pagetop"),I.initialized=!0}},I.pageLoadPhases=["aftertoolinit","pagetop","pagebottom","domready","windowload"],I.loadEventBefore=function(t,e){return I.indexOf(I.pageLoadPhases,t)<=I.indexOf(I.pageLoadPhases,e)},I.flushPendingCalls=function(t){t.pending&&(I.each(t.pending,function(e){var n=e[0],i=e[1],a=e[2],r=e[3];n in t?t[n].apply(t,[i,a].concat(r)):t.emit?t.emit(n,i,a,r):I.notify("Failed to trigger "+n+" for tool "+t.id,1)}),delete t.pending)},I.setDebug=function(e){try{t.localStorage.setItem("sdsat_debug",e)}catch(n){I.notify("Cannot set debug mode: "+n.message,2)}},I.getUserAgent=function(){return navigator.userAgent},I.detectBrowserInfo=function(){function t(t){return function(e){for(var n in t){if(t.hasOwnProperty(n))if(t[n].test(e))return n}return"Unknown"}}var e=t({"IE Edge Mobile":/Windows Phone.*Edge/,"IE Edge":/Edge/,OmniWeb:/OmniWeb/,"Opera Mini":/Opera Mini/,"Opera Mobile":/Opera Mobi/,Opera:/Opera/,Chrome:/Chrome|CriOS|CrMo/,Firefox:/Firefox|FxiOS/,"IE Mobile":/IEMobile/,IE:/MSIE|Trident/,"Mobile Safari":/Mobile(\/[0-9A-z]+)? Safari/,Safari:/Safari/}),n=t({Blackberry:/BlackBerry|BB10/,"Symbian OS":/Symbian|SymbOS/,Maemo:/Maemo/,Android:/Android/,Linux:/ Linux /,Unix:/FreeBSD|OpenBSD|CrOS/,Windows:/[\( ]Windows /,iOS:/iPhone|iPad|iPod/,MacOS:/Macintosh;/}),i=t({Nokia:/Symbian|SymbOS|Maemo/,"Windows Phone":/Windows Phone/,Blackberry:/BlackBerry|BB10/,Android:/Android/,iPad:/iPad/,iPod:/iPod/,iPhone:/iPhone/,Desktop:/.*/}),a=I.getUserAgent();I.browserInfo={browser:e(a),os:n(a),deviceType:i(a)}},I.isHttps=function(){return"https:"==e.location.protocol},I.BaseTool=function(t){this.settings=t||{},this.forceLowerCase=I.settings.forceLowerCase,"forceLowerCase"in this.settings&&(this.forceLowerCase=this.settings.forceLowerCase)},I.BaseTool.prototype={triggerCommand:function(t,e,n){var i=this.settings||{};if(this.initialize&&this.isQueueAvailable()&&this.isQueueable(t)&&n&&I.loadEventBefore(n.type,i.loadOn))this.queueCommand(t,e,n);else{var a=t.command,r=this["$"+a],o=!!r&&r.escapeHtml,s=I.preprocessArguments(t.arguments,e,n,this.forceLowerCase,o);r?r.apply(this,[e,n].concat(s)):this.$missing$?this.$missing$(a,e,n,s):I.notify("Failed to trigger "+a+" for tool "+this.id,1)}},endPLPhase:function(){},isQueueable:function(t){return"cancelToolInit"!==t.command},isQueueAvailable:function(){return!this.initialized&&!this.initializing},flushQueue:function(){this.pending&&(I.each(this.pending,function(t){this.triggerCommand.apply(this,t)},this),this.pending=[])},queueCommand:function(t,e,n){this.pending||(this.pending=[]),this.pending.push([t,e,n])},$cancelToolInit:function(){this._cancelToolInit=!0}},t._satellite=I,I.visibility={isHidden:function(){var t=this.getHiddenProperty();return!!t&&e[t]},isVisible:function(){return!this.isHidden()},getHiddenProperty:function(){var t=["webkit","moz","ms","o"];if("hidden"in e)return"hidden";for(var n=0;n<t.length;n++)if(t[n]+"Hidden"in e)return t[n]+"Hidden";return null},getVisibilityEvent:function(){var t=this.getHiddenProperty();return t?t.replace(/[H|h]idden/,"")+"visibilitychange":null}},I.ecommerce={addItem:function(){var t=[].slice.call(arguments);I.onEvent({type:"ecommerce.additem",target:t})},addTrans:function(){
var t=[].slice.call(arguments);I.data.saleData.sale={orderId:t[0],revenue:t[2]},I.onEvent({type:"ecommerce.addtrans",target:t})},trackTrans:function(){I.onEvent({type:"ecommerce.tracktrans",target:[]})}},i.orientationChange=function(e){var n=0===t.orientation?"portrait":"landscape";e.orientation=n,I.onEvent(e)},I.availableEventEmitters.push(i),a.offset=function(n){var i=null,a=null;try{var r=n.getBoundingClientRect(),o=e,s=o.documentElement,c=o.body,l=t,d=s.clientTop||c.clientTop||0,u=s.clientLeft||c.clientLeft||0,p=l.pageYOffset||s.scrollTop||c.scrollTop,g=l.pageXOffset||s.scrollLeft||c.scrollLeft;i=r.top+p-d,a=r.left+g-u}catch(m){}return{top:i,left:a}},a.getViewportHeight=function(){var n=t.innerHeight,i=e.compatMode;return i&&(n="CSS1Compat"==i?e.documentElement.clientHeight:e.body.clientHeight),n},a.getScrollTop=function(){return e.documentElement.scrollTop?e.documentElement.scrollTop:e.body.scrollTop},a.isElementInDocument=function(t){return e.body.contains(t)},a.isElementInView=function(t){if(!a.isElementInDocument(t))return!1;var e=a.getViewportHeight(),n=a.getScrollTop(),i=a.offset(t).top,r=t.offsetHeight;return null!==i&&!(n>i+r||n+e<i)},a.prototype={backgroundTasks:function(){var t=this.elements;I.each(this.rules,function(e){I.cssQuery(e.selector,function(n){var i=0;I.each(n,function(e){I.contains(t,e)||(t.push(e),i++)}),i&&I.notify(e.selector+" added "+i+" elements.",1)})}),this.track()},checkInView:function(t,e,n){var i=I.$data(t,"inview");if(a.isElementInView(t)){i||I.$data(t,"inview",!0);var r=this;this.processRules(t,function(n,i,a){if(e||!n.inviewDelay)I.$data(t,i,!0),I.onEvent({type:"inview",target:t,inviewDelay:n.inviewDelay});else if(n.inviewDelay){var o=I.$data(t,a);o||(o=setTimeout(function(){r.checkInView(t,!0,n.inviewDelay)},n.inviewDelay),I.$data(t,a,o))}},n)}else{if(!a.isElementInDocument(t)){var o=I.indexOf(this.elements,t);this.elements.splice(o,1)}i&&I.$data(t,"inview",!1),this.processRules(t,function(e,n,i){var a=I.$data(t,i);a&&clearTimeout(a)},n)}},track:function(){for(var t=this.elements.length-1;t>=0;t--)this.checkInView(this.elements[t])},processRules:function(t,e,n){var i=this.rules;n&&(i=I.filter(this.rules,function(t){return t.inviewDelay==n})),I.each(i,function(n,i){var a=n.inviewDelay?"viewed_"+n.inviewDelay:"viewed",r="inview_timeout_id_"+i;I.$data(t,a)||I.matchesCss(n.selector,t)&&e(n,a,r)})}},I.availableEventEmitters.push(a),r.prototype={backgroundTasks:function(){var t=this.eventHandler;I.each(this.rules,function(e){I.cssQuery(e.selector||"video",function(e){I.each(e,function(e){I.$data(e,"videoplayed.tracked")||(I.addEventHandler(e,"timeupdate",I.throttle(t,100)),I.$data(e,"videoplayed.tracked",!0))})})})},evalRule:function(t,e){var n=e.event,i=t.seekable,a=i.start(0),r=i.end(0),o=t.currentTime,s=e.event.match(/^videoplayed\(([0-9]+)([s%])\)$/);if(s){var c=s[2],l=Number(s[1]),d="%"===c?function(){return l<=100*(o-a)/(r-a)}:function(){return l<=o-a};!I.$data(t,n)&&d()&&(I.$data(t,n,!0),I.onEvent({type:n,target:t}))}},onUpdateTime:function(t){var e=this.rules,n=t.target;if(n.seekable&&0!==n.seekable.length)for(var i=0,a=e.length;i<a;i++)this.evalRule(n,e[i])}},I.availableEventEmitters.push(r),o.prototype={obue:!1,initialize:function(){this.attachCloseListeners()},obuePrevUnload:function(){},obuePrevBeforeUnload:function(){},newObueListener:function(){this.obue||(this.obue=!0,this.triggerBeacons())},attachCloseListeners:function(){this.prevUnload=t.onunload,this.prevBeforeUnload=t.onbeforeunload,t.onunload=I.bind(function(e){this.prevUnload&&setTimeout(I.bind(function(){this.prevUnload.call(t,e)},this),1),this.newObueListener()},this),t.onbeforeunload=I.bind(function(e){this.prevBeforeUnload&&setTimeout(I.bind(function(){this.prevBeforeUnload.call(t,e)},this),1),this.newObueListener()},this)},triggerBeacons:function(){I.fireEvent("leave",e)}},I.availableEventEmitters.push(o),c.prototype={initialize:function(){if(this.FB=this.FB||t.FB,this.FB&&this.FB.Event&&this.FB.Event.subscribe)return this.bind(),!0},bind:function(){this.FB.Event.subscribe("edge.create",function(){I.notify("tracking a facebook like",1),I.onEvent({type:"facebook.like",target:e})}),this.FB.Event.subscribe("edge.remove",function(){I.notify("tracking a facebook unlike",1),I.onEvent({type:"facebook.unlike",target:e})}),this.FB.Event.subscribe("message.send",function(){I.notify("tracking a facebook share",1),I.onEvent({type:"facebook.send",target:e})})}},I.availableEventEmitters.push(c),l.prototype={defineEvents:function(){this.oldBlurClosure=function(){I.fireEvent("tabblur",e)},this.oldFocusClosure=I.bind(function(){this.visibilityApiHasPriority?I.fireEvent("tabfocus",e):null!=I.visibility.getHiddenProperty()&&I.visibility.isHidden()||I.fireEvent("tabfocus",e)},this)},attachDetachModernEventListeners:function(t){I[0==t?"removeEventHandler":"addEventHandler"](e,I.visibility.getVisibilityEvent(),this.handleVisibilityChange)},attachDetachOlderEventListeners:function(e,n,i){var a=0==e?"removeEventHandler":"addEventHandler";I[a](n,i,this.oldBlurClosure),I[a](t,"focus",this.oldFocusClosure)},handleVisibilityChange:function(){I.visibility.isHidden()?I.fireEvent("tabblur",e):I.fireEvent("tabfocus",e)},setVisibilityApiPriority:function(e){this.visibilityApiHasPriority=e,this.attachDetachOlderEventListeners(!1,t,"blur"),this.attachDetachModernEventListeners(!1),e?null!=I.visibility.getHiddenProperty()?this.attachDetachModernEventListeners(!0):this.attachDetachOlderEventListeners(!0,t,"blur"):(this.attachDetachOlderEventListeners(!0,t,"blur"),null!=I.visibility.getHiddenProperty()&&this.attachDetachModernEventListeners(!0))},oldBlurClosure:null,oldFocusClosure:null,visibilityApiHasPriority:!0},I.availableEventEmitters.push(l),u.prototype={initialize:function(){this.setupHistoryAPI(),this.setupHashChange()},fireIfURIChanged:function(){var t=I.URL();this.lastURL!==t&&(this.fireEvent(),this.lastURL=t)},fireEvent:function(){I.updateQueryParams(),I.onEvent({type:"locationchange",target:e})},setupSPASupport:function(){this.setupHistoryAPI(),this.setupHashChange()},setupHistoryAPI:function(){var e=t.history;e&&(e.pushState&&(this.originalPushState=e.pushState,e.pushState=this._pushState),e.replaceState&&(this.originalReplaceState=e.replaceState,e.replaceState=this._replaceState)),I.addEventHandler(t,"popstate",this._onPopState)},pushState:function(){var t=this.originalPushState.apply(history,arguments);return this.onPushState(),t},replaceState:function(){var t=this.originalReplaceState.apply(history,arguments);return this.onReplaceState(),t},setupHashChange:function(){I.addEventHandler(t,"hashchange",this._onHashChange)},onReplaceState:function(){setTimeout(this._fireIfURIChanged,0)},onPushState:function(){setTimeout(this._fireIfURIChanged,0)},onPopState:function(){setTimeout(this._fireIfURIChanged,0)},onHashChange:function(){setTimeout(this._fireIfURIChanged,0)},uninitialize:function(){this.cleanUpHistoryAPI(),this.cleanUpHashChange()},cleanUpHistoryAPI:function(){history.pushState===this._pushState&&(history.pushState=this.originalPushState),history.replaceState===this._replaceState&&(history.replaceState=this.originalReplaceState),I.removeEventHandler(t,"popstate",this._onPopState)},cleanUpHashChange:function(){I.removeEventHandler(t,"hashchange",this._onHashChange)}},I.availableEventEmitters.push(u),p.prototype.getStringifiedValue=t.JSON&&t.JSON.stringify||I.stringify,p.prototype.initPolling=function(){0!==this.dataElementsNames.length&&(this.dataElementsStore=this.getDataElementsValues(),I.poll(I.bind(this.checkDataElementValues,this),1e3))},p.prototype.getDataElementsValues=function(){var t={};return I.each(this.dataElementsNames,function(e){var n=I.getVar(e);t[e]=this.getStringifiedValue(n)},this),t},p.prototype.checkDataElementValues=function(){I.each(this.dataElementsNames,I.bind(function(t){var n=this.getStringifiedValue(I.getVar(t));n!==this.dataElementsStore[t]&&(this.dataElementsStore[t]=n,I.onEvent({type:"dataelementchange("+t+")",target:e}))},this))},I.availableEventEmitters.push(p),g.prototype.backgroundTasks=function(){I.each(this.rules,function(t){I.cssQuery(t.selector,function(t){if(t.length>0){var e=t[0];if(I.$data(e,"elementexists.seen"))return;I.$data(e,"elementexists.seen",!0),I.onEvent({type:"elementexists",target:e})}})})},I.availableEventEmitters.push(g),m.prototype={backgroundTasks:function(){var t=this;I.each(this.rules,function(e){var n=e[1],i=e[0];I.cssQuery(n,function(e){I.each(e,function(e){t.trackElement(e,i)})})},this)},trackElement:function(t,e){var n=this,i=I.$data(t,"hover.delays");i?I.contains(i,e)||i.push(e):(I.addEventHandler(t,"mouseover",function(e){n.onMouseOver(e,t)}),I.addEventHandler(t,"mouseout",function(e){n.onMouseOut(e,t)}),I.$data(t,"hover.delays",[e]))},onMouseOver:function(t,e){var n=t.target||t.srcElement,i=t.relatedTarget||t.fromElement;(e===n||I.containsElement(e,n))&&!I.containsElement(e,i)&&this.onMouseEnter(e)},onMouseEnter:function(t){var e=I.$data(t,"hover.delays"),n=I.map(e,function(e){return setTimeout(function(){I.onEvent({type:"hover("+e+")",target:t})},e)});I.$data(t,"hover.delayTimers",n)},onMouseOut:function(t,e){var n=t.target||t.srcElement,i=t.relatedTarget||t.toElement;(e===n||I.containsElement(e,n))&&!I.containsElement(e,i)&&this.onMouseLeave(e)},onMouseLeave:function(t){var e=I.$data(t,"hover.delayTimers");e&&I.each(e,function(t){clearTimeout(t)})}},I.availableEventEmitters.push(m),f.prototype={initialize:function(){var t=this.twttr;t&&"function"==typeof t.ready&&t.ready(I.bind(this.bind,this))},bind:function(){this.twttr.events.bind("tweet",function(t){t&&(I.notify("tracking a tweet button",1),I.onEvent({type:"twitter.tweet",target:e}))})}},I.availableEventEmitters.push(f),I.inherit(h,I.BaseTool),I.extend(h.prototype,{name:"tnt",endPLPhase:function(t){"aftertoolinit"===t&&this.initialize()},initialize:function(){I.notify("Test & Target: Initializing",1),this.initializeTargetPageParams(),this.load()},initializeTargetPageParams:function(){t.targetPageParams&&this.updateTargetPageParams(this.parseTargetPageParamsResult(t.targetPageParams())),this.updateTargetPageParams(this.settings.pageParams),this.setTargetPageParamsFunction()},load:function(){var t=this.getMboxURL(this.settings.mboxURL);!1!==this.settings.initTool?this.settings.loadSync?(I.loadScriptSync(t),this.onScriptLoaded()):(I.loadScript(t,I.bind(this.onScriptLoaded,this)),this.initializing=!0):this.initialized=!0},getMboxURL:function(e){var n=e;return I.isObject(e)&&(n="https:"===t.location.protocol?e.https:e.http),n.match(/^https?:/)?n:I.basePath()+n},onScriptLoaded:function(){I.notify("Test & Target: loaded.",1),this.flushQueue(),this.initialized=!0,this.initializing=!1},$addMbox:function(t,e,n){var i=n.mboxGoesAround,a=i+"{visibility: hidden;}",r=this.appendStyle(a);i in this.styleElements||(this.styleElements[i]=r),this.initialized?this.$addMBoxStep2(null,null,n):this.initializing&&this.queueCommand({command:"addMBoxStep2",arguments:[n]},t,e)},$addMBoxStep2:function(n,i,a){var r=this.generateID(),o=this;I.addEventHandler(t,"load",I.bind(function(){I.cssQuery(a.mboxGoesAround,function(n){var i=n[0];if(i){var s=e.createElement("div");s.id=r,i.parentNode.replaceChild(s,i),s.appendChild(i),t.mboxDefine(r,a.mboxName);var c=[a.mboxName];a.arguments&&(c=c.concat(a.arguments)),t.mboxUpdate.apply(null,c),o.reappearWhenCallComesBack(i,r,a.timeout,a)}})},this)),this.lastMboxID=r},$addTargetPageParams:function(t,e,n){this.updateTargetPageParams(n)},generateID:function(){return"_sdsat_mbox_"+String(Math.random()).substring(2)+"_"},appendStyle:function(t){var n=e.getElementsByTagName("head")[0],i=e.createElement("style");return i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(e.createTextNode(t)),n.appendChild(i),i},reappearWhenCallComesBack:function(t,e,n,i){function a(){var t=r.styleElements[i.mboxGoesAround];t&&(t.parentNode.removeChild(t),delete r.styleElements[i.mboxGoesAround])}var r=this;I.cssQuery('script[src*="omtrdc.net"]',function(t){var e=t[0];if(e){I.scriptOnLoad(e.src,e,function(){I.notify("Test & Target: request complete",1),a(),clearTimeout(i)});var i=setTimeout(function(){I.notify("Test & Target: bailing after "+n+"ms",1),a()},n)}else I.notify("Test & Target: failed to find T&T ajax call, bailing",1),a()})},updateTargetPageParams:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[I.replace(n)]=I.replace(t[n]));I.extend(this.targetPageParamsStore,e)},getTargetPageParams:function(){return this.targetPageParamsStore},setTargetPageParamsFunction:function(){t.targetPageParams=I.bind(this.getTargetPageParams,this)},parseTargetPageParamsResult:function(t){var e=t;return I.isArray(t)&&(t=t.join("&")),I.isString(t)&&(e=I.parseQueryParams(t)),e}}),I.availableTools.tnt=h,I.inherit(_,I.BaseTool),I.extend(_.prototype,{name:"Nielsen",endPLPhase:function(t){switch(t){case"pagetop":this.initialize();break;case"pagebottom":this.enableTracking&&(this.queueCommand({command:"sendFirstBeacon",arguments:[]}),this.flushQueueWhenReady())}},defineListeners:function(){this.onTabFocus=I.bind(function(){this.notify("Tab visible, sending view beacon when ready",1),this.tabEverVisible=!0,this.flushQueueWhenReady()},this),this.onPageLeave=I.bind(function(){this.notify("isHuman? : "+this.isHuman(),1),this.isHuman()&&this.sendDurationBeacon()},this),this.onHumanDetectionChange=I.bind(function(t){this==t.target.target&&(this.human=t.target.isHuman)},this)},initialize:function(){this.initializeTracking(),this.initializeDataProviders(),this.initializeNonHumanDetection(),this.tabEverVisible=I.visibility.isVisible(),this.tabEverVisible?this.notify("Tab visible, sending view beacon when ready",1):I.bindEventOnce("tabfocus",this.onTabFocus),this.initialized=!0},initializeTracking:function(){this.initialized||(this.notify("Initializing tracking",1),this.addRemovePageLeaveEvent(this.enableTracking),this.addRemoveHumanDetectionChangeEvent(this.enableTracking),this.initialized=!0)},initializeDataProviders:function(){var t,e=this.getAnalyticsTool();this.dataProvider.register(new _.DataProvider.VisitorID(I.getVisitorId())),e?(t=new _.DataProvider.Generic("rsid",function(){return e.settings.account}),this.dataProvider.register(t)):this.notify("Missing integration with Analytics: rsid will not be sent.")},initializeNonHumanDetection:function(){I.nonhumandetection?(I.nonhumandetection.init(),this.setEnableNonHumanDetection(0!=this.settings.enableNonHumanDetection),this.settings.nonHumanDetectionDelay>0&&this.setNonHumanDetectionDelay(1e3*parseInt(this.settings.nonHumanDetectionDelay))):this.notify("NHDM is not available.")},getAnalyticsTool:function(){if(this.settings.integratesWith)return I.tools[this.settings.integratesWith]},flushQueueWhenReady:function(){this.enableTracking&&this.tabEverVisible&&I.poll(I.bind(function(){if(this.isReadyToTrack())return this.flushQueue(),!0},this),100,20)},isReadyToTrack:function(){return this.tabEverVisible&&this.dataProvider.isReady()},$setVars:function(t,e,n){for(var i in n){var a=n[i];"function"==typeof a&&(a=a()),this.settings[i]=a}this.notify("Set variables done",2),this.prepareContextData()},$setEnableTracking:function(t,e,n){this.notify("Will"+(n?"":" not")+" track time on page",1),this.enableTracking!=n&&(this.addRemovePageLeaveEvent(n),this.addRemoveHumanDetectionChangeEvent(n),this.enableTracking=n)},$sendFirstBeacon:function(){this.sendViewBeacon()},setEnableNonHumanDetection:function(t){t?I.nonhumandetection.register(this):I.nonhumandetection.unregister(this)},setNonHumanDetectionDelay:function(t){I.nonhumandetection.register(this,t)},addRemovePageLeaveEvent:function(t){this.notify((t?"Attach onto":"Detach from")+" page leave event",1),I[0==t?"unbindEvent":"bindEvent"]("leave",this.onPageLeave)},addRemoveHumanDetectionChangeEvent:function(t){this.notify((t?"Attach onto":"Detach from")+" human detection change event",1),I[0==t?"unbindEvent":"bindEvent"]("humandetection.change",this.onHumanDetectionChange)},sendViewBeacon:function(){this.notify("Tracked page view.",1),this.sendBeaconWith()},sendDurationBeacon:function(){if(I.timetracking&&"function"==typeof I.timetracking.timeOnPage&&null!=I.timetracking.timeOnPage()){this.notify("Tracked close",1),this.sendBeaconWith({timeOnPage:Math.round(I.timetracking.timeOnPage()/1e3),duration:"D",timer:"timer"});var t;for(t=0;t<this.magicConst;t++)"0"}else this.notify("Could not track close due missing time on page",5)},sendBeaconWith:function(t){this.enableTracking&&this[this.beaconMethod].call(this,this.prepareUrl(t))},plainBeacon:function(t){var e=new Image;e.src=t,e.width=1,e.height=1,e.alt=""},navigatorSendBeacon:function(t){navigator.sendBeacon(t)},prepareUrl:function(t){var e=this.settings;return I.extend(e,this.dataProvider.provide()),I.extend(e,t),this.preparePrefix(this.settings.collectionServer)+this.adapt.convertToURI(this.adapt.toNielsen(this.substituteVariables(e)))},preparePrefix:function(t){return"//"+encodeURIComponent(t)+".imrworldwide.com/cgi-bin/gn?"},substituteVariables:function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=I.replace(t[n]));return e},prepareContextData:function(){if(this.getAnalyticsTool()){var t=this.settings;t.sdkVersion=_satellite.publishDate,this.getAnalyticsTool().$setVars(null,null,{contextData:this.adapt.toAnalytics(this.substituteVariables(t))})}else this.notify("Adobe Analytics missing.")},isHuman:function(){return this.human},onTabFocus:function(){},onPageLeave:function(){},onHumanDetectionChange:function(){},notify:function(t,e){I.notify(this.logPrefix+t,e)},beaconMethod:"plainBeacon",adapt:null,enableTracking:!1,logPrefix:"Nielsen: ",tabEverVisible:!1,human:!0,magicConst:2e6}),_.DataProvider={},_.DataProvider.Generic=function(t,e){this.key=t,this.valueFn=e},I.extend(_.DataProvider.Generic.prototype,{isReady:function(){return!0},getValue:function(){return this.valueFn()},provide:function(){this.isReady()||_.prototype.notify("Not yet ready to provide value for: "+this.key,5);var t={};return t[this.key]=this.getValue(),t}}),_.DataProvider.VisitorID=function(t,e,n){this.key=e||"uuid",this.visitorInstance=t,this.visitorInstance&&(this.visitorId=t.getMarketingCloudVisitorID([this,this._visitorIdCallback])),this.fallbackProvider=n||new _.UUID},I.inherit(_.DataProvider.VisitorID,_.DataProvider.Generic),I.extend(_.DataProvider.VisitorID.prototype,{isReady:function(){return null===this.visitorInstance||!!this.visitorId},getValue:function(){return this.visitorId||this.fallbackProvider.get()},_visitorIdCallback:function(t){this.visitorId=t}}),_.DataProvider.Aggregate=function(){this.providers=[];for(var t=0;t<arguments.length;t++)this.register(arguments[t])},I.extend(_.DataProvider.Aggregate.prototype,{register:function(t){this.providers.push(t)},isReady:function(){return I.every(this.providers,function(t){return t.isReady()})},provide:function(){var t={};return I.each(this.providers,function(e){I.extend(t,e.provide())}),t}}),_.UUID=function(){},I.extend(_.UUID.prototype,{generate:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},get:function(){var t=I.readCookie(this.key("uuid"));return t||(t=this.generate(),I.setCookie(this.key("uuid"),t),t)},key:function(t){return"_dtm_nielsen_"+t}}),_.DataAdapters=function(){},I.extend(_.DataAdapters.prototype,{toNielsen:function(t){var e=(new Date).getTime(),i={c6:"vc,",c13:"asid,",c15:"apn,",c27:"cln,",c32:"segA,",c33:"segB,",c34:"segC,",c35:"adrsid,",c29:"plid,",c30:"bldv,",c40:"adbid,"},a={ci:t.clientId,c6:t.vcid,c13:t.appId,c15:t.appName,prv:1,forward:0,ad:0,cr:t.duration||"V",rt:"text",st:"dcr",prd:"dcr",r:e,at:t.timer||"view",c16:t.sdkVersion,c27:t.timeOnPage||0,c40:t.uuid,c35:t.rsid,ti:e,sup:0,c32:t.segmentA,c33:t.segmentB,c34:t.segmentC,asn:t.assetName,c29:t.playerID,c30:t.buildVersion};for(key in a)if(a[key]!==n&&null!=a[key]&&a[key]!==n&&null!=a&&""!=a){var r=encodeURIComponent(a[key]);i.hasOwnProperty(key)&&r&&(r=i[key]+r),a[key]=r}return this.filterObject(a)},toAnalytics:function(t){return this.filterObject({"a.nielsen.clientid":t.clientId,"a.nielsen.vcid":t.vcid,"a.nielsen.appid":t.appId,"a.nielsen.appname":t.appName,"a.nielsen.accmethod":"0","a.nielsen.ctype":"text","a.nielsen.sega":t.segmentA,"a.nielsen.segb":t.segmentB,"a.nielsen.segc":t.segmentC,"a.nielsen.asset":t.assetName})},convertToURI:function(t){if(!1===I.isObject(t))return"";var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n+"="+t[n]);return e.join("&")},filterObject:function(t){for(var e in t)!t.hasOwnProperty(e)||null!=t[e]&&t[e]!==n||delete t[e];return t}}),I.availableTools.nielsen=_,I.inherit(v,I.BaseTool),I.extend(v.prototype,{name:"SC",endPLPhase:function(t){t===this.settings.loadOn&&this.initialize(t)},initialize:function(e){if(!this._cancelToolInit)if(this.settings.initVars=this.substituteVariables(this.settings.initVars,{type:e}),!1!==this.settings.initTool){var n=this.settings.sCodeURL||I.basePath()+"s_code.js";"object"==typeof n&&(n="https:"===t.location.protocol?n.https:n.http),n.match(/^https?:/)||(n=I.basePath()+n),this.settings.initVars&&this.$setVars(null,null,this.settings.initVars),I.loadScript(n,I.bind(this.onSCodeLoaded,this)),this.initializing=!0}else this.initializing=!0,this.pollForSC()},getS:function(e,n){var i=n&&n.hostname||t.location.hostname,a=this.concatWithToolVarBindings(n&&n.setVars||this.varBindings),r=n&&n.addEvent||this.events,o=this.getAccount(i),s=t.s_gi;if(!s)return null;if(this.isValidSCInstance(e)||(e=null),!o&&!e)return I.notify("Adobe Analytics: tracker not initialized because account was not found",1),null;e=e||s(o);var c="D"+I.appVersion;return"undefined"!=typeof e.tagContainerMarker?e.tagContainerMarker=c:"string"==typeof e.version&&e.version.substring(e.version.length-5)!=="-"+c&&(e.version+="-"+c),e.sa&&!0!==this.settings.skipSetAccount&&!1!==this.settings.initTool&&e.sa(this.settings.account),this.applyVarBindingsOnTracker(e,a),r.length>0&&(e.events=r.join(",")),I.getVisitorId()&&(e.visitor=I.getVisitorId()),e},onSCodeLoaded:function(t){this.initialized=!0,this.initializing=!1;var e=["Adobe Analytics: loaded",t?" (manual)":"","."];I.notify(e.join(""),1),I.fireEvent(this.id+".load",this.getS()),t||(this.flushQueueExceptTrackLink(),this.sendBeacon()),this.flushQueue()},getAccount:function(e){return t.s_account?t.s_account:e&&this.settings.accountByHost&&this.settings.accountByHost[e]||this.settings.account},getTrackingServer:function(){var e=this,n=e.getS();if(n){if(n.ssl&&n.trackingServerSecure)return n.trackingServerSecure;if(n.trackingServer)return n.trackingServer}var i,a=e.getAccount(t.location.hostname);if(!a)return null;var r,o,s="",c=n&&n.dc;return(r=(i=a).indexOf(","))>=0&&(i=i.gb(0,r)),i=i.replace(/[^A-Za-z0-9]/g,""),s||(s="2o7.net"),c=c?(""+c).toLowerCase():"d1","2o7.net"==s&&("d1"==c?c="112":"d2"==c&&(c="122"),o=""),r=i+"."+c+"."+o+s},sendBeacon:function(){var e=this.getS(t[this.settings.renameS||"s"]);e?this.settings.customInit&&!1===this.settings.customInit(e)?I.notify("Adobe Analytics: custom init suppressed beacon",1):(this.settings.executeCustomPageCodeFirst&&this.applyVarBindingsOnTracker(e,this.varBindings),this.executeCustomSetupFuns(e),e.t(),this.clearVarBindings(),this.clearCustomSetup(),I.notify("Adobe Analytics: tracked page view",1)):I.notify("Adobe Analytics: page code not loaded",1)},pollForSC:function(){I.poll(I.bind(function(){if("function"==typeof t.s_gi)return this.onSCodeLoaded(!0),!0},this))},flushQueueExceptTrackLink:function(){if(this.pending){for(var t=[],e=0;e<this.pending.length;e++){var n=this.pending[e];"trackLink"===n[0].command?t.push(n):this.triggerCommand.apply(this,n)}this.pending=t}},isQueueAvailable:function(){return!this.initialized},substituteVariables:function(t,e){var n={};for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];n[i]=I.replace(a,location,e)}return n},$setVars:function(t,e,n){for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];"function"==typeof a&&(a=a()),this.varBindings[i]=a}I.notify("Adobe Analytics: set variables.",2)},$customSetup:function(t,e,n){this.customSetupFuns.push(function(i){n.call(t,e,i)})},isValidSCInstance:function(t){return!!t&&"function"==typeof t.t&&"function"==typeof t.tl},concatWithToolVarBindings:function(t){var e=this.settings.initVars||{};return I.map(["trackingServer","trackingServerSecure"],function(n){e[n]&&!t[n]&&(t[n]=e[n])}),t},applyVarBindingsOnTracker:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},clearVarBindings:function(){this.varBindings={}},clearCustomSetup:function(){this.customSetupFuns=[]},executeCustomSetupFuns:function(e){I.each(this.customSetupFuns,function(n){n.call(t,e)})},$trackLink:function(t,e,n){var i=(n=n||{}).type,a=n.linkName;!a&&t&&t.nodeName&&"a"===t.nodeName.toLowerCase()&&(a=t.innerHTML),a||(a="link clicked");var r=n&&n.setVars,o=n&&n.addEvent||[],s=this.getS(null,{setVars:r,addEvent:o});if(s){var c=s.linkTrackVars,l=s.linkTrackEvents,d=this.definedVarNames(r);n&&n.customSetup&&n.customSetup.call(t,e,s),o.length>0&&d.push("events"),s.products&&d.push("products"),d=this.mergeTrackLinkVars(s.linkTrackVars,d),o=this.mergeTrackLinkVars(s.linkTrackEvents,o),s.linkTrackVars=this.getCustomLinkVarsList(d);var u=I.map(o,function(t){return t.split(":")[0]});s.linkTrackEvents=this.getCustomLinkVarsList(u),s.tl(!0,i||"o",a),I.notify(["Adobe Analytics: tracked link ","using: linkTrackVars=",I.stringify(s.linkTrackVars),"; linkTrackEvents=",I.stringify(s.linkTrackEvents)].join(""),1),s.linkTrackVars=c,s.linkTrackEvents=l}else I.notify("Adobe Analytics: page code not loaded",1)},mergeTrackLinkVars:function(t,e){return t&&(e=t.split(",").concat(e)),e},getCustomLinkVarsList:function(t){var e=I.indexOf(t,"None");return e>-1&&t.length>1&&t.splice(e,1),t.join(",")},definedVarNames:function(t){t=t||this.varBindings;var e=[];for(var n in t)t.hasOwnProperty(n)&&/^(eVar[0-9]+)|(prop[0-9]+)|(hier[0-9]+)|campaign|purchaseID|channel|server|state|zip|pageType$/.test(n)&&e.push(n);return e},$trackPageView:function(t,e,n){var i=n&&n.setVars,a=n&&n.addEvent||[],r=this.getS(null,{setVars:i,addEvent:a});r?(r.linkTrackVars="",r.linkTrackEvents="",this.executeCustomSetupFuns(r),n&&n.customSetup&&n.customSetup.call(t,e,r),r.t(),this.clearVarBindings(),this.clearCustomSetup(),I.notify("Adobe Analytics: tracked page view",1)):I.notify("Adobe Analytics: page code not loaded",1)},$postTransaction:function(e,n,i){var a=I.data.transaction=t[i],r=this.varBindings,o=this.settings.fieldVarMapping;if(I.each(a.items,function(t){this.products.push(t)},this),r.products=I.map(this.products,function(t){var e=[];if(o&&o.item)for(var n in o.item)if(o.item.hasOwnProperty(n)){var i=o.item[n];e.push(i+"="+t[n]),"event"===i.substring(0,5)&&this.events.push(i)}var a=["",t.product,t.quantity,t.unitPrice*t.quantity];return e.length>0&&a.push(e.join("|")),a.join(";")},this).join(","),o&&o.transaction){var s=[];for(var c in o.transaction)if(o.transaction.hasOwnProperty(c)){i=o.transaction[c];s.push(i+"="+a[c]),"event"===i.substring(0,5)&&this.events.push(i)}r.products.length>0&&(r.products+=","),r.products+=";;;;"+s.join("|")}},$addEvent:function(){for(var t=2,e=arguments.length;t<e;t++)this.events.push(arguments[t])},$addProduct:function(){for(var t=2,e=arguments.length;t<e;t++)this.products.push(arguments[t])}}),I.availableTools.sc=v,I.inherit(y,I.BaseTool),I.extend(y.prototype,{name:"Default",$loadIframe:function(e,n,i){var a=i.pages,r=i.loadOn,o=I.bind(function(){I.each(a,function(t){this.loadIframe(e,n,t)},this)},this);r||o(),"domready"===r&&I.domReady(o),"load"===r&&I.addEventHandler(t,"load",o)},loadIframe:function(t,n,i){var a=e.createElement("iframe");a.style.display="none";var r=I.data.host,o=i.data,s=this.scriptURL(i.src),c=I.searchVariables(o,t,n);r&&(s=I.basePath()+s),s+=c,a.src=s;var l=e.getElementsByTagName("body")[0];l?l.appendChild(a):I.domReady(function(){e.getElementsByTagName("body")[0].appendChild(a)})},scriptURL:function(t){return(I.settings.scriptDir||"")+t},$loadScript:function(e,n,i){var a=i.scripts,r=i.sequential,o=i.loadOn,s=I.bind(function(){r?this.loadScripts(e,n,a):I.each(a,function(t){this.loadScripts(e,n,[t])},this)},this);o?"domready"===o?I.domReady(s):"load"===o&&I.addEventHandler(t,"load",s):s()},loadScripts:function(t,e,n){function i(){r.length>0&&a&&r.shift().call(t,e,o);var c=n.shift();if(c){var l=I.data.host,d=s.scriptURL(c.src);l&&(d=I.basePath()+d),a=c,I.loadScript(d,i)}}try{n=n.slice(0);var a,r=this.asyncScriptCallbackQueue,o=e.target||e.srcElement,s=this}catch(c){console.error("scripts is",I.stringify(n))}i()},$loadBlockingScript:function(t,e,n){var i=n.scripts;n.loadOn;I.bind(function(){I.each(i,function(n){this.loadBlockingScript(t,e,n)},this)},this)()},loadBlockingScript:function(t,e,n){var i=this.scriptURL(n.src),a=I.data.host,r=e.target||e.srcElement;a&&(i=I.basePath()+i),this.argsForBlockingScripts.push([t,e,r]),I.loadScriptSync(i)},pushAsyncScript:function(t){this.asyncScriptCallbackQueue.push(t)},pushBlockingScript:function(t){var e=this.argsForBlockingScripts.shift(),n=e[0];t.apply(n,e.slice(1))},$writeHTML:I.escapeHtmlParams(function(t,n){if(!I.domReadyFired&&e.write)if("pagebottom"===n.type||"pagetop"===n.type)for(var i=2,a=arguments.length;i<a;i++){var r=arguments[i].html;r=I.replace(r,t,n),e.write(r)}else I.notify("You can only use writeHTML on the `pagetop` and `pagebottom` events.",1);else I.notify("Command writeHTML failed. You should try appending HTML using the async option.",1)}),linkNeedsDelayActivate:function(e,n){n=n||t;var i=e.tagName,a=e.getAttribute("target"),r=e.getAttribute("href");return(!i||"a"===i.toLowerCase())&&(!!r&&(!a||"_blank"!==a&&("_top"===a?n.top===n:"_parent"!==a&&("_self"===a||(!n.name||a===n.name)))))},$delayActivateLink:function(t,e){if(this.linkNeedsDelayActivate(t)){I.preventDefault(e);var n=I.settings.linkDelay||100;setTimeout(function(){I.setLocation(t.href)},n)}},isQueueable:function(t){return"writeHTML"!==t.command}}),I.availableTools["default"]=y,I.inherit(b,I.BaseTool),I.extend(b.prototype,{initialize:function(){var t=this.settings;if(!1!==this.settings.initTool){var e=t.url;e="string"==typeof e?I.basePath()+e:I.isHttps()?e.https:e.http,I.loadScript(e,I.bind(this.onLoad,this)),this.initializing=!0}else this.initialized=!0},isQueueAvailable:function(){return!this.initialized},onLoad:function(){this.initialized=!0,this.initializing=!1,this.settings.initialBeacon&&this.settings.initialBeacon(),this.flushQueue()},endPLPhase:function(t){t===this.settings.loadOn&&(I.notify(this.name+": Initializing at "+t,1),this.initialize())},$fire:function(t,e,n){this.initializing?this.queueCommand({command:"fire",arguments:[n]},t,e):n.call(this.settings,t,e)}}),I.availableTools.am=b,I.availableTools.adlens=b,I.availableTools.aem=b,I.availableTools.__basic=b,I.extend(k.prototype,{getInstance:function(){return this.instance},initialize:function(){var t,e=this.settings;I.notify("Visitor ID: Initializing tool",1),null!==(t=this.createInstance(e.mcOrgId,e.initVars))&&(e.customerIDs&&this.applyCustomerIDs(t,e.customerIDs),e.autoRequest&&t.getMarketingCloudVisitorID(),this.instance=t)},createInstance:function(t,e){if(!I.isString(t))return I.notify('Visitor ID: Cannot create instance using mcOrgId: "'+t+'"',4),null;t=I.replace(t),I.notify('Visitor ID: Create instance using mcOrgId: "'+t+'"',1),e=this.parseValues(e);var n=Visitor.getInstance(t,e);return I.notify("Visitor ID: Set variables: "+I.stringify(e),1),n},applyCustomerIDs:function(t,e){var n=this.parseIds(e);t.setCustomerIDs(n),I.notify("Visitor ID: Set Customer IDs: "+I.stringify(n),1)},parseValues:function(t){if(!1===I.isObject(t))return{};var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=I.replace(t[n]));return e},parseIds:function(t){var e={};if(!1===I.isObject(t))return{};for(var n in t)if(t.hasOwnProperty(n)){var i=I.replace(t[n].id);i!==t[n].id&&i&&(e[n]={},e[n].id=i,e[n].authState=Visitor.AuthState[t[n].authState])}return e}}),I.availableTools.visitor_id=k;var D={allowLinker:function(){return I.hasMultipleDomains()},cookieDomain:function(){var e=I.settings.domainList,n=I.find(e,function(e){var n=t.location.hostname;return I.equalsIgnoreCase(n.slice(n.length-e.length),e)});return n?"."+n:"auto"}};I.inherit(w,I.BaseTool),I.extend(w.prototype,{name:"GAUniversal",endPLPhase:function(t){t===this.settings.loadOn&&(I.notify("GAU: Initializing at "+t,1),this.initialize(),this.flushQueue(),this.trackInitialPageView())},getTrackerName:function(){return this.settings.trackerSettings.name||""},isPageCodeLoadSuppressed:function(){return!1===this.settings.initTool||!0===this._cancelToolInit},initialize:function(){if(this.isPageCodeLoadSuppressed())return this.initialized=!0,void I.notify("GAU: Page code not loaded (suppressed).",1);var e="ga"
;t[e]=t[e]||this.createGAObject(),t.GoogleAnalyticsObject=e,I.notify("GAU: Page code loaded.",1),I.loadScriptOnce(this.getToolUrl());var n=this.settings;(D.allowLinker()&&!1!==n.allowLinker?this.createAccountForLinker():this.createAccount(),this.executeInitCommands(),n.customInit)&&(!1===(0,n.customInit)(t[e],this.getTrackerName())&&(this.suppressInitialPageView=!0));this.initialized=!0},createGAObject:function(){var t=function(){t.q.push(arguments)};return t.q=[],t.l=1*new Date,t},createAccount:function(){this.create()},createAccountForLinker:function(){var t={};D.allowLinker()&&(t.allowLinker=!0),this.create(t),this.call("require","linker"),this.call("linker:autoLink",this.autoLinkDomains(),!1,!0)},create:function(t){var e=this.settings.trackerSettings;(e=I.preprocessArguments([e],location,null,this.forceLowerCase)[0]).trackingId=I.replace(this.settings.trackerSettings.trackingId,location),e.cookieDomain||(e.cookieDomain=D.cookieDomain()),I.extend(e,t||{}),this.call("create",e)},autoLinkDomains:function(){var t=location.hostname;return I.filter(I.settings.domainList,function(e){return e!==t})},executeInitCommands:function(){var t=this.settings;t.initCommands&&I.each(t.initCommands,function(t){var e=t.splice(2,t.length-2);t=t.concat(I.preprocessArguments(e,location,null,this.forceLowerCase)),this.call.apply(this,t)},this)},trackInitialPageView:function(){this.suppressInitialPageView||this.isPageCodeLoadSuppressed()||this.call("send","pageview")},call:function(){"function"==typeof ga?this.isCallSuppressed()||(arguments[0]=this.cmd(arguments[0]),this.log(I.toArray(arguments)),ga.apply(t,arguments)):I.notify("GA Universal function not found!",4)},isCallSuppressed:function(){return!0===this._cancelToolInit},$missing$:function(t,e,n,i){i=i||[],i=[t].concat(i),this.call.apply(this,i)},getToolUrl:function(){var t=this.settings,e=I.isHttps();return t.url?e?t.url.https:t.url.http:(e?"https://ssl":"http://www")+".google-analytics.com/analytics.js"},cmd:function(t){var e=["send","set","get"],n=this.getTrackerName();return n&&-1!==I.indexOf(e,t)?n+"."+t:t},log:function(t){var e="GA Universal: sent command "+t[0]+" to tracker "+(this.getTrackerName()||"default");if(t.length>1){I.stringify(t.slice(1));e+=" with parameters "+I.stringify(t.slice(1))}e+=".",I.notify(e,1)}}),I.availableTools.ga_universal=w,I.inherit(x,I.BaseTool),I.extend(x.prototype,{name:"GA",initialize:function(){var e=this.settings,n=t._gaq,i=e.initCommands||[],a=e.customInit;if(n||(_gaq=[]),this.isSuppressed())I.notify("GA: page code not loaded(suppressed).",1);else{if(!n&&!x.scriptLoaded){var r=I.isHttps(),o=(r?"https://ssl":"http://www")+".google-analytics.com/ga.js";e.url&&(o=r?e.url.https:e.url.http),I.loadScript(o),x.scriptLoaded=!0,I.notify("GA: page code loaded.",1)}e.domain;var s=e.trackerName,c=D.allowLinker(),l=I.replace(e.account,location);I.settings.domainList;_gaq.push([this.cmd("setAccount"),l]),c&&_gaq.push([this.cmd("setAllowLinker"),c]),_gaq.push([this.cmd("setDomainName"),D.cookieDomain()]),I.each(i,function(t){var e=[this.cmd(t[0])].concat(I.preprocessArguments(t.slice(1),location,null,this.forceLowerCase));_gaq.push(e)},this),a&&(this.suppressInitialPageView=!1===a(_gaq,s)),e.pageName&&this.$overrideInitialPageView(null,null,e.pageName)}this.initialized=!0,I.fireEvent(this.id+".configure",_gaq,s)},isSuppressed:function(){return this._cancelToolInit||!1===this.settings.initTool},tracker:function(){return this.settings.trackerName},cmd:function(t){var e=this.tracker();return e?e+"._"+t:"_"+t},$overrideInitialPageView:function(t,e,n){this.urlOverride=n},trackInitialPageView:function(){if(!this.isSuppressed()&&!this.suppressInitialPageView)if(this.urlOverride){var t=I.preprocessArguments([this.urlOverride],location,null,this.forceLowerCase);this.$missing$("trackPageview",null,null,t)}else this.$missing$("trackPageview")},endPLPhase:function(t){t===this.settings.loadOn&&(I.notify("GA: Initializing at "+t,1),this.initialize(),this.flushQueue(),this.trackInitialPageView())},call:function(t,e,n,i){if(!this._cancelToolInit){this.settings;var a=this.tracker(),r=this.cmd(t);i=i?[r].concat(i):[r];_gaq.push(i),a?I.notify("GA: sent command "+t+" to tracker "+a+(i.length>1?" with parameters ["+i.slice(1).join(", ")+"]":"")+".",1):I.notify("GA: sent command "+t+(i.length>1?" with parameters ["+i.slice(1).join(", ")+"]":"")+".",1)}},$missing$:function(t,e,n,i){this.call(t,e,n,i)},$postTransaction:function(e,n,i){var a=I.data.customVars.transaction=t[i];this.call("addTrans",e,n,[a.orderID,a.affiliation,a.total,a.tax,a.shipping,a.city,a.state,a.country]),I.each(a.items,function(t){this.call("addItem",e,n,[t.orderID,t.sku,t.product,t.category,t.unitPrice,t.quantity])},this),this.call("trackTrans",e,n)},delayLink:function(t,e){var n=this;if(D.allowLinker()&&t.hostname.match(this.settings.linkerDomains)&&!I.isSubdomainOf(t.hostname,location.hostname)){I.preventDefault(e);var i=I.settings.linkDelay||100;setTimeout(function(){n.call("link",t,e,[t.href])},i)}},popupLink:function(e,n){if(t._gat){I.preventDefault(n);var i=this.settings.account,a=t._gat._createTracker(i)._getLinkerUrl(e.href);t.open(a)}},$link:function(t,e){"_blank"===t.getAttribute("target")?this.popupLink(t,e):this.delayLink(t,e)},$trackEvent:function(t,e){var n=Array.prototype.slice.call(arguments,2);if(n.length>=4&&null!=n[3]){var i=parseInt(n[3],10);I.isNaN(i)&&(i=1),n[3]=i}this.call("trackEvent",t,e,n)}}),I.availableTools.ga=x,_satellite.init({tools:{e0e72fc955d760db889110d0154dd4eb:{engine:"ga_universal",pageName:"%URI%",forceLowerCase:!0,euCookie:!1,loadOn:"pagebottom",initCommands:[],customInit:function(){var e=t.gdpr&&t.gdpr.is_getting_country_code_from_api,n=t.gdpr&&"US"!==t.gdpr.country_code&&!t.gdpr.cookie_consent;if(e||n)return!1},trackerSettings:{trackingId:"UA-65171904-1",name:"e0e72fc955d760db889110d0154dd4eb",allowAnchor:!1},allowLinker:null},"63e899025459638945b0e6ce19a388bd":{engine:"sc",loadOn:"pagebottom",account:"rstonedev",euCookie:!1,sCodeURL:"289d54d757557d351111069aa8acc743e67b15e6/s-code-contents-5657c9d31a7492805867b669745604136ce3d697-staging.js",renameS:"s_rs",initVars:{charSet:"UTF-8",currencyCode:"USD",visitorNamespace:"rosettastone",trackingServer:"o.rosettastone.com",trackingServerSecure:"s.rosettastone.com",cookieDomainPeriods:"2",trackInlineStats:!0,trackDownloadLinks:!0,linkDownloadFileTypes:"avi,css,csv,doc,docx,eps,exe,jpg,js,m4v,mov,mp3,pdf,png,ppt,pptx,rar,svg,tab,txt,vsd,vxd,wav,wma,wmv,xls,xlsx,xml,zip",trackExternalLinks:!0,linkInternalFilters:"javascript:,mailto:,tel:",linkLeaveQueryString:!1,dynamicVariablePrefix:"D=",eVar50:"+1"},customInit:function(e){function i(){if(!t.s_loadT){var e=(new Date).getTime(),n=t.performance?performance.timing:0,i=n?n.requestStart:t.inHeadTS||0;s_loadT=i?Math.round((e-i)/100):""}return s_loadT}t.s=e||s_Obj||{};var a,r,o,s={CSID:"52505",SPOTID:"4476300",tEvar:"eVar72",errorEvar:"eVar74",timeoutEvent:"event75",requestURL:"http://fls.doubleclick.net/json?spot=[SPOTID]&src=[CSID]&var=[VAR]&host=integrate.112.2o7.net%2Fdfa_echo%3Fvar%3D[VAR]%26AQE%3D1%26A2S%3D1&ord=[RAND]",maxDelay:"1000",visitCookie:"s_dfa",clickThroughParam:"dfa",searchCenterParam:n,newRsidsProp:n};(a=e).visitorNameSpace="rosettastone",a.trackDownloadLinks=!0,a.trackExternalLinks=!0,a.trackInlineStats=!0,a.linkLeaveQueryString=!0,a.linkInternalFilters="javascript:,rosettastone.com",a.linkLeaveQueryString=!1,a.dstStart="03/12/2017",a.dstEnd="11/05/2017",a.currentYear="2017",t.o_targetProduct&&(a.products=t.o_targetProduct),a.eVar37=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][(r=new Date).getDay()]+"|"+(r.getHours()>12?r.getHours()-12+":"+("0"+r.getMinutes()).slice(-2)+"PM":r.getHours()+":"+("0"+r.getMinutes()).slice(-2)+"AM"),a.eVar38=(o=new Date).getFullYear()+"-"+("0"+(o.getMonth()+1)).slice(-2)+"-"+("0"+o.getDate()).slice(-2)+" "+o.getHours()+":"+~~(o.getMinutes()/10)+"0",a.pageURL=location.toString(),function(e){function n(t){if(t.eVar41=t.getNewRepeat(),t.events=t.getCartOpen("s_scOpen"),t.events=t.resetGetCartOpen(),t.eVar1&&(t.eVar6=t.crossVisitParticipation(t.eVar1,"s_ev6","730","5",">","",0)),t.eVar17=t.getTimeToConvert("purchase","s_ttc17","",!0),t.tnt=t.trackTNT(),t.prop5=t.getPreviousValue(t.pageName,"s_pv"),t.prop5){var e=t.getPercentPageViewed(t.prop5);void 0!==e&&(t.prop4=e[1],t.prop3=e[1]-e[2],t.prop4&&(!t.prop3||t.prop3<=0)&&(t.prop3="0"))}t.getTimeParting("n","-5"),i()&&(t.prop12=t.eVar59=i())}e._tpDST={2015:"3/8,11/1",2016:"3/13,11/6",2017:"3/12,11/5",2018:"3/11,11/4",2019:"3/10,11/3"},e.usePlugins=!0,e.doPlugins=n,e.wd=t,e.fl=new Function("x","l","return x?(''+x).substring(0,l):x"),e.pt=new Function("x","d","f","a","var s=this,t=x,z=0,y,r,l='length';while(t){y=t.indexOf(d);y=y<0?t[l]:y;t=t.substring(0,y);r=s[f](t,a);if(r)return r;z+=y+d[l];t=x.substring(z,x[l]);t=z<x[l]?t:''}return''"),e.rep=new Function("x","o","n","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(o);else if(!o)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(o,i);a[a.length]=x.substring(i,j<0?x.length:j);i=j;if(i>=0)i+=o.length}}x='';j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(n);else for(i=1;i<j;i++)x+=n+a[i]}}return x"),e.ape=new Function("x","var s=this,h='0123456789ABCDEF',f='+~!*()\\'',i,c=s.charSet,n,l,e,y='';c=c?c.toUpperCase():'';if(x){x=''+x;if(s.em==3){x=encodeURIComponent(x);for(i=0;i<f.length;i++){n=f.substring(i,i+1);if(x.indexOf(n)>=0)x=s.rep(x,n,'%'+n.charCodeAt(0).toString(16).toUpperCase())}}else if(c=='AUTO'&&('').charCodeAt){for(i=0;i<x.length;i++){c=x.substring(i,i+1);n=x.charCodeAt(i);if(n>127){l=0;e='';while(n||l<4){e=h.substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+='%u'+e}else if(c=='+')y+='%2B';else y+=escape(c)}x=y}else x=s.rep(escape(''+x),'+','%2B');if(c&&c!='AUTO'&&s.em==1&&x.indexOf('%u')<0&&x.indexOf('%U')<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+'u00'+x.substring(i);i=x.indexOf('%',i)}}}return x"),e.epa=new Function("x","var s=this,y,tcf;if(x){x=s.rep(''+x,'+',' ');if(s.em==3){tcf=new Function('x','var y,e;try{y=decodeURIComponent(x)}catch(e){y=unescape(x)}return y');return tcf(x)}else return unescape(x)}return y"),e.p_fo=new Function("n","var s=this;if(!s.__fo){s.__fo=new Object;}if(!s.__fo[n]){s.__fo[n]=new Object;return 1;}else {return 0;}"),e.apl=new Function("l","v","d","u","var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i<a.length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCase()));}}if(!m)l=l?l+d+v:v;return l"),e.p_c=new Function("v","c","var x=v.indexOf('=');return c.toLowerCase()==v.substring(0,x<0?v.length:x).toLowerCase()?v:0"),e.p_gh=new Function("var s=this;if(!s.eo&&!s.lnk)return '';var o=s.eo?s.eo:s.lnk,y=s.ot(o),n=s.oid(o),x=o.s_oidt;if(s.eo&&o==s.eo){while(o&&!n&&y!='BODY'){o=o.parentElement?o.parentElement:o.parentNode;if(!o)return '';y=s.ot(o);n=s.oid(o);x=o.s_oidt}}return o.href?o.href:'';"),e.repl=new Function("x","o","n","var i=x.indexOf(o),l=n.length;while(x&&i>=0){x=x.substring(0,i)+n+x.substring(i+o.length);i=x.indexOf(o,i+l)}return x"),e.split=new Function("l","d","var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x++]=l.substring(0,i);l=l.substring(i+d.length);}return a"),e.join=new Function("v","p","var s=this;var f,b,d,w;if(p){f=p.front?p.front:'';b=p.back?p.back:'';d=p.delim?p.delim:'';w=p.wrap?p.wrap:'';}var str='';for(var x=0;x<v.length;x++){if(typeof(v[x])=='object' )str+=s.join( v[x],p);else str+=w+v[x]+w;if(x<v.length-1)str+=d;}return f+str+b;"),e.getValOnce=new Function("v","c","e","t","var s=this,a=new Date,v=v?v:'',c=c?c:'s_gvo',e=e?e:0,i=t=='m'?60000:86400000;k=s.c_r(c);if(v){a.setTime(a.getTime()+e*i);s.c_w(c,v,e==0?0:a);}return v==k?'':v"),e.getPreviousValue=new Function("v","c","el","var s=this,t=new Date,i,j,r='';t.setTime(t.getTime()+1800000);if(el){if(s.events){i=s.split(el,',');j=s.split(s.events,',');for(x in i){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,'no value',t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,'no value',t);return r}"),e.getQueryParam=new Function("p","d","u","h","var s=this,v='',i,j,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.location);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p.length:i;t=s.p_gpv(p.substring(0,i),u+'',h);if(t){t=t.indexOf('#')>-1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i==p.length?i:i+1)}return v"),e.p_gpv=new Function("k","u","h","var s=this,v='',q;j=h==1?'#':'?';i=u.indexOf(j);if(k&&i>-1){q=u.substring(i+1);v=s.pt(q,'&','p_gvf',k)}return v"),e.p_gvf=new Function("t","k","if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'True':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s.epa(v)}return''"),e.getNewRepeat=new Function("d","cn","var s=this,e=new Date(),cval,sval,ct=e.getTime();d=d?d:30;cn=cn?cn:'s_nr';e.setTime(ct+d*24*60*60*1000);cval=s.c_r(cn);if(cval.length==0){s.c_w(cn,ct+'-New',e);return'New';}sval=s.split(cval,'-');if(ct-sval[0]<30*60*1000&&sval[1]=='New'){s.c_w(cn,ct+'-New',e);return'New';}else{s.c_w(cn,ct+'-Repeat',e);return'Repeat';}"),e.getCartOpen=new Function("c","var s=this,t=new Date,e=s.events?s.events:'',i=0;t.setTime(t.getTime()+1800000);if(s.c_r(c)||e.indexOf('scOpen')>-1){if(!s.c_w(c,1,t)){s.c_w(c,1,0)}}else{if(e.indexOf('scAdd')>-1){if(s.c_w(c,1,t)){i=1}else if(s.c_w(c,1,0)){i=1}}}if(i){e=e+',scOpen';s.prop11='Cart Started'}return e"),e.resetGetCartOpen=new Function("var s=this,t=new Date,e=s.events?s.events:'';t.setTime(t.getTime()+10000);if(e.indexOf('purchase')>-1){if(s.c_r('s_scOpen')||e.indexOf('scOpen')>-1){if(!s.c_w('s_scOpen','',t)){s.c_w('s_scOpen','',0);}}}return e"),e.getTimeToConvert=new Function("te","cn","ex","ac","var s=this;var ed=0;var ex=(ex)?parseInt(ex):0;var ds=new Date();var ct = ds.getTime();if(ex>0){var ed=new Date();ed.setDate(ed.getDate()+ex);}var ttc=s.c_r(cn);if(!s.c_r(cn)){s.c_w(cn,ct,ed);ttc = ct;}te=te.split(',');for(var i=0;i<te.length;i++){if(s.inList(te[i],s.events,',')){if(ttc=='repeat')return ttc;ds.setTime(ct-ttc);td=ds.getTime();var d=Math.floor(td/86400000);td-=d*86400000;var h=Math.floor(td/3600000);td-=h*3600000;var m=Math.ceil(td/60000);if(h>0){if(m>0){h++;m=0;}}if(d>0){if((h>0)||(m>0)){d++;h=0;m=0;}}var ncv=(ac)?ct:'repeat';s.c_w(cn,ncv,ed);return d+':'+h+':'+m;}}return '';"),e.inList=new Function("v","l","d","var s=this,ar=Array(),i=0,d=(d)?d:',';if(typeof(l)=='string'){if(s.split)ar=s.split(l,d);else if(l.split)ar=l.split(d);else return-1}else ar=l;while(i<ar.length){if(v==ar[i])return true;i++}return false;"),e.crossVisitParticipation=new Function("v","cn","ex","ct","dl","ev","dv","var s=this,ce;if(typeof(dv)==='undefined')dv=0;if(s.events&&ev){var ay=s.split(ev,',');var ea=s.split(s.events,',');for(var u=0;u<ay.length;u++){for(var x=0;x<ea.length;x++){if(ay[u]==ea[x]){ce=1;}}}}if(!v||v==''){if(ce){s.c_w(cn,'');return'';}else return'';}v=escape(v);var arry=new Array(),a=new Array(),c=s.c_r(cn),g=0,h=new Array();if(c&&c!=''){arry=s.split(c,'],[');for(q=0;q<arry.length;q++){z=arry[q];z=s.repl(z,'[','');z=s.repl(z,']','');z=s.repl(z,\"'\",'');arry[q]=s.split(z,',')}}var e=new Date();e.setFullYear(e.getFullYear()+5);if(dv==0&&arry.length>0&&arry[arry.length-1][0]==v)arry[arry.length-1]=[v,new Date().getTime()];else arry[arry.length]=[v,new Date().getTime()];var start=arry.length-ct<0?0:arry.length-ct;var td=new Date();for(var x=start;x<arry.length;x++){var diff=Math.round((td.getTime()-arry[x][1])/86400000);if(diff<ex){h[g]=unescape(arry[x][0]);a[g]=[arry[x][0],arry[x][1]];g++;}}var data=s.join(a,{delim:',',front:'[',back:']',wrap:\"'\"});s.c_w(cn,data,e);var r=s.join(h,{delim:dl});if(ce)s.c_w(cn,'');return r;"),e.getPercentPageViewed=new Function("n","var s=this,W=window,EL=W.addEventListener,AE=W.attachEvent,E=['load','unload','scroll','resize','zoom','keyup','mouseup','touchend','orientationchange','pan'];W.s_Obj=s;s_PPVid=(n=='-'?s.pageName:n)||s.pageName||location.href;if(!W.s_PPVevent){s.s_PPVg=function(n,r){var k='s_ppv',p=k+'l',c=s.c_r(n||r?k:p),a=c.indexOf(',')>-1?c.split(',',10):[''],l=a.length,i;a[0]=unescape(a[0]);r=r||(n&&n!=a[0])||0;a.length=10;if(typeof a[0]!='string')a[0]='';for(i=1;i<10;i++)a[i]=!r&&i<l?parseInt(a[i])||0:0;if(l<10||typeof a[9]!='string')a[9]='';if(r){s.c_w(p,c);s.c_w(k,'?')}return a};W.s_PPVevent=function(e){var W=window,D=document,B=D.body,E=D.documentElement,S=window.screen||0,Ho='offsetHeight',Hs='scrollHeight',Ts='scrollTop',Wc='clientWidth',Hc='clientHeight',C=100,M=Math,J='object',N='number',s=W.s_Obj||W.s||0;e=e&&typeof e==J?e.type||'':'';if(!e.indexOf('on'))e=e.substring(2);s_PPVi=W.s_PPVi||0;if(W.s_PPVt&&!e){clearTimeout(s_PPVt);s_PPVt=0;if(s_PPVi<2)s_PPVi++}if(typeof s==J){var h=M.max(B[Hs]||E[Hs],B[Ho]||E[Ho],B[Hc]||E[Hc]),X=W.innerWidth||E[Wc]||B[Wc]||0,Y=W.innerHeight||E[Hc]||B[Hc]||0,x=S?S.width:0,y=S?S.height:0,r=M.round(C*(W.devicePixelRatio||1))/C,b=(D.pageYOffset||E[Ts]||B[Ts]||0)+Y,p=h>0&&b>0?M.round(C*b/h):0,O=W.orientation,o=!isNaN(O)?M.abs(o)%180:Y>X?0:90,L=e=='load'||s_PPVi<1,a=s.s_PPVg(s_PPVid,L),V=function(i,v,f,n){i=parseInt(typeof a==J&&a.length>i?a[i]:'0')||0;v=typeof v!=N?i:v;v=f||v>i?v:i;return n?v:v>C?C:v<0?0:v};if(new RegExp('(iPod|iPad|iPhone)').exec(navigator.userAgent||'')&&o){o=x;x=y;y=o}o=o?'P':'L';a[9]=L?'':a[9].substring(0,1);s.c_w('s_ppv',escape(W.s_PPVid)+','+V(1,p,L)+','+(L||!V(2)?p:V(2))+','+V(3,b,L,1)+','+X+','+Y+','+x+','+y+','+r+','+a[9]+(a[9]==o?'':o))}if(!W.s_PPVt&&e!='unload')W.s_PPVt=setTimeout(W.s_PPVevent,333)};for(var f=W.s_PPVevent,i=0;i<E.length;i++)if(EL)EL(E[i],f,false);else if(AE)AE('on'+E[i],f);f()};var a=s.s_PPVg();return!n||n=='-'?a[1]:a"),e.getTimeParting=new Function("h","z","var s=this,od;od=new Date('1/1/2000');if(od.getDay()!=6||od.getMonth()!=0){return'Data Not Available';}else{var H,M,D,U,ds,de,tm,da=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],d=new Date();z=z?z:0;z=parseFloat(z);if(s._tpDST){var dso=s._tpDST[d.getFullYear()].split(/,/);ds=new Date(dso[0]+'/'+d.getFullYear());de=new Date(dso[1]+'/'+d.getFullYear());if(h=='n'&&d>ds&&d<de){z=z+1;}else if(h=='s'&&(d>de||d<ds)){z=z+1;}}d=d.getTime()+(d.getTimezoneOffset()*60000);d=new Date(d+(3600000*z));H=d.getHours();M=d.getMinutes();M=(M<10)?'0'+M:M;D=d.getDay();U=' AM';if(H>=12){U=' PM';H=H-12;}if(H==0){H=12;}D=da[D];tm=H+':'+M+U;return(tm+'|'+D);}"),e.trackTNT=new Function("v","p","b","var s=this,n='s_tnt',q='s_tntref',p=(p)?p:n,v=(v)?v:n,r='',pm=false,b=(b)?b:true; s.Util = s.Util || {}; s.Util.getQueryParam = s.Util.getQueryParam || s.getQueryParam.bind(s);if(s.Util.getQueryParam(q)!=''){s.referrer=s.Util.getQueryParam(q);}else if(s.c_r(q)!=''){s.referrer=s.c_r(q);document.cookie=q+'=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;';}else if((document.cookie.indexOf(q)!=-1&&s.c_r(q)=='')||(location.search.indexOf(q+'=')!=-1&&s.Util.getQueryParam(q)=='')){s.referrer='Typed/Bookmarked';document.cookie=q+'=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;';}if(s.Util.getQueryParam(p)!=''){pm=s.Util.getQueryParam(p);}else if(s.c_r(p)){pm=s.c_r(p);document.cookie=p+'=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;';}else if(s.c_r(p)==''&&s.Util.getQueryParam(p)==''){pm='';}if(pm)r+=(pm+',');if(window[v]!=undefined)r+=window[v];if(b)window[v]='';return r;"),e.addEvent=new Function("e",'var s = this; if( !!s.events && s.events.match(new RegExp(e, "i")) ){ return s.events; } s.events = (!!s.events) ? s.events += (", " + e) : e; return s.events;'),e.partnerDFACheck=new Function("cfg","var s=this,c=cfg.visitCookie,src=cfg.clickThroughParam,scp=cfg.searchCenterParam,p=cfg.newRsidsProp,tv=cfg.tEvar,dl=',',cr,nc,q,g,gs,i,j,k,fnd,v=1,t=new Date,cn=0,ca=new Array,aa=new Array,cs=new Array;t.setTime(t.getTime()+1800000);cr=s.c_r(c);if(cr)v=0;ca=cr.split(dl);aa=s.account?s.account.split(dl):s.un.split(dl);for(i=0;i<aa.length;i++){fnd=0;for(j=0;j<ca.length;j++)if(aa[i]==ca[j])fnd=1;if(!fnd){cs[cn]=aa[i];cn++;}}if(cs.length){for(k=0;k<cs.length;k++)nc=(nc?nc+dl:'')+cs[k];cr=(cr?cr+dl:'')+nc;s.vpr(p,nc);v=1;}q=window.location.search.toLowerCase();q=s.replace?s.replace(q,'?','&'):s.repl(q,'?','&');g=q.indexOf('&'+src.toLowerCase()+'=');gs=(scp)?q.indexOf('&'+scp.toLowerCase()+'='):-1;if(g>-1){s.vpr(p,cr);v=1;}else if(gs>-1){v=0;s.vpr(tv,'SearchCenter/AMO Visitors');}if(!s.c_w(c,cr,t))s.c_w(c,cr,0);if(!s.c_r(c))v=0;return v>=1;"),e.vpr=new Function("vs","v","if(typeof(v)!='undefined' && vs){var s=this; eval('s.'+vs+'=\"'+v+'\"')}")}(e),i(),e.maxDelay=s.maxDelay,e.loadModule("Integrate"),e.Integrate.onLoad=function(e){e.partnerDFACheck(s)&&(e.Integrate.add("DFA"),e.Integrate.DFA.tEvar=s.tEvar,e.Integrate.DFA.errorEvar=s.errorEvar,e.Integrate.DFA.timeoutEvent=s.timeoutEvent,e.Integrate.DFA.CSID=s.CSID,e.Integrate.DFA.SPOTID=s.SPOTID,e.Integrate.DFA.get(s.requestURL),e.Integrate.DFA.setVars=function(e,n){t[n.VAR]?n.ec?n.errorEvar&&(e[n.errorEvar]=n.ec):e[n.tEvar]="DFA-"+(n.lis?n.lis:0)+"-"+(n.lip?n.lip:0)+"-"+(n.lastimp?n.lastimp:0)+"-"+(n.lastimptime?n.lastimptime:0)+"-"+(n.lcs?n.lcs:0)+"-"+(n.lcp?n.lcp:0)+"-"+(n.lastclk?n.lastclk:0)+"-"+(n.lastclktime?n.lastclktime:0):n.timeoutEvent&&(e.events=(e.events&&""!=e.events?e.events+",":"")+n.timeoutEvent)})};var c=t.gdpr&&t.gdpr.is_getting_country_code_from_api,l=t.gdpr&&"US"!==t.gdpr.country_code&&!t.gdpr.cookie_consent;if(c||l)return!1}},"97963cb20a6d58863f2d1303599dbac0b35144a7":{engine:"tnt",mboxURL:"289d54d757557d351111069aa8acc743e67b15e6/mbox-contents-97963cb20a6d58863f2d1303599dbac0b35144a7-staging.js",loadSync:!0,pageParams:{}},"7a717b6a3e6098cc15777a5693aa7b61a5942543":{engine:"visitor_id",loadOn:"pagetop",name:"VisitorID",mcOrgId:"5E38123F5245B2D20A490D45@AdobeOrg",autoRequest:!0,initVars:{}}},pageLoadRules:[{name:"AnalyticsFamily_Cart",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){function a(t,e,n){t&&t[n]&&(e[n]=t[n])}function r(n){function i(t){for(var e=(t||"").split(","),n=0,i=e.length||0;n<i;n++){e[n]=e[n].split(";");for(var a=0,r=5;a<r;a++)!e[n][a]&&(e[n][a]=""),e[n][a].match(/event8/)&&(e[n][a]="")}return e}function a(t){for(var e=[],n=0,i=t.length;n<i;n++)e.push(t[n].join(";"));return e.join(",")}function r(t,e,n){for(var i=0,r=s.length;i<r;i++){var o=s[i][5]||"";o.match(new RegExp(e,"i"))&&(o=o.replace(new RegExp("(\\|(?!.*\\|))?"+e+"(=[^\\|]+\\|?)?","ig"),"")),o+=(o.length?"|":"")+e+"="+n,s[i][5]=o}t.products=a(s),"undefined"!=typeof t[e]&&delete t[e]}function o(t){return(t=t||"").match(/\/lp\//)||t.match(/\/hslp/)?"Landing Page":t.match(/\/(learn|aprende)-/)?t.match(/\/learn-([^\/]+)\/[^?\/]+/)?"Product Page":"Catalog Page":t.match(/\/homeschool-/)?"Catalog Page":t.match(/product-upgrade/gi)?"Upgrade Page":t.match(/pricing/gi)?"Pricing Page":t.match(/gifting/gi)?"Gifting Page":""===t?"Direct to Cart":"Unknown"}n.wrapt=n.t||function(){};var s=i(rs.products);if((n.events||"").match(/scAdd/))for(var c=0,l=s.length;c<l;c++)s[c][3]&&(s[c][4]="event8="+s[c][3])&&(s[c][5]="eVar29="+s[c][3]);else if((n.events||"").match(/scCheckout/))for(c=0,l=s.length;c<l;c++)s[c][3]&&(s[c][4]="event9="+s[c][3]);n.products=a(s),n.t=function(){n.products=n.products||"",n.events=n.events||"";var i,a=function(t){if(t&&!t.match)return!1;if(t.match(/scAdd/i)){var e=(_satellite.getVar("products").match(/;(\d+);/)||[])[1];if(e)return e}return!!t.match(/purchase/i)&&"Order"}(n.events);if(a&&(n.prop21=a),"object"==typeof n.contextData){for(var s in n.contextData)n.contextData.hasOwnProperty(s)&&s.match(/:/)&&"function"==typeof s.replace&&(n.contextData[s.replace(/:/,"_")]=n.contextData[s],delete n.contextData[s]);n.contextData.US_shipping&&(n.contextData.US_shiptype=n.contextData.US_shipping,delete n.contextData.US_shipping)}if(n.events.match(/event20/i))n.addEvent("event8"),n.addEvent("scAdd"),r(n,"eVar30","Cart Upsell"),setTimeout(function(){var e=t.o_targetProduct&&o_targetProduct.split(",");if(!e||!e.length)return!1;for(;e.length&&!e.slice(-1)[0].match(/event10/i);)e.pop();var i=e.length&&e.slice(-1)[0];i&&(n.products=i,n.events="scRemove, event10",n.tl())},1e3);else if(n.events.match(/scAdd/i))if(n.events.match(/event68/i)){if(t.prod_sku&&prod_sku.length){for(var c=prod_sku.slice(),l=n.products.split(";").slice(1,2);c[0]==l;)c.shift();c[0]&&r(n,"eVar28",c[0])}r(n,"eVar30","Cart Cross-sell")}else t.location.href===e.referrer?r(n,"eVar30","Cart Quantity Changer"):r(n,"eVar30",o(e.referrer));else n.events.match(/scPurchase/i)||n.events.match(/scRemove/i)||n.events.match(/scCheckout/i)||location.pathname.match(/us_en_store_view\/freetrial/)||"function"==typeof n.addEvent&&n.addEvent("scView");return location.pathname.match(/us_en_store_view\/freetrial\/web\/success/)&&(n.eVar90="undefined"!=typeof rs.GUID?rs.GUID:"",jQuery(".success-video").on("click",function(){n.events="",n.tl(this,"o","Video")}),jQuery(".success-image").on("click",function(){n.events="",n.tl(this,"o","Intro-Lesson")}),jQuery(".trial-button").on("click",function(){n.events="",n.tl(this,"o","Trial-Success")})),"localStorage"in t&&(i=localStorage.getItem("internat_swap"))&&(n.events="",n.addEvent("scAdd"),n.addEvent("event56"),n.addEvent("event8"),n.products=_satellite.getVar("products"),r(n,"eVar30","Cart Product Changer"),setTimeout(function(){n.clearVars(),n.addEvent("scRemove"),n.addEvent("event10"),n.products=i,n.tl()},100),localStorage.removeItem("internat_swap")),n.wrapt.apply(this,arguments)}}i.pageType="",i.channel=rs.channel,rs.recommended?(rs.events.indexOf("event20")>-1?i.addEvent?i.addEvent("event20"):i.events=rs.events:(i.events=rs.revents||rs.events,rs.list1&&(i.list1=rs.list1)),rs.rproducts&&(i.products=rs.rproducts)):(rs.products&&(i.products=rs.products),rs.events&&(i.events=rs.events)),location.pathname.match(/us_en_store_view\/freetrial/)&&"undefined"==typeof rs.events&&(rs.events=""),location.pathname.match(/us_en_store_view\/freetrial\/web\/success/)&&(rs.events=rs.events.split(",").filter(function(t){if("purchase"!==t)return!0}).join(","),i.events=rs.events),location.pathname.match(/us_en_store_view\/freetrial/)&&(i.products="",rs.products="",rs.events=rs.events.split(",").filter(function(t){if("scOpen"==t||"scAdd"==t||"scCheckout"==t)return!1}).join(","),i.events=rs.events),location.pathname.match(/us_en_store_view\/freetrial\/web\/success/)&&(i.products=";91353",rs.products=";91353"),rs.ship_method&&(i.contextData["US:shipping"]=rs.ship_method);var o=a.bind(this,rs,i);o("purchaseID"),rs.orderid&&(i.eVar1=rs.orderid,i.transactionID=rs.orderid),o("eVar2"),i.eVar6=i.crossVisitParticipation(rs.orderid,"s_ev6","730","5",">","",0),"sessionStorage"in t&&sessionStorage.getItem("manualPromoEntryFlag")&&(sessionStorage.removeItem("manualPromoEntryFlag"),o("eVar10")),o("eVar25"),o("eVar27"),o("eVar36"),o("eVar42"),o("eVar51"),o("eVar52"),i.eVar57="Page",o("eVar60"),t.om_ev=i.split(i.events,","),i.events.indexOf("scCheckout")>-1?i.prop11="Cart Checkout":i.events.indexOf("event47")>-1?i.prop11="Cart Review":i.events.indexOf("purchase")>-1&&(i.prop11="Order"),r(i)}]},{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-586c0ee964746d5934004886-staging.js"},{src:"satellite-591ca88064746d39c6001b8b-staging.js"}]}]}],scope:{URI:{exclude:["lp/solo/sitewide"]},subdomains:{include:["secure"]}},event:"pagebottom"},{name:"AnalyticsFamily_EandECustom",trigger:[{engine:"sc",command:"customSetup",arguments:[function(t,n){$(e).on("eande_requestform",function(t,e){var i={business:"52",k12:"53",publicsector:"59",highered:"60"}[e&&e.vertical||"business"]||"52";n.clearVars(),n.addEvent("event"+i),n.tl()}),$(e).on("eande_formsubmit",function(t,e){var i={business:"42",k12:"43",publicsector:"49",highered:"50"}[e&&e.vertical||"business"]||"42";n.clearVars(),n.addEvent("event"+i),n.tl()})}]}],scope:{URI:{include:["lp/compare-products","lp/home_2018"]}},event:"pagebottom"},{name:"AnalyticsFamily_LandingPages",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){!function(){function n(){var n=/onemonth=true/i.test(t.location.search)?"03":"01";return Array.prototype.slice.call(e.querySelectorAll(".js_oct_2016_addtocart:not(.js_addtocart_mobile)")).filter(function(t){return t.getAttribute("data-lvl")!==n}).reduce(function(t,e){var n=e.getAttribute("data-lang"),i=e.getAttribute("data-media"),a=e.getAttribute("data-lvl"),r=RSI({cat:n,media:i,lvl:a})[0];return t+(";"+r.sku+";;;;eVar29="+r.price.toFixed(2)+",")},"").slice(0,-1)}i.products=n()}()}]}],scope:{URI:{include:[/sbsr|ppc/i]}},event:"pagebottom"},{name:"AnalyticsFamily_NonCart",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){var a=e.querySelector("a.top_nav_sign_in"),r=e.querySelector("li.sign-in");a&&a.addEventListener("click",function(){i.addEvent("event31"),i.tl(this,"o","Sign In link"),i.clearVars()}),r&&r.addEventListener("click",function(){i.addEvent("event31"),i.tl(!0,"o","Sign In link"),i.clearVars()});var o=e.location.pathname;(-1!=o.indexOf("aprende-")||-1!=o.indexOf("buy-")||e.location.pathname.match(/\/gifts/i))&&(i.addEvent("event36"),i.prop11="Catalog Page View");var s,c,l,d,u="",p=e.cookie;cookieArray=p.split(";");for(var g=0;g<cookieArray.length;g++)"orderid"==cookieArray[g].split("=")[0].replace(/^\s+|\s+$/g,"")&&(u=cookieArray[g].split("=")[1]);if(i.eVar6=u,i.eVar6=i.crossVisitParticipation(u,"s_orderid","730","5",">"),"undefined"!=typeof rs&&rs&&"USA"==rs.community&&"undefined"!=typeof RSUI&&"undefined"!=typeof RSUI.util&&"function"==typeof RSUI.util.getCookie&&null!=RSUI.util.getCookie("eVar9_time")){var m=RSUI.util.getCookie("eVar9_time");if(0!=parseInt(m)){var f=parseInt(m)%3600,h=Math.floor(f/60),_=f%60,v=Math.ceil(_);i.eVar9=h+":"+v,RSUI.util.setCookie("eVar9_time",0)}}if(s=_satellite.getQueryParamCaseInsensitive("cid"),c=_satellite.getQueryParamCaseInsensitive("pc"),s||(s=(s=_satellite.readCookie("affiliate"))||""),c||(c=(c=_satellite.readCookie("promo_eVar2"))||""),s.length>0?e.cookie="affiliate="+s+"; domain=rosettastone.com; path=/;":s=(s=_satellite.readCookie("affiliate"))||"",c.length>0?e.cookie="promo_eVar2="+c+"; domain=rosettastone.com; path=/;":c=(c=_satellite.readCookie("promo_eVar2"))||"",i.c_r("FAQViews")&&(i.eVar58=faqtitle,i.addEvent("event38"),i.c_w("FAQViews","")),-1==e.location.pathname.indexOf("/cd/")&&-1==e.location.pathname.indexOf("/download/")&&-1==e.location.pathname.indexOf("/online/")||(i.addEvent("event37"),i.addEvent("prodView"),i.prop1=i.pageName,i.prop11="Product View"),i.eVar2=c,"function"==typeof getLeadOmnitureEvent){var y=getLeadOmnitureEvent();""!=y&&(i.addEvent(y),i.prop11="E&E Form Completion")}l=i,(d=t.location.href).match(/www\.rosettastone\.com\/{0,1}(?:\?.*)*$/i)&&(l.addEvent("event1"),l.prop11="Homepage View"),d.match(/m\.rosettastone\.com\/{0,1}(?:\?.*)*$/i)?(l.addEvent("event1"),l.prop11="Homepage View"):("lp"===_satellite.getVar("pagetype")||d.match(/www\.rosettastone\.com\/hslp/i)||d.match(/www\.rosettastone\.com\/freedemo/i))&&(l.addEvent("event2"),l.prop11="Landing Page View");var b=0;"jQuery"in t&&"function"==typeof jQuery&&"function"==typeof jQuery().on&&jQuery(e).on("lang_select",function(t,e){function n(){i.clearVars(),i.prop26=e.lang,i.eVar26=e.lang,_satellite.setCookie("lastLangSelect",e.lang),i.tl()}e.lang&&(clearTimeout(b),b=setTimeout(n,150))})}]}],scope:{subdomains:{exclude:[/secure\./i]}},event:"pagebottom"},{name:"AnalyticsGlobal",trigger:[{engine:"sc",command:"setVars",arguments:[{eVar2:"%promocode%",eVar38:"%timeincrement%",eVar84:"%UAAutoDetect%",eVar86:"D=mid",prop15:"%campaignpath%",prop20:"%pagelanguage%",prop31:"%beaconAction%",channel:"%channel%"}]},{engine:"sc",command:"customSetup",arguments:[function(n,i){function a(){var n,a,o;for(r("gdpr_adobe_analytics_already_ran","true"),i.pageName=_satellite.getVar("pagename"),i.campaign=_satellite.getVar("f_reportcampaign")(),_satellite.getVar("mostrecentcampaign"),i.server=(n=_satellite.getVar("pagetype"),(a={liferay:"liferay",magento:"magento",secure:"magento",ftp:"ftp"})[n]?a[n]:"ftp"),void 0!==i&&i.crossVisitParticipation&&(t.rs&&(i.eVar6=i.crossVisitParticipation(rs.orderid,"s_ev6","730","5",">","",0)),i.eVar11=i.crossVisitParticipation(_satellite.getVar("pagelanguage"),"s_ev11","1","10",">"),i.eVar15=i.crossVisitParticipation(_satellite.getVar("campaignname"),"s_cpm","90","5",">","purchase")),_satellite.getVar("campaignname")&&(i.eVar14=_satellite.getVar("campaignname")),i.eVar41=i.getNewRepeat(),i.eVar57="Page",vidPages=new Array("/languages","/anti-piracy","/how-it-works","/features","/customer-reviews","/demo","/our-approach","/totaleupgrade","/buynow","/k12/professionaldevelopment","/homeschool/demo","/featured-testimonials","/testimonial-stories");vidPages.length;)vidPages.pop()===location.pathname&&(i.eVar57="Video");i.addEvent&&function(n,i){
if(!i.addEvent)throw new Error("getPageViewEvent requires #addEvent on s");if(i.addEvent("event51"),"true"==_satellite.getVar("isHomePage")&&i.addEvent("event1"),n.match(/\/lp\/faq/)&&i.addEvent("event38"),n.match(/secure\./gi)){if(n.match(/\/checkout\/cart\//)&&i.addEvent("event44"),(n.match(/\/multipage\/smart\//)||n.match(/\/checkout\/onepage\//))&&i.addEvent("event45"),n.match(/\/paypal\//))return(i.events=i.events.replace(/^event47,?|,?\W*event47/,""))&&i.addEvent("event46");i.events=i.events.replace(/event46,*/,""),n.match(/\/multipage\/smartreview\//)&&i.addEvent("event47"),n.match(/\/multipage\/smartsuccess\//)&&i.addEvent("event48")}if(t.rs&&"US-Institution"==rs.community&&-1!=e.location.pathname.indexOf("confirmation")){var a="";-1!=e.location.pathname.indexOf("business")?a="event42":-1!=e.location.pathname.indexOf("k12")?a="event43":-1!=e.location.pathname.indexOf("highereducation")?a="event50":-1!=e.location.pathname.indexOf("publicsector")&&(a="event49"),""!=a&&(i.addEvent(a),i.prop11="E&E Form Completion")}}(t.location.href,i),function(t){function e(){for(var e=[[/event1(?:$|,|\s)/gi,"Homepage View"],[/event2(?:$|,|\s)/gi,"Landing Page View"],[/event5(?:$|,|\s)/gi,"Reviews"],[/event(?:7|19|21|54|91)(?:$|,|\s)/gi,"Email Submit"],[/event23(?:$|,|\s)/gi,"Demo Start"],[/event25(?:$|,|\s)/gi,"Search"],[/event28(?:$|,|\s)/gi,"Video View"],[/event31(?:$|,|\s)/gi,"Sign In"],[/event32(?:$|,|\s)/gi,"BazaarVoice"],[/event36(?:$|,|\s)/gi,"Catalog Page View"],[/event37(?:$|,|\s)/gi,"Product View"],[/event38(?:$|,|\s)/gi,"FAQ View"],[/event(?:52|53|59|60)(?:$|,|\s)/gi,"EE Form View"],[/event(?:42|43|49|50)(?:$|,|\s)/gi,"EE Form Complete"],[/event69(?:$|,|\s)/gi,"FitBrains Signup"],[/scOpen(?:$|,|\s)/gi,"Cart Started"],[/scCheckout(?:$|,|\s)/gi,"Cart Checkout"],[/scView(?:$|,|\s)/gi,"Cart Review"],[/Purchase(?:$|,|\s)/gi,"Order"]],n="",i=e.length,a=0;a<i;a++)e[a][0].test(t.events)&&(n=e[a][1])&&(a=i);return n}if(t.t&&t.t.guard)return 0;t._wrapt=t.t,t._wraptl=t.tl,t.t=function(){t.t.guard||(t.prop11=e(t.events),t._wrapt.apply(this,arguments),t.t.guard=1)},t.tl=function(){t.prop11=e(t.events),t._wraptl.apply(this,arguments)}}(i),"error"===_satellite.getVar("pagetype")&&(i.pageType="errorPage"),Object.defineProperty&&Object.defineProperty(i,"pageName",{value:"404"==(o=_satellite.getVar("pagename"))?null:o,configurable:!0,enumerable:!0,writable:!1});var s=_satellite.getQueryParamCaseInsensitive("rmid");s&&"string"==typeof s&&(i.eVar61=s);var c=_satellite.getQueryParamCaseInsensitive("rrid");c&&"string"==typeof c&&c.replace&&(i.eVar62=c.replace(/[^0-9]/gi,""))}function r(n,i){var a=new Date(Date.parse(new Date)+2592e6),r=t.location.hostname.replace(/www/i,"");e.cookie=n+"="+i+"; path=/; expires="+a+"; domain="+r}a()}]}],event:"pagebottom"},{name:"AnalyticsPage_Blog",trigger:[{engine:"sc",command:"customSetup",arguments:[function(t,n){"function"==typeof jQuery?jQuery(e).on("blog_email",function(){n.clearVars(),n.addEvent("event92"),n.tl()}):console.log("warning: jQuery not function")}]}],scope:{URI:{include:["/blog"]}},event:"pagebottom"},{name:"AnalyticsPage_Catalog",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){i.sendFormEvent=function(){};var a=/(?:www\.|espanol\.)rosettastone\.com(\/buynow|\/(?!\w)|\/lp\/sbsr\/)/i,r=t.location.pathname.match(/learn-(dari|pashto|urdu|swahili)/i);if(r&&(t.lang={dari:"dar",pashto:"pas",urdu:"urd",swahili:"kis"}[r.pop()]),"localStorage"in t&&e.referrer.match(a)&&t.lang){var o=localStorage.getItem("lang_selected")||"";o.match(new RegExp("\\|"+t.lang,"i","g"))||(o+="|"+t.lang,localStorage.setItem("lang_selected",o),i.eVar26=i.prop26=t.lang)}}]}],scope:{URI:{include:["/learn-","/aprende-"]},protocols:[/http:/i]},event:"pagebottom"},{name:"AnalyticsPage_CheckoutCart",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){""===e.referrer||e.referrer.match(/secure\.rosettastone\.com/)||e.addEventListener("readystatechange",function(){if("complete"===e.readyState){if(t.performance){var n=t.performance.timing.domInteractive-t.performance.timing.navigationStart,a=t.performance.timing.domComplete-t.performance.timing.navigationStart;i.events="event110="+n+",event111="+a,i.prop13=Number.parseFloat(n/1e3).toPrecision(2),i.prop14=Number.parseFloat(a/1e3).toPrecision(2)}i.tl(!0,"o","cart load time")}}),jQuery(".wl-link").on("click",function(){i.events="",i.tl(this,"o","whats_included")})}]},{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-563d1ca164746d41da0041e2-staging.js"}]}]}],scope:{URI:{include:[/checkout\//i]},subdomains:{include:[/secure\./i]}},event:"pagebottom"},{name:"AnalyticsPage_Demo",trigger:[{engine:"sc",command:"customSetup",arguments:[function(){}]},{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5b11641d64746d04eb0016df-staging.js"},{src:"satellite-561bf7b93664310014001160-staging.js"}]}]}],scope:{URI:{include:["/lp/opdemo","/freedemo","/lp/sbs","/demo","/lp/why","/learn-","/lp/catalog/","/lp/ppc","/lp/probar","/lp/sbshybrid","/homeschool","/lp/storybox","/lp/peter",/avventura/i,/\/rplotrial/i,"/lp/food-truck-challenge","/lp/omed","/lp/offer","/aprende-","/lp/home","/lp/discount",/\/(?:k12|business)\/home/i,"/those_hs_pages","/lp/espanol","/lp/reviews","/opiniones-clientes","/testimonials","/testimonios","/lp/newuser","/lp/ns",/\/lp\/ns[cd]*\//i,"/lp/newdemo","/how-to-","/lp/nsrb","/translate",/^\/freetrial/i,"/buy-","/aprender-ingles","/spanish-","/speak-","/french-","/german-","/castilian-",/^\/($|\?.*)/i]}},event:"pagetop"},{name:"AnalyticsPage_EAndE",trigger:[{engine:"sc",command:"customSetup",arguments:[function(n,i){function a(t,e,n){t.addEventListener?t.addEventListener(e,n,!0):t.attachEvent("on"+e,function(){n.call(t)})}function r(e,n,i){var a,r=e.slice(),o="submit"==i?"event42":"event52";for(n=n||0;r.length;)if(a=r.pop(),t.location.href.match(a[0])){o=a[1+("submit"==i?1:0)];break}return o+n}function o(){return!!localStorage.getItem("eeformviewtracked")}var s=_satellite.getVar("f_addContext"),c=[[/k12/i,53,43],[/business|corporate/i,52,42],[/publicsector/i,59,49],[/highered/i,60,50]],l=r.bind(this,c,0);jQuery('[id=header-pricing-box], [id=header-pricing-box] *, [id=take-demo], [id=take-demo] *, #footer-list li:eq(4), #footer-list li:eq(4) *, #sticky-bar-content a, #sticky-bar-content a *, #test-consultation a, #test-consultation a *, #product-cta-one-holder > div > div > * > a, .prod-features-content [onclick="corpfreeconsult()"]').data("eeformtrigger",1),jQuery("#submit, #submit *").data("eeformsubmit",1);var d=e.querySelector("[data-type]");if(d){var u=d.getAttribute("data-type");s("US_EE_asset",u)}var p=_satellite.getVar("channel"),g=t.location,m="",f=p&&p.match&&p.match(/^(?:E&E)\W*(.*)/i);f&&f.length>1&&(p.match(/demo/i)?((g.pathname.match(/^\/business(\/|$|\?)/gi)||g.host.match(/corporate\./i))&&(m="E&E Business"),(g.pathname.match(/\/publicsector(\/|$|\?)/i)||g.host.match(/gov\./i)||g.host.match(/org\./i))&&(m="E&E Public Sector"),(g.pathname.match(/\/k12(\/|$|\?)/i)||g.host.match(/k12\./i))&&(m="E&E K12"),(g.pathname.match(/\/highereducation(\/|$|\?)/i)||g.host.match(/edu\./i))&&(m="E&E Higher Ed")):m=f.slice(-1),s("US_EE_vert",m)),function(){function t(){i.events="",i.addEvent(n),i.tl(),localStorage.setItem("eeformviewtracked",1)}var n="event"+l("view");(_satellite.getVar("o_urlargs")||{}).inquiry&&!(_satellite.getVar("o_urlargs")||{}).thanks?(localStorage.setItem("eeformviewtracked",1),i.addEvent?i.addEvent(n):i.events+=i.events.length?","+n:n):d&&(d.querySelector("form")||(d.nodeName+"").match(/form/i))?(localStorage.setItem("eeformviewtracked",1),i.addEvent?i.addEvent(n):i.events+=i.events.length?","+n:n):(a(e,"click",function(e){return!!jQuery(e.target).data("eeformtrigger")&&t()}),jQuery&&jQuery(e).bind("ee_demo_formview",function(){return t(),jQuery(e).unbind("ee_demo_formview"),!1}))}(),function(){var n=l("submit"),a="event"+n,r=e.querySelector("[data-cta]"),c="";if(r&&(c=r.getAttribute("data-cta")||r.textContent||r.innerText,s("US_EE_CTA",c),localStorage&&localStorage.setItem("eecta",c)),(_satellite.getVar("o_urlargs")||{}).thanks&&o())return i.addEvent?i.addEvent(a):i.events+=i.events.length?","+a:a,s("US_EE_CTA",localStorage&&localStorage.getItem("eecta")),localStorage.removeItem("eeformviewtracked"),!0;t.location.hostname.match(/corporate|k12|edu|gov|org/i)?e.querySelector("form")&&jQuery&&jQuery(function(){_satellite.getVar("f_mounteloquasubmit")(e.querySelector("form"),i,n)}):jQuery(function(){function a(s){return!o()||(s.target!=r||!t.validateForm||!!t.validateForm()&&(i.clearVars(),i.addEvent("event"+n),i.tl(),localStorage.removeItem("eeformviewtracked"),e.removeEventListener("submit",a,!0),s.stopPropagation(),s.preventDefault(),setTimeout(function(){e.removeEventListener("submit",a,!0)},100),void setTimeout(function(){jQuery(r).trigger("submit"),jQuery(r).find('[type="submit"]').trigger("click")},1400)))}var r=e.querySelector('form[name="2015-Web-Form-Single-Step-New"]');r&&e.addEventListener("submit",a,!0)})}()}]}],conditions:[function(){return t.location.pathname.match(/\/(?:k12|highereducation|business|publicsector)/i)||t.location.hostname.match(/corporate|k12|edu|gov|org/i)}],event:"pagebottom"},{name:"AnalyticsPage_FAQs",trigger:[{engine:"sc",command:"customSetup",arguments:[function(t,n){$(e).on("faq_click.analytics",function(t,e){e.title&&(n.clearVars(),n.eVar58=e.title,n.tl())})}]}],scope:{URI:{include:["/lp/faq"]}},event:"pagebottom"},{name:"AnalyticsPage_Homeschool",trigger:[{engine:"sc",command:"customSetup",arguments:[function(e,n){t.location.pathname.match(/(?:\/homeschool\/?).*(?:\/catalog)/i)&&void 0!==n&&"addEvent"in n&&n.addEvent("event36")}]}],scope:{URI:{include:["\\/homeschool"]}},event:"pagebottom"},{name:"AnalyticsPage_LastCart",trigger:[{engine:"sc",command:"customSetup",arguments:[function(t,n){n.eVar24="undefined"!=typeof pixp_disc_amt&&pixp_disc_amt>0?"Promo Sale":"Normal Sale";var i=_satellite.getVar("shipping_amt");null!=i&&i&&n.addEvent&&n.addEvent("event79="+i),e.cookie.match(/router_special_cid/i)&&(n.eVar100=e.cookie.match(/router_special_cid\=[^;]+/i)[0].replace("router_special_cid=",""))}]},{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-55e088e5663334001700130f-staging.js"}]}]}],scope:{URI:{include:[/\/multipage\/(smart)?success\//i]},subdomains:{include:["secure"]}},event:"pagebottom"},{name:"AnalyticsPage_SignIn",trigger:[{engine:"sc",command:"setVars",arguments:[{prop11:"Sign In"}]},{engine:"sc",command:"addEvent",arguments:["event31"]}],scope:{URI:{include:["/login"]},subdomains:{include:[/espanol|www/i]}},event:"pagebottom"},{name:"AnalyticsPage_Video",trigger:[{engine:"sc",command:"customSetup",arguments:[function(t,n){function i(){function t(t){return{remove:function(){e.cookie=t+"=1;max-age=0;domain=.rosettastone.com;path=/"},reset:function(n){return e.cookie=t+"="+n+";max-age=31449600;domain=.rosettastone.com;path=/",n},read:function(){var n=new RegExp(t+"=(\\d+)","i"),i=e.cookie.match(n);return i&&i[1]}}}"function"==typeof jQuery&&"object"==typeof n&&(jQuery(e).off("video_start"),jQuery(e).on("video_start",function(e,i){(n.linkTrackVars="eVar55,events",n.linkTrackEvents="event28",i&&i.name)&&new t("vid_"+i.name).reset(1);n.eVar55=(i.type||"")+(i.name||"")+(i.org?","+i.org:"")+(i.lang?","+i.lang:""),n.events="event28",n.prop11="Video Start",n.tl()}),jQuery(e).off("video_end"),jQuery(e).on("video_end",function(){n.linkTrackVars="events",n.linkTrackEvents="event29",n.events="event29",n.tl()}))}$(e).on("video_events_version",function(t,e){1===e.version&&i()})}]}],scope:{URI:{include:["lp/embrace-conversation","/business/home","/business/solution"]}},event:"pagebottom"},{name:"GDPR_family_EandE",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5af49a2264746d0d8a004e04-staging.js"}]}]}],scope:{URI:{include:["/business/","/k12/","/compare-products/"]}},event:"pagetop"},{name:"GDPR_family_demo_button_swaps",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b07177564746d3c25001361-staging.js"}]}]}],scope:{URI:{include:["/testimonials"]}},event:"domready"},{name:"GDPR_family_demo_redirects",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5b05ba7664746d6e0100143b-staging.js"}]}]}],scope:{URI:{include:["/lp/avventura","/lp/food-truck-challenge","/lp/omed","/freedemo"]}},event:"pagetop"},{name:"GDPR_family_eloqua",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5aff6fa564746d417b00231d-staging.js"},{src:"satellite-5aff650d64746d11d3004ef4-staging.js"}]}]}],scope:{subdomains:{include:["k12","corporarte","edu","corp","gov","org"]}},event:"pagetop"},{name:"GDPR_family_global",trigger:[{command:"writeHTML",arguments:[{html:"<script>\n(function(){\n\n\n\n\t// *******************************************************\n\t// Initialize global gdpr variable\n\t// *******************************************************\n\n\twindow.gdpr = window.gdpr || {\n\t\tcountry_code: getCookie('gdpr_country_code') || '',\n\n\t\tcookie_consent: getCookie('gdpr_cookie_consent') || null,\n\t\temail_consent: null,\n\n\t\tdouble_opt_in_countries: ['DE'], // removed CA as requested by julia on may 31, 2018\n\n\t\tauto_opt_in_countries: ['CA'], // countries where cookies and pixels load by default, and banner says you consent by browsing\n\n\t\tis_auto_opt_in_country: function(){\n\n\t\t\t// use this return statement if you want specific auto-opt-in countries\n\t\t\t// return window.gdpr.auto_opt_in_countries.indexOf(window.gdpr.country_code) > -1;\n\n\t\t\t// use this return statement if you want auto-opt-in for all non-US countries\n\t\t\treturn window.gdpr.country_code !== 'US';\n\t\t},\n\n\t\tchange_country_code: function(new_country_code){\n\t\t\twindow.gdpr.country_code = new_country_code;\n\t\t\tsetCookie('gdpr_country_code', new_country_code);\n\n\t\t\twindow.gdpr.trigger('changed_country_code');\n\t\t\treturn new_country_code;\n\t\t},\n\n\t\tmax_wait_for_country_code: 5000,\n\n\t\tevents: {},\n\n\t\ton: function(event, callback){\n\t\t\tthis.events[event] = this.events[event] || [];\n\t\t\tthis.events[event].push(callback);\n\t\t},\n\n\t\ttrigger: function(event){\n\t\t\tif(this.events[event]){\n\t\t\t\tthis.events[event].forEach(function(callback){\n\t\t\t\t\tcallback();\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\n\t\tstate: {\n\t\t\tanalytics_already_run: false\n\t\t},\n\n\t\tis_getting_country_code_from_api: !getCookie('gdpr_country_code')\n\n\t};\n\n\n\n\n\n\n\n\n\n\n\n\t// **************************************************\n\t// COUNTRY CODE IP LOOKUP\n\t//     reference: https://en.wikipedia.org/wiki/ISO_3166-1#Officially_assigned_code_elements (see column: Alpha-2 code)\n\t// **************************************************\n\tfunction loadCountryCode(){\n\t\tvar country_code_lookup_start_time = Date.now();\n\n\t\tvar api_url = 'https://www.rosettastone.com/gils';\n\n\t\tfunction load(url, callback) {\n\t\t\tvar xhr = new XMLHttpRequest();\n\t\t\txhr.onreadystatechange = function() {\n\t\t\t\tif (xhr.readyState === 4) {\n\t\t\t\t\tcallback(xhr);\n\t\t\t\t}\n\t\t\t}\n\t\t\txhr.open('GET', url, true);\n\t\t\txhr.send();\n\t\t}\n\n\t\tfunction handler(data){\n\t\t\t// this looks for https://www.rosettastone.com/gils/CC (where CC is the country code such as US, DE, FR, or whatever)\n\t\t\t// if there's no country code available, the response will be /gils\n\t\t\tvar country_code = '';\n\t\t\ttry{\n\t\t\t\tcountry_code = (data.responseURL.match(/gils\\/(\\w+)/i)||['',''])[1];\n\t\t\t}\n\t\t\tcatch(e){\n        country_code = data.getResponseHeader(\"X-GI\") || '';\n\t\t\t}\n\n      if (!country_code) {\n\t\t\t\tcountry_code = 'DE'\n      }\n      console.log('country code: ', country_code);\n\n\t\t\tif(window.gdpr){\n\t\t\t\tvar country_code_lookup_end_time = Date.now();\n\t\t\t\twindow.gdpr.country_code_lookup_time = country_code_lookup_end_time - country_code_lookup_start_time;\n\n\t\t\t\tif(country_code){\n\t\t\t\t\twindow.gdpr.change_country_code(country_code);\n\n\t\t\t\t\tif(country_code==='US' || window.gdpr.is_auto_opt_in_country() ){\n\t\t\t\t\t\t// allow adobe analytics and google analytics - now obsolete since adobe's code doesn't work and therefore we now handle ourselves\n\t\t\t\t\t\t// _satellite.setCookie(_satellite.settings.euCookieName, 'true');\n\n\t\t\t\t\t\t// run analytics on first page load (needs to be done manually because we had to wait for country code)\n\t\t\t\t\t\twindow.gdpr.trigger('run_analytics_scripts');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twindow.gdpr.trigger('country_code_returned');\n\t\t\t\twindow.gdpr.state.country_code_returned = true;\n\t\t\t}\n\t\t}\n\n\t\tload(api_url, handler);\n\n\t}\n\tif( !getCookie('gdpr_country_code') ){\n\t\tloadCountryCode();\n\t}\n\telse{\n\t\twindow.gdpr.state.country_code_returned = true;\n\t}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Trigger analytics scripts\n\t// *******************************************************\n\twindow.gdpr.on('run_analytics_scripts', trigger_analytics);\n\n\tfunction trigger_analytics(){\n\n\t\t// only run analytics if we haven't already\n\t\tif(!window.gdpr.state.analytics_already_run){\n\n\n\t\t\tfunction run_analytics(){\n\n\t\t\t\t// only run analytics if we haven't already\n\t\t\t\tif(!window.gdpr.state.analytics_already_run){\n\n\t\t\t\t\twindow.gdpr.state.analytics_already_run = true;\n\n\t\t\t\t\t// run adobe analytics by force on first visit only\n\t\t\t\t\tif(!getCookie('gdpr_adobe_analytics_already_ran')){\n\t\t\t\t\t\tanalytics_force_init();\n\t\t\t\t\t\twindow.s.t();\n\t\t\t\t\t}\n\n\t\t\t\t\t// unset s.t to prevent double firing\n\t\t\t\t\t/*window.s.t_already_used_1234567890 = window.s.t;\n\t\t\t\t\twindow.s.t = function(){};*/\n\n\t\t\t\t\t// google analytics\n\t\t\t\t\twindow.ga && window.ga('e0e72fc955d760db889110d0154dd4eb.send', 'pageview');\n\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t// if analytics not available yet, try at intervals until ready\n\t\t\tsetTimeout(function(){\n\n\t\t\t\tif(window.s && window.s.t){\n\t\t\t\t\trun_analytics();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tvar attempts = 0;\n\t\t\t\t\tvar analytics_interval = setInterval(function(){\n\t\t\t\t\t\tif(window.s && window.s.t){\n\t\t\t\t\t\t\trun_analytics();\n\t\t\t\t\t\t\twindow.clearInterval(analytics_interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tattempts++;\n\t\t\t\t\t\tif(attempts>10){\n\t\t\t\t\t\t\twindow.clearInterval(analytics_interval);\n\t\t\t\t\t\t}\n\t\t\t\t\t}, 1000);\n\t\t\t\t}\n\n\t\t\t}, 400);\n\n\t\t}\n\t}\n\n\t// run analytics initializer for cookied US traffic\n\tif(window.gdpr && window.gdpr.country_code && (window.gdpr.country_code === 'US' || window.gdpr.is_auto_opt_in_country()) ){\n\t\twindow.gdpr && window.gdpr.trigger('run_analytics_scripts');\n\t}\n\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Cookie helper functions\n\t// *******************************************************\n\n\t// get cookie\n\tfunction getCookie(cookie_name){\n\t\tvar regex = new RegExp('(^|;\\\\s)'+cookie_name+'=([^;]+)', 'i');\n\t\treturn (document.cookie.match(regex) || [])[2];\n\t}\n\n\t// set cookie for 30 days\n\tfunction setCookie(name, value){\n\t\tvar exp = new Date(Date.parse(new Date()) + (30*24*60*60*1000));\n\t\tvar domain = window.location.hostname.replace(/www/i,''); // domain isolation is tricky, so this will cover the majority of use cases\n\t\tdocument.cookie = name+'='+value+'; path=/; expires='+exp+'; domain='+domain;\n\t}\n\n\t// delete cookie\n\tfunction deleteCookie(name) {\n\t\tvar domain = window.location.hostname.replace(/www/i,'');\n\t\tdocument.cookie = name+'=; domain='+domain+'; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n\t}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Pasted from analytics global rule (where indicated)\n\t// *******************************************************\n\n\tfunction analytics_force_init(){\n\n\t\tsetCookie('gdpr_adobe_analytics_already_ran','true');\n\n\n\n\n\t\t// from here down, this is a direct paste from the DTM AnalyticsGlobal page load rule\n\t\t// ------------------------------------------------------------------------------------\n\n\t\ts.pageName = _satellite.getVar('pagename');\n\t\ts.campaign = _satellite.getVar('f_reportcampaign')();\n\n\t\t//most recent campaign for Responsys: (stashes cookie)\n\t\t_satellite.getVar('mostrecentcampaign')\n\n\t\ts.server = (function(a){\n\t\t  var idx = {'liferay': 'liferay', 'magento': 'magento', 'secure': 'magento', 'ftp': 'ftp' };\n\t\t  return !!idx[a] ? idx[a] : 'ftp';\n\t\t})( _satellite.getVar('pagetype') );\n\n\t\tif(typeof s != 'undefined' && s.crossVisitParticipation) {\n\t\t  if(window.rs) {\n\t\t\t  s.eVar6 = s.crossVisitParticipation(rs.orderid,'s_ev6','730','5','>','',0);\n\t\t  }\n\t\t\ts.eVar11 = s.crossVisitParticipation(_satellite.getVar('pagelanguage'),'s_ev11','1','10','>'); \n\t\t  s.eVar15 = s.crossVisitParticipation(_satellite.getVar('campaignname'),'s_cpm','90','5','>','purchase');\n\t\t}\n\n\t\tvar campname = _satellite.getVar('campaignname');\n\t\tcampname && ( s.eVar14 = _satellite.getVar('campaignname') );\n\n\t\ts.eVar41 = s.getNewRepeat();\n\t\ts.eVar57 = \"Page\";  \n\t\tvidPages = new Array('/languages', '/anti-piracy', '/how-it-works', '/features', '/customer-reviews', '/demo', '/our-approach', '/totaleupgrade', '/buynow', '/k12/professionaldevelopment', '/homeschool/demo', '/featured-testimonials','/testimonial-stories');\n\t\twhile(vidPages.length) {\n\t\t\t( vidPages.pop() === location.pathname ) && (s.eVar57 = 'Video');\n\t\t}\n\n\t\ts.addEvent && (function addPageViewEvent(href, s) {\n\t\t    if(!s.addEvent) {\n\t\t        throw new Error('getPageViewEvent requires #addEvent on s');\n\t\t        return;\n\t\t    }\n\n\t\t  \t//event51: pageView.  Every page.\n\t\t    s.addEvent('event51');\n\n\t\t    if( _satellite.getVar('isHomePage') == 'true' ) {\n\t\t        //Homepage View = event1\n\t\t        s.addEvent('event1');\n\t\t    }\n\n\t\t  //1-30-18: Commenting out: handled by Noncart family rule\n\t\t    /*if( href.match(/\\/lp\\//) && !href.match(/\\/lp\\/catalog/) && !href.match(/\\/lp\\/faq/) ) {\n\t\t        //Landing Page View = event2\n\t\t        s.addEvent('event2');\n\t\t    }*/\n\t\t  \n\t\t    if( href.match(/\\/lp\\/faq/) ){\n\t\t\t\t\t\ts.addEvent('event38');\n\t\t    }\n\t\t    \n\t\t    \n\t\t    if(href.match(/secure\\./gi)) {\n\t\t        //Cart View 1st page = event44\n\t\t        href.match(/\\/checkout\\/cart\\//) && s.addEvent('event44');\n\t\t        //Cart Views Address = event45\n\t\t        ( href.match(/\\/multipage\\/smart\\//) || href.match(/\\/checkout\\/onepage\\//) ) && s.addEvent('event45');\n\t\t        //Cart Views Paypal = event46\n\t\t        if ( href.match(/\\/paypal\\//) ) { \n\t\t          return ( s.events = s.events.replace(/^event47,?|,?\\W*event47/,'') ) && s.addEvent('event46');\n\t\t        }\n\t\t        else {\n\t\t           //hack to fix error in cart\n\t\t           s.events = s.events.replace(/event46,*/,'');\n\t\t        }\n\t\t        //Cart Views: Order Review - event47\n\t\t        href.match(/\\/multipage\\/smartreview\\//) && s.addEvent('event47'); \n\t\t        //Cart Views: Confirmation - event48\n\t\t        href.match(/\\/multipage\\/smartsuccess\\//) && s.addEvent('event48'); \n\t\t    }\n\n\t\t    //E&E-Specific Events:\n\t\t    if (window.rs && rs.community == \"US-Institution\" && document.location.pathname.indexOf(\"confirmation\") != -1) {\n\t\t        var events = '';\n\t\t        if (document.location.pathname.indexOf(\"business\") != -1)\n\t\t        {\n\t\t          events = 'event42';\n\t\t        }\n\t\t        else if (document.location.pathname.indexOf(\"k12\") != -1)\n\t\t        {\n\t\t          events = 'event43';\n\t\t        }\n\t\t        else if (document.location.pathname.indexOf(\"highereducation\") != -1)\n\t\t        {\n\t\t          events = 'event50';\n\t\t        }\n\t\t       \n\t\t        else if (document.location.pathname.indexOf(\"publicsector\") != -1)\n\t\t        {\n\t\t          events = 'event49';\n\t\t        }\n\t\t        \n\t\t        if (events != \"\") {\n\t\t          s.addEvent(events);\n\t\t          s.prop11 = \"E&E Form Completion\";\n\t\t        }\n\t\t    }\n\t\t})(window.location.href, s);\n\n\t\t//wrap s.t and s.tl for KPI pathing:\n\t\t(function kpiwrap(s) {\n\t\t  if(!!s.t && s.t.guard) {\n\t\t    return 0; \n\t\t  }\n\t\t\ts._wrapt = s.t;\n\t\t\ts._wraptl = s.tl;\n\t\t\t\n\t\t\tfunction getkpi(ev) {\n\t\t\t\tvar kpimap = [\n\t\t\t\t\t[/event1(?:$|,|\\s)/gi, 'Homepage View'],\n\t\t\t\t\t[/event2(?:$|,|\\s)/gi, 'Landing Page View'],\n\t\t\t\t\t[/event5(?:$|,|\\s)/gi, 'Reviews'],\n\t\t\t\t\t[/event(?:7|19|21|54|91)(?:$|,|\\s)/gi, 'Email Submit'],\n\t\t\t\t\t[/event23(?:$|,|\\s)/gi, 'Demo Start'],\n\t\t\t\t\t[/event25(?:$|,|\\s)/gi, 'Search'],\n\t\t\t\t\t[/event28(?:$|,|\\s)/gi, 'Video View'],\n\t\t\t\t\t[/event31(?:$|,|\\s)/gi, 'Sign In'],\n\t\t\t\t\t[/event32(?:$|,|\\s)/gi, 'BazaarVoice'],\n\t\t\t\t\t[/event36(?:$|,|\\s)/gi, 'Catalog Page View'],\n\t\t\t\t\t[/event37(?:$|,|\\s)/gi, 'Product View'],\n\t\t\t\t\t[/event38(?:$|,|\\s)/gi, 'FAQ View'],\n\t\t\t\t\t[/event(?:52|53|59|60)(?:$|,|\\s)/gi, 'EE Form View'],\n\t\t\t\t\t[/event(?:42|43|49|50)(?:$|,|\\s)/gi, 'EE Form Complete'],\n\t\t\t\t\t[/event69(?:$|,|\\s)/gi, 'FitBrains Signup'],\n\t\t\t\t\t[/scOpen(?:$|,|\\s)/gi, 'Cart Started'],\n\t\t\t\t\t[/scCheckout(?:$|,|\\s)/gi, 'Cart Checkout'],\n\t\t\t\t\t[/scView(?:$|,|\\s)/gi, 'Cart Review'],\n\t\t\t\t\t[/Purchase(?:$|,|\\s)/gi, 'Order']\n\t\t\t\t];\n\t\t\t\n\t\t\t\tvar ret = '';\n\t\t\t\tfor (var l = kpimap.length, i = 0; i < l; i++) {\n\t\t\t\t\tkpimap[i][0].test(s.events) && (ret = kpimap[i][1]) && (i = l);\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t\t\n\t\t\ts.t = function() {\n        // console.log('**** s.t.guard = '+s.t.guard+' ***************');\n        if(!s.t.guard){\n\t\t\t\t\t//console.log('s.t wrapper called');\n\t\t\t\t\ts.prop11 = getkpi(s.events);\n\t\t\t\t\ts._wrapt.apply(this, arguments);\n\n\t\t\t\t\ts.t.guard = 1;\n\t\t\t\t}\n\t\t\t};\n\t\t  \n\t\t\t\n\t\t\ts.tl = function() {\n\t\t\t\t//console.log('s.tl wrapper called');\n\t\t\t\ts.prop11 = getkpi(s.events);\n\t\t\t\ts._wraptl.apply(this, arguments);\n\t\t\t};\n\t\t\t\n\t\t})(s);\n\n\t\t//Set pageType for error pages, if applicable\n\t\tif( _satellite.getVar('pagetype') === 'error' ){\n\t\t\ts.pageType = 'errorPage';\n\t\t}\n\n\t\t//Lock pageName\n\t\t//Changed 1/30/2017 to reflect request from Rick that error pages should not get page names.\n\t\tvar _pn;\n\t\tObject.defineProperty && Object.defineProperty(s, 'pageName', {\n\t\t  value: (_pn = _satellite.getVar('pagename')) == '404' ? null : _pn, \n\t\t  configurable: true, \n\t\t  enumerable: true,\n\t\t  writable: false\n\t\t});\n\n\t\t//eVar62 & 61 for J Poltrack:: \"eVar61 - Responsys Message ID, can be captured from the 'rmid' query string parameter.  This can be captured as is without any cleansing.\n\t\t//eVar62 - Reponsys Recipient ID, can be captured from the 'rrid' query string parameter.  This field should have logic to only allow numeric characters, e.g 0-9.  Any alpha, special characters are not allowed to be captured and should be removed.  \"\n\t\tvar _rmid = _satellite.getQueryParamCaseInsensitive('rmid');\n\t\tif(_rmid && typeof _rmid == 'string'){\n\t\t\ts.eVar61 = _rmid;\n\t\t}\n\t\tvar _rrid = _satellite.getQueryParamCaseInsensitive('rrid');\n\t\tif(_rrid && typeof _rrid == 'string' && _rrid.replace){\n\t\t\ts.eVar62 = _rrid.replace(/[^0-9]/gi,'');\n\t\t}\n\n\t\t//ActivityMap Code, Normative To Adobe Recommendations per:\n\t\t// https://marketing.adobe.com/resources/help/en_US/analytics/activitymap/activitymap-link-tracking-use-case.html\n\t\t// This code helps fill in gaps for link and region classification that were not allowing ActivityMap to report per\n\t\t// Rick Lewis' expectations - in addition, it automatically schedules s.tl calls to report link, button and list-item clicks.\n\n\t\t//Note: Rolled back because the ActivityMap overlay tool was not using the new classifiers. See revision 33 to recover the code for this if desired.\n\t}\n\n\n\n\n\n\n})();\n</script>"},{
html:"<script>\n// ***************************************\n// GDPR cookie blocking\n// ***************************************\n(function(){\n\n\n\t// *******************************************************\n\t// Edit these functions to handle cookie blocking\n\t// *******************************************************\n\n\t// keep track of original satellite pageBottom just in case\n\t// window.original_satellite_pageBottom = window.original_satellite_pageBottom || window._satellite.pageBottom.bind(_satellite);\n\t\n\t// update: this function should only be populated if cookies have been blocked by erasing _satellite\n\twindow.original_satellite_pageBottom = function(){};\n\n\t// make sure _satellite.pageBottom only runs once\n\tif(window._satellite){\n\t\t(function(){\n\t\t\tvar times_run = 0;\n\t\t\tvar run_pageBottom = window._satellite.pageBottom;\n\t\t\tvar analytics_ran = window.s && window.s.t && window.s.t.guard;\n\t\t\twindow._satellite.pageBottom = function(){\n\t\t\t\tif(times_run===0 || !analytics_ran){\n\t\t\t\t\trun_pageBottom();\n\t\t\t\t\ttimes_run++;\n\t\t\t\t}\n\t\t\t};\n\t\t})();\n\t}\n\n\t// keep non-cookie dtm rules (for things like rtos, clocks, redirects, patches, etc)\n\tvar non_cookie_rules_regex = new RegExp('patch|promo|rto|pushdown|clock|testing|redirect|fix','i');\n\n\t// this function should block non-essential cookies such as third-party tracking scripts\n\tfunction blockCookies(){\n\t\twindow.original_satellite_pageBottom = window._satellite.pageBottom.bind(_satellite);\n\t\twindow._satellite.pageBottom = function(){};\n\n\t\t// disallow adobe analytics and google analytics - now obsolete since adobe's code doesn't work and therefore we now handle ourselves\n\t\t// _satellite.setCookie(_satellite.settings.euCookieName, 'false'); // is \"rs_trak\" NOT \"sat_track\"\n\n\t\t// turn off cookie rules\n\t\tvar cookie_rules = _satellite.pageLoadRules.filter(function(rule){\n\t\t\treturn (/pagebottom/i).test(rule.event) && !non_cookie_rules_regex.test(rule.name);\n\t\t});\n\t\tturn_off_page_load_rules(cookie_rules);\n\n\t\t// run non-cookie rules (rtos, patches, etc)\n\t\twindow.original_satellite_pageBottom();\n\n\t\t// now turn off non-cookie rules because they've already been run (examples: patches, rtos, etc)\n\t\tvar non_cookie_rules = _satellite.pageLoadRules.filter(function(rule){\n\t\t\treturn (/pagebottom/i).test(rule.event) && non_cookie_rules_regex.test(rule.name);\n\t\t});\n\t\tturn_off_page_load_rules(non_cookie_rules);\n\t}\n\n\t// this function should run all previously blocked third-party cookies\n\tfunction accept_all_cookies(){\n\n\t\t// allow adobe analytics and google analytics - now obsolete since adobe's code doesn't work and therefore we now handle ourselves\n\t\t// _satellite.setCookie(_satellite.settings.euCookieName, 'true');\n\n\t\t// turn on cookie rules (analytics and pixels)\n\t\tvar cookie_rules = _satellite.pageLoadRules.filter(function(rule){\n\t\t\treturn (/pagebottom/i).test(rule.event) && !non_cookie_rules_regex.test(rule.name);\n\t\t});\n\t\tturn_on_page_load_rules(cookie_rules);\n\n\t\t// if analytics didn't run yet\n\t\tif(!getCookie('gdpr_adobe_analytics_already_ran')){\n\n\t\t\t// run cookie rules (analytics and pixels)\n\t\t\tattempt_to_run(window.original_satellite_pageBottom);\n\n\t\t\t// run analytics initializer\n\t\t\twindow.gdpr && window.gdpr.trigger('run_analytics_scripts');\n\t\t}\n\t}\n\n\t// this function should only run analytics cookies\n\tfunction accept_analytics_cookies_only(){\n\n\t\t// allow adobe analytics and google analytics - now obsolete since adobe's code doesn't work and therefore we now handle ourselves\n\t\t// _satellite.setCookie(_satellite.settings.euCookieName, 'true');\n\n\t\t// if analytics didn't run yet\n\t\tif(!getCookie('gdpr_adobe_analytics_already_ran')){\n\n\t\t\t// first make sure all rules are off\n\t\t\tvar all_rules = _satellite.pageLoadRules;\n\t\t\tturn_off_page_load_rules(all_rules);\n\n\t\t\t// then turn on analytics rules\n\t\t\tvar analytics_rules = _satellite.pageLoadRules.filter(function(rule){\n\t\t\t\treturn (/pagebottom/i).test(rule.event) && (/analytics/i).test(rule.name);\n\t\t\t});\n\t\t\tturn_on_page_load_rules(analytics_rules);\n\n\t\t\t// run analytics rules\n\t\t\tattempt_to_run(window.original_satellite_pageBottom);\n\n\t\t\t// run analytics initializer\n\t\t\twindow.gdpr && window.gdpr.trigger('run_analytics_scripts');\n\t\t}\n\t}\n\n\t// *******************************************************\n\t// Do NOT edit anything below here\n\t// *******************************************************\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Initialize country code\n\t// *******************************************************\n\n\t// gdpr global object is created in: DTM > page load rules > GDPR_family_global\n\tvar country_code = (window.gdpr && window.gdpr.country_code) || null;\n\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Block cookies by default\n\t// *******************************************************\n\n\t// site should be gdpr compliant by default, so US is the only one that should change\n\t// so here, we're setting up the non-US default situation\n\tvar is_non_us_visitor = !(country_code && country_code.toUpperCase()==='US');\n\tvar has_accepted_all_cookies = getCookie('gdpr_cookie_consent')==='all';\n\n\tif(is_non_us_visitor && !window.gdpr.is_auto_opt_in_country() && !has_accepted_all_cookies){\n\n\t\t// stop pageBottom from firing off cookies\n\t\tblockCookies();\n\n\t\t// if user has already accepted analytics cookies only, run analytics\n\t\tvar has_accepted_analytics = getCookie('gdpr_cookie_consent')==='analytics';\n\t\tif(has_accepted_analytics){\n\t\t\twindow.gdpr && window.gdpr.trigger('gdpr_accept_analytics_only');\n\t\t}\n\t}\n\n\n\n\n\n\n\t// *******************************************************\n\t// ACCEPT ALL COOKIES\n\t// *******************************************************\n\n\t// if user accepts all cookies, run the pixels as usual\n\twindow.gdpr && window.gdpr.on('gdpr_accept_all_cookies', function(){\n\n\t\tvar cookie_consent_type = 'all';\n\n\t\tsetCookie('gdpr_cookie_consent', cookie_consent_type);\n\t\twindow.gdpr.cookie_consent = cookie_consent_type;\n\n\t\taccept_all_cookies();\n\t});\n\n\n\n\n\t// *******************************************************\n\t// ACCEPT ANALYTICS COOKIES ONLY\n\t// *******************************************************\n\n\t// if user accepts analytics only, run the analytics rules only\n\twindow.gdpr && window.gdpr.on('gdpr_accept_analytics_only', function(){\n\n\t\tvar cookie_consent_type = 'analytics';\n\n\t\tsetCookie('gdpr_cookie_consent', cookie_consent_type);\n\t\twindow.gdpr.cookie_consent = cookie_consent_type;\n\n\t\taccept_analytics_cookies_only();\n\t});\n\n\n\n\n\t// *******************************************************\n\t// REVOKE COOKIE CONSENT\n\t// *******************************************************\n\n\t// if user revokes consent from all non-essential cookies\n\twindow.gdpr && window.gdpr.on('gdpr_revoke_cookie_consent', function(){\n\n\t\tdeleteCookie('gdpr_cookie_consent');\n\t\twindow.gdpr.cookie_consent = null;\n\t});\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// HANDLE COUNTRY CHANGE\n\t// *******************************************************\n\n\t// if user revokes consent from all non-essential cookies\n\twindow.gdpr && window.gdpr.on('changed_country_code', function(){\n\n\t\tif(window.gdpr.country_code === 'US' || window.gdpr.is_auto_opt_in_country()){\n\t\t\twindow.gdpr.trigger('gdpr_accept_all_cookies');\n\t\t}\n\t\telse{\n\t\t\twindow.gdpr.trigger('gdpr_revoke_cookie_consent');\n\t\t}\n\t});\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Optional DTM helper functions (for choosing which DTM rules to run)\n\t// *******************************************************\n\n\tfunction turn_off_page_load_rules(rules_array){\n\t\trules_array.forEach(function(rule){\n\t\t\tif(!(/removed/i).test(rule.event)){\n\t\t\t\trule.event += '_removed';\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction turn_on_page_load_rules(rules_array){\n\t\trules_array.forEach(function(rule){\n\t\t\trule.event = rule.event.replace(/_removed/ig, '');\n\t\t});\n\t}\n\n\tfunction attempt_to_run(fn){\n\n\t\t// make sure analytics initialization code has run first before the desired function\n\t\tsetTimeout(function(){\n\n\t\t\tif(window.s && window.s.t){\n\t\t\t\tfn();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tvar attempts = 0;\n\t\t\t\tvar analytics_interval = setInterval(function(){\n\t\t\t\t\tif(window.s && window.s.t){\n\t\t\t\t\t\tfn();\n\t\t\t\t\t\twindow.clearInterval(analytics_interval);\n\t\t\t\t\t}\n\t\t\t\t\tattempts++;\n\t\t\t\t\tif(attempts>15){\n\t\t\t\t\t\twindow.clearInterval(analytics_interval);\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\n\t\t}, 400);\n\t}\n\n\n\n\n\n\n\n\n\t// *******************************************************\n\t// Cookie helper functions\n\t// *******************************************************\n\n\t// get cookie\n\tfunction getCookie(cookie_name){\n\t\tvar regex = new RegExp('(^|;\\\\s)'+cookie_name+'=([^;]+)', 'i');\n\t\treturn (document.cookie.match(regex) || [])[2];\n\t}\n\n\t// set cookie for 30 days\n\tfunction setCookie(name, value){\n\t\tvar exp = new Date(Date.parse(new Date()) + (30*24*60*60*1000));\n\t\tvar domain = window.location.hostname.replace(/www/i,''); // domain isolation is tricky, so this will cover the majority of use cases\n\t\tdocument.cookie = name+'='+value+'; path=/; expires='+exp+'; domain='+domain;\n\t}\n\n\t// delete cookie\n\tfunction deleteCookie(name) {\n\t\tvar domain = window.location.hostname.replace(/www/i,'');\n\t\tdocument.cookie = name+'=; domain='+domain+'; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';\n\t}\n\n})();\n</script>\n"},{html:"<script>\n/************************************************************\nGDPR EMAIL CONSENT INITIALIZER\n\nInstructions to activate email consent on your page (after this initalizer code runs):\n\n\t1) Put the following HTML anywhere you want an email consent checkbox (there can be more than one per page):\n\t\t<div class=\"gdpr_target\"></div>\n\n\t   Note:\n\t   \tIf this is a newsletter signup, use <div class=\"gdpr_newsletter_disclaimer\"></div>\n\n\t2) Update your page's email submission code (usually in submitEmailToEC function)\n\n\t\ta) paste this variable where you need to check consent:\n\t\t\tvar gdpr_consent_given = window.gdpr && window.gdpr.email_consent; // note: US country_code sets consent to 'implicit'\n\n\t\tb for DEMO signups) block email submission if user hasn't consented:\n\t\t\tif(!gdpr_consent_given){ skip email and go directly to demo }\n\t\t\telse if(gdpr_consent_given){ proceed as normal }\n\n\t\tb for NEWSLETTER signups) set consent to active by default (unless user is from double opt-in country)\n\n\t\t\t// if user is from a double opt-in country\n\t\t\tif(window.gdpr){\n\t\t\t\tif( (window.gdpr.double_opt_in_countries).indexOf(window.gdpr.country_code) > -1 ){\n\t\t\t\t\twindow.gdpr.email_consent = 'double_opt_in';\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\twindow.gdpr.email_consent = 'active';\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tc) add this to your email collection form data:\n\t\t\tconsent_type : ( window.gdpr && window.gdpr.email_consent ) || null\n\n\t3) Update briteverify email verification function by adding this code (or something similar) near the top of the function:\n\n\t\t// if gdpr consent isn't given, skip the validation and go straight to the demo\n\t\tvar gdpr_consent_given = window.gdpr && window.gdpr.email_consent && window.gdpr.email_consent != null;\n\t\tif(!gdpr_consent_given){\n\t\t\tsuccess_callback();\n\t\t\treturn;\n\t\t}\n\n*************************************************************/\n\n(function () {\n\tif (window.gdpr) {\n\n\t\twindow.gdpr.run_checkbox_code = function () {\n\n\t\t\twindow.gdpr.state.checkbox_code_ran = true;\n\n\t\t\tif (document.readyState === 'complete' || document.readyState === 'interactive') {\n\t\t\t\tinsert_GDPR_email_checkbox('.gdpr_target', '.gdpr_newsletter_disclaimer');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdocument.addEventListener('DOMContentLoaded', function () {\n\t\t\t\t\tinsert_GDPR_email_checkbox('.gdpr_target', '.gdpr_newsletter_disclaimer');\n\t\t\t\t});\n\t\t\t}\n\t\t\tget_GDPR_email_consent(window.gdpr.country_code);\n\t\t};\n\n\n\n\t\t// ************************************************************\n\t\t// RUN EMAIL CONSENT SCRIPT AT CORRECT TIMES\n\t\t// ************************************************************\n\n\t\t// if country code has already returned, run checkbox code\n\t\tif (window.gdpr.state.country_code_returned) {\n\t\t\tif (!window.gdpr.state.checkbox_code_ran) {\n\t\t\t\twindow.gdpr.run_checkbox_code();\n\t\t\t}\n\t\t}\n\n\t\t// run email consent when country code returns\n\t\twindow.gdpr.on('country_code_returned', function () {\n\t\t\tif (!window.gdpr.state.checkbox_code_ran) {\n\t\t\t\twindow.gdpr.run_checkbox_code();\n\t\t\t}\n\t\t});\n\n\t\t// if country code takes too long, run email consent code as if non-US\n\t\tsetTimeout(function () {\n\t\t\tif (!window.gdpr.state.checkbox_code_ran) {\n\t\t\t\twindow.gdpr.run_checkbox_code();\n\t\t\t}\n\t\t}, window.gdpr.max_wait_for_country_code);\n\n\n\n\n\n\t\t// use for testing if you need this outside of dtm ---------\n\t\t/*window.gdpr = window.gdpr || {\n\t\t\temail_consent: null,\n\t\t\tcountry_code: get_country_code(window.location.href)\n\t\t};\n\n\t\tfunction get_country_code(url){\n\t\t\treturn (url.match(/[&?]country=([^&]+)/i) || [])[1];\n\t\t}*/\n\t\t// end testing section -------------------------------------\n\n\n\n\t\tfunction insert_GDPR_email_checkbox(checkbox_target_selector, newsletter_target_selector) {\n\t\t\t// make sure checkbox only shows for non-US visitors\n\t\t\tvar country_code = window.gdpr && window.gdpr.country_code || '';\n\t\t\tvar isNotUS = !(country_code && country_code.toUpperCase() === 'US')\n\t\t\tvar checkbox_disclaimer_elems = document.querySelectorAll(checkbox_target_selector);\n\t\t\tvar newsletter_disclaimer_elems = document.querySelectorAll(newsletter_target_selector);\n\n\t\t\tif (isNotUS) {\n\t\t\t\tif (checkbox_disclaimer_elems) {\n\t\t\t\t\tinsert_GDPR_checkboxes(checkbox_disclaimer_elems);\n\t\t\t\t}\n\t\t\t\tif (newsletter_disclaimer_elems) {\n\t\t\t\t\tinsert_GDPR_newsletter_notices(newsletter_disclaimer_elems);\n\t\t\t\t}\n\t\t\t\tinsert_GDPR_styles();\n\t\t\t\tadd_checkbox_listeners();\n\t\t\t\tadd_more_info_listeners();\n\t\t\t}\n\t\t}\n\n\t\tfunction insert_GDPR_styles() {\n\t\t\tvar gdpr_styles = document.createElement('style');\n\t\t\tvar gdpr_checkbox_css = '' +\n\t\t\t\t'.gdpr_container{' +\n\t\t\t\t\t'font-size: 16px;' +\n\t\t\t\t\t'text-align: left;' +\n\t\t\t\t\t'color: #333;' +\n\t\t\t\t\t'background-color: #f8f6f0;' +\n\t\t\t\t\t'padding: 20px;' +\n\t\t\t\t\t'margin: 10px auto;' +\n\t\t\t\t\t'line-height: 1.3;' +\n\t\t\t\t\t'max-width: 473px;' +\n\t\t\t\t\t'border: 1px solid #eaeaea;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_checkbox_label{' +\n\t\t\t\t\t'cursor: pointer;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_checkbox{' +\n\t\t\t\t\t'cursor: pointer;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_more_info_link{' +\n\t\t\t\t\t'color: #0098db;' +\n\t\t\t\t\t'text-decoration: underline;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_more_info_text{' +\n\t\t\t\t\t'display: none;' +\n\t\t\t\t\t'text-align: left;' +\n\t\t\t\t\t'font-size: 0.8em;' +\n\t\t\t\t\t'margin-top: 10px;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_more_info_text a{' +\n\t\t\t\t\t'color: #0098db;' +\n\t\t\t\t\t'text-decoration: underline;' +\n\t\t\t\t'}' +\n\t\t\t\t'.gdpr_more_info_text_show{' +\n\t\t\t\t\t'display: block;' +\n\t\t\t\t'}' +\n\t\t\t\t'p.gdpr_checkbox_label{' +\n\t\t\t\t\t'width: 100%;' +\n\t\t\t\t'}' +\n\t\t\t\t'';\n\t\t\tgdpr_styles.innerHTML = gdpr_checkbox_css;\n\t\t\tdocument.querySelector('head').appendChild(gdpr_styles);\n\t\t}\n\n\t\t// --------------------------------------------------------\n\t\t// email consent language switcher - start\n\t\t// --------------------------------------------------------\n\t\tfunction getConsentText(consent_lang) {\n\t\t\tconsent_lang = consent_lang || 'en-US';\n\t\t\tvar is_espanol_site = document.querySelector('html').lang.toLowerCase() === 'es-us';\n\t\t\tif (is_espanol_site) {\n\t\t\t\tconsent_lang = 'es-US';\n\t\t\t}\n\t\t\tvar consent_text = {\n\t\t\t\t'en-US': {\n\t\t\t\t\ttopline_checkbox: 'Yes! I would like to receive product updates and marketing from Rosetta Stone. ',\n\t\t\t\t\ttopline_newsletter: 'By signing up for this newsletter, I agree to receive product updates and marketing from Rosetta Stone. ',\n\t\t\t\t\tmore_info_link: 'Click here for more information.',\n\t\t\t\t\tmore_info: 'By confirming, I agree to receive information and marketing relating to news, updates on Rosetta Stone products and services, offers, and invitations to events from Rosetta Stone, and I understand and agree that Rosetta Stone may process and transfer my information to its affiliates globally and to third party entities that provide services to Rosetta Stone for such purposes, in accordance with Rosetta Stone\\'s <a href=\"https://www.rosettastone.com/privacy\" target=\"_blank\">Privacy Policy</a>. I understand that I may opt-out of such communications at any time by clicking the link provided in the communication or by contacting Rosetta Stone at <a href=\"mailto:privacyofficer@rosettastone.com?Subject=Privacy%20inquiry\">privacyofficer@rosettastone.com</a>.'\n\t\t\t\t},\n\t\t\t\t'es-US': {\n\t\t\t\t\ttopline_checkbox: 'Quiero recibir informaci\xf3n sobre las novedades de los productos y las ofertas de Rosetta Stone. ',\n\t\t\t\t\ttopline_newsletter: 'Al suscribirme a este bolet\xedn, acepto recibir informaci\xf3n y ofertas de Rosetta Stone. ',\n\t\t\t\t\tmore_info_link: 'Saber m\xe1s.',\n\t\t\t\t\tmore_info: 'Acepto recibir informaci\xf3n y material de marketing sobre novedades del producto, ofertas e invitaciones a eventos de Rosetta Stone. Soy consciente de que Rosetta Stone puede compartir mis datos de acuerdo <a href=\"https://espanol.rosettastone.com/privacy\" target=\"_blank\">la pol\xedtica de protecci\xf3n de datos de Rosetta Stone</a> con socios globales y con terceros, los cuales ofrezcan servicios a Rosetta Stone. Tambi\xe9n soy consciente de que puedo anular en cualquier momento cualquier tipo de comunicaci\xf3n con Rosetta Stone haciendo clic sobre el enlace &ldquo;Anular suscripci\xf3n&rdquo; que aparece en el material de marketing o contactando con Rosetta Stone en <a href=\"mailto:privacyofficer@rosettastone.com?Subject=Privacy%20inquiry\">privacyofficer@rosettastone.com</a>.'\n\t\t\t\t}\n\t\t\t};\n\n\t\t\treturn consent_text[consent_lang];\n\t\t}\n\t\t// --------------------------------------------------------\n\t\t// email consent language switcher - end\n\t\t// --------------------------------------------------------\n\n\n\n\n\t\tfunction insert_GDPR_checkboxes(elems) {\n\n\t\t\tvar consent_text = getConsentText();\n\n\t\t\t// place gdpr checkboxes\n\t\t\tArray.prototype.forEach.call(elems, function (elem) {\n\n\t\t\t\tvar gdpr_checkbox_html = '' +\n\t\t\t\t\t'<div class=\"gdpr_container\" data-qa=\"gdpr_email_consent_container\">' +\n\t\t\t\t\t\t'<label class=\"gdpr_checkbox_label\">' +\n\t\t\t\t\t\t\t'<input class=\"gdpr_checkbox\" data-qa=\"gdpr_email_consent_checkbox\" type=\"checkbox\" autocomplete=\"off\" style=\"width:auto; height:auto; margin:auto 6px auto auto; border:unset; display:inline-block;\">' +\n\t\t\t\t\t\t\tconsent_text.topline_checkbox +\n\t\t\t\t\t\t'</label>' +\n\t\t\t\t\t\t'<a href=\"#\" class=\"gdpr_more_info_link\">' + consent_text.more_info_link + '</a>' +\n\t\t\t\t\t\t'<div class=\"gdpr_more_info_text\">' +\n\t\t\t\t\t\t\tconsent_text.more_info +\n\t\t\t\t\t\t'</div>' +\n\t\t\t\t\t'</div>';\n\n\t\t\t\telem.innerHTML = gdpr_checkbox_html;\n\t\t\t});\n\t\t}\n\n\t\tfunction insert_GDPR_newsletter_notices(elems) {\n\n\t\t\tvar consent_text = getConsentText();\n\n\t\t\t// place gdpr checkboxes\n\t\t\tArray.prototype.forEach.call(elems, function (elem) {\n\n\t\t\t\tvar gdpr_newsletter_html = '' +\n\t\t\t\t\t'<div class=\"gdpr_container\" data-qa=\"gdpr_email_consent_container\">' +\n\t\t\t\t\t\t'<p class=\"gdpr_checkbox_label\">' +\n\t\t\t\t\t\t\tconsent_text.topline_newsletter +\n\t\t\t\t\t\t\t'<a href=\"#\" class=\"gdpr_more_info_link\">' + consent_text.more_info_link + '</a>' +\n\t\t\t\t\t\t'</p>' +\n\t\t\t\t\t\t'<div class=\"gdpr_more_info_text\">' +\n\t\t\t\t\t\t\tconsent_text.more_info +\n\t\t\t\t\t\t'</div>' +\n\t\t\t\t\t'</div>';\n\n\t\t\t\telem.innerHTML = gdpr_newsletter_html;\n\t\t\t});\n\t\t}\n\n\t\tfunction add_checkbox_listeners() {\n\t\t\t// add event listeners to checkboxes\n\t\t\tvar checkbox_elems = document.querySelectorAll('.gdpr_checkbox');\n\t\t\tArray.prototype.forEach.call(checkbox_elems, function (checkbox) {\n\n\t\t\t\tcheckbox.addEventListener('change', function () {\n\t\t\t\t\tvar current_country_code = window.gdpr.country_code;\n\t\t\t\t\tif (this.checked) {\n\t\t\t\t\t\tvar needs_double_opt_in = window.gdpr.double_opt_in_countries\n\t\t\t\t\t\t\t.indexOf(current_country_code) > -1;\n\t\t\t\t\t\twindow.gdpr.email_consent = needs_double_opt_in ?\n\t\t\t\t\t\t\t'double_opt_in' : 'active';\n\t\t\t\t\t} else {\n\t\t\t\t\t\twindow.gdpr.email_consent = null;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\tfunction add_more_info_listeners() {\n\t\t\t// add event listeners to \"more info\" links\n\t\t\tvar more_info_links = document.querySelectorAll(\n\t\t\t\t'.gdpr_more_info_link');\n\t\t\tArray.prototype.forEach.call(more_info_links, function (\n\t\t\t\tinfo_link) {\n\n\t\t\t\tinfo_link.addEventListener('click', function (e) {\n\t\t\t\t\te.preventDefault();\n\n\t\t\t\t\tvar info_text = info_link.parentElement.parentElement\n\t\t\t\t\t\t.querySelector('.gdpr_more_info_text');\n\n\t\t\t\t\tinfo_text.className = (/gdpr_more_info_text_show/).test(\n\t\t\t\t\t\t\tinfo_text.className) ?\n\t\t\t\t\t\tinfo_text.className.replace(\n\t\t\t\t\t\t\t/ gdpr_more_info_text_show/, '') :\n\t\t\t\t\t\tinfo_text.className + ' gdpr_more_info_text_show';\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\n\t\tfunction get_GDPR_email_consent(country_code) {\n\t\t\t// default is gdpr compliant, so US is the only one that should change\n\t\t\tif (country_code && country_code.toUpperCase() === 'US') {\n\n\t\t\t\t// allow email collection\n\t\t\t\twindow.gdpr.email_consent = 'implicit';\n\n\t\t\t\t// hide gdpr content\n\t\t\t\tArray.prototype.forEach.call(document.querySelectorAll(\n\t\t\t\t\t'.gdpr_target'), function (elem) {\n\t\t\t\t\telem.style.display = 'none';\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\t// expose methods on gdpr global\n\t\twindow.gdpr.insert_GDPR_email_checkbox = insert_GDPR_email_checkbox;\n\t\twindow.gdpr.insert_GDPR_styles = insert_GDPR_styles;\n\t\twindow.gdpr.insert_GDPR_checkboxes = insert_GDPR_checkboxes;\n\t\twindow.gdpr.insert_GDPR_newsletter_notices = insert_GDPR_newsletter_notices;\n\t\twindow.gdpr.add_checkbox_listeners = add_checkbox_listeners;\n\t\twindow.gdpr.add_more_info_listeners = add_more_info_listeners;\n\t\twindow.gdpr.get_GDPR_email_consent = get_GDPR_email_consent;\n\t}\n})();\n</script>"},{html:"<!-- OneTrust Cookies Consent Notice (Production CDN, rosettastone.com, en-GB) start -->\n\n<!-- <script src=\"https://cdn.cookielaw.org/consent/085baa86-593a-4abd-891f-f273486ebd94.js\" type=\"text/javascript\" charset=\"UTF-8\"></script> -->\n\n<script type=\"text/javascript\">\n\n// only run popup on non-cart pages due to jquery conflicts with onetrust and magento\nif( !(/https:\\/\\/secure/i).test(window.location.href) && window.gdpr ){\n\n\twindow.gdpr.run_cookie_banner = function(){\n\n\t\twindow.gdpr.state.cookie_banner_ran = true;\n\n\n\t\t// initialize onetrust popup (with url given in onetrust dashboard)\n\t\tvar onetrust_popup_url = 'https://cdn.cookielaw.org/consent/085baa86-593a-4abd-891f-f273486ebd94.js';\n\t\tvar is_auto_opt_in_country = window.gdpr.is_auto_opt_in_country();\n\t\tvar is_espanol_site = document.querySelector('html').lang.toLowerCase() === 'es-us';\n\t\t// for auto opt-in countries, the site will automatically use analytics + cookies\n\t\t// and display a banner saying browsing = consent\n\t\tif(is_auto_opt_in_country){\n\t\t\tonetrust_popup_url = 'https://cdn.cookielaw.org/consent/0f51473d-95a6-4dd5-b483-a77030815ece.js';\n\t\t}\n\t\tif(is_espanol_site){\n\t\t\tonetrust_popup_url = 'https://cdn.cookielaw.org/consent/ed9e8ced-39df-48ed-b46b-6a43b5ef6137.js';\n\t\t}\n\t\tinitialize_onetrust_popup(onetrust_popup_url);\n\n\n\n\n\n\t\t// unblock cookie consent popup if user is NOT from US\n\t\tif( !(window.gdpr && window.gdpr.country_code==='US') ){\n\t\t\tunblockOneTrust();\n\t\t}\n\n\n\t\t// this runs on page load and every time user updates cookie preferences\n\t\twindow.OptanonWrapper = function(){\n\t\t\tif(window.OptanonActiveGroups){\n\t\t\t\t\n\t\t\t\tvar all_cookies_accepted = (/,4,/).test(window.OptanonActiveGroups);\n\t\t\t\tvar analytics_cookies_accepted = (/,(2|3),/).test(window.OptanonActiveGroups);\n\t\t\t\tvar no_cookies_accepted = window.OptanonActiveGroups===',1,';\n\n\t\t\t\tif(all_cookies_accepted){\n\t\t\t\t\twindow.gdpr && window.gdpr.trigger('gdpr_accept_all_cookies');\n\t\t\t\t}\n\t\t\t\telse if(analytics_cookies_accepted){\n\t\t\t\t\twindow.gdpr && window.gdpr.trigger('gdpr_accept_analytics_only');\n\t\t\t\t}\n\t\t\t\telse if(no_cookies_accepted){\n\t\t\t\t\twindow.gdpr && window.gdpr.trigger('gdpr_revoke_cookie_consent');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\t// Rosetta Stone's custom fixes ensure OneTrust's dark overlay appears and disappears when it should\n\t\tperform_onetrust_fixes();\n\n\n\n\n\n\n\n\n\n\n\t\t// ******************************************************\n\t\t// Utility functions\n\t\t// ******************************************************\n\n\n\t\tfunction initialize_onetrust_popup(onetrust_url){\n\t\t\tvar onetrust = document.createElement('script');\n\t\t\tonetrust.setAttribute('src', onetrust_url);\n\t\t\tonetrust.setAttribute('type', 'text/javascript');\n\t\t\tonetrust.setAttribute('charset', 'UTF-8');\n\t\t\tdocument.head.appendChild(onetrust);\n\n\t\t\t// make sure onetrust popup starts temporarily hidden while code decides whether to show it\n\t\t\tblockOneTrust();\n\t\t}\n\n\t\tfunction blockOneTrust(){\n\t\t\tvar one_trust_hider = document.createElement('style');\n\t\t\tone_trust_hider.setAttribute('id','__gdpr_onetrust_hider');\n\t\t\tvar one_trust_hider_css = ''\n\t\t\t\t+'#optanon, .optanon-alert-box-wrapper{'\n\t\t\t\t\t+'display: none !important;'\n\t\t\t\t+'}'\n\t\t\t\t+'';\n\t\t\tone_trust_hider.innerHTML = one_trust_hider_css;\n\t\t\tdocument.querySelector('head').appendChild(one_trust_hider);\n\t\t}\n\n\t\tfunction unblockOneTrust(){\n\t\t\tvar one_trust_hider = document.getElementById('__gdpr_onetrust_hider');\n\t\t\tdocument.querySelector('head').removeChild(one_trust_hider);\n\t\t}\n\n\n\t\tfunction style_onetrust(){\n\t\t\tvar one_trust_css_edits = document.createElement('style');\n\t\t\tone_trust_css_edits.setAttribute('id','__gdpr_onetrust_style_edits');\n\t\t\tvar one_trust_css_edits_css = ''\n\t\t\t\t+'.optanon-alert-box-body a {'\n\t\t\t\t\t+'color: #0098db;'\n\t\t\t\t\t+'text-decoration: underline;'\n\t\t\t\t+'}'\n\t\t\t\t+'.optanon-alert-box-body a:hover {'\n\t\t\t\t\t+'color: #00b8fb;'\n\t\t\t\t+'}'\n\t\t\t\t+'';\n\t\t\tone_trust_css_edits.innerHTML = one_trust_css_edits_css;\n\t\t\tdocument.querySelector('head').appendChild(one_trust_css_edits);\n\t\t}\n\n\t\tfunction set_links_to_new_tab(selector){\n\t\t\tgetElems(selector).forEach(function(elem){\n\t\t\t\telem.setAttribute('target','_blank');\n\t\t\t});\n\t\t}\n\n\n\t\tfunction perform_onetrust_fixes(){\n\n\t\t\tfunction fadeOut(selector, duration, callback){\n\t\t\t\tduration = duration || 400;\n\n\t\t\t\tvar elems = Array.prototype.slice.call(document.querySelectorAll(selector));\n\t\t\t\telems.forEach(function(elem){\n\t\t\t\t\telem.style.transition = 'opacity '+duration+'ms';\n\t\t\t\t});\n\t\t\t\tsetTimeout(function(){\n\t\t\t\t\telems.forEach(function(elem){\n\t\t\t\t\t\telem.style.opacity = 0;\n\t\t\t\t\t});\n\t\t\t\t},0);\n\t\t\t\tsetTimeout(function(){\n\t\t\t\t\telems.forEach(function(elem){\n\t\t\t\t\t\telem.style.display = 'none';\n\t\t\t\t\t});\n\n\t\t\t\t\tcallback && callback();\n\t\t\t\t},duration);\n\n\t\t\t}\n\n\t\t\tfunction fadeIn(selector, duration, callback){\n\t\t\t\tduration = duration || 400;\n\n\t\t\t\tvar elems = Array.prototype.slice.call(document.querySelectorAll(selector));\n\t\t\t\telems.forEach(function(elem){\n\t\t\t\t\telem.style.transition = 'opacity '+duration+'ms';\n\t\t\t\t\telem.style.display = 'block';\n\t\t\t\t});\n\t\t\t\tsetTimeout(function(){\n\t\t\t\t\telems.forEach(function(elem){\n\t\t\t\t\t\telem.style.opacity = 1;\n\t\t\t\t\t});\n\t\t\t\t},0);\n\n\t\t\t\tsetTimeout(function(){\n\t\t\t\t\tcallback && callback();\n\t\t\t\t},duration);\n\t\t\t}\n\n\t\t\t// Rosetta Stone's custom fixes ensure OneTrust's dark overlay appears and disappears when it should\n\t\t\tsetTimeout(function(){\n\t\t\t\tgetElems('.optanon-alert-box-close').forEach(function(elem){\n\t\t\t\t\telem.addEventListener('click', function(){\n\t\t\t\t\t\tfadeOut('#optanon-popup-bg', 400, blockOneTrust);\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t\tgetElems('.optanon-close-link').forEach(function(elem){\n\t\t\t\t\telem.addEventListener('click', function(){\n\t\t\t\t\t\tsetTimeout(function(){\n\t\t\t\t\t\t\t// fadeIn('#optanon-popup-bg', 400);\n\t\t\t\t\t\t}, 500);\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\t\tset_links_to_new_tab('.optanon-alert-box-body a');\n\n\t\t\t}, 1000);\n\n\t\t\tstyle_onetrust();\n\t\t}\n\n\n\n\n\t\t// ************************************************************\n\t\t// UTILITY FUNCTIONS\n\t\t// ************************************************************\n\n\t\tfunction getElems(selector){\n\t\t\treturn Array.prototype.slice.call(document.querySelectorAll(selector));\n\t\t}\n\n\t};\n\n\n\n\n\n\n\n\n\n\t// ************************************************************\n\t// RUN BANNER SCRIPT AT CORRECT TIMES\n\t// ************************************************************\n\n\t// if country code has already returned, run banner code\n\tif(window.gdpr.state.country_code_returned){\n\t\tif(!window.gdpr.state.cookie_banner_ran){\n\t\t\twindow.gdpr.run_cookie_banner();\n\t\t}\n\t}\n\n\t// run banner script when country code returns\n\twindow.gdpr.on('country_code_returned', function(){\n\t\tif(!window.gdpr.state.cookie_banner_ran){\n\t\t\twindow.gdpr.run_cookie_banner();\n\t\t}\n\t});\n\n\t// run banner script by default if country code takes too long to return\n\tsetTimeout(function(){\n\t\tif(!window.gdpr.state.cookie_banner_ran){\n\t\t\twindow.gdpr.run_cookie_banner();\n\t\t}\n\t}, window.gdpr.max_wait_for_country_code);\n\n}\n\n</script>\n\n<!-- OneTrust Cookies Consent Notice (Production CDN, rosettastone.com, en-GB) end -->"}]}],event:"pagetop"},{name:"GDPR_family_lp_redirects",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5b06c46164746d3c1f0009a3-staging.js"}]}]}],scope:{URI:{include:["/lp/sbshybrid/","/lp/discount/","/lp/ns/","/lp/nsc/","/lp/nsd/"]}},event:"pagetop"},{name:"PatchFamily_EandEMenus",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-595d2ffb64746d51d3020239-staging.js"}]}]}],scope:{URI:{include:[/\/(?:k12|business|publicsector|highereducation)\/(?!(home|$))/i,/\/(?:publicsector|highereducation)\/?/i],exclude:[/business\/solutions(?:\/$|$)/i,/business\/rosetta-stone-benefits(?:\/$|$)/i]}},event:"pagebottom"},{name:"PatchFamily_Homeschool_logo_redirect",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5b9a828164746d04bb00279a-staging.js"},{src:"satellite-5b9ab1d264746d086000344c-staging.js"}]}]}],scope:{URI:{include:["/homeschool/demo","/lp/sbsr-hs/sitewide/","/homeschool/articles/","/homeschool/"]}},event:"pagebottom"},{name:"PatchPage_Cart1",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5ba9040264746d14a6002f45-staging.js"}]}]}],scope:{URI:{include:[/checkout\//i],exclude:["multipage","onepage"]},subdomains:{include:["secure."]}},event:"domready"},{name:"PatchPage_PAYG",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-5bb2586e64746d082a00a879-staging.js"}]}]}],scope:{URI:{include:["-payg"]}},event:"pagebottom"},{name:"PatchPage_PPC",trigger:[{command:"writeHTML",arguments:[{
html:"<!--**********************************************************\nPPC SALE ONLY: MUST GO AFTER RSI, BEFORE SATELLITE\n\tpurpose: update cid to reflect that this visit came from a pay-per-click ad\n***********************************************************-->\n<script>\nif('history' in window && typeof window.history.replaceState == 'function' && 'RSI' in window && RSI.rsi){\n    (function alterppcurl(){\n        var currentcid = ((window.location.search || '').match(/cid=([^&]*)/i) || []).pop();\n        var replacecid = ({\"gg\":\"gg\",\"1\":\"gg\",\"2\":\"gg\",\"bg\":\"bg\",\"yh\":\"yh\"})[currentcid] || 'gg';\n        var targetcid = 'se-br-' + (replacecid || 'xx') + '-' + (( RSI.header && (RSI.header.mastheadImage || '').split('.')[0] ) || 'xx');\n        window.history.replaceState({},'Title', window.location.search.replace(/cid=[^&]*/i,'cid='+targetcid));\n    })();\n}\n</script>"}]}],scope:{URI:{include:[/\/ppc\//i]}},event:"pagetop"},{name:"Patch_EE_Pages_K12_Home",trigger:[{command:"writeHTML",arguments:[{html:'<script>\n  window.location.href = "http://m.rosettastone.com/k12"\n</script>'}]}],scope:{URI:{include:["k12/home/"]}},conditions:[function(){return-1!==["iPhone","iPod","Nokia","Windows Phone","Blackberry","Android"].indexOf(_satellite.browserInfo.deviceType)}],event:"pagebottom"},{name:"Patchpage_default_option",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5944412064746d386000c547-staging.js"}]}]}],scope:{URI:{include:["learn-spanish"]}},conditions:[function(){return _satellite.textMatch(_satellite.getQueryParam("version"),"2")}],event:"pagebottom"},{name:"PixelsFamily_Blog",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5a29729964746d3e390061f9-staging.js"},{src:"satellite-5a7346f464746d3cfb000326-staging.js"},{src:"satellite-5b18056e64746d5ad50000f0-staging.js"}]}]}],scope:{URI:{include:["/blog"]}},event:"pagebottom"},{name:"PixelsFamily_CatalogPages",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-578f94c564746d29b9003004-staging.js"},{src:"satellite-5b75e3f764746d65ea000843-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-52f4db6ae6129c4f53000016-staging.html",data:[]},{src:"satellite-578f94c564746d29b9003005-staging.html",data:[]}]}]}],scope:{URI:{include:["/learn-","/buy-"]}},event:"pagebottom"},{name:"PixelsFamily_ContentHeavySEO_catalog_pages",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b350fa564746d12b90069bc-staging.js"}]}]}],scope:{URI:{include:["/how-to-learn-","/speak-"]}},event:"pagebottom"},{name:"PixelsFamily_EEEloqua",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-573b484b64746d1e32004c16-staging.js"},{src:"satellite-5b44f44c64746d56d800591f-staging.js"},{src:"satellite-5cc2371d64746d2ae00007fd-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-5616b39e6266640017000a34-staging.html",data:[]},{src:"satellite-5616b7fb366462001400160d-staging.html",data:[]},{src:"satellite-562145b76534620014000905-staging.html",data:[]},{src:"satellite-562145b76534620014000906-staging.html",data:[]},{src:"satellite-573f24ca64746d6b8a007001-staging.html",data:[]}]}]}],scope:{subdomains:{include:[/corporate|edu|org|gov|k12/i]}},event:"pagebottom"},{name:"PixelsFamily_EELiferay",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b3a8d7564746d1adb005d56-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-5616b8bd6436320017000967-staging.html",data:[]},{src:"satellite-5616b9383034630014000983-staging.html",data:[]},{src:"satellite-562147383331350014000bbb-staging.html",data:[]},{src:"satellite-562147383331350014000bbc-staging.html",data:[]},{src:"satellite-56a66fd464746d2da100212a-staging.html",data:[]}]}]}],scope:{URI:{include:[/(business|education|k12|publicsector)/i]}},event:"pagebottom"},{name:"PixelsFamily_ES",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b68b07664746d189a0012b6-staging.js"}]}]}],scope:{URI:{include:["-es/"]}},event:"pagebottom"},{name:"PixelsFamily_Espanol",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b68aca664746d19960012e1-staging.js"}]}]}],scope:{subdomains:{include:["espanol"]}},event:"pagebottom"},{name:"PixelsFamily_Global",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-57b3909464746d36190012d0-staging.js"},{src:"satellite-580139c264746d4cce003782-staging.js"},{src:"satellite-5b9ab72964746d07e4002f9e-staging.js"},{src:"satellite-5b9c0b2f64746d08a8003a94-staging.js"},{src:"satellite-5c24e40164746d101a011492-staging.js"},{src:"satellite-5cae379064746d7c4e002881-staging.js"},{src:"satellite-5cb943ff64746d2308000c15-staging.js"},{src:"satellite-54f9e64a3066330016bf0300-staging.js"},{src:"satellite-59a46c1b64746d7ade00599f-staging.js"},{src:"satellite-5644ff9264746d1dab007a13-staging.js"},{src:"satellite-569e58d464746d3eb6001389-staging.js"},{src:"satellite-5744ba4464746d2e020084ff-staging.js"},{src:"satellite-5983427164746d09f5005e87-staging.js"},{src:"satellite-5b995c1264746d08a80029b4-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-53cea9beaacf7a57fe000240-staging.html",data:[]}]}]}],scope:{URI:{exclude:[/(\/multicheckout\/multipage\/|\/checkout\/onepage\/|\/multicheckout\/multipage\/smart\/)$/i,/\/affiliate\//i,"/product-activation"]},subdomains:{exclude:["corporate.rosettastone.com","k12.rosettastone.com","edu.rosettastone.com ","gov.rosettastone.com","org.rosettastone.com"]}},event:"pagebottom"},{name:"PixelsFamily_Global_Exclude_Homeschool-Hispanic",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5caed4cd64746d76a600d042-staging.js"}]}]}],scope:{URI:{exclude:["/product-activation",/\/affiliate\//i,/(\/multicheckout\/multipage\/|\/checkout\/onepage\/|\/multicheckout\/multipage\/smart\/)$/i,"org.rosettastone.com","gov.rosettastone.com","edu.rosettastone.com","k12.rosettastone.com","corporate.rosettastone.com","espanol.rosettastone.com","/homeschool",/sbsr-hs/i]}},event:"pagebottom"},{name:"PixelsFamily_Global_Geist",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5c94262564746d76e60017b4-staging.js"},{src:"satellite-5c94262564746d76e60017b5-staging.js"}]}]}],event:"pagebottom"},{name:"PixelsFamily_Global_non-cart",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5ace485264746d0963003ac8-staging.js"},{src:"satellite-5b49069a64746d61bb000d27-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-595e688c64746d6e6f00777e-staging.html",data:[]}]}]}],scope:{URI:{exclude:[/\/affiliate\//i,"/product-activation"]},subdomains:{exclude:[/secure\./i]}},event:"pagebottom"},{name:"PixelsFamily_Homeschool",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b68b68164746d2bd3001899-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-52f1e9ca4c479c6fe00001ee-staging.html",data:[]},{src:"satellite-57c84f5664746d7d21005b63-staging.html",data:[]}]}]}],scope:{URI:{include:[/homeschool|opdemo2hs|hslp/i]}},event:"pagebottom"},{name:"PixelsFamily_Homeschool_LPs",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b68b70b64746d11b900165f-staging.js"}]}]}],scope:{URI:{include:["-hs/"]}},event:"pagebottom"},{name:"PixelsFamily_Ingles",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-553007026230385dd17b0600-staging.html",data:[]}]}]}],scope:{URI:{include:[/ingles/i]}},event:"pagebottom"},{name:"PixelsFamily_LP_Hispanic",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-578e82dd64746d0b16003048-staging.html",data:[]},{src:"satellite-578e82dd64746d0b16003049-staging.html",data:[]}]}]}],scope:{URI:{include:[/aprende|curso|ingles/i]}},event:"pagebottom"},{name:"PixelsFamily_LP_LandingPagesAndDemos",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-58d1801a64746d482f008541-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-577ec50164746d09be004072-staging.html",data:[]},{src:"satellite-599c865564746d7ae7002ae2-staging.html",data:[]},{src:"satellite-599c865564746d7ae7002ae3-staging.html",data:[]},{src:"satellite-599c865564746d7ae7002ae4-staging.html",data:[]},{src:"satellite-599c865564746d7ae7002ae5-staging.html",data:[]}]}]}],scope:{URI:{include:[/sbs|mobile|tg|demo|embrace-conversation|peter|solo|avventura|food-truck-challenge|offer|ppc|discount|quiz/i],exclude:[/sbsr-hs/i]}},event:"pagebottom"},{name:"PixelsFamily_SBSR_RMSITEWIDE",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5bf824ad64746d46160090c7-staging.js"}]}]}],scope:{URI:{include:["rmsitewide"]}},event:"pagebottom"},{name:"PixelsPage_EEEloquaConfirmation",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Conversion Pixel, Confirmation Page -->\n<!-- Owners: Hoan/Jefferson -->\n<!-- Date Added: 10/8/2015 -->\n<script type="text/javascript">\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 1.00;\nvar google_conversion_currency = "USD";\nvar google_remarketing_only = false;\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=1.00&amp;currency_code=USD&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n<!-- END Google Code for Conversion Confirmation Page -->'},{html:"<!-- Facebook Conversion Code Pixel, Education Form Completes -->\n<!-- Owners: Hoan/Jefferson -->\n<!-- Date Added: 10/8/2015 -->\n<script>\nif(window.location.host.match(/edu|k12/)) {\n(function() {\nvar _fbq = window._fbq || (window._fbq = []);\nif (!_fbq.loaded) {\nvar fbds = document.createElement('script');\nfbds.async = true;\nfbds.src = '//connect.facebook.net/en_US/fbds.js';\nvar s = document.getElementsByTagName('script')[0];\ns.parentNode.insertBefore(fbds, s);\n_fbq.loaded = true;\n}\n})();\nwindow._fbq = window._fbq || [];\nwindow._fbq.push(['track', '6031132480117', {'value':'0.00','currency':'USD'}]);\n}\n</script>\n<!-- END Facebook Conversion Code Pixel -->\n"},{html:'<script src="//platform.twitter.com/oct.js" type="text/javascript"></script>\n<script type="text/javascript">if(window.location.host.match(/edu|k12/))twttr.conversion.trackPid(\'nti3y\', { tw_sale_amount: 0, tw_order_quantity: 0 });</script>'},{html:'<script src="//platform.twitter.com/oct.js" type="text/javascript"></script>\n<script type="text/javascript">if(window.location.host.match(/corporate/)) twttr.conversion.trackPid(\'nti47\', { tw_sale_amount: 0, tw_order_quantity: 0 });</script>'},{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Enterprise Demo Conversion\nURL of the webpage where the tag is expected to be placed: http://org.rosettastone.com/freedemo?\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 05/03/2016\n-->\n<script>\n(function(){\n\tvar eeid = /eeid=ba-cn-gg-consumer-display/i;\n\t\n\tvar isBusiness = /business/i.test(window.location.href);\n\tvar eeidMatches = eeid.test(window.location.href) || eeid.test(document.referrer) || ( document.cookie && eeid.test(decodeURIComponent(document.cookie)) );\n\t\n\tif(isBusiness && eeidMatches){\n\t\tvar a = Math.floor(Math.random() * 10000000000000);\n\t\tvar ifrm = document.createElement('iframe');\n\t\tifrm.src = 'https://4476300.fls.doubleclick.net/activityi;src=4476300;type=democ0;cat=enter0;u3=[language];u6=[rsi];dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1;num=' + a + '?';\n\t\tifrm.width = '1';\n\t\tifrm.height = '1';\n\t\tifrm.frameborder = '0';\n\t\tifrm.style = 'display:none';\n\t\tdocument.body.appendChild(ifrm);\n\t}\n})();\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n"}]},{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5736382164746d2e02003ac8-staging.js"}]}]}],scope:{URI:{include:[/-confirmation/i,/\/e\/f2/i]},subdomains:{include:["corporate|gov|k12|edu|org|s1294"]}},event:"pagebottom"},{name:"PixelsPage_HispanicCartConfirmation",trigger:[{command:"writeHTML",arguments:[{html:"<!-- BEGIN: Marin Software Tracking Script -->\n<script type=\"text/javascript\">\nfunction GUID () {\n    var S4 = function ()\n    {\n        return Math.floor(\n                Math.random() * 0x10000 /* 65536 */\n            ).toString(16);\n    };\n\n    return (\n            S4() + S4() + \"-\" +\n            S4() + \"-\" +\n            S4() + \"-\" +\n            S4() + \"-\" +\n            S4() + S4() + S4()\n        );\n};\nvar guid = GUID();\n\nif( Mage.Cookies.get('affiliate') != undefined && Mage.Cookies.get('affiliate').indexOf('hispanicmar') != -1){// fire pixel\n\nvar marinImgSrc= \"https://tracker.marinsm.com/tp?act=2&cid=3422f4l34493&currency=USD&trans=UTM:I|\"+order_id+\"|sale|||\"+pixp_total+\"&rnd=\"+guid;\nimg.attr('src', marinImgSrc);\nimg.attr('height', '1px');\nimg.attr('width', '1px');\nimg.appendTo('body');\n\n}\n\n\n</script>\n<!-- END: Copyright Marin Software -->\n"},{html:'<!-- Start Quantcast Tag -->\n<script type="text/javascript">\nvar _qevents = _qevents || [];\n\n(function() {\nvar elem = document.createElement(\'script\');\nelem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";\nelem.async = true;\nelem.type = "text/javascript";\nvar scpt = document.getElementsByTagName(\'script\')[0];\nscpt.parentNode.insertBefore(elem, scpt);\n})();\n\n_qevents.push(\n{qacct:"p-79GCGUL-EId6Y",labels:"_fp.event.En Espanol Order Confirmation",orderid:order_id,revenue:pixp_total}\n);\n</script>\n<!-- End Quantcast tag -->'},{html:"<script>\n(function(){\n  window._tfa = window._tfa || [];\n  window._tfa.push({notify:\"mark\", type: 'visitor'});\n\n  var taboola = document.createElement('script');\n  taboola.setAttribute('src','//cdn.taboola.com/libtrc/rosettastone-spanish-sc/tfa.js');\n  document.body.appendChild(taboola);\n})();\n</script>"},{html:'<!-- Facebook Pixel Code -->\n<!--\n<script>\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function()\n{n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}\n\n;if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version=\'2.0\';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,\'script\',\'https://connect.facebook.net/en_US/fbevents.js\');\nfbq(\'init\', \'628044414011697\');\nfbq(\'track\', "PageView");</script>\n<noscript><img height="1" width="1" style="display:none"\nsrc="https://www.facebook.com/tr?id=628044414011697&ev=PageView&noscript=1"\n/></noscript>\n-->\n<!-- End Facebook Pixel Code -->\n\n<!-- Google Code for Thank You page- carrito Conversion Page -->\n<script>\n/* <![CDATA[ */\nvar google_conversion_id = 879005087;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "Ia2TCKSJ_2cQn5uSowM";\nvar google_remarketing_only = false;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/879005087/?label=Ia2TCKSJ_2cQn5uSowM&guid=ON&script=0"/>\n</div>\n</noscript>'}]},{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5c9d914a64746d6779000d29-staging.js"}]}]}],scope:{URI:{include:[/hispanic_store_view\/multicheckout\/multipage\/(success|smartsuccess)/i]}},event:"pagebottom"},{name:"PixelsPage_Home",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5641f84064746d3f7d0065b7-staging.js"}]}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-5564be833834340017750600-staging.html",data:[]},{src:"satellite-5564c1673834340017d00600-staging.html",data:[]},{src:"satellite-56b4cfe664746d6b9e00081d-staging.html",data:[]},{src:"satellite-577ec35164746d346d003920-staging.html",data:[]},{src:"satellite-599c4ace64746d6e370021ea-staging.html",data:[]},{src:"satellite-599c4ace64746d6e370021eb-staging.html",data:[]},{src:"satellite-599c4ace64746d6e370021ec-staging.html",data:[]},{src:"satellite-599c4ace64746d6e370021ed-staging.html",data:[]}]}]}],scope:{URI:{include:[/^\/$|^ $/i]}},event:"pagebottom"},{name:"PixelsPage_InglesLP",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5656475264746d3d65000c47-staging.js"}]}]}],scope:{URI:{include:[/\/lp\/ingles\/(bfrojoaii|cmarbolaii)/i]}},event:"pagebottom"},{name:"PixelsPage_MobileApps",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-5331f0d5c23bf51333000163-staging.html",data:[]}]}]}],scope:{URI:{include:["/mobile-apps"]}},event:"pagebottom"},{name:"PixelsPage_eeTeamEdition",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-5988baf364746d0ba5017a9c-staging.html",data:[]}]}]}],scope:{URI:{include:["/lp/team-edition"]}},event:"pagebottom"},{name:"PixelsPage_opdemo2_only",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5accc62f64746d762f010cd2-staging.js"},{src:"satellite-5af0ae1c64746d599b004a7c-staging.js"},{src:"satellite-5af0ae1c64746d599b004a7d-staging.js"},{src:"satellite-5bce045364746d01de001c71-staging.js"}]}]}],scope:{URI:{include:["lp/opdemo2"]}},event:"pagebottom"},{name:"RedirectFamily_KidsReading",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-58cc038264746d3a23000427-staging.js"}]}]}],scope:{URI:{include:[/\/kids/i]}},event:"pagetop"},{name:"TestingPage_EnglishCartCheckout",trigger:[{command:"loadBlockingScript",arguments:[{sequential:!0,scripts:[{src:"satellite-564dedc064746d63eb000888-staging.js"}]}]}],scope:{URI:{include:[/checkout\//i]},subdomains:{include:[/secure\./i]}},conditions:[function(){return _satellite.textMatch(_satellite.getVar("pagelanguage"),"ENG")}],event:"pagebottom"},{name:"TestingPage_LastCart",trigger:[{command:"writeHTML",arguments:[{html:"<div id=\"mboxDefault\"></div> \n<script>\n//Analytics on T&T at K. Benton's Request.\n//Note: Not a generally good practice to mix testing & analytics concerns.  Apparently we may be able to clean this up with the A4T integration.\nconsole.log('Non-Sequential Mbox: orderConfirmPage');\nif(typeof rs == 'object') {\n  console.log('Creating mbox: productPurchasedId=' + ( rs.pixp_sku || 'ERR' ) + ', orderTotal=' + ( rs.pixp_total || 'ERR' ) + ', orderId=' + ( rs.order_id || 'ERR' ) );\n  mboxDefine(\"mboxDefault\", \"orderConfirmPage\",\n  \t'productPurchasedId=' + ( rs.pixp_sku || 'ERR' ),\n    'orderTotal=' + ( rs.pixp_total || 'ERR' ),\n    'orderId=' + ( rs.order_id || 'ERR' )          \n  );\n  mboxUpdate(\"orderConfirmPage\",\n    'productPurchasedId=' + ( rs.pixp_sku || 'ERR' ),\n    'orderTotal=' + ( rs.pixp_total || 'ERR' ),\n    'orderId=' + ( rs.order_id || 'ERR' )            \n  );\n/*\n  mboxCreate('orderConfirmPage',\n'productPurchasedId=' + ( rs.pixp_sku || 'ERR' ),\n'orderTotal=' + ( rs.pixp_total || 'ERR' ),\n'orderId=' + ( rs.order_id || 'ERR' ));\n*/\n}\n\n</script>"}]}],scope:{URI:{include:[/\/(?:smart)?success\//i]},subdomains:{include:["secure"]}},event:"pagebottom"},{name:"business-customer-service",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-5398848a787450ddad000237-staging.html",data:[]}]}]}],scope:{URI:{include:["\\/business/customer-service"]}},event:"pagebottom"},{name:"business-customer-stories",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n<!-- OLD GOOGLE PIXEL\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n-->'}]}],scope:{URI:{include:[/\/business\/customer-stories/i]}},event:"pagebottom"},{name:"business-increase-productivity",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n\n<!-- OLD GOOGLE PIXEL\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n-->'}]}],scope:{URI:{include:[/\/business\/increase-productivity/i]}},event:"pagebottom"},{name:"business-market-expansion",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n<!-- OLD GOOGLE CODE\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n-->'},{
html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_Market Expansion LP\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\nvar axel = Math.random() + '';\nvar a = axel * 10000000000000;\n/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_00;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\nvar akamai_expansion_tag = document.createElement('iframe');\nakamai_expansion_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_00;ord=' + a + '?');\nakamai_expansion_tag.setAttribute('width','1');\nakamai_expansion_tag.setAttribute('height','1');\nakamai_expansion_tag.setAttribute('frameborder','0');\nakamai_expansion_tag.setAttribute('style','display:none');\ndocument.body.appendChild(akamai_expansion_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ME_Get a Free Consultation\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\t/* on free consultation click, fire pixel */\n\t\tdocument.getElementsByClassName('consultation')[0].onclick = function(){\n\t\t\tvar axel = Math.random() + '';\n\t\t\tvar a = axel * 10000000000000;\n\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_003;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\tvar akamai_consultation_tag = document.createElement('iframe');\n\t\t\takamai_consultation_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_003;ord=' + a + '?');\n\t\t\takamai_consultation_tag.setAttribute('width','1');\n\t\t\takamai_consultation_tag.setAttribute('height','1');\n\t\t\takamai_consultation_tag.setAttribute('frameborder','0');\n\t\t\takamai_consultation_tag.setAttribute('style','display:none');\n\t\t\tdocument.body.appendChild(akamai_consultation_tag);\n\t\t};\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ME_See Our Business Solutions\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks see our business solutions, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('business/solutions')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_006;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_solutions_tag = document.createElement('iframe');\n\t\t\t\t\takamai_solutions_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_006;ord=' + a + '?');\n\t\t\t\t\takamai_solutions_tag.setAttribute('width','1');\n\t\t\t\t\takamai_solutions_tag.setAttribute('height','1');\n\t\t\t\t\takamai_solutions_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_solutions_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_solutions_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ME_View Infographic\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\t/* on infographic click, fire pixel */\n\t\tdocument.getElementsByClassName('infographic')[0].onclick = function(){\n\t\t\tvar axel = Math.random() + '';\n\t\t\tvar a = axel * 10000000000000;\n\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_004;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\tvar akamai_infographic_tag = document.createElement('iframe');\n\t\t\takamai_infographic_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_004;ord=' + a + '?');\n\t\t\takamai_infographic_tag.setAttribute('width','1');\n\t\t\takamai_infographic_tag.setAttribute('height','1');\n\t\t\takamai_infographic_tag.setAttribute('frameborder','0');\n\t\t\takamai_infographic_tag.setAttribute('style','display:none');\n\t\t\tdocument.body.appendChild(akamai_infographic_tag);\n\t\t};\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ME_View Our Success Stories\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks success stories, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('business/customer-stories')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_007;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_stories_tag = document.createElement('iframe');\n\t\t\t\t\takamai_stories_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_007;ord=' + a + '?');\n\t\t\t\t\takamai_stories_tag.setAttribute('width','1');\n\t\t\t\t\takamai_stories_tag.setAttribute('height','1');\n\t\t\t\t\takamai_stories_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_stories_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_stories_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\t\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ME_Watch the Video\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/market-expansion\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks video, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('impact-of-language-barriers-market-expansion-video')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_005;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_video_tag = document.createElement('iframe');\n\t\t\t\t\takamai_video_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_005;ord=' + a + '?');\n\t\t\t\t\takamai_video_tag.setAttribute('width','1');\n\t\t\t\t\takamai_video_tag.setAttribute('height','1');\n\t\t\t\t\takamai_video_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_video_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_video_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->"}]}],scope:{URI:{include:[/\/business\/market-expansion/i]}},event:"pagebottom"},{name:"business-rosetta-stone-benefits",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n<!-- OLD GOOGLE PIXEL\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n-->'}]}],scope:{URI:{include:[/\/business\/rosetta-stone-benefits/i]}},event:"pagebottom"},{name:"business-solutions",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n\n<!-- OLD GOOGLE PIXEL\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n-->'},{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_General Product 1 & 2 LP\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/solutions\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\nvar axel = Math.random() + '';\nvar a = axel * 10000000000000;\n/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_000;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\nvar akamai_product_tag = document.createElement('iframe');\nakamai_product_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_000;ord=' + a + '?');\nakamai_product_tag.setAttribute('width','1');\nakamai_product_tag.setAttribute('height','1');\nakamai_product_tag.setAttribute('frameborder','0');\nakamai_product_tag.setAttribute('style','display:none');\ndocument.body.appendChild(akamai_product_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n\n"}]}],scope:{URI:{include:[/\/business\/solutions/i]}},event:"pagebottom"},{name:"business-workforce-development",trigger:[{command:"writeHTML",arguments:[{html:'<!-- Google Code for INS Form Lead Conversion Page -->\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1051877983;\nvar google_conversion_language = "en";\nvar google_conversion_format = "3";\nvar google_conversion_color = "ffffff";\nvar google_conversion_label = "ZesdCIOolQUQ38TJ9QM";\nvar google_conversion_value = 0;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=0&amp;label=ZesdCIOolQUQ38TJ9QM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n\n\n\n<!-- OLD GOOGLE PIXEL\n<script type="text/javascript">\n/* <![CDATA[ */\nvar google_conversion_id = 1072735889;\nvar google_conversion_label = "gGb1CK_fmQQQkc3C_wM";\nvar google_custom_params = window.google_tag_params;\nvar google_remarketing_only = true;\n/* ]]> */\n</script>\n<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">\n</script>\n<noscript>\n<div style="display:inline;">\n<img height="1" width="1" style="border-style:none;" alt="" src="//\ngoogleads.g.doubleclick.net/pagead/viewthroughconversion/1072735889/?\nvalue=0&amp;label=gGb1CK_fmQQQkc3C_wM&amp;guid=ON&amp;script=0"/>\n</div>\n</noscript>\n\n-->'},{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ED_Get a Free Consultation\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\t/* on free consultation click, fire pixel */\n\t\tdocument.getElementsByClassName('consultation')[0].onclick = function(){\n\t\t\tvar axel = Math.random() + '';\n\t\t\tvar a = axel * 10000000000000;\n\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_0;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\tvar akamai_consultation_tag = document.createElement('iframe');\n\t\t\takamai_consultation_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_0;ord=' + a + '?');\n\t\t\takamai_consultation_tag.setAttribute('width','1');\n\t\t\takamai_consultation_tag.setAttribute('height','1');\n\t\t\takamai_consultation_tag.setAttribute('frameborder','0');\n\t\t\takamai_consultation_tag.setAttribute('style','display:none');\n\t\t\tdocument.body.appendChild(akamai_consultation_tag);\n\t\t};\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ED_Read the Case Study\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks case study, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('Rosetta_Stone_Business_and_Hitachi_Case_Study.pdf')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_002;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_case_study_tag = document.createElement('iframe');\n\t\t\t\t\takamai_case_study_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_002;ord=' + a + '?');\n\t\t\t\t\takamai_case_study_tag.setAttribute('width','1');\n\t\t\t\t\takamai_case_study_tag.setAttribute('height','1');\n\t\t\t\t\takamai_case_study_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_case_study_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_case_study_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ED_See Our Business Solutions\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks see our solutions, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('business/solutions')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_000;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_solutions_tag = document.createElement('iframe');\n\t\t\t\t\takamai_solutions_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_000;ord=' + a + '?');\n\t\t\t\t\takamai_solutions_tag.setAttribute('width','1');\n\t\t\t\t\takamai_solutions_tag.setAttribute('height','1');\n\t\t\t\t\takamai_solutions_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_solutions_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_solutions_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ED_Take the Demo\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks demo, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('business/demo')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_001;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_demo_tag = document.createElement('iframe');\n\t\t\t\t\takamai_demo_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_001;ord=' + a + '?');\n\t\t\t\t\takamai_demo_tag.setAttribute('width','1');\n\t\t\t\t\takamai_demo_tag.setAttribute('height','1');\n\t\t\t\t\takamai_demo_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_demo_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_demo_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_ED_View the Infographic\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t$(document).ready(function(){\n\t\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t\t/* when user clicks infographic, fire pixel */\n\t\tfor(var i=0; i<akamai_links.length; i++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('web-business-risk-of-language-barriers')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_infographic_tag = document.createElement('iframe');\n\t\t\t\t\takamai_infographic_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00;ord=' + a + '?');\n\t\t\t\t\takamai_infographic_tag.setAttribute('width','1');\n\t\t\t\t\takamai_infographic_tag.setAttribute('height','1');\n\t\t\t\t\takamai_infographic_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_infographic_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_infographic_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t});\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_Employee Development LP\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-development\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\nvar axel = Math.random() + '';\nvar a = axel * 10000000000000;\n/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_0;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\nvar akamai_development_tag = document.createElement('iframe');\nakamai_development_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_0;ord=' + a + '?');\nakamai_development_tag.setAttribute('width','1');\nakamai_development_tag.setAttribute('height','1');\nakamai_development_tag.setAttribute('frameborder','0');\nakamai_development_tag.setAttribute('style','display:none');\ndocument.body.appendChild(akamai_development_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->"}]}],scope:{URI:{include:[/\/business\/workforce-development/i]}},event:"pagebottom"},{name:"business-workforce-safety",trigger:[{command:"writeHTML",arguments:[{
html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_Workplace Safety LP\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-safety\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\nvar axel = Math.random() + '';\nvar a = axel * 10000000000000;\n/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_001;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\nvar akamai_safety_tag = document.createElement('iframe');\nakamai_safety_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Corp_001;ord=' + a + '?');\nakamai_safety_tag.setAttribute('width','1');\nakamai_safety_tag.setAttribute('height','1');\nakamai_safety_tag.setAttribute('frameborder','0');\nakamai_safety_tag.setAttribute('style','display:none');\ndocument.body.appendChild(akamai_safety_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_WS_Get a Free Consultation\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-safety\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\t/* on free consultation click, fire pixel */\n\tdocument.getElementsByClassName('consultation')[0].onclick = function(){\n\t\tvar axel = Math.random() + '';\n\t\tvar a = axel * 10000000000000;\n\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00-;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\tvar akamai_consultation_tag = document.createElement('iframe');\n\t\takamai_consultation_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00-;ord=' + a + '?');\n\t\takamai_consultation_tag.setAttribute('width','1');\n\t\takamai_consultation_tag.setAttribute('height','1');\n\t\takamai_consultation_tag.setAttribute('frameborder','0');\n\t\takamai_consultation_tag.setAttribute('style','display:none');\n\t\tdocument.body.appendChild(akamai_consultation_tag);\n\t};\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_WS_Read the Case Study\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-safety\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t/* when user clicks case study, fire pixel */\n\tfor(var i=0; i<akamai_links.length; i++){\n\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('Case-Study/')>-1){\n\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00C;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\tvar akamai_case_study_tag = document.createElement('iframe');\n\t\t\t\takamai_case_study_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00C;ord=' + a + '?');\n\t\t\t\takamai_case_study_tag.setAttribute('width','1');\n\t\t\t\takamai_case_study_tag.setAttribute('height','1');\n\t\t\t\takamai_case_study_tag.setAttribute('frameborder','0');\n\t\t\t\takamai_case_study_tag.setAttribute('style','display:none');\n\t\t\t\tdocument.body.appendChild(akamai_case_study_tag);\n\t\t\t};\n\t\t}\n\t}\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_WS_See Our Business Solutions\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-safety\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t/* when user clicks solutions, fire pixel */\n\tfor(var i=0; i<akamai_links.length; i++){\n\t\tif(akamai_links[i].getElementsByTagName('a')[0].getAttribute('href').indexOf('business/solutions')>-1){\n\t\t\takamai_links[i].getElementsByTagName('a')[0].onclick = function(){\n\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00B;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\tvar akamai_solutions_tag = document.createElement('iframe');\n\t\t\t\takamai_solutions_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00B;ord=' + a + '?');\n\t\t\t\takamai_solutions_tag.setAttribute('width','1');\n\t\t\t\takamai_solutions_tag.setAttribute('height','1');\n\t\t\t\takamai_solutions_tag.setAttribute('frameborder','0');\n\t\t\t\takamai_solutions_tag.setAttribute('style','display:none');\n\t\t\t\tdocument.body.appendChild(akamai_solutions_tag);\n\t\t\t};\n\t\t}\n\t}\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Corp_WS_Watch the Video\nURL of the webpage where the tag is expected to be placed: http://www.rosettastone.com/business/workforce-safety\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 09/10/2014\n-->\n<script type=\"text/javascript\">\ntry{\n\tvar akamai_links = akamai_links || document.getElementsByClassName('prod-features-content');\n\n\t/* when user clicks video, fire pixel; NOTE THAT THIS DOM TRAVERSAL IS MORE ROBUST THAN THE OTHERS THAT LOOK LIKE IT, BUT SLIGHTLY SLOWER */\n\tfor(var i=0; i<akamai_links.length; i++){\n\t\tfor(var j=0; j<akamai_links[i].getElementsByTagName('a').length; j++){\n\t\t\tif(akamai_links[i].getElementsByTagName('a')[j].getAttribute('href').indexOf('impact-of-language-barriers-workplace-safety-video')>-1){\n\t\t\t\takamai_links[i].getElementsByTagName('a')[j].onclick = function(){\n\t\t\t\t\tvar axel = Math.random() + '';\n\t\t\t\t\tvar a = axel * 10000000000000;\n\t\t\t\t\t/*document.write('<iframe src=\"http://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00A;ord=' + a + '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>');*/\n\t\t\t\t\tvar akamai_video_tag = document.createElement('iframe');\n\t\t\t\t\takamai_video_tag.setAttribute('src','https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Corp_00A;ord=' + a + '?');\n\t\t\t\t\takamai_video_tag.setAttribute('width','1');\n\t\t\t\t\takamai_video_tag.setAttribute('height','1');\n\t\t\t\t\takamai_video_tag.setAttribute('frameborder','0');\n\t\t\t\t\takamai_video_tag.setAttribute('style','display:none');\n\t\t\t\t\tdocument.body.appendChild(akamai_video_tag);\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n}\ncatch(e){}\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->"}]}],scope:{URI:{include:[/\/business\/workforce-safety/i]}},event:"pagebottom"},{name:"cart page 1",trigger:[{engine:"sc",command:"setVars",arguments:[{hier1:""}]},{command:"writeHTML",arguments:[{html:"\n\n\n<script type=\"text/javascript\">\n  if (!window.Mage) var Mage = {};\nMage.Cookies = {}; \nMage.Cookies.set = function(name, value){\nvar argv = arguments;\nvar argc = arguments.length;\nvar expires = (argc > 2) ? argv[2] : Mage.Cookies.expires;\nvar path = (argc > 3) ? argv[3] : Mage.Cookies.path;\nvar domain = (argc > 4) ? argv[4] : Mage.Cookies.domain;\nvar secure = (argc > 5) ? argv[5] : Mage.Cookies.secure;\ndocument.cookie = name + \"=\" + escape (value) +\n((expires == null) ? \"\" : (\"; expires=\" + expires.toGMTString())) +\n((path == null) ? \"\" : (\"; path=\" + path)) +\n((domain == null) ? \"\" : (\"; domain=\" + domain)) +\n((secure == true) ? \"; secure\" : \"\");\n};\nMage.Cookies.get = function(name){\nvar arg = name + \"=\";\nvar alen = arg.length;\nvar clen = document.cookie.length;\nvar i = 0;\nvar j = 0;\nwhile(i < clen){\nj = i + alen;\nif (document.cookie.substring(i, j) == arg)\nreturn Mage.Cookies.getCookieVal(j);\ni = document.cookie.indexOf(\" \", i) + 1;\nif(i == 0)\nbreak;\n}\nreturn null;\n};   \nMage.Cookies.getCookieVal = function(offset){\nvar endstr = document.cookie.indexOf(\";\", offset);\nif(endstr == -1){\nendstr = document.cookie.length;\n}\nreturn unescape(document.cookie.substring(offset, endstr));\n};\n</script>  \n<!--\n<script type=\"text/javascript\">  \nvar rs_marketing_src =  Mage.Cookies.get('rs_marketing_src');\n\nif(rs_marketing_src == 'voltari'){\n       jQuery.getScript('https://click.moadlink.com/tinyurl/js/RS_2013-11-14_692');\n}\n\n</script>\n-->\n<!--\n<script type=\"text/javascript\">\njQuery('body').append('<img src=\"//api.nanigans.com/event.php?app_id=18060&type=visit&name=landing\" style=\"display:none;width:1px;height:1px;\">');\n</script>\n-->\n\n<script type=\"text/javascript\">\nfunction s4() {\n  return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\n}\n\nfunction guid() {\n  return s4() +  '-' + s4() + '-' + s4() + '-' + s4()  ;\n}\n/*\nif(nani_show_pixel) {\n\nimage = new Image(1,1); \nimage.src = '//api.nanigans.com/event.php?app_id=18060&type=user&name=add_to_cart&user_id='+ guid()+'&qty='+ nani_prod_qty +'&value='+ nani_prod_price +'&sku='+ nani_prod_id ;\n\n}\n*/\n(function(){\nvar quantcast_tag = document.createElement('img');\nquantcast_tag.setAttribute('src','//secure.quantserve.com/pixel/p-79GCGUL-EId6Y.gif?labels=_fp.event.Cart');\nquantcast_tag.setAttribute('style','display: none;border:0;height:1px;width:1px');\nquantcast_tag.setAttribute('alt','Quantcast');\ndocument.body.appendChild(quantcast_tag);\n})();\n// jQuery('body').append('<img src=\"//secure.quantserve.com/pixel/p-79GCGUL-EId6Y.gif?labels=_fp.event.Cart\" style=\"display: none;border:0;height:1px;width:1px\" alt=\"Quantcast\"/>');\n\n</script>\n\n\n<script type=\"text/javascript\">\n   try{\n        var qty = 0;\n        var prodDesc = \"\",acDesc=\"\";\n        prodDesc = rs.pixp_name;\n        prodDesc = prodDesc.replace(/&amp;/g,\"&\");\n        prodDesc = prodDesc.replace(/&nbsp;/g,\" \");\n        if(prodDesc == \"\" || prodDesc == null)\n        prodDesc = acDesc;\n        var cy_session_id = Mage.Cookies.get('_cy_session_id');\n        if (cy_session_id == null || cy_session_id.length == 0 || cy_session_id == 'undefined')\n    {\n      cy_session_id = _cyGenerateUUID();\n                    Mage.Cookies.set(\"_cy_session_id\", cy_session_id);\n    }\n                  else\n                    Mage.Cookies.set(\"_cy_session_id\", cy_session_id);\n                  cy.SessionID = cy_session_id;\n                  cy.Section = \"Cart\";\n                  cy.Quantity = rs.pixp_cartCount;\n                  var cartValue = rs.pixp_total;\n                  cy.Value =  rs.pixp_total;\n                  cy.Custom1 = rs.pixp_promo;\n                  cy.Custom4 = rs.pixp_lang;\n                  cy.Custom5 = rs.prodDesc;\n                  cy.FunnelLevel = \"3\";\n                  cy.ReturnToLink = rs.pixp_cartUrl;\n                  cy_getImageSrc();\n      }\n      catch(e)\n      {\n      }\n</script>\n<!--<script type=\"text/javascript\">\nvar rs_marketing_src =  Mage.Cookies.get('rs_marketing_src');\nif(rs_marketing_src == 'mojiva'){\n var mojivaCpid =  Mage.Cookies.get('mojivaCid');\n var mojivaSid =  Mage.Cookies.get('mojivaSid');\n  jQuery('body').append('<img src=\"http://www.mojiva.com/conversion.php?sid='+mojivaSid+'&cpid='+mojivaCpid+'&group_code=cart\" />')\n}\n</script>\n-->\n<!-- Begin: Facebook Conversion Code for Add to Cart -->\n<script type=\"text/javascript\">\nvar fb_param = {};\nfb_param.pixel_id = '6013243169048';\nfb_param.value = '0.00';\nfb_param.currency = 'USD';\n(function(){\n  var fpw = document.createElement('script');\n  fpw.async = true;\n  fpw.src = '//connect.facebook.net/en_US/fp.js';\n  var ref = document.getElementsByTagName('script')[0];\n  ref.parentNode.insertBefore(fpw, ref);\n})();\n</script>\n<noscript><img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\"https://www.facebook.com/offsite_event.php?id=6013243169048&amp;value=0&amp;currency=USD\" /></noscript>\n<!-- End: Facebook Conversion Code for Add to Cart -->\n\n<!-- Begin: Twitter Cart Abandonment Tag -->\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"https://analytics.twitter.com/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"//t.co/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<!-- End: Twitter Cart Abandonment Tag -->\n\n<!-- Begin: IgnitionOne Site Tag -->\n<!--\n<script type=\"text/javascript\">\n(function(){\n  var Data = {}\n\n  ,i=Data,d=document,u=encodeURIComponent,x=z='',j=d.createElement('script'),\n  r=d.referrer,s=d.getElementsByTagName('script')[0];j.type='text/javascript';\n  j.async=!0;r&&r.split(/[/:?]/)[3]!=d.location.hostname&&(i.ref=r);for(y in i)\n  x+='&'+y+'='+u(i[y]);j.src='//com-rosetta.netmng.com/'\n  +'?aid=2819&siclientid='+x;s.parentNode.insertBefore(j,s);\n})();\n</script>\n-->\n<!-- End: IgnitionOne Site Tag -->\n\n<script>\nmboxCreate(\"US_Cart_Page_1C\",'forQA=true');\n</script>\n\n<script>\nfunction stylechatbutton() {\n\tvar ss = document.styleSheets[0];\n\tss && ss.cssRules && ss.insertRule('#lpChatButton { position: absolute !important; top: 120px !important; left: 599px !important;}', ss.cssRules.length);\n}\nsetTimeout(function() {\ntry {\n\tlpMTagConfig.vars.push([\"session\",\"testGroup\",\"Y\"]);\n\tstylechatbutton();\t\n}\ncatch(err){ }\n}, 1000);\n</script>\n\n<script>\n/*\nfunction removeStrikeForAttachedBoxes() {\n    if( !document.cookie.match(/cs_gr=.*a0b70551e9256ac6/) ) {\n        return false;\n    }\n    if(rs.website == 'Mobile') {\n        //MOBILE\n       return (function($) {\n            var relatedboxes = $('.prodname span').filter(function(i,v){\n                return !!v.innerHTML \n                  && !!v.innerHTML.match(/CD.ROM/)\n                  && $(v).parents('.cartbottom').filter(function(i,v_cartbottom){\n                      var qty = v_cartbottom.querySelector && v_cartbottom.querySelector('.input-text.qty');\n                      qty = qty && parseInt( qty.getAttribute('value'), 10);\n                      if(!qty) {\n                          return false;\n                      }\n\n                      var price = v_cartbottom.querySelector('.specialprice');\n                      price = price && parseInt( price.innerHTML.match(/\\d+/), 10 );\n                      if(!price) {\n                          return false;\n                      }\n                      \n                      return (qty * 50) == price;\n                  }).length;\n            });\n            var $cb =  relatedboxes.parents('.cartbottom');\n            $cb.find('.old-price').remove();\n            $cb.find('.qtyupdate').remove();\n            return true;\n        })(jQuery);\n    }\n\n    //DESKTOP\n    (function($) {\n        var relatedboxes = $('.prodname span').filter(function(i,v){\n            return !!v.innerHTML \n              && !!v.innerHTML.match(/CD.ROM/)\n              && $(v).parents('.itemrow').filter(function(i,v_cartbottom){\n                  var qty = v_cartbottom.querySelector && v_cartbottom.querySelector('select');\n                  qty = qty && parseInt( qty.getAttribute('value'), 10);\n                  if(!qty) {\n                      return false;\n                  }\n\n                  var price = v_cartbottom.querySelector('.cart-price p:nth-child(2)');\n                  price = price && parseInt( price.innerHTML.match(/\\d+/), 10 );\n                  if(!price) {\n                      return false;\n                  }\n\n                  return (qty * 50) == price;\n              }).length;\n        });\n        var $ir = relatedboxes.parents('.itemrow');\n        $ir.find('.old-price').remove();\n        $ir.find('.quantity').remove();\n        return true;\n    })(jQuery);\n}\n\njQuery(removeStrikeForAttachedBoxes);\n*/\n</script>\n\n\n"},{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Cart_Page_1\nURL of the webpage where the tag is expected to be placed: https://secure.rosettastone.com/us_en_store_view/checkout/cart/\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 08/13/2014\n\nupdated: may 9, 2017\n\tencoded url to take care of spaces in product names\n\timmediately rolled back. they didn't need encoded url\n-->\n<script type=\"text/javascript\">\nvar doubleclickStuff = {\n\trandom : parseInt(Math.random() * 9999999999999999), /* to prevent caching */\n\tname_array : rs.pixp_name.replace(/,(?=[a-z])/gi,'|').split('|'), /* names of purchased items */\n\tproduct_array : [], /* types of purchased items */\n\tproduct_string : '', /* string form of purchased items */\n\n\tgetProductType : function(str){ /* determine product type */\n\t\tif(str.indexOf(\"TOTALe\") >- 1){ return \"online_subscription\"; }\n\t\telse if(str.indexOf(\"Download PTO\") >- 1){ return \"download\"; }\n\t\telse if(str.indexOf(\"PTO\") >- 1){ return \"cd\"; }\n\t\telse {return \"other\";}\n\t}\n};\n\n/* generate a list of product types purchased and then turn them into a string separated by pipe characters (example: cd|download|online_subscription) */\nfor(var i=0; i<doubleclickStuff.name_array.length; i++){\n\tdoubleclickStuff.product_array.push(doubleclickStuff.getProductType(doubleclickStuff.name_array[i]));\n}\ndoubleclickStuff.product_string = doubleclickStuff.product_array.join('|');\n\n/* the actual tag begins here */\nvar doubleclick_floodlight_tag = document.createElement('iframe');\nvar doubleclick_floodlight_url = 'https://4476300.fls.doubleclick.net/activityi;src=4476300;type=gener0;cat=Cart_0;u1='+rs.pixp_sku.replace(/,/g,'|')+';u2='+doubleclickStuff.product_string+';u3='+rs.pixp_lang.replace(/,/g,'|')+';u4='+rs.pixp_total+';ord=' + doubleclickStuff.random + '?';\ndoubleclick_floodlight_tag.setAttribute('src', doubleclick_floodlight_url);\ndoubleclick_floodlight_tag.setAttribute('width','1');\ndoubleclick_floodlight_tag.setAttribute('height','1');\ndoubleclick_floodlight_tag.setAttribute('frameborder','0');\ndoubleclick_floodlight_tag.setAttribute('style','display:none');\ndocument.body.appendChild(doubleclick_floodlight_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->"},{html:"<!-- ************************************************************************************\nACTIONX ADD TO CART (cart page 1) PIXEL (also called action x or actnx)\n    owners: ashley and caitlin\n    purpose: retargeting for android\n    firing condition: when cart page 1 loads on an android device\n    added: jan 28, 2015\n***************************************************************************************-->\n<script>\n(function actionx_add_to_cart_pixel(){\n\t// if the device is an android, run the pixel\n\tif(navigator.userAgent.match(/android/i)){\n\n\t\tvar lang = rs.pixp_lang.split(',')[0]; // set the language equal to the first language the user has selected\n\t\tif(rs.pixp_name.match(/brain|kids/i)){ lang='NA'; } // if non-language, set language to NA\n\n\t\t// create and attach the pixel\n\t\tvar actionx = document.createElement('img');\n\t\tactionx.src = 'https://data.actnx.com/v2d?tok=ffacc0a0-8823-43c2-9745-3997b2d28087&tr=in:true&v=user-agent:'+navigator.userAgent+'&v=c:f:1&v=language:s:'+lang+'&sync=true&pixel=true';\n\t\tdocument.body.appendChild(actionx);\n\t}\n})();\n</script>"},{html:'<img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=1397447790523090&ev=PixelInitialized" />'},{html:"<!--\nYIELDMO CART ABANDONMENT PIXEL (also called yieldmo or yieldmoad)\n\t\t\towner: Caitlin\n\t\t\tpurpose: tracking cart abandonment\n\t\t\tadded: May 26, 2015\n-->\n<!--\n<script>\n  (function(){\n    var yms, p;\n       __p = document.body || document.head;\n       __yms = document.createElement('script');\n       __yms.setAttribute('type','text/javascript');\n       __yms.setAttribute('async', '');\n       __yms.setAttribute('src', '//static.yieldmo.com/ym.adv.min.js');\n       __yms.setAttribute('class', 'ym');\n       __yms.setAttribute('data-ymadvid', '859310707027156059');\n       __yms.setAttribute('data-conversion-type', 'Shopping Cart');\n       if(__p) __p.appendChild(__yms);\n     })();\n</script>\n-->"},{html:"<script>\n/*\n  if(!window.location.pathname.match('hispanic_store_view')){\n  jQuery(document).ready(function(){jQuery('.payment-plan-1.input-radio').eq(2).hide()})\n  }\n  */\n  </script>"},{html:"<!--\nQUANTIC MIND ADD TO CART PIXEL\n  other names: staticiv.com\n\towner: chris klipple\n\tpurpose: associating conversions with publisher data to optimize ad spend (for google, bing, and yahoo in this case)\n\tticket: ws-1824\n\tdate added: jul 6, 2017\n-->\n<script type=\"text/javascript\">\n  var value_of_latest_item_added_to_cart = rs.pixp_price.split(',').pop();\n\n  window._iva = window._iva || []; \n  _iva.push(['setClientId', 'csKOg5pmS']);    \n  _iva.push(['trackEvent', 'event2', value_of_latest_item_added_to_cart, '']);\n\n  (function() {    \n    var s = document.createElement('script');\n    s.type = 'text/javascript'; \n    s.async = true;\n    s.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://analytics.staticiv.com/csKOg5pmS/iva.js';\n    var x = document.getElementsByTagName('script')[0]; \n    x.parentNode.insertBefore(s, x);  \n  })();  \n</script>\n"},{html:'<!-- *********************************************\nCRITEO VIEW CART PIXEL (cart pages 1, 3, and 4)\n\towner: caitlin\n\tlatest update: aug 3, 2017\n********************************************** -->\n\n<!-- begin Criteo cart page pixel -->\n<script type="text/javascript">\nwindow.criteo_q=window.criteo_q|| [];\nwindow.criteo_q.push(\n\t{event: "setAccount", account:5943},\n\t{event: "setCustomerId", id:""},\n\t{event: "setSiteType", type:"d"},\n\t{event: "viewBasket", product: function(){\n\t\tvar pl = [];\n\n\t\tvar criteo_sku_array = rs.pixp_sku.split(\',\');\n\t\tvar criteo_lang_array = rs.pixp_lang.split(\',\').map(function(v){return v.toLowerCase();});\n\t\tvar criteo_price_array = rs.pixp_price.split(\',\');\n\t\tvar criteo_quantity_array = rs.pixp_qty.split(\',\');\n\n\t\tfor (var i=0; i<criteo_sku_array.length; ++i) {\n\t\t\tpl.push({\n\t\t\t\tid: criteo_sku_array[i]+\'-\'+criteo_lang_array[i],\n\t\t\t\tprice: (criteo_price_array[i] / criteo_quantity_array[i]).toFixed(2),\n\t\t\t\tquantity: criteo_quantity_array[i]\n\t\t\t});\n\t\t}\n\t\treturn pl;\n\t}}\n);\n</script>\n<!-- end Criteo cart page pixel -->'}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-54f8a1fa356230016f7a0600-staging.html",data:[]}]}]}],scope:{URI:{include:[/(\/checkout\/cart\/|\/checkout\/cart\/smart\/)/i]}},event:"pagebottom"},{name:"cart page 2",trigger:[{engine:"sc",command:"setVars",arguments:[{hier1:""}]},{command:"writeHTML",arguments:[{
html:"\n<!-- begin Criteo cart page pixel -->\n<!--\n<script type=\"text/javascript\">\nwindow.criteo_q=window.criteo_q|| [];\nwindow.criteo_q.push(\n\t{event: \"setAccount\", account:5943},\n\t{event: \"setCustomerId\", id:\"\"},\n\t{event: \"setSiteType\", type:\"d\"},\n\t{event: \"viewBasket\", product: function(){\n\t\tvar pl = [];\n\n\t\tvar criteo_sku_array = rs.pixp_sku.split(',');\n\t\tvar criteo_price_array = rs.pixp_price.split(',');\n\t\tvar criteo_quantity_array = rs.pixp_qty.split(',');\n\n\t\tfor (var i=0; i<rs.pixp_cartCount; ++i) {\n\t\t\tpl.push({\n\t\t\t\tid: criteo_sku_array[i],\n\t\t\t\tprice: criteo_price_array[i],\n\t\t\t\tquantity: criteo_quantity_array[i]\n\t\t\t});\n\t\t}\n\t\treturn pl;\n\t}}\n);\n</script>\n-->\n<!-- end Criteo cart page pixel -->\n\n\n\n\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Cart_Page_2\nURL of the webpage where the tag is expected to be placed: https://secure.rosettastone.com/us_en_store_view/multicheckout/multipage/smart/\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 08/13/2014\n-->\n<!--\n<script type=\"text/javascript\">\nvar doubleclickStuff = {\n\trandom : parseInt(Math.random() * 9999999999999999), /* to prevent caching */\n\tname_array : rs.pixp_name.replace(/,(?=[a-z])/gi,'|').split('|'), /* names of purchased items */\n\tproduct_array : [], /* types of purchased items */\n\tproduct_string : '', /* string form of purchased items */\n\n\tgetProductType : function(str){ /* determine product type */\n\t\tif(str.indexOf(\"TOTALe\") >- 1){ return \"online_subscription\"; }\n\t\telse if(str.indexOf(\"Download PTO\") >- 1){ return \"download\"; }\n\t\telse if(str.indexOf(\"PTO\") >- 1){ return \"cd\"; }\n\t\telse {return \"other\";}\n\t}\n};\n\n/* generate a list of product types purchased and then turn them into a string separated by pipe characters (example: cd|download|online_subscription) */\nfor(var i=0; i<doubleclickStuff.name_array.length; i++){\n\tdoubleclickStuff.product_array.push(doubleclickStuff.getProductType(doubleclickStuff.name_array[i]));\n}\ndoubleclickStuff.product_string = doubleclickStuff.product_array.join('|');\n\n/* the actual tag begins here */\nvar doubleclick_floodlight_tag = document.createElement('iframe');\ndoubleclick_floodlight_tag.setAttribute('src','https://4476300.fls.doubleclick.net/activityi;src=4476300;type=gener0;cat=Cart_00;u1='+rs.pixp_sku.replace(/,/g,'|')+';u2='+doubleclickStuff.product_string+';u3='+rs.pixp_lang.replace(/,/g,'|')+';u4='+rs.pixp_total+';ord=' + doubleclickStuff.random + '?');\ndoubleclick_floodlight_tag.setAttribute('width','1');\ndoubleclick_floodlight_tag.setAttribute('height','1');\ndoubleclick_floodlight_tag.setAttribute('frameborder','0');\ndoubleclick_floodlight_tag.setAttribute('style','display:none');\ndocument.body.appendChild(doubleclick_floodlight_tag);\n</script>\n-->\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n\n\n\n<!--\n<script type=\"text/javascript\">\n  if (!window.Mage) var Mage = {};\nMage.Cookies = {}; \nMage.Cookies.set = function(name, value){\nvar argv = arguments;\nvar argc = arguments.length;\nvar expires = (argc > 2) ? argv[2] : Mage.Cookies.expires;\nvar path = (argc > 3) ? argv[3] : Mage.Cookies.path;\nvar domain = (argc > 4) ? argv[4] : Mage.Cookies.domain;\nvar secure = (argc > 5) ? argv[5] : Mage.Cookies.secure;\ndocument.cookie = name + \"=\" + escape (value) +\n((expires == null) ? \"\" : (\"; expires=\" + expires.toGMTString())) +\n((path == null) ? \"\" : (\"; path=\" + path)) +\n((domain == null) ? \"\" : (\"; domain=\" + domain)) +\n((secure == true) ? \"; secure\" : \"\");\n};\nMage.Cookies.get = function(name){\nvar arg = name + \"=\";\nvar alen = arg.length;\nvar clen = document.cookie.length;\nvar i = 0;\nvar j = 0;\nwhile(i < clen){\nj = i + alen;\nif (document.cookie.substring(i, j) == arg)\nreturn Mage.Cookies.getCookieVal(j);\ni = document.cookie.indexOf(\" \", i) + 1;\nif(i == 0)\nbreak;\n}\nreturn null;\n};   \nMage.Cookies.getCookieVal = function(offset){\nvar endstr = document.cookie.indexOf(\";\", offset);\nif(endstr == -1){\nendstr = document.cookie.length;\n}\nreturn unescape(document.cookie.substring(offset, endstr));\n};\n</script>\n-->\n\n\n<!-- old criteo pixel\n<script type=\"text/javascript\">\nvar prodId=rs.pixp_sku;var prodIdArr = prodId.split(',');var itemPrice=rs.pixp_price;var itemPriceArr=itemPrice.split(',');var itemQuantity=rs.pixp_qty;var itemQuantityArr=itemQuantity.split(',');\n\nvar CRITEO_CONF = [[{ pageType: 'basket','Product IDs': prodIdArr,'Prices': itemPriceArr,'Quantities': itemQuantityArr }],\n [5943,'ppr', 'us.','111',[[7720467, 7720468]],{'Product IDs':['i',1],'Prices':['p',1],'Quantities':['q',1]}]]; \nif (typeof (CRITEO) != \"undefined\") { CRITEO.Load(false); }  </script>\n-->\n\n<!-- commented out old steelhouse tag due to interference with the new one\n<script type=\"text/javascript\">\nvar shpn=rs.pixp_name;var shpc=rs.pixp_vers;var shpp=rs.pixp_price;var shpb='RosettaStone';var shpi=rs.pixp_img;var shps=rs.pixp_sku;var shcv=rs.pixp_total;var shcq=rs.pixp_qty;var shcp=rs.pixp_sku;var additional='';\nvar aid='9698';var tdr='';if (top.document.referrer != ''){tdr = encodeURIComponent(top.document.referrer);}var plh='';if (parent.location.href != ''){plh = encodeURIComponent(parent.location.href);}shpi = encodeURIComponent(shpi);(function(){steelhouse={add:function(a,b,c,d){d=d||false;if(a.addEventListener){a.addEventListener(b,c,d)}else if(a.attachEvent){a.attachEvent(\"on\"+b,c)}},load:function(){var a;if(typeof a=='undefined'){a=Math.random()*100000000000000000}var b=document.createElement('script');var c='px.steelhousemedia.com/st?aid='+aid+'&cb='+a+'&shcv='+shcv+'&shcq='+shcq+'&shcp='+shcp+'&shpn='+shpn+'&shpc='+shpc+'&shpp='+shpp+'&shpb='+shpb+'&shpi='+shpi+'&tdr='+tdr+'&plh='+plh+additional;b.type='text/javascript';b.src=('https:'==document.location.protocol?'https://':'http://')+c;var d=document.getElementsByTagName('script');var e=Number(d.length)-1;var f=document.getElementsByTagName('script')[e];f.parentNode.insertBefore(b,f)}};steelhouse.load();})(); \n</script>\n-->\n\n<!--\n<img id=\"cy_image\" width=1 height=1 border=0 alt=\"\">\n<script type=\"text/javascript\">\nvar counterSeeWhy = 0;\nvar callSeeWhy;\n   try{            \n            jQuery(document).ready(function() {\n                  var firstNameText = document.getElementById('billing:firstname').disabled ? \n                                      document.getElementById('shipping:firstname'):document.getElementById('billing:firstname');\n                  var lastNameText = document.getElementById('billing:lastname').disabled ? \n                                      document.getElementById('shipping:lastname'):document.getElementById('billing:lastname');                  \n                  callSeeWhy = function sendToSeeWhy(){\n                  var firstName = firstNameText.value;\n                  var lastName = lastNameText.value;\n                  var email = document.getElementById('billing:email').value;\n                  if( firstName == null || firstName == '' || lastName == null || lastName == '' || email== null || email== '')\n                     return false;\n                  if(firstName == 'First Name' || lastName == 'Last Name' || email == 'Email Address')\n                     return false;\n                        var qty = 0;\n          var prodDesc = \"\",acDesc=\"\";\n                  prodDesc = rs.pixp_name;\n                  prodDesc = prodDesc.replace(/&amp;/g,\"&\");\n                  prodDesc = prodDesc.replace(/&nbsp;/g,\" \");\n                  if(prodDesc == \"\" || prodDesc == null)\n                     prodDesc = acDesc;\n                  try{\n                       cy_session_cookie = Mage.Cookies.get('_cy_session_id');\n                      if(cy_session_cookie)\n                         cy.SessionID = cy_session_cookie;\n                      cy.Section = \"Address\";\n                      cy.UserId = email;\n                      cy.Quantity =rs.pixp_cartCount;\n                      cy.Value = rs.pixp_total;\n                      cy.Custom1 = rs.pixp_promo;\n                      cy.Custom2 = firstName;\n                      cy.Custom3 = lastName;\n                      cy.Custom4 = rs.pixp_lang;\n                      cy.Custom5 = prodDesc;\n                      cy.FunnelLevel = \"4\";\n                      cy.ReturnToLink = rs.pixp_cartUrl;\n                      cy_getImageSrc(); \n                      }\n                      catch(e){}\n                      return true;                  \n                };\n                firstNameText.onchange = function(){counterSeeWhy = 0;};\n                lastNameText.onchange = function(){counterSeeWhy = 0;};\n                document.getElementById('billing:email').onchange = function(){counterSeeWhy = 0;};              \n                jQuery('#address').submit(function(event){\n                                                              if(counterSeeWhy == 0)\n                                                              {\n                                                               event.preventDefault();\n                                                               callSeeWhy();\n                                                               counterSeeWhy = 1;                                                               \n                                                              }\n\n                                                           }\n                                           );               \n\n                callSeeWhyForEmail = function sendEmailToSeeWhy() {\n                  var email = document.getElementById('billing:email').value;\n                  try{\n                      cy_session_cookie = Mage.Cookies.get('_cy_session_id');\n                      if(cy_session_cookie)\n                      cy.SessionID = cy_session_cookie;\n                      cy.Section = \"Address\";\n                      cy.UserId = email;\n                      cy.Custom1 = rs.pixp_promo;\n                      cy.FunnelLevel = \"4\";\n                      cy.ReturnToLink = rs.pixp_cartUrl;\n                      cy_getImageSrc(); \n                      }\n                      catch(e){}\n                  return true;                  \n                };                       \n                jQuery(\"#billing-new-address-form input[title='Email Address']\").blur( function() {\n                  callSeeWhyForEmail();\n                });\n            });\n      }\n      catch(e)\n      {\n      }\n</script>\n-->\n\n<!-- Begin: Twitter Cart Abandonment Tag -->\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"https://analytics.twitter.com/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"//t.co/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<!-- End: Twitter Cart Abandonment Tag -->\n"},{html:"<!-- *****************************************************************************************\nDOUBLE POSITIVE cart page 2 PIXEL (also called bid-tag or mathtag)\n\towner: Caitlin and Ashley\n\tpurpose: optimized advertising\n\tadded: march 5, 2015\n***************************************************************************************** -->\n<!--\n<script language='JavaScript1.1' src='//pixel.mathtag.com/event/js?mt_id=698245&mt_adid=104239&v1=&v2=&v3=&s1=&s2=&s3='></script>\n-->"}]}],scope:{URI:{include:[/(\/multicheckout\/multipage\/|\/checkout\/onepage\/|\/multicheckout\/multipage\/smart\/)$/i]}},event:"pagebottom"},{name:"cart page 2 name + email cookie",trigger:[{command:"writeHTML",arguments:[{html:"<!-- set first and last name cookies -->\n<script>\n(function(){\n\t\tfunction id(elem){return document.getElementById(elem);}\n\n\t\tdocument.querySelector('#smartSideCheckoutButton').addEventListener('click', function(){\n      try{\n\t\t\t\tvar firstname = id('billing:firstname').value;\n\t\t\t\tvar lastname = id('billing:lastname').value;\n    \t  var email = id('billing:email').value;\n\n\t\t\t\tdocument.cookie='billing_firstname='+firstname+'; path=/; domain=.rosettastone.com';\n\t\t\t\tdocument.cookie='billing_lastname='+lastname+'; path=/; domain=.rosettastone.com';\n        document.cookie='billing_email='+email+'; path=/; domain=.rosettastone.com';\n      }\n      catch(e){}\n\t\t});\n})();\n</script>"}]}],scope:{URI:{include:[/(\/multicheckout\/multipage\/|\/checkout\/onepage\/|\/multicheckout\/multipage\/smart\/)$/i]}},event:"pagebottom"},{name:"cart page 3",trigger:[{engine:"sc",command:"setVars",arguments:[{hier1:""}]},{command:"writeHTML",arguments:[{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Cart_Page_3\nURL of the webpage where the tag is expected to be placed: https://secure.rosettastone.com/us_en_store_view/multicheckout/multipage/smartreview/\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 08/13/2014\n-->\n<script type=\"text/javascript\">\nvar doubleclickStuff = {\n\trandom : parseInt(Math.random() * 9999999999999999), /* to prevent caching */\n\tname_array : rs.pixp_name.replace(/,(?=[a-z])/gi,'|').split('|'), /* names of purchased items */\n\tproduct_array : [], /* types of purchased items */\n\tproduct_string : '', /* string form of purchased items */\n\n\tgetProductType : function(str){ /* determine product type */\n\t\tif(str.indexOf(\"TOTALe\") >- 1){ return \"online_subscription\"; }\n\t\telse if(str.indexOf(\"Download PTO\") >- 1){ return \"download\"; }\n\t\telse if(str.indexOf(\"PTO\") >- 1){ return \"cd\"; }\n\t\telse {return \"other\";}\n\t}\n};\n\n/* generate a list of product types purchased and then turn them into a string separated by pipe characters (example: cd|download|online_subscription) */\nfor(var i=0; i<doubleclickStuff.name_array.length; i++){\n\tdoubleclickStuff.product_array.push(doubleclickStuff.getProductType(doubleclickStuff.name_array[i]));\n}\ndoubleclickStuff.product_string = doubleclickStuff.product_array.join('|');\n\n/* the actual tag begins here */\nvar doubleclick_floodlight_tag = document.createElement('iframe');\ndoubleclick_floodlight_tag.setAttribute('src','https://4476300.fls.doubleclick.net/activityi;src=4476300;type=gener0;cat=Cart_000;u1='+rs.pixp_sku.replace(/,/g,'|')+';u2='+doubleclickStuff.product_string+';u3='+rs.pixp_lang.replace(/,/g,'|')+';u4='+rs.pixp_total+';ord=' + doubleclickStuff.random + '?');\ndoubleclick_floodlight_tag.setAttribute('width','1');\ndoubleclick_floodlight_tag.setAttribute('height','1');\ndoubleclick_floodlight_tag.setAttribute('frameborder','0');\ndoubleclick_floodlight_tag.setAttribute('style','display:none');\ndocument.body.appendChild(doubleclick_floodlight_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n\n\n\n<script type=\"text/javascript\">\n  if (!window.Mage) var Mage = {};\nMage.Cookies = {}; \nMage.Cookies.set = function(name, value){\nvar argv = arguments;\nvar argc = arguments.length;\nvar expires = (argc > 2) ? argv[2] : Mage.Cookies.expires;\nvar path = (argc > 3) ? argv[3] : Mage.Cookies.path;\nvar domain = (argc > 4) ? argv[4] : Mage.Cookies.domain;\nvar secure = (argc > 5) ? argv[5] : Mage.Cookies.secure;\ndocument.cookie = name + \"=\" + escape (value) +\n((expires == null) ? \"\" : (\"; expires=\" + expires.toGMTString())) +\n((path == null) ? \"\" : (\"; path=\" + path)) +\n((domain == null) ? \"\" : (\"; domain=\" + domain)) +\n((secure == true) ? \"; secure\" : \"\");\n};\nMage.Cookies.get = function(name){\nvar arg = name + \"=\";\nvar alen = arg.length;\nvar clen = document.cookie.length;\nvar i = 0;\nvar j = 0;\nwhile(i < clen){\nj = i + alen;\nif (document.cookie.substring(i, j) == arg)\nreturn Mage.Cookies.getCookieVal(j);\ni = document.cookie.indexOf(\" \", i) + 1;\nif(i == 0)\nbreak;\n}\nreturn null;\n};   \nMage.Cookies.getCookieVal = function(offset){\nvar endstr = document.cookie.indexOf(\";\", offset);\nif(endstr == -1){\nendstr = document.cookie.length;\n}\nreturn unescape(document.cookie.substring(offset, endstr));\n};\n</script>\n\n\n<!-- old criteo pixel\n<script type=\"text/javascript\">\nvar prodId=rs.pixp_sku; \nvar prodIdArr = prodId.split(',');\nvar itemPrice=rs.pixp_price; \nvar itemPriceArr=itemPrice.split(',');\nvar itemQuantity=rs.pixp_qty;\nvar itemQuantityArr=itemQuantity.split(',');\n\n  var CRITEO_CONF = [[{ pageType: 'basket',\n 'Product IDs': prodIdArr,\n 'Prices': itemPriceArr,\n 'Quantities': itemQuantityArr }],\n [5943,'ppr', 'us.','111',[[7720467, 7720468]],{'Product IDs':['i',1],'Prices':['p',1],'Quantities':['q',1]}]]; \nif (typeof (CRITEO) != \"undefined\") { CRITEO.Load(false); }  \n\n</script>\n-->\n\n<!-- commented out old steelhouse pixel because it's interfering with the new one\n<script type=\"text/javascript\">\n\nvar shpn=rs.pixp_name;\nvar shpc=rs.pixp_vers;\n\nvar shpp=rs.pixp_price;\nvar shpb='RosettaStone';\n\nvar shpi=rs.pixp_img;\nvar shps=rs.pixp_sku;\nvar shcv=rs.pixp_total;\n\nvar shcq=rs.pixp_qty;\nvar shcp=rs.pixp_sku;\nvar additional='';\nvar aid='9698';var tdr='';if (top.document.referrer != ''){tdr = encodeURIComponent(top.document.referrer);}var plh='';if (parent.location.href != ''){plh = encodeURIComponent(parent.location.href);}shpi = encodeURIComponent(shpi);(function(){steelhouse={add:function(a,b,c,d){d=d||false;if(a.addEventListener){a.addEventListener(b,c,d)}else if(a.attachEvent){a.attachEvent(\"on\"+b,c)}},load:function(){var a;if(typeof a=='undefined'){a=Math.random()*100000000000000000}var b=document.createElement('script');var c='px.steelhousemedia.com/st?aid='+aid+'&cb='+a+'&shcv='+shcv+'&shcq='+shcq+'&shcp='+shcp+'&shpn='+shpn+'&shpc='+shpc+'&shpp='+shpp+'&shpb='+shpb+'&shpi='+shpi+'&tdr='+tdr+'&plh='+plh+additional;b.type='text/javascript';b.src=('https:'==document.location.protocol?'https://':'http://')+c;var d=document.getElementsByTagName('script');var e=Number(d.length)-1;var f=document.getElementsByTagName('script')[e];f.parentNode.insertBefore(b,f)}};steelhouse.load();})();\n\n</script>\n-->\n\n\n<img id=\"cy_image\" width=1 height=1 border=0 alt=\"\">\n<script type=\"text/javascript\">\n   try{            \n                        var qty = 0;\n        var prodDesc = \"\",acDesc=\"\";\n                  prodDesc = rs.pixp_name;\n                  prodDesc = prodDesc.replace(/&amp;/g,\"&\");\n                  prodDesc = prodDesc.replace(/&nbsp;/g,\" \");\n                  if(prodDesc == \"\" || prodDesc == null)\n                     prodDesc = acDesc;\n                  cy_session_cookie = Mage.Cookies.get('_cy_session_id');\n                  if(cy_session_cookie)\n                   cy.SessionID = cy_session_cookie[1];\n                  cy.Section = \"Shipping and Payment\";\n                  cy.Quantity = rs.pixp_cartCount;\n                  cy.Value = rs.pixp_total;\n                  cy.Custom1 = rs.pixp_promo;\n                  cy.Custom4 = rs.pixp_lang;\n                  cy.Custom5 = rs.prodDesc;\n                  cy.FunnelLevel = \"5\";\n                  cy.ReturnToLink = rs.pixp_cartUrl;\n                  cy_getImageSrc();                \n      }\n      catch(e)\n      {\n      }\n</script>\n\n<!-- Begin: Twitter Cart Abandonment Tag -->\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"https://analytics.twitter.com/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"//t.co/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<!-- End: Twitter Cart Abandonment Tag -->\n"},{html:'<!-- *********************************************\nCRITEO VIEW CART PIXEL (cart pages 1, 3, and 4)\n\towner: caitlin\n\tlatest update: aug 3, 2017\n********************************************** -->\n\n<!-- begin Criteo cart page pixel -->\n<script type="text/javascript">\nwindow.criteo_q=window.criteo_q|| [];\nwindow.criteo_q.push(\n\t{event: "setAccount", account:5943},\n\t{event: "setCustomerId", id:""},\n\t{event: "setSiteType", type:"d"},\n\t{event: "viewBasket", product: function(){\n\t\tvar pl = [];\n\n\t\tvar criteo_sku_array = rs.pixp_sku.split(\',\');\n\t\tvar criteo_lang_array = rs.pixp_lang.split(\',\').map(function(v){return v.toLowerCase();});\n\t\tvar criteo_price_array = rs.pixp_price.split(\',\');\n\t\tvar criteo_quantity_array = rs.pixp_qty.split(\',\');\n\n\t\tfor (var i=0; i<criteo_sku_array.length; ++i) {\n\t\t\tpl.push({\n\t\t\t\tid: criteo_sku_array[i]+\'-\'+criteo_lang_array[i],\n\t\t\t\tprice: (criteo_price_array[i] / criteo_quantity_array[i]).toFixed(2),\n\t\t\t\tquantity: criteo_quantity_array[i]\n\t\t\t});\n\t\t}\n\t\treturn pl;\n\t}}\n);\n</script>\n<!-- end Criteo cart page pixel -->'}]}],scope:{URI:{include:[/\/multicheckout\/multipage\/shippingmethod\/$/i]}},event:"pagebottom"},{name:"cart page 4",trigger:[{engine:"sc",command:"setVars",arguments:[{hier1:""}]},{command:"writeHTML",arguments:[{html:"\n<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Cart_Page_4\nURL of the webpage where the tag is expected to be placed: https://secure.rosettastone.com/us_en_store_view/multicheckout/multipage/smartsuccess/\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 08/13/2014\n-->\n<script type=\"text/javascript\">\nvar doubleclickStuff = {\n\trandom : parseInt(Math.random() * 9999999999999999), /* to prevent caching */\n\tname_array : rs.pixp_name.replace(/,(?=[a-z])/gi,'|').split('|'), /* names of purchased items */\n\tproduct_array : [], /* types of purchased items */\n\tproduct_string : '', /* string form of purchased items */\n\n\tgetProductType : function(str){ /* determine product type */\n\t\tif(str.indexOf(\"TOTALe\") >- 1){ return \"online_subscription\"; }\n\t\telse if(str.indexOf(\"Download PTO\") >- 1){ return \"download\"; }\n\t\telse if(str.indexOf(\"PTO\") >- 1){ return \"cd\"; }\n\t\telse {return \"other\";}\n\t}\n};\n\n/* generate a list of product types purchased and then turn them into a string separated by pipe characters (example: cd|download|online_subscription) */\nfor(var i=0; i<doubleclickStuff.name_array.length; i++){\n\tdoubleclickStuff.product_array.push(doubleclickStuff.getProductType(doubleclickStuff.name_array[i]));\n}\ndoubleclickStuff.product_string = doubleclickStuff.product_array.join('|');\n\n/* the actual tag begins here */\nvar doubleclick_floodlight_tag = document.createElement('iframe');\ndoubleclick_floodlight_tag.setAttribute('src','https://4476300.fls.doubleclick.net/activityi;src=4476300;type=gener0;cat=Cart_001;u1='+rs.pixp_sku.replace(/,/g,'|')+';u2='+doubleclickStuff.product_string+';u3='+rs.pixp_lang.replace(/,/g,'|')+';u4='+rs.pixp_total+';ord=' + doubleclickStuff.random + '?');\ndoubleclick_floodlight_tag.setAttribute('width','1');\ndoubleclick_floodlight_tag.setAttribute('height','1');\ndoubleclick_floodlight_tag.setAttribute('frameborder','0');\ndoubleclick_floodlight_tag.setAttribute('style','display:none');\ndocument.body.appendChild(doubleclick_floodlight_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->\n\n\n\n\n\n<script type=\"text/javascript\">\n  if (!window.Mage) var Mage = {};\nMage.Cookies = {}; \nMage.Cookies.set = function(name, value){\nvar argv = arguments;\nvar argc = arguments.length;\nvar expires = (argc > 2) ? argv[2] : Mage.Cookies.expires;\nvar path = (argc > 3) ? argv[3] : Mage.Cookies.path;\nvar domain = (argc > 4) ? argv[4] : Mage.Cookies.domain;\nvar secure = (argc > 5) ? argv[5] : Mage.Cookies.secure;\ndocument.cookie = name + \"=\" + escape (value) +\n((expires == null) ? \"\" : (\"; expires=\" + expires.toGMTString())) +\n((path == null) ? \"\" : (\"; path=\" + path)) +\n((domain == null) ? \"\" : (\"; domain=\" + domain)) +\n((secure == true) ? \"; secure\" : \"\");\n};\nMage.Cookies.get = function(name){\nvar arg = name + \"=\";\nvar alen = arg.length;\nvar clen = document.cookie.length;\nvar i = 0;\nvar j = 0;\nwhile(i < clen){\nj = i + alen;\nif (document.cookie.substring(i, j) == arg)\nreturn Mage.Cookies.getCookieVal(j);\ni = document.cookie.indexOf(\" \", i) + 1;\nif(i == 0)\nbreak;\n}\nreturn null;\n};   \nMage.Cookies.getCookieVal = function(offset){\nvar endstr = document.cookie.indexOf(\";\", offset);\nif(endstr == -1){\nendstr = document.cookie.length;\n}\nreturn unescape(document.cookie.substring(offset, endstr));\n};\n</script>\n\n\n<!-- old criteo pixel\n<script type=\"text/javascript\">\n\nvar prodId=rs.pixp_sku; \nvar prodIdArr = prodId.split(',');\nvar itemPrice=rs.pixp_price; \nvar itemPriceArr=itemPrice.split(',');\nvar itemQuantity=rs.pixp_qty;\nvar itemQuantityArr=itemQuantity.split(',');\n\n  var CRITEO_CONF = [[{ pageType: 'basket',\n 'Product IDs': prodIdArr,\n 'Prices': itemPriceArr,\n 'Quantities': itemQuantityArr }],\n [5943,'ppr', 'us.','111',[[7720467, 7720468]],{'Product IDs':['i',1],'Prices':['p',1],'Quantities':['q',1]}]]; \nif (typeof (CRITEO) != \"undefined\") { CRITEO.Load(false); }  </script>\n-->\n\n\n<!-- commented out old steelhouse pixel because it's interfering with the new one\n<script type=\"text/javascript\">\n\nvar shpn=rs.pixp_name;\nvar shpc=rs.pixp_vers;\n\nvar shpp=rs.pixp_price;\nvar shpb='RosettaStone';\n\nvar shpi=rs.pixp_img;\nvar shps=rs.pixp_sku;\nvar shcv=rs.pixp_total;\n\nvar shcq=rs.pixp_qty;\nvar shcp=rs.pixp_sku;\nvar additional='';\nvar aid='9698';var tdr='';if (top.document.referrer != ''){tdr = encodeURIComponent(top.document.referrer);}var plh='';if (parent.location.href != ''){plh = encodeURIComponent(parent.location.href);}shpi = encodeURIComponent(shpi);(function(){steelhouse={add:function(a,b,c,d){d=d||false;if(a.addEventListener){a.addEventListener(b,c,d)}else if(a.attachEvent){a.attachEvent(\"on\"+b,c)}},load:function(){var a;if(typeof a=='undefined'){a=Math.random()*100000000000000000}var b=document.createElement('script');var c='px.steelhousemedia.com/st?aid='+aid+'&cb='+a+'&shcv='+shcv+'&shcq='+shcq+'&shcp='+shcp+'&shpn='+shpn+'&shpc='+shpc+'&shpp='+shpp+'&shpb='+shpb+'&shpi='+shpi+'&tdr='+tdr+'&plh='+plh+additional;b.type='text/javascript';b.src=('https:'==document.location.protocol?'https://':'http://')+c;var d=document.getElementsByTagName('script');var e=Number(d.length)-1;var f=document.getElementsByTagName('script')[e];f.parentNode.insertBefore(b,f)}};steelhouse.load();})(); \n</script>\n-->\n\n\n<img id=\"cy_image\" width=1 height=1 border=0 alt=\"\">\n\n<script type=\"text/javascript\">\n      \n\n  /*suppress errors if any to have smooth cart transactions*/\n   try{           \n\n                        var qty = 0;\n      var prodDesc = \"\",acDesc=\"\";\n                   \n                  prodDesc = rs.pixp_name;\n                  prodDesc = prodDesc.replace(/&amp;/g,\"&\");\n                  prodDesc = prodDesc.replace(/&nbsp;/g,\" \");\n                  if(prodDesc == \"\" || prodDesc == null)\n                     prodDesc = acDesc;\n                  cy_session_cookie = Mage.Cookies.get('_cy_session_id');\n                  if(cy_session_cookie)\n                   cy.SessionID = cy_session_cookie[1];\n                  cy.Section = \"Review\";\n                  cy.Quantity = rs.pixp_cartCount;\n                  cy.Value = rs.pixp_total;\n                  cy.Custom1 = rs.pixp_promo;\n                  cy.Custom4 =rs.pixp_lang;\n                  cy.Custom5 = prodDesc;\n                  cy.FunnelLevel = \"6\";\n                  cy.ReturnToLink = rs.pixp_cartUrl;\n                  cy_getImageSrc();               \n\n      }\n      catch(e)\n      {\n      }\n\n\n</script>\n\n<!-- Begin: Twitter Cart Abandonment Tag -->\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"https://analytics.twitter.com/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<img height=\"1\" width=\"1\" style=\"display:none;\" alt=\"\" src=\"//t.co/i/adsct?txn_id=l4goc&p_id=Twitter\" />\n<!-- End: Twitter Cart Abandonment Tag -->\n"},{html:'<!-- *********************************************\nCRITEO VIEW CART PIXEL (cart pages 1, 3, and 4)\n\towner: caitlin\n\tlatest update: aug 3, 2017\n********************************************** -->\n\n<!-- begin Criteo cart page pixel -->\n<script type="text/javascript">\nwindow.criteo_q=window.criteo_q|| [];\nwindow.criteo_q.push(\n\t{event: "setAccount", account:5943},\n\t{event: "setCustomerId", id:""},\n\t{event: "setSiteType", type:"d"},\n\t{event: "viewBasket", product: function(){\n\t\tvar pl = [];\n\n\t\tvar criteo_sku_array = rs.pixp_sku.split(\',\');\n\t\tvar criteo_lang_array = rs.pixp_lang.split(\',\').map(function(v){return v.toLowerCase();});\n\t\tvar criteo_price_array = rs.pixp_price.split(\',\');\n\t\tvar criteo_quantity_array = rs.pixp_qty.split(\',\');\n\n\t\tfor (var i=0; i<criteo_sku_array.length; ++i) {\n\t\t\tpl.push({\n\t\t\t\tid: criteo_sku_array[i]+\'-\'+criteo_lang_array[i],\n\t\t\t\tprice: (criteo_price_array[i] / criteo_quantity_array[i]).toFixed(2),\n\t\t\t\tquantity: criteo_quantity_array[i]\n\t\t\t});\n\t\t}\n\t\treturn pl;\n\t}}\n);\n</script>\n<!-- end Criteo cart page pixel -->'}]}],scope:{URI:{include:[/(\/multicheckout\/multipage\/review|\/checkout\/onepage\/review\/|\/multicheckout\/multipage\/smartreview\/)$/i]}},event:"pagebottom"},{name:"cart page 5",trigger:[{engine:"sc",command:"setVars",arguments:[{hier1:""}]},{command:"writeHTML",arguments:[{
html:'\n<script type="text/javascript">\n  if (!window.Mage) var Mage = {};\nMage.Cookies = {}; \nMage.Cookies.set = function(name, value){\nvar argv = arguments;\nvar argc = arguments.length;\nvar expires = (argc > 2) ? argv[2] : Mage.Cookies.expires;\nvar path = (argc > 3) ? argv[3] : Mage.Cookies.path;\nvar domain = (argc > 4) ? argv[4] : Mage.Cookies.domain;\nvar secure = (argc > 5) ? argv[5] : Mage.Cookies.secure;\ndocument.cookie = name + "=" + escape (value) +\n((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +\n((path == null) ? "" : ("; path=" + path)) +\n((domain == null) ? "" : ("; domain=" + domain)) +\n((secure == true) ? "; secure" : "");\n};\nMage.Cookies.get = function(name){\nvar arg = name + "=";\nvar alen = arg.length;\nvar clen = document.cookie.length;\nvar i = 0;\nvar j = 0;\nwhile(i < clen){\nj = i + alen;\nif (document.cookie.substring(i, j) == arg)\nreturn Mage.Cookies.getCookieVal(j);\ni = document.cookie.indexOf(" ", i) + 1;\nif(i == 0)\nbreak;\n}\nreturn null;\n};   \nMage.Cookies.getCookieVal = function(offset){\nvar endstr = document.cookie.indexOf(";", offset);\nif(endstr == -1){\nendstr = document.cookie.length;\n}\nreturn unescape(document.cookie.substring(offset, endstr));\n};\n</script>\n\n\n<script>\nvar rs_marketing_src =  Mage.Cookies.get(\'rs_marketing_src\');\n</script>\n\n\n\n\n<!--responsys-->\n<img src=" https://communications.rosettastone.com/pub/cct?_ri_=X0Gzc2X%3DWQpglLjHJlYQGh26O2gDzcaouuahnOrzblCjn&_ei_=Ei2P6vwyX11LxcrR2eUwoks" width="1" height="1">\n\n\n\n\n\n\n\n<!--\n<img id="cy_image" width=1 height=1 border=0 alt="">\n\n<script type="text/javascript">\n//suppress errors if any to have smooth cart transactions\ntry{            \n\nvar qty = 0;\nvar prodDesc = "";\nprodDesc = rs.pixp_name;\nprodDesc = prodDesc.replace(/&amp;/g,"&");\nprodDesc = prodDesc.replace(/&nbsp;/g," ");\ncy_session_cookie = Mage.Cookies.get(\'_cy_session_id\');\nif(cy_session_cookie)\n{\ncy.SessionID = cy_session_cookie[1];\ndocument.cookie = \'_cy_session_id=; expires=Thu, 01-Jan-70 00:00:01 GMT;\';\n}\ncy.Section = "Summary";\ncy.Quantity = rs.pixp_cartCount;\ncy.Value = rs.pixp_total;\ncy.Custom1 = rs.pixp_promo;\ncy.Custom4 = rs.pixp_lang;                                \ncy.Custom5 = rs.prodDesc;\ncy.FunnelLevel = "7";\ncy.ReturnToLink = rs.pixp_cartUrl;\ncy.UserId = rs.pixp_email;\ncy_getImageSrc();               \n\n}\ncatch(e)\n{\ncy.FunnelLevel=7;\ncy.UserId = rs.pixp_email;\ncy.SessionID= _cyGenerateUUID();\ncy.Custom10=\'caughterror: \'+e.description;\ncy_getImageSrc();\n}\n</script>\n//-->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- Responsys tag 2013/09/26 -->\n<script type="text/javascript">\n/*\nvar adnxsimgsrc= "https://secure.adnxs.com/px?id=104362&value="+pixp_total+"&t=2";\nvar img = jQuery(document.createElement("img"));\nimg.attr(\'src\', adnxsimgsrc);\nimg.attr(\'height\', \'1px\');\nimg.attr(\'width\', \'1px\');\nimg.appendTo(\'body\');\n*/\n(function(){\nvar responsys_tag = document.createElement(\'img\');\nresponsys_tag.setAttribute(\'src\',\'https://secure.adnxs.com/px?id=104362&value=\'+rs.pixp_total+\'&t=2\');\nresponsys_tag.setAttribute(\'height\',\'1px\');\nresponsys_tag.setAttribute(\'width\',\'1px\');\ndocument.body.appendChild(responsys_tag);\n})();\n</script>\n<!-- Responsys tag 2013/09/26 -->\n\n\n\n\n\n\n\n<!-- Begin: Twitter Purchase Tag -->\n<img height="1" width="1" style="display:none;" alt="" src="https://analytics.twitter.com/i/adsct?txn_id=l4go9&p_id=Twitter" />\n<img height="1" width="1" style="display:none;" alt="" src="//t.co/i/adsct?txn_id=l4go9&p_id=Twitter" />\n<!-- Begin: Twitter Purchase Tag -->\n\n\n'},{html:"<!--\nStart of DoubleClick Floodlight Tag: Please do not remove\nActivity name of this tag: Cart_Page_Thank_You\nURL of the webpage where the tag is expected to be placed: https://secure.rosettastone.com/us_en_store_view/multicheckout/multipage/success\nThis tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.\nCreation Date: 08/13/2014\n-->\n<!--\nupdated: may 9, 2017\n\tencoded url to take care of space characters in product names\n\trolled back. didn't need encoding\n-->\n<script type=\"text/javascript\">\nvar doubleclickStuff = {\n  random : parseInt(Math.random() * 9999999999999999), /* to prevent caching */\n  name_array : rs.pixp_name.replace(/,(?=[a-z])/gi,'|').split('|'), /* names of purchased items */\n  product_array : [], /* types of purchased items */\n  product_string : '', /* string form of purchased items */\n\n  getProductType : function(str){ /* determine product type */\n    if(str.indexOf(\"TOTALe\") >- 1){ return \"online_subscription\"; }\n    else if(str.indexOf(\"Download PTO\") >- 1){ return \"download\"; }\n    else if(str.indexOf(\"PTO\") >- 1){ return \"cd\"; }\n    else {return \"other\";}\n  }\n};\n\n/* generate a list of product types purchased and then turn them into a string separated by pipe characters (example: cd|download|online_subscription) */\nfor(var i=0; i<doubleclickStuff.name_array.length; i++){\n  doubleclickStuff.product_array.push(doubleclickStuff.getProductType(doubleclickStuff.name_array[i]));\n}\ndoubleclickStuff.product_string = doubleclickStuff.product_array.join('|');\n\n/* the actual tag begins here */\nvar doubleclick_floodlight_tag = document.createElement('iframe');\n\nvar doubleclick_floodlight_url = encodeURI('https://4476300.fls.doubleclick.net/activityi;src=4476300;type=conve0;cat=Cart_0;qty=1;cost='+rs.pixp_total+';u1='+rs.pixp_sku.replace(/,/g,'|')+';u2='+doubleclickStuff.product_string+';u3='+rs.pixp_lang.replace(/,/g,'|')+';u4='+rs.pixp_total+';ord='+order_id+'?');\ndoubleclick_floodlight_tag.setAttribute('src', doubleclick_floodlight_url);\ndoubleclick_floodlight_tag.setAttribute('width','1');\ndoubleclick_floodlight_tag.setAttribute('height','1');\ndoubleclick_floodlight_tag.setAttribute('frameborder','0');\ndoubleclick_floodlight_tag.setAttribute('style','display:none');\ndocument.body.appendChild(doubleclick_floodlight_tag);\n</script>\n<!-- End of DoubleClick Floodlight Tag: Please do not remove -->"},{html:"<!-- Begin: Facebook Conversion Code for Orders -->\n<!--\n<script type=\"text/javascript\">\nvar fb_param = {};\nfb_param.pixel_id = '6009632123248';\nfb_param.value = rs.pixp_total || '0.01';\nfb_param.currency = 'USD';\n(function(){\nvar fpw = document.createElement('script');\nfpw.async = true;\nfpw.src = '//connect.facebook.net/en_US/fp.js';\nvar ref = document.getElementsByTagName('script')[0];\nref.parentNode.insertBefore(fpw, ref);\n})();\n</script>\n<noscript><img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\"https://www.facebook.com/offsite_event.php?id=6009632123248&amp;value=0.01&amp;currency=USD\" /></noscript>\n-->\n<!-- End: Facebook Conversion Code for Orders -->"},{html:'<!-- *********************************************\nCRITEO ORDER CONFIRMATION PIXEL (cart page 5)\n\towner: Caitlin\n\tpurpose: tracking conversions\n\tlatest update: jul 26, 2017\n********************************************** -->\n\n<script>\n/*\nCryptoJS v3.1.2\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\nvar CryptoJS=CryptoJS||function(s,p){var m={},l=m.lib={},n=function(){},r=l.Base={extend:function(b){n.prototype=this;var h=new n;b&&h.mixIn(b);h.hasOwnProperty("init")||(h.init=function(){h.$super.init.apply(this,arguments)});h.init.prototype=h;h.$super=this;return h},create:function(){var b=this.extend();b.init.apply(b,arguments);return b},init:function(){},mixIn:function(b){for(var h in b)b.hasOwnProperty(h)&&(this[h]=b[h]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}},\nq=l.WordArray=r.extend({init:function(b,h){b=this.words=b||[];this.sigBytes=h!=p?h:4*b.length},toString:function(b){return(b||t).stringify(this)},concat:function(b){var h=this.words,a=b.words,j=this.sigBytes;b=b.sigBytes;this.clamp();if(j%4)for(var g=0;g<b;g++)h[j+g>>>2]|=(a[g>>>2]>>>24-8*(g%4)&255)<<24-8*((j+g)%4);else if(65535<a.length)for(g=0;g<b;g+=4)h[j+g>>>2]=a[g>>>2];else h.push.apply(h,a);this.sigBytes+=b;return this},clamp:function(){var b=this.words,h=this.sigBytes;b[h>>>2]&=4294967295<<\n32-8*(h%4);b.length=s.ceil(h/4)},clone:function(){var b=r.clone.call(this);b.words=this.words.slice(0);return b},random:function(b){for(var h=[],a=0;a<b;a+=4)h.push(4294967296*s.random()|0);return new q.init(h,b)}}),v=m.enc={},t=v.Hex={stringify:function(b){var a=b.words;b=b.sigBytes;for(var g=[],j=0;j<b;j++){var k=a[j>>>2]>>>24-8*(j%4)&255;g.push((k>>>4).toString(16));g.push((k&15).toString(16))}return g.join("")},parse:function(b){for(var a=b.length,g=[],j=0;j<a;j+=2)g[j>>>3]|=parseInt(b.substr(j,\n2),16)<<24-4*(j%8);return new q.init(g,a/2)}},a=v.Latin1={stringify:function(b){var a=b.words;b=b.sigBytes;for(var g=[],j=0;j<b;j++)g.push(String.fromCharCode(a[j>>>2]>>>24-8*(j%4)&255));return g.join("")},parse:function(b){for(var a=b.length,g=[],j=0;j<a;j++)g[j>>>2]|=(b.charCodeAt(j)&255)<<24-8*(j%4);return new q.init(g,a)}},u=v.Utf8={stringify:function(b){try{return decodeURIComponent(escape(a.stringify(b)))}catch(g){throw Error("Malformed UTF-8 data");}},parse:function(b){return a.parse(unescape(encodeURIComponent(b)))}},\ng=l.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(b){"string"==typeof b&&(b=u.parse(b));this._data.concat(b);this._nDataBytes+=b.sigBytes},_process:function(b){var a=this._data,g=a.words,j=a.sigBytes,k=this.blockSize,m=j/(4*k),m=b?s.ceil(m):s.max((m|0)-this._minBufferSize,0);b=m*k;j=s.min(4*b,j);if(b){for(var l=0;l<b;l+=k)this._doProcessBlock(g,l);l=g.splice(0,b);a.sigBytes-=j}return new q.init(l,j)},clone:function(){var b=r.clone.call(this);\nb._data=this._data.clone();return b},_minBufferSize:0});l.Hasher=g.extend({cfg:r.extend(),init:function(b){this.cfg=this.cfg.extend(b);this.reset()},reset:function(){g.reset.call(this);this._doReset()},update:function(b){this._append(b);this._process();return this},finalize:function(b){b&&this._append(b);return this._doFinalize()},blockSize:16,_createHelper:function(b){return function(a,g){return(new b.init(g)).finalize(a)}},_createHmacHelper:function(b){return function(a,g){return(new k.HMAC.init(b,\ng)).finalize(a)}}});var k=m.algo={};return m}(Math);\n(function(s){function p(a,k,b,h,l,j,m){a=a+(k&b|~k&h)+l+m;return(a<<j|a>>>32-j)+k}function m(a,k,b,h,l,j,m){a=a+(k&h|b&~h)+l+m;return(a<<j|a>>>32-j)+k}function l(a,k,b,h,l,j,m){a=a+(k^b^h)+l+m;return(a<<j|a>>>32-j)+k}function n(a,k,b,h,l,j,m){a=a+(b^(k|~h))+l+m;return(a<<j|a>>>32-j)+k}for(var r=CryptoJS,q=r.lib,v=q.WordArray,t=q.Hasher,q=r.algo,a=[],u=0;64>u;u++)a[u]=4294967296*s.abs(s.sin(u+1))|0;q=q.MD5=t.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},\n_doProcessBlock:function(g,k){for(var b=0;16>b;b++){var h=k+b,w=g[h];g[h]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var b=this._hash.words,h=g[k+0],w=g[k+1],j=g[k+2],q=g[k+3],r=g[k+4],s=g[k+5],t=g[k+6],u=g[k+7],v=g[k+8],x=g[k+9],y=g[k+10],z=g[k+11],A=g[k+12],B=g[k+13],C=g[k+14],D=g[k+15],c=b[0],d=b[1],e=b[2],f=b[3],c=p(c,d,e,f,h,7,a[0]),f=p(f,c,d,e,w,12,a[1]),e=p(e,f,c,d,j,17,a[2]),d=p(d,e,f,c,q,22,a[3]),c=p(c,d,e,f,r,7,a[4]),f=p(f,c,d,e,s,12,a[5]),e=p(e,f,c,d,t,17,a[6]),d=p(d,e,f,c,u,22,a[7]),\nc=p(c,d,e,f,v,7,a[8]),f=p(f,c,d,e,x,12,a[9]),e=p(e,f,c,d,y,17,a[10]),d=p(d,e,f,c,z,22,a[11]),c=p(c,d,e,f,A,7,a[12]),f=p(f,c,d,e,B,12,a[13]),e=p(e,f,c,d,C,17,a[14]),d=p(d,e,f,c,D,22,a[15]),c=m(c,d,e,f,w,5,a[16]),f=m(f,c,d,e,t,9,a[17]),e=m(e,f,c,d,z,14,a[18]),d=m(d,e,f,c,h,20,a[19]),c=m(c,d,e,f,s,5,a[20]),f=m(f,c,d,e,y,9,a[21]),e=m(e,f,c,d,D,14,a[22]),d=m(d,e,f,c,r,20,a[23]),c=m(c,d,e,f,x,5,a[24]),f=m(f,c,d,e,C,9,a[25]),e=m(e,f,c,d,q,14,a[26]),d=m(d,e,f,c,v,20,a[27]),c=m(c,d,e,f,B,5,a[28]),f=m(f,c,\nd,e,j,9,a[29]),e=m(e,f,c,d,u,14,a[30]),d=m(d,e,f,c,A,20,a[31]),c=l(c,d,e,f,s,4,a[32]),f=l(f,c,d,e,v,11,a[33]),e=l(e,f,c,d,z,16,a[34]),d=l(d,e,f,c,C,23,a[35]),c=l(c,d,e,f,w,4,a[36]),f=l(f,c,d,e,r,11,a[37]),e=l(e,f,c,d,u,16,a[38]),d=l(d,e,f,c,y,23,a[39]),c=l(c,d,e,f,B,4,a[40]),f=l(f,c,d,e,h,11,a[41]),e=l(e,f,c,d,q,16,a[42]),d=l(d,e,f,c,t,23,a[43]),c=l(c,d,e,f,x,4,a[44]),f=l(f,c,d,e,A,11,a[45]),e=l(e,f,c,d,D,16,a[46]),d=l(d,e,f,c,j,23,a[47]),c=n(c,d,e,f,h,6,a[48]),f=n(f,c,d,e,u,10,a[49]),e=n(e,f,c,d,\nC,15,a[50]),d=n(d,e,f,c,s,21,a[51]),c=n(c,d,e,f,A,6,a[52]),f=n(f,c,d,e,q,10,a[53]),e=n(e,f,c,d,y,15,a[54]),d=n(d,e,f,c,w,21,a[55]),c=n(c,d,e,f,v,6,a[56]),f=n(f,c,d,e,D,10,a[57]),e=n(e,f,c,d,t,15,a[58]),d=n(d,e,f,c,B,21,a[59]),c=n(c,d,e,f,r,6,a[60]),f=n(f,c,d,e,z,10,a[61]),e=n(e,f,c,d,j,15,a[62]),d=n(d,e,f,c,x,21,a[63]);b[0]=b[0]+c|0;b[1]=b[1]+d|0;b[2]=b[2]+e|0;b[3]=b[3]+f|0},_doFinalize:function(){var a=this._data,k=a.words,b=8*this._nDataBytes,h=8*a.sigBytes;k[h>>>5]|=128<<24-h%32;var l=s.floor(b/\n4294967296);k[(h+64>>>9<<4)+15]=(l<<8|l>>>24)&16711935|(l<<24|l>>>8)&4278255360;k[(h+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;a.sigBytes=4*(k.length+1);this._process();a=this._hash;k=a.words;for(b=0;4>b;b++)h=k[b],k[b]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360;return a},clone:function(){var a=t.clone.call(this);a._hash=this._hash.clone();return a}});r.MD5=t._createHelper(q);r.HmacMD5=t._createHmacHelper(q)})(Math);\n</script>\n\n<!-- actual criteo pixel starts here -->\n<script type="text/javascript">\nvar email = document.cookie.match(/billing_email=([^;]+)/i) || \'\';\nvar hashedEmail = \'\';\ntry{\n\tif(email){email=email[1]}\n\thashedEmail = CryptoJS.MD5(email);\n}\ncatch(e){\n\tconsole.log(\'criteo pixel hashing caused error\');\n}\n\nwindow.criteo_q=window.criteo_q|| [];\nwindow.criteo_q.push(\n\t{event: "setAccount", account:5943},\n\t{event: "setCustomerId", id:""},\n\t{event: "setSiteType", type:"d"},\n\t{event: "setHashedEmail", email: hashedEmail},\n\t{event: "trackTransaction", id: order_id, product: function(){\n\t\tvar pl = [];\n\n\t\tvar criteo_sku_array = rs.pixp_sku.split(\',\');\n\t\tvar criteo_lang_array = rs.pixp_lang.split(\',\').map(function(v){return v.toLowerCase();});\n\t\tvar criteo_price_array = rs.pixp_price.split(\',\');\n\t\tvar criteo_quantity_array = rs.pixp_qty.split(\',\');\n\n\t\tfor (var i=0; i<criteo_sku_array.length; ++i) {\n\t\t\tpl.push({\n\t\t\t\tid: criteo_sku_array[i]+\'-\'+criteo_lang_array[i],\n\t\t\t\tprice: (criteo_price_array[0] / criteo_quantity_array[0]).toFixed(2),\n\t\t\t\tquantity: criteo_quantity_array[i]\n\t\t\t});\n\t\t}\n\t\treturn pl;\n\t}}\n);\n</script>\n<!-- end Criteo order confirmation pixel -->'},{html:"<script>\n/*************************************************************\nAMOBEE CART CONVERSION PIXEL\n\tOther names: Adconion, amgdgt (also brings in doubleclick via redirect)\n\tOwners: Caitlin and Nakesa\n\tPlacements: final cart page (confirmation)\n\tPurpose: tracking purchases\n\tOther notes: the CID should start with: ba-bn-ab (NEVER MIND)\n\tDate added: July 7, 2016\n\tUpdated: July 12, 2016 (CID removed)\n*************************************************************/\n(function amobee_adconion_amgdgt() {\n\tvar cachebuster = Math.floor(Math.random()*999999999999);\n\tvar amobee_pixel = document.createElement('img');\n\tamobee_pixel.setAttribute('src','https://at.amgdgt.com/ads/?t=pp&px=70987&rnd='+cachebuster);\n\tamobee_pixel.setAttribute('width','1');\n\tamobee_pixel.setAttribute('height','1');\n\tamobee_pixel.setAttribute('border','0');\n\tdocument.body.appendChild(amobee_pixel);\n})();\n</script>"},{html:"\n<!--\nMOVABLE INK CONVERSION PIXEL (also called micpn)\n\towner: rebecca\n\tpurpose: tracking cart conversions from Movable Ink emails\n\tdate added: aug 3, 2016\n-->\n\n<script type='text/javascript'>\n(function(m,o,v,a,b,l,e) {\n\tm['MovableInkTrack'] = b;\n\tl = o.createElement(v);\n\te = o.getElementsByTagName(v)[0];\n\tl.type = 'text/javascript'; l.async = true;\n\tl.src = '//' + a + '/p/js/1.js';\n\tm[b] = m[b] || function() { (m[b].q=m[b].q||[]).push(arguments); };\n\te.parentNode.insertBefore(l, e);\n})(window, document, 'script', 'y564fxli.micpn.com', 'mitr');\n\n(function(){\n\ttry{\n\t\tvar sku = rs.pixp_sku.split(',');\n\t\tvar name = rs.pixp_name.split(',');\n\t\tvar quantity = rs.pixp_qty.split(',');\n\n\t\tmitr('addPromo', {code: '<CODE_1>', description: '<PROMO_DESCRIPTION_1>'});\n\t\t\n\t\tfor(var i=0; i<sku.length; i++){\n\t\t\tmitr('addProduct', {sku: sku[i], name: name[i], price: '<PRICE_1>', quantity: quantity[i], other: '<OTHER_1>'});\n\t\t}\n\t\tmitr('send', 'conversion', {revenue: '<CONVERSION_AMOUNT>', identifier: '<TRANSACTION_ID>'});\n\t}\n\tcatch(e){}\n})();\n</script>\n"},{html:"<!-- Facebook Pixel Code -->\n<!--\n<script>\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?\nn.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,'script','https://connect.facebook.net/en_US/fbevents.js');\n\nfbq('init', '1253994251286725');\nfbq('track', \"PageView\");\n(function(){\n  var value = rs.pixp_total || '199';\n  fbq('track', 'Purchase', {value: value, currency: 'USD'});\n})();\n</script>\n<noscript><img height=\"1\" width=\"1\" style=\"display:none\"\nsrc=\"https://www.facebook.com/tr?id=1253994251286725&ev=PageView&noscript=1\"\n/></noscript>\n-->\n<!-- End Facebook Pixel Code -->"},{html:"<!-- Facebook Pixel Code -->\n<!--\n<script>\n!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function()\n{n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}\n\n;if(!f._fbq)f._fbq=n;\nn.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;\nt.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,\ndocument,'script','https://connect.facebook.net/en_US/fbevents.js');\nfbq('init', '1915190642041354');\nfbq('track', 'PageView');\n</script>\n<noscript><img height=\"1\" width=\"1\" style=\"display:none\"\nsrc=\"https://www.facebook.com/tr?id=1915190642041354&ev=PageView&noscript=1\"\n/></noscript>\n-->\n<!-- DO NOT MODIFY -->\n<!-- End Facebook Pixel Code -->"},{html:'<!--\nGoogle conversion tracking pixel NEW\ncurrent owner: kon\nadded: feb 6, 2017\n-->\n<script type="text/javascript">\n(function(){\n\tvar value = rs.pixp_total;\n\tjQuery(\'body\').append(\'<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1041440066/?value=\'+value+\'&currency_code=USD&label=txNLCLHzlG4QwrrM8AM&guid=ON&script=0"/>\');\n})();\n</script>\n<!-- End google conversion pixel -->'},{html:"<!--\nGeneral Facebook Cart Conversion Pixels\n\n\t- this function will run an image pixel given an id\n\t- documentation:\n\t\thttps://pixel.facebook.com/business/help/952192354843755?helpref=faq_content#addeventcode\n\t\thttps://developers.facebook.com/docs/marketing-api/audiences-api/pixel#parameters\n\t- added feb 2, 2017\n\t- owners: cesar (hisp marketing), caitlin (us marketing), dion (us marketing), krista (homeschool)\n-->\n<script>\n\n// for cesar (old)\n// runFacebookConversionPixel('1397447790523090');\n\n// for caitlin and dion (old)\n// runFacebookConversionPixel('1915190642041354');\n\n// for caitlin, dion, and cesar\nrunFacebookConversionPixel('1391109851150037');\n\n// for krista (homeschool)\nrunFacebookConversionPixel('1253994251286725');\n\nfunction runFacebookConversionPixel(pixelId){\n\tvar value = rs.pixp_total === '' ? '0.00' : rs.pixp_total.replace(/,/gi, '');\n\tvar langs = rs.pixp_lang.split(',');\n\tvar skus = rs.pixp_sku.split(',');\n\tvar qtys = rs.pixp_qty.split(',');\n\n\tjQuery('body').append('<img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id='+pixelId+'&ev=PageView\"/>');\n\tjQuery('body').append('<img height=\"1\" width=\"1\" style=\"display:none\" src=\"https://www.facebook.com/tr?id='+pixelId+'&ev=Purchase&cd[currency]=USD&cd[value]='+value+'&cd[content_name]='+langs+'&cd[content_ids]='+skus+'&cd[content_type]=product&cd[num_items]='+qtys+'\"/>');\n}\n\n</script>"},{html:"<script>\n/*****************************************************************************************\nYOUTUBE PURCHASE CONVERSION PIXEL (through google)\n\tOwners: Dion and Caitlin\n\tPurpose: tracking purchases from youtube campaigns\n  Ticket: WS-1773\n\tDate added: Apr 14, 2017\n*****************************************************************************************/\n(function youtubeConversionPixel() {\n\tvar youtube_conversion_id = \"1013815393\";\n\tvar youtube_conversion_label = \"5e_jCPfX9QIQ4bC24wM\";\n\tvar youtube_conversion_value = rs.pixp_total;\n\tvar img = document.createElement('img');\n\timg.setAttribute('height','1');\n\timg.setAttribute('width','1');\n\timg.setAttribute('style','border-style:none; display:none;');\n\timg.setAttribute('alt','');\n\timg.setAttribute('src','//www.googleadservices.com/pagead/conversion/'+youtube_conversion_id+'/?value='+youtube_conversion_value+'&currency_code=USD&label='+youtube_conversion_label+'&guid=ON&script=0');\n\tdocument.body.appendChild(img);\n})();\n</script>"},{html:"<!--\nQUANTIC MIND PURCHASE CONVERSION PIXEL\n  other names: staticiv.com\n\towner: chris klipple\n\tpurpose: associating conversions with publisher data to optimize ad spend (for google, bing, and yahoo in this case)\n\tticket: ws-1824\n\tdate added: jul 6, 2017\n-->\n<script type=\"text/javascript\">    \n  window._iva = window._iva || []; \n  _iva.push(['setClientId', 'csKOg5pmS']);    \n  _iva.push(['trackEvent', 'event3', rs.pixp_total, order_id]);\n\n  (function() {    \n    var s = document.createElement('script');\n    s.type = 'text/javascript'; \n    s.async = true;\n    s.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://analytics.staticiv.com/csKOg5pmS/iva.js';\n    var x = document.getElementsByTagName('script')[0]; \n    x.parentNode.insertBefore(s, x);  \n  })();  \n</script> \n"},{html:'<script type="text/javascript">\n(function(){var x=null,p,q,m,\no="9698",\nl=order_id,\ni=rs.pixp_total,\nc="",\nk=rs.pixp_sku,\ng=rs.pixp_qty,\nj=rs.pixp_price,\nu="",\nshadditional="";\ntry{p=top.document.referer!==""?encodeURIComponent(top.document.referrer.substring(0,512)):""}catch(n){p=document.referrer!==null?document.referrer.toString().substring(0,512):""}try{q=window&&window.top&&document.location&&window.top.location===document.location?document.location:window&&window.top&&window.top.location&&""!==window.top.location?window.top.location:document.location}catch(b){q=document.location}try{m=parent.location.href!==""?encodeURIComponent(parent.location.href.toString().substring(0,512)):""}catch(z){try{m=q!==null?encodeURIComponent(q.toString().substring(0,512)):""}catch(h){m=""}}var A,y=document.createElement("script"),w=null,v=document.getElementsByTagName("script"),t=Number(v.length)-1,r=document.getElementsByTagName("script")[t];if(typeof A==="undefined"){A=Math.floor(Math.random()*100000000000000000)}w="dx.steelhousemedia.com/spx?conv=1&shaid="+o+"&tdr="+p+"&plh="+m+"&cb="+A+"&shoid="+l+"&shoamt="+i+"&shocur="+c+"&shopid="+k+"&shoq="+g+"&shoup="+j+"&shpil="+u+shadditional;y.type="text/javascript";y.src=("https:"===document.location.protocol?"https://":"http://")+w;r.parentNode.insertBefore(y,r)}());\n</script>'},{html:'<!--\nPINTEREST PURCHASE CONVERSION PIXEL\n\tother names: pinimg.com\n\towner: Nakesa\n\tpurpose: tracking pinterest advertising\n\tdate added: aug 3, 2017\n-->\n<script>\n(function(){\n\t// first make sure pintrk variable is available\n\t!function(e){\n\t\tif(!window.pintrk){\n\t\t\twindow.pintrk=function(){\n\t\t\t\twindow.pintrk.queue.push(Array.prototype.slice.call(arguments))\n\t\t\t};\n\t\t\tvar n=window.pintrk;\n\t\t\tn.queue=[],n.version="3.0";\n\t\t\tvar t=document.createElement("script");\n\t\t\tt.async=!0,t.src=e;\n\t\t\tvar r=document.getElementsByTagName("script")[0];\n\t\t\tr.parentNode.insertBefore(t,r);\n\t\t\tpintrk(\'load\', \'2614414633855\');\n\t\t}\n\t}("https://s.pinimg.com/ct/core.js");\n\n\t// then run purchase pixel\n\tvar quantity = rs.pixp_qty.split(\',\').reduce(function(total,current_value){ return total + Number(current_value); },0);\n\tpintrk(\'track\', \'checkout\', {\n\t\tvalue: Number(rs.pixp_total),\n\t\torder_quantity: quantity\n\t});\n})();\n</script>\n<noscript>\n\t<img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=2614414633855&event=checkout&noscript=1" />\n</noscript>'},{html:'<!--\nGOOGLE E&E TEAM-EDITION PURCHASE CONVERSION PIXEL\n\towner: mary h. (e&e)\n\tpurpose: remarketing for team-edition visitors\n\tticket: ws-1991\n\tdate added: aug 7, 2017\n-->\n<script type="text/javascript">\n(function(){\n\t// if product name has catalyst, then we know it\'s an e&e purchase\n\tif(/catalyst/i.test(rs.pixp_name)){\n\n\t\t// then fire the google pixel with the correct order amount\n\t\tvar value = rs.pixp_total;\n\t\tjQuery(\'body\').append(\'<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1051877983/?value=\'+value+\'&currency_code=USD&label=ct96CMS51XMQ38TJ9QM&guid=ON&script=0"/>\');\n\t}\n})();\n</script>'},{html:"<script>\n/*****************************************************************************************\nTABOOLA PURCHASE PIXEL\n\towner: Nakesa\n\tpurpose: tracking purchases from taboola ads\n\tadded: nov 20, 2017\n*****************************************************************************************/\n(function(){\n\tvar order_total = rs && rs.pixp_total;\n\tvar encoded_page_url = encodeURIComponent(window.location.href);\n\tvar taboola_purchase_pixel = document.createElement('img');\n\ttaboola_purchase_pixel.setAttribute('src','//trc.taboola.com/rosettastoneus-sc/log/3/action?name=Purchase&revenue='+order_total+'&item-url='+encoded_page_url);\n\ttaboola_purchase_pixel.setAttribute('width','0');\n\ttaboola_purchase_pixel.setAttribute('height','0');\n\tdocument.body.appendChild(taboola_purchase_pixel);\n})();\n</script>"},{html:"<script>\n/**************************************************************\nPANDORA AdXcel CART CONVERSION PIXEL\n\tOwners: Caitlin, Paresa\n\tTicket: WS-2266\n\tPurpose: tracking purchases from pandora ad campaign\n\tConditions: only fire pixel if CID starts with ba-bn-pa\n\tDate added: Dec 7, 2017\n**************************************************************/\n(function pandora_adxcel_cart_conversion(){\n\n\tvar cid = 'ba-bn-pa';\n\tif(window.location.href.match(cid) || document.referrer.match(cid) || document.cookie.match(cid)){\n\t\tvar pandora_img = document.createElement('img');\n\t\tpandora_img.setAttribute('src','https://data.adxcel-ec2.com/pixel/?ad_log=referer&action=purchases&pixid=8e229860-39ad-496d-b121-10324914289f');\n\t\tpandora_img.setAttribute('width','1');\n\t\tpandora_img.setAttribute('height','1');\n\t\tpandora_img.setAttribute('border','0');\n\t\tdocument.body.appendChild(pandora_img);\n\t}\n\n})();\n</script>"},{html:"<script>\n/********************************************\nQUORA PURCHASE CONVERSION PIXEL\n\towner: Dion\n\tticket: WS-2867\n\tpurpose: to measure purchases\n\tdate added: jul 16 2018\n*********************************************/\n!function(q,e,v,n,t,s){if(q.qp) return; n=q.qp=function()\n{n.qp?n.qp.apply(n,arguments):n.queue.push(arguments);}\n; n.queue=[];t=document.createElement(e);t.async=!0;t.src=v; s=document.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s);}(window, 'script', 'https://a.quora.com/qevents.js');\nqp('init', '20304b975edc47f0913a0955eb26d36a');\nqp('track', 'ViewContent');\n\nqp('track', 'Purchase');\n</script>"},{html:"<script>\n/******************************************************\nADMARKETPLACE PIXEL\n\towner: Chris K.\n  ticket: WS-2856\n\tdate added: jul 16 2018\n*******************************************************/\n(function(){\n\tvar order_total = rs && rs.pixp_total;\n\tvar order_id = rs && rs.order_id;\n\n\tvar admarketplace = document.createElement('img');\n\tadmarketplace.setAttribute('src','https://tracking.admarketplace.net/tracking?pid=31883&cid=74363&orderval='+order_total+'&v=2&orderid='+order_id+'&custominfo=');\n\tadmarketplace.setAttribute('custominfo','1');\n\tadmarketplace.setAttribute('width','1');\n\tadmarketplace.setAttribute('height','0');\n\tadmarketplace.setAttribute('border','0');\n\tdocument.body.appendChild(admarketplace);\n})();\n</script>"},{html:"<!--\n    Yieldmo Conversion Script \"lead for Roestta Stone - 2018\"\n    The recommended place to inject this code is just before your closing </body>\n    tag of the HTML page on which you wish to track conversions.\n  -->\n  \n  <script>\n    /* DO NOT MODIFY CODE BELOW */\n    (function(){\n      var __yms, __p;\n      __p = document.body || document.head;\n      __yms = document.createElement('script');\n      __yms.async = true;\n      __yms.src = '//static.yieldmo.com/ym.adv.min.js';\n      __yms.className = 'ym-adv';\n      if(__p) __p.appendChild(__yms);\n    })();\n       \n    window['_ymq'] = window._ymq || [];\n    /* DO NOT MODIFY CODE ABOVE */\n    \n    /**\n     * You may modify the code below to to include custom fields that you \n     * (the advertiser) use in your business, please refer to the docs for more info.\n     * \n     * NOTE: Notice how the block in the <noscript> area contains the same\n     * params as in the line of code right below this comment.\n     */\n    window['_ymq'].push(['lead', '2064599530267641145']);\n       \n  </script>\n  <noscript>\n    <img height=\"1\" width=\"1\" alt=\"\" style=\"display:none\" src=\"https://tkr.yieldmo.com/t_adt/adt?ymi=1&conversion_type=lead&ymadvid=2064599530267641145\" />\n  </noscript>"},{html:'<!-- ****************************************************************\nQUANTCAST TAG (also called quantserve)\n\tOwner: Caitlin\n\tUpdated: Jan 26, 2015\n**************************************************************** -->\n<script type="text/javascript"> \nwindow._qevents = window._qevents || [];\n\n(function() {\nvar elem = document.createElement(\'script\');\nelem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";\nelem.async = true;\nelem.type = "text/javascript";\nvar scpt = document.getElementsByTagName(\'script\')[0];\nscpt.parentNode.insertBefore(elem, scpt);\n})();\n\n(function(){\n\t// determine the product category\n\tvar quantcast_product_category = (function(){\n\t\tif(rs.pixp_name.match(/brains/i)){ return \'fit_brains\'; }\n\t\telse if(rs.pixp_name.match(/kids/i)){ return \'kids_reading\'; }\n\t\telse { return rs.pixp_lang || \'other\'; }\n\t})();\n\n\t// push the data to quantcast\'s array\n\t_qevents.push(\n\t{qacct:"p-79GCGUL-EId6Y", labels:"_fp.event.Order Confirmation,_fp.pcat."+quantcast_product_category, orderid:order_id, revenue: rs.pixp_total}\n\t);\n})();\n</script>\n<!-- End Quantcast tag -->'},{html:"<!-- ************************************************************************************\nACTIONX ORDER CONFIRMATION (cart page 5) PIXEL (also called action x or actnx)\n    owners: ashley and caitlin\n    purpose: retargeting\n    firing condition: when cart page 5 loads\n    updated: mar 27, 2015\n***************************************************************************************-->\n<script>\n(function actionx_order_confirmation_pixel(){\n\n\t// create and attach the pixel\n\tvar actionx = document.createElement('img');\n\tactionx.src = 'https://data.actnx.com/v2d?tok=ffacc0a0-8823-43c2-9745-3997b2d28087&tr=in:true&v=user-agent:'+navigator.userAgent+'&v=r:f:'+rs.pixp_total+'&v=orderId:s:'+order_id+'&sync=true&pixel=true';\n\tdocument.body.appendChild(actionx);\n\t\n})();\n</script>"},{html:"<!-- *****************************************************************************************\nDOUBLE POSITIVE conversion PIXEL (also called bid-tag or mathtag)\n\towner: Caitlin and Ashley\n\tpurpose: optimized advertising\n\tadded: march 5, 2015\n***************************************************************************************** -->\n<!--\n<script>\n(function(){\n\tvar tag = document.createElement('script');\n\ttag.src = 'https://pixel.mathtag.com/event/js?mt_id=171331&mt_adid=104239&v1='+rs.pixp_total+'&v2=&v3=&s1=&s2=&s3=';\n\tdocument.body.appendChild(tag);\n})();\n</script>\n-->"},{
html:"<script>\n/*****************************************************************************************\nE-MILES conversion PIXEL (I'll put emiles here too in case we do ctrl/cmd+f and forget the hyphen)\n\towner: Caitlin\n\tpurpose: conversion tracking\n\tadded: march 5, 2015\n*****************************************************************************************/\n(function() {\n    var img = document.createElement('img');\n    img.width = 1;\n    img.height = 1;\n    img.setAttribute('src','https://www.e-miles.com/autocredit.do?pc=5248KUXSM2FSK7M&icampaignID=7AGF8R');\n    document.body.appendChild(img);\n})();\n</script>"},{html:'<!--\n<img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?id=1397447790523090&amp;ev=PixelInitialized" />\n-->'},{html:"<script>\n(function(){\n\n\t// helper function\n\tfunction getCookie(cookie_name){\n\t\tvar regex = new RegExp('(^|;\\\\s)'+cookie_name+'=([^;]+)', 'i');\n\t\treturn (document.cookie.match(regex) || [])[2];\n\t}\n\n\n\n\n\t/*********************************************************************************\n\tmobile cj cart pixel (iframe)\n\t\t- this used to be hard-coded into the mobile cart\n\t\t- moved here dec 19, 2016\n\t\t- stakeholders: ashley and cesar\n\t\t- updated: jan 11, 2017 (fixed products and prices)\n\t\t- updated: jul 13, 2018 (WS-2837 - add custom cookie mechanism for gdpr)\n\t**********************************************************************************/\n\n\t(function cj_mobile_cart_conversion(){\n\t\tvar isMobile = /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n\t\tvar isHispanicCart = /hispanic/i.test(window.location.href);\n\n\t\tif(isMobile && !isHispanicCart){\n\t\t\tvar cj_affiliate = Mage.Cookies.get('affiliate');\n\t\t\t//if(cj_affiliate && cj_affiliate.match(/(^cj)|(^af-cj)/i)) {\n\t\t\t\tvar cj_actionid = 359401;\n\t\t\t\tvar cj_enterpriseid = 1500591;\n\t\t\t\tvar cj_containerid = 3377;\n\t\t\t\tvar cj_currencysymbol = 'USD';\n\t\t\t\t\n\t\t\t\tvar cj_coupon = rs.promo || rs.pixp_promo || window.promo || window.pixp_promo || ((document.cookie.match(/promo_eVar2=([^;]+)/i) || [])[1]) || '';\n\t\t\t\tvar cj_coupon_string = cj_coupon ? '&COUPON=' + cj_coupon : '';\n\n\t\t\t\tvar cjevent = getCookie('cjevent');\n\t\t\t\tvar cjevent_string = cjevent ? '&CJEVENT=' + cjevent : '';\n\t\t\t\t\n\n\t\t\t\tvar product_string = '';\n\n\t\t\t\tvar skus = rs.pixp_sku.split(',');\n\t\t\t\tvar prices = rs.pixp_price.split(',');\n\t\t\t\tvar qtys = rs.pixp_qty.split(',');\n\n\t\t\t\tfor(var i=0; i<skus.length; i++){\n\t\t\t\t\tproduct_string += '&ITEM' + (i+1) + '=' + skus[i]\n\t\t\t\t\t\t+'&AMT' + (i+1) + '=' + (prices[i]/qtys[i])\n\t\t\t\t\t\t+'&QTY' + (i+1) + '=' + qtys[i];\n\t\t\t\t}\n\n\t\t\t\t// var cj_subtotal_before_disc = +pixp_subtotal_with_disc + +pixp_disc_amt;\n\n\n\t\t\t\tvar url = 'https://www.emjcd.com/tags/c?containerTagId='+ cj_containerid +'&CID='+ cj_enterpriseid +'&TYPE='+ cj_actionid +'&CURRENCY=' + cj_currencysymbol;\n\t\t\t\turl += '&OID=' + order_id;\n\t\t\t\t// url += '&ITEM1=34166&AMT1=179.00&QTY1=3';\n\t\t\t\turl += product_string;\n\t\t\t\turl += cj_coupon_string;\n\t\t\t\turl += cjevent_string;\n\n\t\t\t\tvar ifrm = document.createElement('iframe');\n\t\t\t\tifrm.setAttribute('height','1');\n\t\t\t\tifrm.setAttribute('width','1');\n\t\t\t\tifrm.setAttribute('frameborder','0');\n\t\t\t\tifrm.setAttribute('scrolling','no');\n\t\t\t\tifrm.setAttribute('name','cj_conversion');\n\t\t\t\tifrm.setAttribute('src', url);\n\t\t\t\tdocument.body.appendChild(ifrm);\n\t\t\t//}\n\t\t}\n\t})();\n\n\n\n\n\n\n\n\n\n\n\t/*********************************************************************************\n\tCOMMISSION JUNCTION DESKTOP PIXEL\n\t\towner: ashley\n\t\tlocation: cart page 5 (desktop only)\n\t\tpurpose: tracking purchases from this affiliate\n\t\tupdated: oct 28, 2015\n\t\tuncommented: sept 16, 2016\n\t\tupdated: dec 20, 2016\n\t\tcommented out: dec 23, 2016 (id 302302 was apparently for an android in-app purchase tracker that was never implemented and therefore shouldn't fire at all)\n\t\tuncommented: jan 4, 2017 (after removal instructions in ws-1440, id 302302 was discovered to be vitally important)\n\t\tupdated: jul 13, 2018 (WS-2837 - add custom cookie mechanism for gdpr)\n\t**********************************************************************************/\n\n\t(function cj_desktop_cart_conversion(){\n\t\tvar isMobile = /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n\t\tvar isHispanicCart = /hispanic/i.test(window.location.href);\n\n\t\tif(!isMobile && !isHispanicCart){\n\t\t\tvar cj_affiliate = Mage.Cookies.get('affiliate');\n\n\t\t\t//if( cj_affiliate && cj_affiliate.match(/^af-cj/) ) {\n\t\t\t\tvar cj_coupon = rs.promo || rs.pixp_promo || window.promo || window.pixp_promo || ((document.cookie.match(/promo_eVar2=([^;]+)/i) || ['',''])[1]) || '';\n\t\t\t\tvar cj_coupon_string = cj_coupon ? '&COUPON=' + cj_coupon : '';\n\t\t\t\tvar cj_subtotal_before_disc = +pixp_subtotal_with_disc + +pixp_disc_amt;\n\n\t\t\t\tvar cjevent = getCookie('cjevent');\n\t\t\t\tvar cjevent_string = cjevent ? '&CJEVENT=' + cjevent : '';\n\n\t\t\t\tvar imgsrc ='https://www.emjcd.com/u?AMOUNT='+cj_subtotal_before_disc+'&DISCOUNT='+pixp_disc_amt+'&CID=1500591&OID='+order_id+cj_coupon_string+cjevent_string;\n\t\t\t\timgsrc = imgsrc  + '&TYPE=302302&CURRENCY=USD&METHOD=IMG';\n\t\t\t\tvar img = jQuery(document.createElement(\"img\"));\n\t\t\t\timg.attr('src', imgsrc);\n\t\t\t\timg.attr('height', '1px');\n\t\t\t\timg.attr('width', '20px');\n\t\t\t\timg.appendTo('.multicheckout-multipage-success');\n\t\t\t//}\n\t\t}\n\t})();\n\n\n\n\n\n})();\n</script>\n\n\n"}]},{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b997aed64746d0860002e56-staging.js"},{src:"satellite-5b9abb9064746d598b002086-staging.js"}]}]}],scope:{URI:{include:[/\/multicheckout\/multipage\/success|smartsuccess\/$/i]}},event:"pagebottom"},{name:"cart page 5 simplified myaccount email submission",trigger:[{command:"writeHTML",arguments:[{html:"<script>\n(function(){\n\ttry{\n\t\tvar family_sku_24m = '90294';\n\t\tvar family_sku_lifetime = '99054';\n\n\t\tvar firstname = 'first_name';\n\t\tvar lastname = 'last_name';\n\n\t\t// extract first and last names from cookies set earlier (but only if they exist)\n\t\tif(document.cookie.match(/(^|\\s)billing_firstname\\=([^;]+(?=;))/i) && document.cookie.match(/(^|\\s)billing_lastname\\=([^;]+(?=;))/i)){\n\t\t\tfirstname = document.cookie.match(/(^|\\s)billing_firstname\\=([^;]+(?=;))/i)[2];\n\t\t\tlastname = document.cookie.match(/(^|\\s)billing_lastname\\=([^;]+(?=;))/i)[2];\n\t\t}\n\n\t\tif(!!rs.pixp_sku.match(family_sku_24m+'|'+family_sku_lifetime)){\n\t\t\tvar baseURL = (window.location.href.search(/(\\.stg\\.)|(\\.local)/i)>-1 ?\n\t\t\t\t\t\t'http://myaccount.stg' :\n\t\t\t\t\t\t'https://myaccount')\n\t\t\t\t\t\t+ '.rosettastone.com/forms?callback=?&data=';\n\n\t\t\tvar form_type = rs.pixp_sku.match(family_sku_lifetime) ?\n\t\t\t\t\t\t'family_pack_lifetime'\n\t\t\t\t\t\t: 'family_pack_24m';\n\t\t\t\n\t\t\tvar data = {\n\t\t\t            purchase_lang: rs.pixp_lang,\n\t\t\t\t\t\temail : rs.pixp_email,\n\t\t\t\t\t\tcis_name : 'simplified product offering',\n\t\t\t\t\t\twebsite: 'US_WEBSITE',\n\t\t\t\t\t\tform_type : form_type,\n\t\t\t\t\t\tform_url : window.location.href,\n\t\t\t\t\t\torder_number : rs.purchaseID,\n\t\t\t\t\t\torder_date : (new Date()),\n\t\t\t\t\t\torder_amt : rs.pixp_total,\n\t\t\t\t\t\tfirst_name : firstname,\n\t\t\t\t\t\tlast_name : lastname,\n\t\t\t\t\t\tcid :''\n\t\t\t\t\t};\n\n\t\t\tvar json = JSON.stringify(data);\n\n\t\t\tvar request = jQuery.ajax({\n\t\t\t\t\t\tcontentType: \"application/json; charset=utf-8\",\n\t\t\t\t\t\t//url:  'https://myaccount.rosettastone.com/forms?callback=?&data=' + encodeURIComponent(json),\n\t\t\t\t\t\turl: baseURL + encodeURIComponent(json),\n\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\tdataType: \"jsonp\"\n\t\t\t\t\t});\n\n\t\t\trequest.done(function(msg) {\n\t\t\t\tif (msg['return_code'] == true) {\n\t\t\t\tconsole.log('success');\n\t\t\t}});\n\t\t}\n\t}\n\tcatch(e){}\n})();\n</script>"}]}],scope:{URI:{include:[/\/multicheckout\/multipage\/success|smartsuccess\/$/i]}},event:"pagebottom"},{name:"eeAndHigherEd",trigger:[{command:"writeHTML",arguments:[{html:"<!-- DoubleClick Floodlight Tag/Click -->\n<script>\n  var $logo = jQuery('li.name.logozone a img.logo'),\n    $accelerate = jQuery('#right-learn-more'),\n    $whitepaper = jQuery('#white-paper'),\n    $higherEdBen = jQuery(\n      '#main-navigation-wrapper > .main-menu-tabs .click-nav > ul.no-js:eq(0) > li > a.clicker'\n    ),\n    $langSol = jQuery(\n      '#main-navigation-wrapper > .main-menu-tabs .click-nav > ul.no-js:eq(1) > li > a.clicker'\n    ),\n    $resources = jQuery('#Resources'),\n    $socialLinks = jQuery('#footer-container .new-footer .social ul li a'),\n    $demoLink = jQuery('#demo-link'),\n    $takeDemo = jQuery('#take-demo'),\n\n    pathName = jQuery(location).attr('pathname');\n\n  if (pathName == '/highereducation') {\n\n    var axel = Math.random() + \"\";\n    var a = axel * 10000000000000;\n\n    jQuery('body').append(\n      '<iframe src=\"https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPArr0;cat=Highe0;ord=' +\n      a +\n      '?\" width=\"1\" height=\"1\" frameborder=\"0\" style=\"display:none\"></iframe>'\n    );\n\n    // jQuery('body').append('<img src=\"http://px.dpmsrv.com/seg?add=2186562&t=2\" width=\"1\" height=\"1\" />');\n\n    $logo.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe0;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $accelerate.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe005;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $whitepaper.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe003;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $higherEdBen.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe000;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $langSol.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe001;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $resources.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe002;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $socialLinks.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe006;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $demoLink.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe00;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n\n    $takeDemo.click(function () {\n      var iframe = document.createElement('iframe')\n      iframe.width = 1\n      iframe.height = 1\n      iframe.frameBorder = 1\n      iframe.setAttribute('src',\n        'https://4507192.fls.doubleclick.net/activityi;src=4507192;type=LPEng0;cat=Highe004;ord=' +\n        a + '?\"')\n      iframe.setAttribute('style', 'display:none;')\n      document.querySelector(\"body\").appendChild(iframe);\n    });\n  };\n\n  if (pathName == '/k12/birds-eye-view-rs-online-language-classroom-video') {\n    // jQuery('body').append('<img src=\"http://px.dpmsrv.com/px?id=412321&t=2\" width=\"1\" height=\"1\" />');\n  };\n</script>\n"}]},{command:"loadIframe",arguments:[{pages:[{src:"satellite-54a2ea263839300015070200-staging.html",data:[]}]}]}],scope:{URI:{include:["/highereducation/","/publicsector/","/business/","/k12/"]}},event:"pagebottom"},{name:"homeschool-copy-WS-2902",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5b86e78664746d4ce7007a1b-staging.js"}]}]}],scope:{URI:{include:[/\/lp\/sbsr-hs\/rm749|rm699|rm649\//i]}},event:"pagebottom"},{name:"k12-preparing-for-college-and-career",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-539886b3c9b87109c30002ab-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/k12\/preparing-for-college-and-career/i]}},event:"pagebottom"},{name:"k12-professional-development",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-53988715787450ddad000264-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/k12\/professional-development/i]}},event:"pagebottom"},{name:"k12-rosetta-stone-benefits",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-53988586787450ddad000242-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/k12\/rosetta-stone-benefits/i]}},event:"pagebottom"},{name:"k12solutions",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-5398877e4133252e09000190-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/k12\/solutions/i]}},event:"pagebottom"},{name:"publicsector-increase-productivity",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-541b33e977c309730b0001eb-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/publicsector\/increase-productivity/i]}},event:"pagebottom"},{name:"publicsector-solutions",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-541b358528c27d5d21000150-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/publicsector\/solutions/i]}},event:"pagebottom"},{name:"publicsector-workforce-development",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-541b346f77c309730b0001ee-staging.html",data:[]}]}]}],scope:{URI:{include:[/\/publicsector\/workforce-development/i]}},event:"pagebottom"},{name:"world-language-solutions",trigger:[{command:"loadIframe",arguments:[{pages:[{src:"satellite-5398935dc9b8711c760003f9-staging.html",data:[]}]}]}],scope:{URI:{include:["\\/k12/world-language-solutions"]}},event:"pagebottom"},{name:"zendesk_global",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5c758c5f64746d226f00189b-staging.js"}]}]}],scope:{URI:{include:["multipage/smartsuccess/","us_en_store_view","sbsr","opdemo2","/demo","opdemo-es",/^\/$/i,"/us_en_store_view/checkout/cart/","aprende-","hispanic_store_view"]}},event:"pagebottom"}],rules:[{name:"facebook like",event:"facebook.like",trigger:[{command:"send",arguments:[{hitType:"social",socialNetwork:"facebook",socialAction:"like",socialTarget:e.location.href}],tool:["e0e72fc955d760db889110d0154dd4eb"]}]},{name:"facebook unlike",event:"facebook.unlike",trigger:[{command:"send",arguments:[{hitType:"social",socialNetwork:"facebook",socialAction:"unlike",socialTarget:e.location.href}],tool:["e0e72fc955d760db889110d0154dd4eb"]}]},{name:"facebook send",event:"facebook.send",trigger:[{command:"send",arguments:[{hitType:"social",socialNetwork:"facebook",socialAction:"send",socialTarget:e.location.href}],tool:["e0e72fc955d760db889110d0154dd4eb"]}]},{name:"twitter tweet",event:"twitter.tweet",trigger:[{command:"send",arguments:[{hitType:"social",socialNetwork:"twitter",socialAction:"tweet",socialTarget:e.location.href}],tool:["e0e72fc955d760db889110d0154dd4eb"]}]}],directCallRules:[{name:"17_10_CDDLTest",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-59dd31e064746d084a00599d-staging.js"}]}]}]},{name:"BlackFriday_ClockRTO",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5a1467c864746d3511000a58-staging.js"}]}]}]},{name:"BlackFriday_ClockRTO_Months",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5a26cd9b64746d476b00ca42-staging.js"}]}]}]},{name:"BlackFriday_ClockRTO_Sessions",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5a15069664746d3511000ee7-staging.js"}]}]}]},{name:"PatchDCR_Cart1",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-567b2a1264746d270a00acbd-staging.js"}]}]}]},{name:"SPO_ENG",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-57e079a364746d4d41012bc5-staging.js"}]}]}]},{name:"SPO_FIG",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-57e0797364746d4d41012bbb-staging.js"}]}]}]},{name:"booksenglish",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-53cec17d8cf18ec650000646-staging.js"}]}]}]},{name:"booksfrench",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-53cec1ddf72730b72300045d-staging.js"}]}]}]},{name:"booksgerman",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-53cec60f0a847c34c4000476-staging.js"}]}]}]},{name:"booksitalian",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-53cec2200a847c34c400046b-staging.js"}]}]}]},{name:"booksspanish",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-53cec6660a847cd87d00040e-staging.js"}]}]}]},{name:"fitbrainscartpopup",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-5408ea3f8799c001e50002b4-staging.js"}]}]}]},{name:"foresee_hosted",trigger:[{command:"loadScript",arguments:[{sequential:!1,scripts:[{src:"satellite-553e93c66462370014ea0300-staging.js"}]}]}]}],settings:{trackInternalLinks:!0,libraryName:"satelliteLib-7aef1085f7c59294e8610e2f691a22c48a200841",isStaging:!0,allowGATTcalls:!1,downloadExtensions:/\.(?:doc|docx|eps|jpg|png|svg|xls|ppt|pptx|pdf|xlsx|tab|csv|zip|txt|vsd|vxd|xml|js|css|rar|exe|wma|mov|avi|wmv|mp3|wav|m4v)($|\&|\?)/i,notifications:!1,utilVisible:!1,domainList:["rosettastone.com"],scriptDir:"289d54d757557d351111069aa8acc743e67b15e6/scripts/",euCookieName:"rs_trak",tagTimeout:3e4},data:{URI:e.location.pathname+e.location.search,browser:{},cartItems:[],revenue:"",host:{http:"assets.adobedtm.com",https:"assets.adobedtm.com"}},dataElements:{beaconAction:{customJS:function(){function t(){e.cookie="beaconAction=0;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=.rosettastone.com;path=/"}if("undefined"!=typeof _satellite&&"function"==typeof _satellite.readCookie&&_satellite.readCookie("beaconAction")){var n=_satellite.readCookie("beaconAction");return t(),n}},storeLength:"pageview"},campaignname:{customJS:function(){return _satellite.getVar("o_urlargs").cid},storeLength:"pageview"},campaignpath:{customJS:function(){return"lp"==_satellite.getVar("pagetype")?(_satellite.getVar("campaignname")||"")+" : "+_satellite.getVar("pagename"):_satellite.getVar("pagename")},"default":"ERROR: MISSING",storeLength:"pageview"},channel:{customJS:function(){return function(e){if(_satellite.getVar("pagename").match(/homepage/i))return"Home Page";if("undefined"!=typeof t._rsChannel)return t._rsChannel;if(e.pathname.match(/demo/i))return e.pathname.match(/(business|publicsector|k12|highered)/i)?"E&E Demo":"Consumer Demo";if(e.pathname.match(/^\/business(\/|$|\?)/gi)||e.host.match(/corporate\./i))return"E&E Business";if(e.pathname.match(/\/publicsector(\/|$|\?)/i)||e.host.match(/gov\./i)||e.host.match(/org\./i))return"E&E Public Sector";if(e.pathname.match(/\/k12(\/|$|\?)/i)||e.host.match(/k12\./i))return"E&E K12";if(e.pathname.match(/\/highereducation(\/|$|\?)/i)||e.host.match(/edu\./i))return"E&E Higher Ed";if(e.pathname.match(/search\./i))return"Search";if(e.pathname.match(/secure\./i)&&e.pathname.match(/store\./i))return"Cart";for(var n=["/reviews","/retail-locations","/mobile-apps","/sitemap","/about","/contact","/history","/leadership","/partner","/system-requirement","/endangered"].slice();n.length;n.shift())if(new RegExp(n[0],"i").test(e.pathname))return"RS Corporate";return"Consumer"}(t.location)},storeLength:"pageview"},f_addContext:{customJS:function(){return function(e,n,i){return(i=i||t.s||{}).contextData[e]=n,i}},storeLength:"pageview"},f_buildmbox:{customJS:function(){return function(n,i){function a(t){if("complete"===e.readyState)return t();e.addEventListener?e.addEventListener("DOMContentLoaded",t):e.attachEvent("onreadystatechange",function(){"interactive"===e.readyState&&t()})}var r;if(i){var o=function(n){var i=e.createElement("div"),a="mboxdiv"+(""|n).toString().replace(/\W/g,"");i.setAttribute("id",a),e.querySelector("body").appendChild(i);t.location.href.match(/\.stg\./);mboxDefine(a,n),mboxUpdate(n)}.bind(this,n);r=function(){a(o)}}else r=function(t){mboxCreate(t)}.bind(this,n);return r()}},storeLength:"pageview"},firstcampaign:{customJS:function(){var t=e.cookie.match(/fcid=([^;]+)/);if(t)return t.slice(-1)[0];var n=_satellite.getVar("campaignname");return n?(e.cookie="fcid="+n+";",n):""},storeLength:"pageview"},f_mapdata:{customJS:function(){return function(t,e,n){if(!(t&&Array.prototype.isPrototypeOf(t)&&e&&e.getVar&&"function"==typeof e.getVar))return!1;n=n||{};for(var i,a=t.length,r=0;r<a;r++)if((i=t[r]).src){var o=e.getVar(i.src);if(o="function"==typeof o?o.apply(i.binder||this,i.args||[]):o,i.sif&&!o);else{var s=o;if("function"==typeof n[i.caf]&&Array.prototype.isPrototypeOf(o)){s=[];for(var c,l=o.length,d=0;d<l;d++)c=o[d],n[i.caf](c),s.push(c)}else"function"==typeof n[i.caf]&&i.caf&&(s=n[i.caf](o));i.tgt&&(n[i.tgt]=s)}}return n}},storeLength:"pageview"},f_mounteloquasubmit:{customJS:function(){return function(t,e,n){function i(t){e.clearVars(),e.addEvent("event"+n),e.tl(),t.stopPropagation(),t.preventDefault(),r.off("submit"),setTimeout(function(){r.trigger("submit")},1400)}var a="";if(t instanceof HTMLElement||(a+="argument 1 (el) must be an HTMLElement"),e&&e.tl&&"function"==typeof e.tl||(a+='argument 2 (s) must provide "tl" as a function'),a)return console.warn(a);n=n||"42";var r=$(t);if("function"!=typeof jQuery||!r.on)return 0;r.on("submit",i)}},storeLength:"pageview"},formattedtime:{customJS:function(){return(t=new Date).getFullYear()+"-"+("0"+(t.getMonth()+1)).slice(-2)+"-"+("0"+t.getDate()).slice(-2)+" "+t.getHours()+":"+~~(t.getMinutes()/10)+"0";var t},storeLength:"pageview"},f_reportcampaign:{customJS:function(){return function(){var t=_satellite.getVar("campaignname");return t?"function"==typeof s.getValOnce?s.getValOnce(t,"gvo_cid",90):t:""}},storeLength:"pageview"},f_RTO_BFConfig:{customJS:function(){return function(t){var e={eng_barrons_dictionary:{sku:40229,promo:"ESSTN",name:"English",copy:"Get a FREE Barron's English Dictionary",image:"https://rosettastone.com/lp/globals/rtos/q4/img/eng-dictionary.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40229/category_id/eng/?pc=ESSTN"},fra_barrons_dictionary:{sku:40232,promo:"FRASTN",name:"French",copy:"Get a FREE Barron's French Dictionary",image:"https://rosettastone.com/lp/globals/rtos/q4/img/fra-dictionary.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40232/category_id/eng/?pc=FRASTN"},ita_barrons_dictionary:{sku:40238,promo:"ITASTN",name:"Italian",copy:"Get a FREE Barron's Italian Dictionary",image:"https://rosettastone.com/lp/globals/rtos/q4/img/ita-dictionary.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40238/category_id/eng/?pc=ITASTN"},deu_barrons_dictionary:{sku:40244,promo:"DEUSTN",name:"German",copy:"Get a FREE Barron's German Dictionary",image:"https://rosettastone.com/lp/globals/rtos/q4/img/deu-dictionary.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40244/category_id/eng/?pc=DEUSTN"},esp_barrons_dictionary:{sku:40229,promo:"ESSTN",name:"Spanish",copy:"Get a FREE Barron's Spanish Dictionary",image:"https://rosettastone.com/lp/globals/rtos/q4/img/esp-dictionary.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40229/category_id/eng/?pc=ESSTN"},eng_barrons_grammar:{sku:40269,promo:"ENGGMR",name:"English",copy:"Get a FREE Barron's English Grammar Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/eng-grammar.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40269/category_id/eng/?pc=ENGGMR"},fra_barrons_grammar:{sku:40263,promo:"FRAGMR",name:"French",copy:"Get a FREE Barron's FrenchGrammar Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/fra-grammar.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40263/category_id/eng/?pc=FRAGMR"},ita_barrons_grammar:{sku:40265,promo:"ITAGMR",name:"Italian",copy:"Get a FREE Barron's Italian Grammar Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/ita-grammar.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40265/category_id/eng/?pc=ITAGMR"},deu_barrons_grammar:{sku:40267,promo:"DEUGMR",name:"German",copy:"Get a FREE Barron's German Grammar Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/deu-grammar.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40267/category_id/eng/?pc=DEUGMR"},esp_barrons_grammar:{sku:40271,promo:"ESPGMR",name:"Spanish",copy:"Get a FREE Barron's Spanish Grammar Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/esp-grammar.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40271/category_id/eng/?pc=ESPGMR"},eng_barrons_travel:{sku:40270,promo:"ENGBIZ",name:"English",copy:"Get a FREE Barron's English Travel Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/eng-travel.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40270/category_id/eng/?pc=ENGBIZ"},fra_barrons_travel:{sku:40264,promo:"FRATVL",name:"French",copy:"Get a FREE Barron's FrenchTravel Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/fra-travel.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40264/category_id/eng/?pc=FRATVL"},ita_barrons_travel:{sku:40266,promo:"ITATVL",name:"Italian",copy:"Get a FREE Barron's Italian Travel Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/ita-travel.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40266/category_id/eng/?pc=ITATVL"},deu_barrons_travel:{sku:40268,promo:"DEUTVL",name:"German",copy:"Get a FREE Barron's GermanTravel Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/deu-travel.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40268/category_id/eng/?pc=DEUTVL"},esp_barrons_travel:{sku:40272,promo:"ESPTVL",name:"Spanish",copy:"Get a FREE Barron's Spanish Travel Book",image:"https://rosettastone.com/lp/globals/rtos/q4/img/esp-travel.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/40272/category_id/eng/?pc=ESPTVL"},rick_steves_ebook:{sku:99063,promo:"rsebook15",name:"",copy:"Get a FREE Rick Steves eBook",image:"https://secure.rosettastone.com/lp/globals/img/dictionaries/ricksteves-book.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/99063/?pc=rsebook15"},headset_54084:{sku:54084,promo:"ylheadset",name:"",copy:"Get a FREE Headset",image:"https://secure.rosettastone.com/lp/globals/rtos/q4/img/headset-1.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/54084/?pc=ylheadset"},headset_50984:{sku:50984,promo:"headsetbk",name:"",copy:"Get a FREE Headset",image:"https://secure.rosettastone.com/lp/globals/rtos/q4/img/headset-2.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/50984/?pc=headsetbk"},headset_52154:{sku:52154,promo:"headset15",name:"",copy:"Get a FREE Headset",image:"https://secure.rosettastone.com/lp/globals/rtos/q4/img/headset-3.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/52154/?pc=headset15"},headset_20003:{sku:20003,promo:"headsetre",name:"",copy:"Get a FREE Headset",image:"https://secure.rosettastone.com/lp/globals/rtos/q4/img/headset-2.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/20003/?pc=headsetre"},fitbrains:{sku:98392,promo:"free1m",name:"",copy:"",image:"https://secure.rosettastone.com/lp/globals/img/rtotest/bottom_fitbrains.png",carturl:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/add/sku/98392/?pc=free1m"}},n=e[t];return n?_satellite.getVar("f_RTO_BFRun")(n):"function"==typeof console.warn&&console.warn("No such RTO config: "+t)}},storeLength:"pageview"},f_RTO_BFRun:{customJS:function(){return function(n){function i(){return!e.cookie.match(/rto_cart_cookie/i)}function a(){return new Date>m}function r(){if(jQuery(".couponlabel")[0]){for(var t=0;t<jQuery(".couponlabel").length;t++)if(jQuery(".couponlabel")[t].innerHTML.match(/Headset15|10PROMO_09|10PROMO_19|10PROMO_29|10PROMO_49|free1m/i))return!0}else if(jQuery("#promoapplied")[0]&&jQuery("#promoapplied")[0].innerHTML.match(/Headset15|10PROMO_09|10PROMO_19|10PROMO_29|10PROMO_49|free1m/i))return!0;return!1}function o(){for(var t=0;t<jQuery(".prodname").length;t++)if(jQuery(".prodname")[t].innerHTML.match(/headset|earbuds|brains|rick.*steve/i))return!0;return!1}function s(){function i(){var t=new Date(m-new Date);p.id("clockseconds").innerHTML=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),p.id("clockminutes").innerHTML=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),Math.floor(t/1e3)<=0&&a()}function a(){e.cookie="rto_accepted=1",clearInterval(o),p.id("rto").style.display="none",jQuery("header").animate({"margin-top":0},"slow")}var r=e.createElement("div");r.innerHTML=c,e.body.insertBefore(r,e.body.firstChild),i();var o=setInterval(i,50);jQuery("header").animate({"margin-top":335},"slow"),p.id("rtobutton").onclick=function(){a();var e=t.location.search?t.location.search.replace(/\?/,"&"):"";t.location.href=n.carturl+e};var s=!0;p.id("rto_showhide").onclick=function(){s?(s=!1,p.id("rto_show_button").style.bottom="90px",p.id("rto_show_button").style.display="block",p.id("rto_hide_button").style.display="none",p.id("rto").style.display="none"):(s=!0,p.id("rto_hide_button").style.display="block",p.id("rto_show_button").style.display="none",p.id("rto").style.display="none")}
;var l='<style type="text/css">#rtos #rto{ font-family: gotham_htfmedium;; height: 50px; z-index: 9000; background: #ecc200; text-align: center; padding: 25px 0px 15px; line-height: 1; font-size: 20px; color: #333; position: fixed; top: 0; right: 0; width: 100%; box-shadow: 0px 2px 30px -3px #555; transition: bottom 0.5s;}#rtos .saveadditional{ font-size: 1em; font-weight: 400; padding: 4px 0 0; text-transform: uppercase; color: rgb(131,5,4); font-family: gotham_htfmedium;;}#rtos .nextten{ font-family: gotham_htfbook; font-size: 0.75em; font-weight: lighter; padding: 5px 0px 25px; text-align: center;}#rtos #rtobutton{ display: inline-block; font-family: gotham_htfbook; margin: auto; padding: 10px; color: #fff; text-decoration: none; font-size: 13px; font-weight: bold; text-align: center; border-radius: 5px; margin-top: 10px; background: #0096d9; box-shadow: 0px -35px 25px -15px #006aa5 inset, 0px 1px 2px -1px #999; text-shadow: -1px -1px 0px #458;}#rtos #rto_showhide{ cursor: pointer; position: absolute; top: -29px; right: 44px;}#rtos #rto_hide_button{ position: absolute; -ms-transform: rotate(7deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); z-index: 10;}#rtos #rto_show_button{ display: none;}#rtos #yellowtop { width: 100%; height: 15px; background-color: #ecc200; position: absolute; top: 0; display: none;}#rtos #rtoheading{ display: inline-block; margin-top: -13px; text-align: left; vertical-align: middle; margin-left: 3px;}#rtos .bannerbutton{ display: inline-block; vertical-align: middle; margin-top: 0;}#rtos .button_fine_print{ display: inline-block; vertical-align: middle; margin-top: -30px;}#rtos #rtosideimage{ margin-top: -17px; width: 102px; display: inline}#rtos .rto_bottom_headline{ font-size: 0.85em;}#rtos .fineprint{ font-family: gotham_htfbook; font-size: 0.55em; margin-top: 3px; color: #363636; text-align: left;}#rtos .fineprint a{ color: #363636; text-decoration: underline;}#rtos #clock{ vertical-align: middle; margin: -25px 20px 15px; position: relative; background: #444; color: #eabf26; font-size: 0px; display: inline-block; border-radius: 2px; border-bottom: 1px solid #222; box-shadow: 0px -35px 25px -15px rgba(22,22,22,0.5) inset;}#rtos .clockdiv{ font-size: 15px; display: inline-block; border-right: 1px solid #111; border-left: 1px solid #333; padding: 7px 13px; font-weight: bold; width: 68px;}#rtos .clockdiv-last{ border-right: 0px;}#rtos .timeleft{ font-size: 16px; font-weight: 100; padding: 10px 10px; font-family: gotham_htfbook; width: 114px;}#rtos .timenumber{ font-size: 20px;}#rtos .clockshadow{ position: absolute; left: 0px; bottom: 0px; width: 100%; height: 55%; background: rgba(33,33,33,0.2);}#rtos #clockminutes, #clockseconds{ font-family: gotham_htfmedium; font-size: 25px;}.fitbrains-top { font-size: 12px; color: #222}#rtocd.fitbrains #rtosideimage{ width:98px}.autorenewal {font-size: 13px; position: relative; bottom: -5px;}#rtocd.fitbrains #clock { margin: -10px 19px 15px }#rtocd.fitbrains .nextten {position: relative; top: 4px;}#rtocd.fitbrains  #rto_hide_button {  left: 6px; top: 51px;}@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {  #rtos #rtosideimage{    margin-left: -40px;    margin-top: -7px;    width: Z5px;} #rtos #clock{    margin: -15px 5px 15px;} #rtos .saveadditional{    font-size: 0.8em;} #rtos #rto_hide_button{    left: -5px;    top: 60px;} #rtos #rtoheading{    margin-top: -8px;} #rtos #rtobutton{    margin-top: 15px;}#rtocd.fitbrains #rtosideimage{ width:83px; left: -45px; top:8px;}#rtocd.fitbrains #rtoheading{  left: -52px;  margin-top:14px}.autorenewal {font-size: 13px; position: relative; bottom: -5px;}#rtocd.fitbrains #clock { position:relative;margin:0; left:-37px ; top:-23px}#rtocd.fitbrains .nextten {position: relative; top: 4px;}#rtocd.fitbrains  #rto_hide_button {  left: 6px; top: 51px;}#rtocd.fitbrains  .bannerbutton {  margin-top:-17px;}}#rtocd #rto{   font-family: gotham_htfmedium;;   height: 50px;   z-index: 9000;   background: #ecc200;   text-align: center;   padding: 25px 0px 15px;   line-height: 1;   font-size: 20px;   font-family: sans-serif;   color: #333;   position: fixed;   top: 0;   right: 0;   width: 100%;   box-shadow: 0px 2px 30px -3px #555;   transition: bottom 0.5s;}#rtocd .saveadditional{   font-size: 1em;   font-weight: 400;   padding: 4px 0 0;   text-transform: uppercase;   color: rgb(131,5,4);   font-family: gotham_htfmedium;;}#rtocd .nextten{   font-family: gotham_htfbook;   font-size: 0.75em;   font-weight: lighter;   padding: 0px 0px 25px;   text-align: center;} #rtocd #rtobutton{   display: inline-block;   font-family: gotham_htfbook;   margin: auto;   padding: 10px 10px;   color: #fff;   text-decoration: none;   font-size: 13px;   font-weight: bold;   text-align: center;   border-radius: 5px;   margin-top: 7px;   background: #0096d9;   box-shadow: 0px -35px 25px -15px #006aa5 inset, 0px 1px 2px -1px #999;   text-shadow: -1px -1px 0px #458; } #rtocd #rto_showhide{   cursor: pointer;   position: absolute;   top: -30px;   right: 44px; } #rtocd #rto_hide_button{   position: absolute;   left: -20px;   top: 62px;   -ms-transform: rotate(7deg);   -webkit-transform: rotate(90deg);   transform: rotate(90deg);   z-index: 10; } #rtocd #rto_show_button{   display: none; } #rtocd #yellowtop {   width: 100%;   height: 15px;   background-color: #ecc200;   position: absolute;   top: 0;   display: none; } #rtocd #rtoheading{   display: inline-block;   margin-top: -10px;   text-align: left;   vertical-align: middle;   margin-left: 10px; } #rtocd .bannerbutton{   display: inline-block;   vertical-align: middle;   /*margin-top: -73px;*/   margin-top: -30px; } #rtocd #rtosideimage{   margin-top: -18px;   width: 55px;   display: inline } #rtocd #clock{   vertical-align: middle;   /*margin: -50px 30px 15px;*/   margin: -10px 30px 15px;   position: relative;   background: #444;   color: #eabf26;   font-size: 0px;   display: inline-block;   border-radius: 2px;   border-bottom: 1px solid #222;   box-shadow: 0px -35px 25px -15px rgba(22,22,22,0.5) inset; } #rtocd .clockdiv{   font-size: 15px;   display: inline-block;   border-right: 1px solid #111;   border-left: 1px solid #333;   padding: 7px 15px;   font-weight: bold;   width: 72px; } #rtocd .clockdiv-last{   border-right: 0px; } #rtocd .timeleft{   font-size: 16px;   font-weight: 100;   padding: 10px 10px;   font-family: gotham_htfbook;   width: 94px; } #rtocd .timenumber{   font-size: 20px; } #rtocd .clockshadow{   position: absolute;   left: 0px;   bottom: 0px;   width: 100%;   height: 55%;   background: rgba(33,33,33,0.2); } #rtocd #clockminutes, #clockseconds{   font-family: gotham_htfmedium;;   font-size: 20px; }@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape){   #rto {    height: 65px;   }   #rtocd #rtosideimage{       left: -20px;   position: relative;   }   #rtocd #clock{     margin: -19px 3px 15px;   }   #rtocd .saveadditional{     font-size: 0.8em;     margin-top: -25px;   }   #rtocd #rto_hide_button{     left: -5px;     top: 57px;   }   #rtocd #rtoheading{     margin-top: 22px;     position: relative;     left: -50px;     margin-left: 28px;   }   #rtocd #rtobutton{        position: relative;   top: -6px;   } }@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait){   #rtos #rto, #rtodl #rto, #rtocd #rto{   height: 73px;   }   #rtos #rtobutton {     margin-top: 22px;     margin-left: -36px;   }   #rtocd #rtobutton {     margin-top: -17px;     margin-left: 321px;  }   #rtocd .bannerbutton {    margin-top: -44px;   }   #clock {     margin: -28px 3px 15px;    }   #rtocd #rtosideimage {    margin-top: 15px;   }   #rtocd #rtoheading {      margin-left: -30px;      margin-right: 30px;      position: relative;      bottom: -5px;   }   #rtocd #rtosideimage {      width: 55px;      margin-top: -11px;      position:  relative;      left: -33px;   }   #rtocd #rto_hide_button {     left: -2px;    } } </style>',d="<style type='text/css'>html{  background-color: white;}@media only screen and (min-device-width: 320px) and (max-device-width: 568px){  #rtodl, #rtos, #rtocd {    width: 100%;    height: 335px;    background-color: rgba(36,36,36,1);    z-index: -9999;    position: fixed;    top: 0;  }}#rtocd #rto{  font-family: gotham_htfmedium;  height: 233px;  z-index: 9000;  background: #efe9d6;  text-align: center;  padding: 25px 0px 15px;  line-height: 1;  font-size:20px;  font-family:sans-serif;  color:#333;  position: fixed;  top: 100px;  right: 0;  width: 500px;  border-bottom-left-radius: 75px;  box-shadow: 0px 2px 30px -3px #555;  transition: right 0.5s;}#rtocd .nextten{  font-family: gotham_htfmedium;  font-size: .87em;  font-weight: lighter;  padding: 0px 0px 10px;}#rtocd #rtobutton{  display: inline-block;  font-family: gotham_htfbook;  margin: auto;  padding: 15px 40px;  color: #fff;  text-decoration: none;  font-size: 16px;  font-weight: bold;  text-align: center;  border-radius: 7px;  margin-top: 10px;  background: #0096d9;  box-shadow: 0px -35px 25px -15px #006aa5 inset, 0px 1px 2px -1px #999;  text-shadow: -1px -1px 0px #458;}#rtocd #rto_showhide{  cursor: pointer;  position: absolute;  top: 15px;  left: -15px;}#rtocd #rto_show_button, #rto_hide_button{  position: absolute;  right: 0;  top: 0;  z-index: 10;}#rtocd #yellowtop {  width: 100%;  height: 15px;  background-color: #ecc200;  position: absolute;  top: 0;}#rtocd .productImage {  background-size: 111px 82px;  width: 111px;  height: 82px;  display: inline-block;  background-repeat:none  margin: 4px 2px 12px 15px;}#rtocd .productText {  display: inline-block;  vertical-align: top;  padding-top: 10px;  text-align: left;}#rtocd #clock{  margin: 0 auto 10px;  position: relative;  background: #444;  color: #eabf26;  font-size: 0px;  display: inline-block;  border-radius: 2px;  border-bottom: 1px solid #222;  box-shadow: 0px -35px 25px -15px rgba(22,22,22,0.5) inset;}#rtocd .clockdiv{  font-size: 15px;  display: inline-block;  border-right: 1px solid #111;  border-left: 1px solid #333;  padding: 10px 30px;  font-weight: bold;}#rtocd .clockdiv-last{  border-right: 0px;}#rtocd .timeleft{  font-size: 22px;  font-weight: 100;  padding: 15px 10px;  font-family: gotham_htfbook;}#rtocd .timenumber{  font-size: 20px;}#rtocd .clockshadow{  position: absolute;  left: 0px;  bottom: 0px;  width: 100%;  height: 55%;  background: rgba(33,33,33,0.2);}#rtocd #clockminutes, #clockseconds{  font-family: gotham_htfmedium;  font-size: 30px;}@media only screen and (min-device-width: 320px) and (max-device-width: 568px){  #rtocd .productImage{    background-image: url('https://rosettastone.com/lp/rto-test/headset.png');  }  #rtocd #rto{    top: 15px;    right: 50%;    width: 90%;    height: 273px;    margin-right: -45%;    border-bottom-left-radius: 0;  }  #rtocd #clock{    margin: 10px 3% 0;    display: block  } #rtocd.timeleft{    padding: 5px 10px;  }  #rtocd .clockdiv.timeleft {    width: 80px;    padding-left: 7px;    font-size: 13px;  }  #rtocd .clockdiv{    font-size: 14px;    padding: 10px;    width: 64px;    vertical-align: middle;  }  #rtocd #clockminutes, #rtocd #clockseconds{    font-size: 15px;  }#rtocd #rtobutton{    font-size: 15px;    padding: 11px 17px;    margin-top: -8px;  }  #rtocd #yellowtop{    height: 10px;  }  #rtocd .saveadditional{    font-size: 15px;    padding: 0;    text-align: center;  }  #rtocd .saveadditionalCont{    font-size: 13px;    font-family: gotham_htfbook;    margin-top: 0;  }  #rtocd .subtext{    font-size: 7px;    text-align: center;    margin-top: 3px;  }  #rtocd .productImage{    width: 80px;    height: 120px;    display: block;    margin: -5px auto 7px;    background-size: 100%;    background-repeat: no-repeat  }  #rtocd .productText{    text-align: center;    padding: 0 20px;    margin: 0;  }  #rtocd .nextten{    font-size: 16px;    display: inline-block;    vertical-align: top;    margin-top: 0px;    color: rgb(131,5,4);  }  #rtocd #rto_show_button,#rto_hide_button{    width: 30px;    right: -25px;  }  #rtocd #rto_showhide{    cursor: pointer;    position: absolute;    top: -10px;    right: 13px;    display: none;  }    .fitbrains-top { font-size: 12px; color: #222; }   #rtocd.fitbrains  .productImage{ width:108px; height: 68px; margin-top:10px;}  .autorenewal {font-size: 13px; position: relative; bottom: -5px;}  #rtocd.fitbrains #clock { margin: 8px 8px -3px!important }  #rtocd.fitbrains .nextten {position: relative; top: 4px;}  #rtocd.fitbrains  #rto_hide_button {  left: 6px; top: 51px;}}#rtos #rto{  font-family: gotham_htfmedium;  height: 233px;  z-index: 9000;  background: #efe9d6;  text-align: center;  padding: 25px 0px 15px;  line-height: 1;  font-size:20px;  font-family:sans-serif;  color:#333;  position: fixed;  top: 100px;  right: 0;  width: 500px;  border-bottom-left-radius: 75px;  box-shadow: 0px 2px 30px -3px #555;  transition: right 0.5s;}#rtos .saveadditional{  font-size: .95em;  font-weight: 100;  padding: 0 0 3px;  color: #0098db;  font-family: gotham_htfbook;}#rtos .saveadditional span{  font-family: gotham_htfmedium;}#rtos .nextten{  font-family: gotham_htfmedium;  font-size: .87em;  font-weight: lighter;  padding: 0px 0px 10px;}#rtos .subtext{  font-family: gotham_htfbook;  font-size: .6em;}#rtos .subtext a{  color: #0096d9;}#rtos #rtobutton{  display: inline-block;  font-family: gotham_htfbook;  margin: auto;  padding: 15px 40px;  color: #fff;  text-decoration: none;  font-size: 16px;  font-weight: bold;  text-align: center;  margin-top: 10px;  background: #0096d9;  box-shadow: 0px -35px 25px -15px #006aa5 inset, 0px 1px 2px -1px #999;  text-shadow: -1px -1px 0px #458;}#rtos #rto_showhide{  cursor: pointer;  position: absolute;  top: 15px;  left: -15px;}#rtos #rto_show_button, #rto_hide_button{  position: absolute;  right: 0;  top: 0;  z-index: 10;}#rtos #yellowtop {  width: 100%;  height: 10px;  background-color: #ecc200;  position: absolute;  top: 0;}#rtos .productImage {  background-size: 111px 82px;  width: 111px;  height: 82px;  display: inline-block;  margin: 4px 2px 12px 15px;}#rtos .productText {  display: inline-block;  vertical-align: top;  padding-top: 10px;  text-align: left;}#rtos #clock{  margin: 0 auto 10px;  position: relative;  background: #444;  color: #eabf26;  font-size: 0px;  display: inline-block;  border-radius: 2px;  border-bottom: 1px solid #222;  box-shadow: 0px -35px 25px -15px rgba(22,22,22,0.5) inset;}#rtos .clockdiv{  font-size: 15px;  display: inline-block;  border-right: 1px solid #111;  border-left: 1px solid #333;  padding: 10px 30px;  font-weight: bold;}#rtos .clockdiv-last{  border-right: 0px;}#rtos .timeleft{  font-size: 22px;  font-weight: 100;  padding: 15px 10px;  font-family: gotham_htfbook;}#rtos .timenumber{  font-size: 20px;}#rtos .clockshadow{  position: absolute;  left: 0px;  bottom: 0px;  width: 100%;  height: 55%;  background: rgba(33,33,33,0.2);}#rtos #clockminutes, #clockseconds{  font-family: gotham_htfmedium;  font-size: 30px;}#rtocd.fitbrains #rtosideimage{ width:98px}.autorenewal {font-size: 13px; position: relative; bottom: -5px;}#rtocd.fitbrains #clock { margin: -10px 19px 15px }#rtocd.fitbrains .nextten {position: relative; top: 4px;}#rtocd.fitbrains  #rto_hide_button {  left: 6px; top: 51px;}@media only screen and (min-device-width: 320px) and (max-device-width: 568px){  #rtos #rto{    top: 15px;    right: 50%;    width: 90%;    height: 240px;    margin-right: -45%;    border-bottom-left-radius: 0;  }  #rtos #clock{    margin: 10px 3% 0;    display: block  }  #rtos .timeleft{    padding: 5px 10px;  }  #rtos .clockdiv{    font-size: 14px;    padding: 10px;  }  #rtos #clockminutes, #rtos #clockseconds{    font-size: 20px;  }  #rtos #rtobutton{    font-size: 15px;    padding: 11px 30px;    margin-top: -8px;  }  #rtos #yellowtop{    height: 10px;  }  #rtos .saveadditional{    font-size: 15px;    padding: 0;    text-align: center;  }  #rtos .saveadditionalCont{    font-size: 13px;    font-family: gotham_htfbook;  }  #rtos .subtext{    font-size: 7px;    text-align: center;    margin-top: 3px;  }  #rtos .productImage{    width: 93px;    height: 68px;    display: block;    margin: 3px auto 7px;    background-size: 93px 68px;  }  #rtos .productText{    text-align: center;    padding-top: 0;  }  #rtos .nextten{    font-size: 14px;    padding: 3px 0 10px;    text-align: center;  }  #rtos #rto_show_button,#rto_hide_button{    width: 30px;    right: -25px;  }  #rtos #rto_showhide{    cursor: pointer;    position: absolute;    top: -10px;    right: 13px;    display:none;  }  }</style>",u=isMobile()?d:l;jQuery("body").append(u)}t.isMobile=function(){var e,n=!1;return e=navigator.userAgent||navigator.vendor||t.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(n=!0),n};var c="",l='<div id="rtocd">  <div id="rto">    <div id="rto_showhide">      <img src="https://rosettastone.com/lp/rto-test/close_black.png" id="rto_show_button">      <img src="https://rosettastone.com/lp/rto-test/close_black.png" id="rto_hide_button">    </div>      <img id="rtosideimage" src="'+n.image+'">    <div id="rtoheading">      <div class="saveadditional">        '+n.copy+'      </div>      <div class="nextten">        If you order in the next ten minutes      </div>    </div>    <div id="clock">      <div class="clockdiv timeleft">TIME LEFT:</div>      <div class="clockdiv"><span class="timenumber" id="clockminutes">09</span> min</div>      <div class="clockdiv clockdiv-last"><span class="timenumber" id="clockseconds">07</span> sec</div>      <div class="clockshadow"></div>    </div>    <div class="bannerbutton">      <a href="#" id="rtobutton">        CLAIM YOUR MYSTERY  GIFT      </a>    </div>  </div></div>',d='<div id="rtocd">  <div id="rto">    <div id="rto_showhide">      <img src="http://www.rosettastone.com/lp/rto-test/closeblue.png" id="rto_show_button">      <img src="http://www.rosettastone.com/lp/rto-test/closeblue.png" id="rto_hide_button">    </div>    <div id="yellowtop"></div>    <div class="productText">      <div class="nextten">        '+n.copy+'      </div>    <div class="productImage" style="background-image: url('+n.image+')"></div>      <div class="saveadditionalCont">        If you order in the next ten minutes      </div>    </div>    <div id="clock">      <div class="clockdiv timeleft">TIME LEFT:</div>      <div class="clockdiv"><span class="timenumber" id="clockminutes">09</span> min</div>      <div class="clockdiv clockdiv-last"><span class="timenumber" id="clockseconds">07</span> sec</div>      <div class="clockshadow"></div>    </div>    <br>    <a href="#" id="rtobutton">      CLAIM YOUR OFFER    </a>  </div></div>';if(98392==n.sku)l='<div id="rtocd" class="fitbrains">  <div id="rto">    <div id="rto_showhide">      <img src="https://rosettastone.com/lp/rto-test/close_black.png" id="rto_show_button">      <img src="https://rosettastone.com/lp/rto-test/close_black.png" id="rto_hide_button">    </div>      <img id="rtosideimage" src="'+n.image+'" styl>    <div id="rtoheading">      <div class="saveadditional">          <div class="fitbrains-top">FREE<sup>*</sup> 1-Month  subscription to</div>          <div class="fitbrains-middle">ROSETTA STONE&reg; FIT BRAINS</div>        </div>      <div class="nextten" style="text-align: left">        If you order in the next ten minutes      </div>    </div>    <div id="clock">      <div class="clockdiv timeleft">TIME LEFT:</div>      <div class="clockdiv"><span class="timenumber" id="clockminutes">09</span> min</div>      <div class="clockdiv clockdiv-last"><span class="timenumber" id="clockseconds">07</span> sec</div>      <div class="clockshadow"></div>    </div>    <div class="bannerbutton">      <a href="#" id="rtobutton">        CLAIM YOUR MYSTERY  GIFT      </a>    <div class="autorenewal">*Auto-renewal at MSRP begins after<br>1st month. <a target="_blank" href="http://support.rosettastone.com/en/brain-fitness/FitBrains/Renew-a-product/articles/How-to-cancel-your-recurring-Fit-Brains-subscription">Cancel anytime!</a></div>    </div>  </div></div>',d='<div id="rtocd" class="fitbrains">  <div id="rto">    <div id="rto_showhide">      <img src="http://www.rosettastone.com/lp/rto-test/closeblue.png" id="rto_show_button">      <img src="http://www.rosettastone.com/lp/rto-test/closeblue.png" id="rto_hide_button">    </div>    <div id="yellowtop"></div>    <div class="productText">      <div class="nextten">          <div class="fitbrains-top">FREE<sup>*</sup> 1-Month  subscription to</div>          <div class="fitbrains-middle">ROSETTA STONE&reg; FIT BRAINS</div>      </div>    <div class="productImage" style="background-repeat:no-repeat;background-image: url('+n.image+')"></div>      <div class="saveadditionalCont">        If you order in the next ten minutes      </div>    </div>    <div id="clock">      <div class="clockdiv timeleft">TIME LEFT:</div>      <div class="clockdiv"><span class="timenumber" id="clockminutes">09</span> min</div>      <div class="clockdiv clockdiv-last"><span class="timenumber" id="clockseconds">07</span> sec</div>      <div class="clockshadow"></div>    </div>    <br>    <a href="#" id="rtobutton">      CLAIM YOUR OFFER    </a>    <div class="autorenewal">*Auto-renewal at MSRP begins after<br>1st month. <a target="_blank" href="http://support.rosettastone.com/en/brain-fitness/FitBrains/Renew-a-product/articles/How-to-cancel-your-recurring-Fit-Brains-subscription">Cancel anytime!</a></div>  </div></div>';var u=isMobile()?d:l,p={id:function(t){return e.getElementById(t)}},g=10,m=new Date((new Date).getTime()+60*g*1e3);jQuery("document").ready(function(){r()||o()||(console.log("rto type exists and rto has not been accepted"),i()?e.cookie="rto_cart_cookie="+m:m=new Date(e.cookie.split("rto_cart_cookie=")[1].split(";")[0]),c=u,a()||s())})}},storeLength:"pageview"},f_setContext:{customJS:function(){return function(n,i,a){return a=a||t.s||{},"complete"==e.readyState?(a.clearVars&&a.clearVars(),a.contextData[n]=i,a.tl&&a.tl()):(a.contextData[n]=i,a)}},storeLength:"pageview"},isHomePage:{customJS:function(){return t.location.pathname.match(/^\/$/)?"true":""},storeLength:"pageview"},mostrecentcampaign:{customJS:function(){var t=_satellite.getVar("campaignname");if(t){var n="mrcamp="+t+"; expires="+new Date(Date.now()+2592e6).toUTCString()+"; domain=.rosettastone.com; path=/";return e.cookie=n,t}var i=e.cookie.match(/mrcamp=([^;]+)/);return i?i.pop():""},storeLength:"pageview"},o_urlargs:{customJS:function(){return function(){for(var t={},e=location.search.substring(1).split("&"),n=0;n<e.length;n++){var i=e[n].indexOf("=");if(-1!=i){var a=e[n].substring(0,i),r=e[n].substring(i+1);r=decodeURIComponent(r),t[a]=r}}return t}()},storeLength:"pageview"},pagelanguage:{customJS:function(){var t,n=(t=e.querySelector("html"))&&t.getAttribute("lang");return n&&n.match(/es/i)?"ESP":"ENG"},storeLength:"pageview"},pagename:{customJS:function(){function e(e,n){if(location.pathname.match(/us_en_store_view\/freetrial/)){if(location.pathname.match(/index/))return"trial-step-one";if(location.pathname.match(/smart/))return"trial-step-two";if(location.pathname.match(/success/))return"trial-signup-completed"}return"error"===e?"404":location.hostname.match(/search.rosettastone/i)?"Search Results":location.pathname.match(/\/audiocompanion/i)?"/audiocompanion":location.pathname.match(/\/business\/home/i)?"/business":location.pathname.match(/\/k12\/home/i)?"/k12":"mobile"===e?"m:"+(location.pathname&&location.pathname.length>2?location.pathname:"Homepage"):"secure"===e?(i=t.location.pathname.split("/").slice(2).join("/"),a="object"==typeof rs&&(rs.website||"").match(/mobile/i)?"m:":"","undefined"!=typeof pageurlenabled&&"undefined"!=typeof pageurlname?""==pageurlname?a+i:a+pageurlname:a+t.location.pathname):"lp"===e?(location.pathname.match(/-m\/?$/)?"m:":"")+"/lp | "+((r=location.pathname.match(/\/lp\/([^\/]+)/i)).pop?r.pop():"null")+(t.RSI&&t.RSI.rsi?" | "+RSI.rsi:""):"liferay"===e||(e||"").match(/catalog/i)?n.match(/mobile/i)?"m:"+(location.pathname&&location.pathname.length>2?location.pathname:"Homepage"):location.pathname&&location.pathname.length>2?location.pathname:"Homepage":location.pathname.match(/homeschool/gi)?location.pathname:location.host+location.pathname;var i,a,r}return(e.call(this,_satellite.getVar("pagetype"),_satellite.getVar("sitetype"))||"").replace(/\/+$/gi,"")},"default":"ERROR: MISSING",storeLength:"pageview"},pagetype:{customJS:function(){return"undefined"!=typeof t.__rsPageType&&t.__rsPageType?t.__rsPageType:location.pathname.match(/page-not-found|pagina-no-encontrada/i)?"error":location.host.match(/m\.rosetta/gi)?"mobile":location.host.match(/secure\.rosetta/gi)?"secure":location.pathname.match(/^\/lp\/catalog/)?"testcatalog":location.pathname.match(/^\/homeschool/i)?"ftp":location.pathname.match(/^\/lp\//)||location.pathname.match(/^\/hslp\//)?"lp":"liferay"},"default":"ERROR: MISSING",storeLength:"pageview"},products:{jsVariable:"o_targetProduct",storeLength:"pageview"},promocode:{customJS:function(){var n=t.RSI&&RSI.promo||t.rs&&rs.eVar2||_satellite.getVar("o_urlargs").pc;if(n){var i="promo_eVar2="+n+"; domain=.rosettastone.com;";return e.cookie=i,n}return(n=e.cookie.match(/promo_eVar2=([^;]+)/i))&&n.pop()},storeLength:"pageview"},readabledate:{customJS:function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][(t=new Date).getDay()]+"|"+(t.getHours()>12?t.getHours()-12+":"+("0"+t.getMinutes()).slice(-2)+"PM":t.getHours()+":"+("0"+t.getMinutes()).slice(-2)+"AM");var t},storeLength:"pageview"},shipping_amt:{customJS:function(){var t=e.querySelector&&e.querySelector("#order-ship-amount .price");if(void 0!==t&&null!=t){var n=t.innerText||t.textContent;return"string"==typeof n&&n.match(/\d+(\.\d\d)?/gi)[0]}return null},"default":"0",storeLength:"pageview"},sitetype:{customJS:function(){return(location.host.match(/m\.rosetta/gi)?"Mobile":location.host.match(/t\.rosetta/gi)&&"Tablet")||location.host.match(/secure\.rosetta/)&&"object"==typeof rs&&rs.website||"Full"},"default":"ERROR: MISSING",storeLength:"pageview"},s_promotimer_catalyst:{customJS:function(){return(Date.parse("14 September 2016 08:00:00 EDT")>Date.now())+""},storeLength:"pageview"},s_promotimer_fd:{customJS:function(){return(Date.parse("1 Jul 2016 10:00:00 EST")>Date.now())+""},storeLength:"pageview"},s_promotimer_goldenticket:{customJS:function(){return(Date.parse("7 Dec 2016 10:00:00 EST")>Date.now())+""},storeLength:"pageview"},s_promotimer_md:{customJS:function(){return(Date.parse("31 May 2016 10:00:00 EST")>Date.now())+""},storeLength:"pageview"},s_testexclusion_spo2:{customJS:function(){return t.location.search.match(/spo2/)?"true":"false"},"default":"false",storeLength:"pageview",forceLowerCase:!0},testUAT_Flyout:{customJS:function(){"use strict";function n(){}function i(){
return'\n<style>\n\t#flyoutBackgroundSVG path {\n\t\tfill: url(#still_strk);\n\t}\n\n\tpath#path-10_7_, path#path-10_6_, path#path-15_3_ {\n\t\tfill: url(#grad_strk);\n\t}\n\n\tpath#path-12_7_, path#path-12_6_, path#path-17_7_, path#path-17_8_, path#path-17_6_ {\n\t\tfill: url(#grad_strk2);\n\t}\n</style>\n<svg version="1.1" id="flyoutBackgroundSVG" style="position: absolute; z-index: -1; top: 0; width: 100%; height: 100vh;"\n\t x="0px" y="0px" width="500px" height="600px" viewBox="23 10.0527344 600 1200" enable-background="new 23 10.0527344 500 600"\n\t preserveAspectRatio="xMidYMin slice"\n>\n<defs>\n\t<linearGradient id="grad_strk" gradientUnits="userSpaceOnUse" x1="0" y1="791.0009766" x2="100%" y2="792.0008545">\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0.065;"  />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0;" class="sweepA" />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: .065;" class="sweepA" />\n\t\t<stop  offset="0.55"  style="stop-color:#FFFFFF; stop-opacity: .025;" class="sweepA"/>\n\t\t<stop  offset="1" style="stop-color:#FFFFFF; stop-opacity: .00;" class="sweepA"/>\n\t</linearGradient>\n\t<linearGradient id="grad_strk2" gradientUnits="userSpaceOnUse" x1="0" y1="791.0009766" x2="100%" y2="792.0008545">\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0.065;"  />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0;" class="sweepB" />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: .065;" class="sweepB" />\n\t\t<stop  offset="0.55"  style="stop-color:#FFFFFF; stop-opacity: .025;" class="sweepB"/>\n\t\t<stop  offset="1" style="stop-color:#FFFFFF; stop-opacity: .00;" class="sweepB"/>\n\t</linearGradient>\n\t<linearGradient id="still_strk" gradientUnits="userSpaceOnUse" x1="0" y1="791.0009766" x2="100%" y2="792.0008545">\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0.065;"  />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: 0;" />\n\t\t<stop  offset="0" style="stop-color:#FFFFFF; stop-opacity: .065;" />\n\t\t<stop  offset="0.55"  style="stop-color:#FFFFFF; stop-opacity: .025;"/>\n\t\t<stop  offset="1" style="stop-color:#FFFFFF; stop-opacity: .00;"/>\n\t</linearGradient>\n</defs>\n<linearGradient id="path-2_3_" gradientUnits="userSpaceOnUse" x1="0" y1="791.0009766" x2="0.9998932" y2="792.0008545" gradientTransform="matrix(660 0 0 -1320 0 1045441)">\n\t<stop  offset="0" style="stop-color:#00A0DE"/>\n\t<stop  offset="0.756598" style="stop-color:#0191D4"/>\n\t<stop  offset="1" style="stop-color:#018CD1"/>\n</linearGradient>\n<rect id="path-2_2_" fill="url(#path-2_3_)" width="660" height="1320"/>\n<path id="path-10_7_" class="strk" fill="#FFFFFF" d="M693.9619141,39.7890625c-2.5507813-13.9335938-4.40625-26.7045898-6.3759766-37.5078125\n\tc-0.0117188-0.0512695-0.4902344-0.1328125-0.4902344-0.1835938\n\tC321.0556641,35.2773438,87.0834961,118.7768555,4.2836914,160.3173828\n\tc-0.0454102,3.1967773-0.0908203,6.4033203-0.1362305,9.6000977\n\tC89.8500977,131.609375,370.7226563,53.6259766,693.9619141,39.7890625"/>\n<path id="path-10_6_" fill="#2978C8" d="M693.9619141,39.7890625c-2.5507813-13.9335938-4.40625-26.7045898-6.3759766-37.5078125\n\tc-0.0117188-0.0512695-0.4902344-0.1328125-0.4902344-0.1835938\n\tC321.0556641,35.2773438,87.0834961,118.7768555,4.2836914,160.3173828\n\tc-0.0454102,3.1967773-0.0908203,6.4033203-0.1362305,9.6000977\n\tC89.8500977,131.609375,370.7226563,53.6259766,693.9619141,39.7890625"/>\n<path id="path-12_7_" fill="#FFFFFF" d="M716.7695313,165.4799805c-0.8427734-4.5976563-2.0146484-9.277832-2.8457031-13.8759766\n\tC336.2675781,176.9648438,80.1108398,255.2685547,2.203125,289.1220703\n\tc-0.0571289,3.9619141-0.1025391,7.8823242-0.159668,11.8642578\n\tc74.3452148-29.3476563,360.8911133-105.9682617,717.1157227-118.9052734\n\tC718.1806641,176.6518555,717.7929688,171.1816406,716.7695313,165.4799805"/>\n<path id="path-12_6_" fill="#2978C8" d="M716.7695313,165.4799805c-0.8427734-4.5976563-2.0146484-9.277832-2.8457031-13.8759766\n\tC336.2675781,176.9648438,80.1108398,255.2685547,2.203125,289.1220703\n\tc-0.0571289,3.9619141-0.1025391,7.8823242-0.159668,11.8642578\n\tc74.3452148-29.3476563,360.8911133-105.9682617,717.1157227-118.9052734\n\tC718.1806641,176.6518555,717.7929688,171.1816406,716.7695313,165.4799805"/>\n<linearGradient id="path-15_4_" gradientUnits="userSpaceOnUse" x1="0.5014648" y1="792.0039063" x2="0.5014648" y2="791.0039063" gradientTransform="matrix(690.7594604 0 0 -168.6000977 3.6051025 133541.765625)">\n\t<stop  offset="0" style="stop-color:#FDFEFE"/>\n\t<stop  offset="1" style="stop-color:#DDF3FD"/>\n</linearGradient>\n<path id="path-15_3_" class="strk" fill="url(#path-15_4_)" d="M694.7929688,44.8540039\n\tc-2.2998047-12.6767578-4.4296875-24.4291992-6.3193359-34.8012695\n\tC316.4785156,43.4692383,85.5576172,127.9711914,4.1699219,169.3994141\n\tc-0.0454102,3.0859375-0.0908203,6.1669922-0.1367188,9.253418\n\tC84.5673828,140.5507813,301.6655273,69.2929688,694.7929688,44.8540039"/>\n<path id="path-17_7_" fill="#FFFFFF" d="M716.4316406,165.03125c-0.3408203-1.9248047-0.7050781-3.8544922-1.046875-5.7792969\n\tC316.0878906,186.0390625,76.8193359,262.6850586,2.1791992,296.0146484\n\tc-0.0571289,3.8188477-0.1137695,7.6938477-0.1708984,11.5332031\n\tc69.2895508-27.5351563,331.0092773-94.6445313,719.9458008-111.9770508\n\tC720.2236328,185.9726563,718.3671875,175.7553711,716.4316406,165.03125"/>\n<linearGradient id="path-17_8_" gradientUnits="userSpaceOnUse" x1="0.5009766" y1="792.0039063" x2="0.5009765" y2="791.0039063" gradientTransform="matrix(719.9454956 0 0 -148.2958984 1.6783447 117610.046875)">\n\t<stop  offset="0" style="stop-color:#FDFEFE"/>\n\t<stop  offset="1" style="stop-color:#DDF3FD"/>\n</linearGradient>\n<path id="path-17_6_" class="strk" fill="url(#path-17_8_)" d="M716.4316406,165.03125\n\tc-0.3408203-1.9248047-0.7050781-3.8544922-1.046875-5.7792969\n\tC316.0878906,186.0390625,76.8193359,262.6850586,2.1791992,296.0146484\n\tc-0.0571289,3.8188477-0.1137695,7.6938477-0.1708984,11.5332031\n\tc69.2895508-27.5351563,331.0092773-94.6445313,719.9458008-111.9770508\n\tC720.2236328,185.9726563,718.3671875,175.7553711,716.4316406,165.03125"/>\n<path id="path-10_3_" fill="#FFFFFF" d="M693.9619141,336.7890625c-2.5507813-13.9335938-4.40625-26.7045898-6.3759766-37.5078125\n\tc-0.0117188-0.0512695-0.4902344-0.1328125-0.4902344-0.1835938\n\tC321.0556641,332.2773438,87.0834961,415.7763672,4.2836914,457.3173828\n\tc-0.0454102,3.1962891-0.0908203,6.4033203-0.1362305,9.6005859\n\tC89.8500977,428.609375,370.7226563,350.6259766,693.9619141,336.7890625"/>\n<path id="path-10_2_" fill="#2978C8" d="M693.9619141,336.7890625c-2.5507813-13.9335938-4.40625-26.7045898-6.3759766-37.5078125\n\tc-0.0117188-0.0512695-0.4902344-0.1328125-0.4902344-0.1835938\n\tC321.0556641,332.2773438,87.0834961,415.7763672,4.2836914,457.3173828\n\tc-0.0454102,3.1962891-0.0908203,6.4033203-0.1362305,9.6005859\n\tC89.8500977,428.609375,370.7226563,350.6259766,693.9619141,336.7890625"/>\n<path id="path-12_3_" fill="#FFFFFF" d="M716.7695313,462.4804688c-0.8427734-4.5986328-2.0146484-9.2783203-2.8457031-13.8759766\n\tC336.2675781,473.9648438,80.1108398,552.2685547,2.203125,586.1220703\n\tc-0.0571289,3.9619141-0.1025391,7.8818359-0.159668,11.8642578\n\tc74.3452148-29.3476563,360.8911133-105.96875,717.1157227-118.9052734\n\tC718.1806641,473.6513672,717.7929688,468.1816406,716.7695313,462.4804688"/>\n<path id="path-12_2_" fill="#2978C8" d="M716.7695313,462.4804688c-0.8427734-4.5986328-2.0146484-9.2783203-2.8457031-13.8759766\n\tC336.2675781,473.9648438,80.1108398,552.2685547,2.203125,586.1220703\n\tc-0.0571289,3.9619141-0.1025391,7.8818359-0.159668,11.8642578\n\tc74.3452148-29.3476563,360.8911133-105.96875,717.1157227-118.9052734\n\tC718.1806641,473.6513672,717.7929688,468.1816406,716.7695313,462.4804688"/>\n<linearGradient id="path-15_5_" gradientUnits="userSpaceOnUse" x1="0.5014648" y1="792.0039063" x2="0.5014648" y2="791.0039063" gradientTransform="matrix(690.7594604 0 0 -168.6000977 3.6051025 133838.765625)">\n\t<stop  offset="0" style="stop-color:#FDFEFE"/>\n\t<stop  offset="1" style="stop-color:#DDF3FD"/>\n</linearGradient>\n<path id="path-15_1_" class="strk" fill="url(#path-15_5_)" d="M694.7929688,341.8540039\n\tc-2.2998047-12.6767578-4.4296875-24.4291992-6.3193359-34.8012695\n\tC316.4785156,340.4692383,85.5576172,424.9707031,4.1699219,466.3994141\n\tc-0.0454102,3.0859375-0.0908203,6.1669922-0.1367188,9.2529297\n\tC84.5673828,437.5507813,301.6655273,366.2929688,694.7929688,341.8540039"/>\n<path id="path-17_3_" fill="#FFFFFF" d="M716.4316406,462.03125c-0.3408203-1.9248047-0.7050781-3.8544922-1.046875-5.7792969\n\tC316.0878906,483.0390625,76.8193359,559.6855469,2.1791992,593.0146484\n\tc-0.0571289,3.8183594-0.1137695,7.6943359-0.1708984,11.5332031\n\tc69.2895508-27.5351563,331.0092773-94.6445313,719.9458008-111.9775391\n\tC720.2236328,482.9726563,718.3671875,472.7548828,716.4316406,462.03125"/>\n<linearGradient id="path-17_9_" gradientUnits="userSpaceOnUse" x1="0.5009766" y1="792.0039063" x2="0.5009765" y2="791.0039063" gradientTransform="matrix(719.9454956 0 0 -148.2958984 1.6783447 117907.046875)">\n\t<stop  offset="0" style="stop-color:#FDFEFE"/>\n\t<stop  offset="1" style="stop-color:#DDF3FD"/>\n</linearGradient>\n<path id="path-17_2_" class="strk" fill="url(#path-17_9_)" d="M716.4316406,462.03125\n\tc-0.3408203-1.9248047-0.7050781-3.8544922-1.046875-5.7792969\n\tC316.0878906,483.0390625,76.8193359,559.6855469,2.1791992,593.0146484\n\tc-0.0571289,3.8183594-0.1137695,7.6943359-0.1708984,11.5332031\n\tc69.2895508-27.5351563,331.0092773-94.6445313,719.9458008-111.9775391\n\tC720.2236328,482.9726563,718.3671875,472.7548828,716.4316406,462.03125"/>\n</svg>\n\t'}function a(t){var e=t.languageName,n=t.products,a=t.cartLink,r=t.subTotal.replace(/\.0*/,""),o=t.discount.toString();o.match(/\$/)||(o="$"+o),o=o.replace(/000/,"00");var s=t.total;return'\n<section id="cartFlyoutOverlay">\n\t<div id="cartFlyoutBox" class="out" aria-role="dialog" aria-labelledby="flyoutLbl">\n\t\t<header>\n\t\t  <a href="'+a+'"><img alt="shopping cart" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAfCAYAAAB6Q+RGAAAB8UlEQVR4AeXWUchLYRjA8TOTtrhBpZPcrJHdyCBpmzOkUVrhSqmlsHs3Km6A4XKyItWor+TqS/pK8X3pq9iNSiqKlCvKpETazPxX59TT2862Oed9O+Vfv6vzdt6n75xv77GiUL/f345baOKO0MTlqAxZh18zURhwGVrwqxyFIR38wLC6sAeLbmDeoAUcFkNegOwFyqhgD+KDRedhul3ugEvxBF5/UB3257bxGaZ6iaS792Z8g9cXpPzeiysw1UWx7ynIFke9vJvwEyYqiEd9H7Izo4ZcgrvQ3VusdvdcrzzqDjLjfgpK6EJn18V+RyFrIT5uyDgWoLOD4lHfg+zspD+sJ6Cr91jn7rMGnyDbMemQK/EGOmqKfQ5A9hqrpjmmatDRSbFHA7Jr056ltoZ/oN9Iu/dP4ANkpX859PfjeIhK4t570YPXO9hWlHI/aGSNIDdLYDmSIVqBV5AdC/qd9xyPQzKHZ+jA6yNSQYZci6/Q2WwY78856Ox0GENu1Hied7AhrP/GLHYrisgjB0deExzkkEcR6vVt1n+dOHtn8QiHhlyPoYI5zKBgekAHPcjKypoqZG1sMTVgDLeh9lBZtwi1qyaHrEPtgbLuKdQumXzcWbTh9R2OsuYIfikfvGnT7+VW1HETO33W7EMDNWSsAP0FAgsHJZiCshYAAAAASUVORK5CYII=" /></a>\n\t\t  <!-- <span id="flyoutLbl">You put <strong>'+e+'</strong> in your cart. Don&rsquo;t worry, we saved it for you!</span> -->\n\t\t  <svg id="flyoutText" style="transform: translateY(.25em);" width="40em" height="1em" viewBox="0 -.85 90 2.6" preserveAspectRatio="xMidYMin meet">\n\t\t  \t<defs>\n\t\t  \t\t<filter id="erode">\n\t\t\t\t  <feMorphology operator="erode" radius="1"/>\n\t\t\t\t</filter>\n\t\t\t\t<linearGradient id="vertical_grad" gradientUnits="objectBoundingBox" x2="0%" y2="100%">\n\t\t\t\t\t<stop  offset="0" style="stop-color:#000000"/>\n\t\t\t\t\t<stop  offset=".25" style="stop-color:#000000"/>\n\t\t\t\t\t<stop  offset=".25" style="stop-color:#FFFFFF"/>\n\t\t\t\t\t<stop  offset=".5" style="stop-color:#FFFFFF"/>\n\t\t\t\t\t<stop  offset=".75" style="stop-color:#000000"/>\n\t\t\t\t\t<stop  offset="1" style="stop-color:#000000"/>\n\t\t\t\t</linearGradient>\n\t\t\t\t<linearGradient id="vertical_gradb" gradientUnits="objectBoundingBox" x2="0%" y2="100%">\n\t\t\t\t\t<stop  offset="0" style="stop-color:#FFFFFF"/>\n\t\t\t\t\t<stop  offset=".25" style="stop-color:#FFFFFF"/>\n\t\t\t\t\t<stop  offset=".25" style="stop-color:#000000"/>\n\t\t\t\t\t<stop  offset=".5" style="stop-color:#000000"/>\n\t\t\t\t\t<stop  offset=".75" style="stop-color:#FFFFFF"/>\n\t\t\t\t\t<stop  offset="1" style="stop-color:#FFFFFF"/>\n\t\t\t\t</linearGradient>\n\t\t\t\t<mask id="verticaldrop" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"\n\t\t\t\t\tx="0" y="0" width="1" height="1">\n\t\t\t\t  <rect x="0" y="-3" width="1" height="4" fill="url(#vertical_grad)"/>\n\t\t\t\t</mask>\n\t\t\t\t<mask id="verticaldropb" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"\n\t\t\t\t\tx="0" y="0" width="1" height="1">\n\t\t\t\t  <rect x="0" y="-3" width="1" height="4" fill="url(#vertical_gradb)"/>\n\t\t\t\t</mask>\n\t\t  \t</defs>\n\t\t  \t\n\t\t  \t<text x="45" y="1.1"  style="text-anchor: middle; font-size: 2.6px; fill: white;">You put <tspan  style="fill: white;  mask: url(#verticaldropb);">'+e+'</tspan> in your cart. Don&rsquo;t worry, we saved it for you!</text>\n\t\t  \t<text x="45" y="1.1" class="overtop"  style="text-anchor: middle; font-size: 2.6px; fill: transparent;">You put <tspan style="fill: #ecc200; font-family: GothamMedium, gothambold; mask: url(#verticaldrop);">'+e+'</tspan> in your cart. Don&rsquo;t worry, we saved it for you!</text>\n\t\t  \t\n\t\t  </svg>\n\t\t  <button class="flyoutClose">&#x2716;</button>  \n\t\t</header>\n        <div class="cartFlyoutContent">\n            <div class="flyoutProductsAndGuarantee">\n                '+n.map(function(t){return'<figure class="flyoutProduct"><img alt="image of the product" src="'+t.image+'"/><figcaption><h2>'+t.language+"</h2><p>"+t.typespec+"</p><p>"+t.levelspec+"</p></figcaption></figure>"}).join("")+'\n                <div class="flyoutGuarantee">\n                \t<img alt="100 percent satisfaction" src="//www.rosettastone.com/lp/spo/oct2016/assets/guarantee.png" />\n                \t<div>\n\t\t\t\t\t\t<h2>Purchase With Confidence</h2>\n\t\t\t\t\t\t<p>No long-term commitments. Cancel anytime.</p>\n\t\t\t\t\t\t<p>30&ndash;Day Money back guarantee.</p>\n                \t</div>\n                </div>\n            </div>\n            <div class="flyoutSummaryInfoAndCTA">\n                <h2>Order Summary</h2>\n                <div class="flyoutSubtotal justify">Subtotal&thinsp;: <span>'+r+'</span></div>\n                <div class="flyoutDiscount justify">Discount: <span>-'+o+'</span></div>\n                <div class="flyoutTotal justify">Total&nbsp;&nbsp;&nbsp;&emsp;&thinsp;: <span>'+s+'</span></div>\n                <a href="'+a+'">Check Out Now</a>\n            </div>\n        </div>\n        '+i()+"\n\t</div>\n\n</section>\t\n\t"}function r(){return"\n<style>\n\n    iframe {\n    \tvisibility: hidden;\n    \tposition: absolute;\n    \ttop: 0;\n    \tz-index: -100;\n\n    }\n\t\n    #cartFlyoutOverlay{\n        display: block;\n        position: absolute;\n        z-index: -1;\n        min-height: 100vh;\n        top: 66px;\n        left: 0;\n        width: 100%;\n        font-family: GothamBook, gothamlight;\n        font-size: 1rem;\n        line-height: 1.5;\n        contain: content;\n    }\n\n\n    #cartFlyoutBox{\n        display: block;\n\t\twidth: 47em;\n\t\tmax-width: 100%;\n\t\tmargin: 0 auto;\n\t\toverflow: hidden;\n\t\tposition: relative;\n\t\ttransition-property: opacity transform;\n\t\ttransition-duration: 500ms;\n\t\ttransition-timing-function: ease-out;\n\t\topacity: 1;\n    \ttransform: translateY(0%);\n    \tcontain: content;\n    }\n\n    #cartFlyoutBox.out {\n    \topacity: 0;\n    \ttransform: translateY(-100%);\n    \twill-change: transform, opacity;\n    }\n\t\t#cartFlyoutBox header {\n\t\t\tbackground: rgba(0,0,0,.3);\n\t\t\theight: auto;\n\t\t\ttext-align: center;\n\t\t\tpadding: 2em 1.5em;\n\t\t\tcolor: white;\n\t\t\tposition: relative;\n\t\t\tfont-family: GothamBook, gothamlight;\n\t\t}\n\t\t\t#cartFlyoutBox header a img {\n\t\t\t\t    height: 1.3em;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tleft: 1.5em;\n\t\t\t\t\ttop: 2em;\n\t\t\t}\n\n\t\t\t#flyoutLbl strong {\n\t\t\t\tcolor: #ecc200;\n\t\t\t}\n\n\t\t\t.flyoutClose {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tfont-size: 1.3em;\n\t\t\t\t\ttop: 1.4em;\n\t\t\t\t\tright: 1.1em;\n\t\t\t\t\tbackground: transparent;\n\t\t\t\t\tborder: none;\n\t\t\t\t\tcolor: white;\n\t\t\t\t\tcursor: pointer;\n\t\t\t}\n\t\t\n\t\t/*Everything Below the header*/\n\t\t.cartFlyoutContent {\n\t\t\t\n\t\t\tpadding: 1em 1.5em;\n\t\t\tpadding: 1em 1.5rem;\n\t\t}\n\n\t\t\t.flyoutProduct {\n\t\t\t\tcolor: white;\n\t\t\t\tline-height: 1.2;\n\t\t\t}\n\n\t\t\t.flyoutProduct:last-of-type {\n\t\t\t\tpadding-bottom: .5em;\n\t\t\t\tborder-bottom: 2px solid rgba(255,255,255,.25);\n\t\t\t}\n\t\t\t\t.flyoutProduct img {\n\t\t\t\t\twidth: 9em;\n\t\t\t\t\theight: 10em;\n    \t\t\t\tmax-width: 300px;\n\t\t\t\t}\n\n\t\t\t@supports(flex-flow: row nowrap){\n\t\t\t\t.flyoutProduct {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-flow: row nowrap;\n\t\t\t\t}\n\n\t\t\t\t\t.flyoutProduct figcaption {\n\t\t\t\t\t\tpadding-top: 1em;\n    \t\t\t\t\tmargin-left: 3em;\n    \t\t\t\t\ttext-align: left;\n    \t\t\t\t\tfont-size: 1.2em;\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\t.flyoutGuarantee {\n\t\t\t\ttext-align: center;\n\t\t\t\tpadding-top: 2em;\n\t\t\t\tcolor: white;\n\t\t\t\tline-height: 1.2;\n\t\t\t}\n\t\t\t\t.flyoutGuarantee h2 {\n\t\t\t\t\tcolor: #ecc200;\n\t\t\t\t\ttext-transform: uppercase;\n\t\t\t\t}\n\n\t\t\t@supports(flex-flow: row nowrap){\n\t\t\t\t.flyoutGuarantee {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-flow: row nowrap;\n\t\t\t\t}\n\t\t\t\t\t.flyoutGuarantee > img {\n\t\t\t\t\t\twidth: 5em;\n    \t\t\t\t\theight: 3.5em;\n\t\t\t\t\t}\n\t\t\t\t\t.flyoutGuarantee > div {\n\t\t\t\t\t\ttext-align: left;\n\t\t\t\t\t\tmargin-left: 1em;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\n\n\t\t\t.flyoutSummaryInfoAndCTA {\n\t\t\t\tbackground-color: rgba(0,0,0,.2);\n\t\t\t\tmargin: 1em auto 0 auto;\n\t\t\t\tcolor: white;\n\t\t\t\tpadding: 1em;\n\t\t\t\tmax-width: 13em;\n\t\t\t}\n\n\t\t\t\t.flyoutSummaryInfoAndCTA h2 {\n\t\t\t\t\ttext-transform: uppercase;\n\t\t\t\t\tfont-family: GothamMedium, gothambold;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tpadding: 1em 0;\n\t\t\t\t}\n\n\t\t\t\t.flyoutSummaryInfoAndCTA .justify {\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\n\t\t\t\t.flyoutSummaryInfoAndCTA a {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\tpadding: .5em;\n\t\t\t\t\tmargin: 1em auto .5em auto;\n\t\t\t\t\tbackground-color: #ecc200;\n\t\t\t\t\tcolor: black;\n\t\t\t\t\twidth: 10em;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\ttext-transform: uppercase;\n\t\t\t\t\tfont-family: GothamBold, gothambold;\n\t\t\t\t\tborder-radius: 5px;\n\t\t\t\t\tbox-shadow: 0px 2px 3px -2px black;\n\t\t\t\t\ttransition-duration: 1500ms;\n\t\t\t\t\ttransition-property: transform;\n\t\t\t\t\ttransition-timing-function: ease-out;\n\t\t\t\t}\n\n\t\t\t\t.flyoutSummaryInfoAndCTA a:hover {\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t@supports(flex-flow: row nowrap){\n\t\t\t\t.flyoutSummaryInfoAndCTA {\n\t\t\t\t\tmargin: 0;\n\t\t\t\t}\n\t\t\t\t.flyoutSummaryInfoAndCTA .justify{\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-flow: row nowrap;\n\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t}\n\t\t\t\t.flyoutSummaryInfoAndCTA .justify > span {\n\t\t\t\t\tfont-family: GothamMedium, gothambold;\n\t\t\t\t}\n\t\t\t}\n\n\t\t@supports(flex-flow: row nowrap){\n\t\t\t.cartFlyoutContent{\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-flow: row nowrap;\n\t\t\t\tjustify-content: space-between;\n\t\t\t\talign-items: flex-start;\n\t\t\t}\n\t\t}\n</style>\n    "}function o(){var t=$.Deferred();return $(function(){$.ajax({url:"https://secure.rosettastone.com/us_en_store_view/checkout/cart/flyout",dataType:"jsonp",success:function(e){t.resolve(e),n("Get flyout success")},error:function(){t.reject(d),n("Get flyout fail")}})}),t}function s(){var i=$.Deferred(),a=[];n("Fteching Remarketing RSI");var r=e.createElement("iframe");return r.src="//www.rosettastone.com/lp/sbsr/rmsitewide/?pixelsoff=1",r.style.visibility="hidden",r.style.position="absolute",r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden",!0),t.addEventListener("message",function o(e){"RSIReady"==e.data&&(n("RSI is Ready"),t.removeEventListener("message",o),t.addEventListener("message",function(e){if(n("RSI Received"),"string"==typeof e.data&&e.data.match(/RSI:::::/))try{var r=function(t){function e(t){if("object"!=(void 0===t?"undefined":g(t)))return[];var e,n,i=[],r=a.slice(),o=[];for(var s in t)t.hasOwnProperty(s)&&o.push([s,t[s]]);if(!o.length)return[];for(;e=r.pop();){n=!0;for(var c=0,l=o.length;c<l;c++){var d=o[c][0],u=o[c][1];e[d]&&e[d]===u||(n=!1,c=l)}n&&i.push(e)}return i}return t?e(t):a};t.rmRSI=JSON.parse(JSON.parse(e.data.replace(/RSI:::::/,""))),a=t.rmRSI,r.promo="q2_199",r.phone="1-800-ROSETTA",r.expirationDate="9/14/2017 at 11:59PM EST",r.crescendo="fallpause.json",r.header={type:"invisible",fivePay:40,mastheadImage:"fallyellowaii.jpg",strikeThrough:[],tophtml:"",bottomhtml:""},r.percentoff=60,r.rsi="rmsitewide",i.resolve(r)}catch(o){n("Rejected: RSI not handled properly")}}),r.contentWindow.postMessage("RSIRequest",t.location.protocol+"//"+t.location.hostname))}),e.body.appendChild(r),i}function c(t,e){function n(){if(!t.addEventListener||!e.addEventListener)throw new Error("arguments must both be EventTarget");t.addEventListener("keydown",a,!0),e.addEventListener("keydown",r,!0)}function i(){if(!t.removeEventListener||!e.removeEventListener)throw new Error("arguments must both be EventTarget");t.removeEventListener("keydown",a,!0),e.removeEventListener("keydown",r,!0)}var a=function(t){return t.shiftKey&&9==t.which&&(e.focus(),t.preventDefault()),!0},r=function(e){return e.shiftKey||9!=e.which||(t.focus(),e.preventDefault()),!0};return{addFocus:n,removeFocus:i}}function l(t){function e(){function t(){var o,s=(Date.now()-e)/a;return s>=1?(o=r,n.forEach(function(t,e){t.setAttribute("offset",i[e])}),1):(o=parseFloat((r*s).toFixed(4),10),n.forEach(function(t,e){t.setAttribute("offset",i[e]+o)}),requestAnimationFrame(t))}var e=Date.now(),a=4e3,r=2;requestAnimationFrame(t)}$(t).each(function(t,e){var n=$(e);n.data("current_offset",parseFloat(n.attr("offset"),10))});var n=$(t).get(),i=$(t).get().map(function(t){return $(t).data("current_offset")});e()}function u(t){function e(){function e(){var o,s=(Date.now()-i)/a;if(s>=1)return o=t?0:r,n[0].attr("transform","translate(0 "+o+")"),n[1].attr("transform","translate(0 "+o+")"),1;t&&(r=1),o=parseFloat((r*s).toFixed(4),10),t&&(o+=2),n[0].attr("transform","translate(0 "+o+")"),n[1].attr("transform","translate(0 "+o+")"),requestAnimationFrame(e)}var i=Date.now(),a=t?250:3e3,r=t?3:2;requestAnimationFrame(e)}var n=[$("#verticaldrop").find("rect"),$("#verticaldropb").find("rect")];e()}function p(){u(),setTimeout(function(){u(1),setTimeout(function(){p()},1e3)},1e4)}var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAATCAYAAABlcqYFAAABu0lEQVR42q3TP0gbURzAcVEMRpQMzR/yl5A/BzZBUhB1EuriEIKNLgoZimTr2KFoBDE6eHU7QQQdU0pBJEuHLk7iYIQSFAcxo+KgSJUituLze/CEEAg57gx8EvjBvS/38l7ba380TVOcTuf3WCy2g218e/VILpf7GAgEHlj8EQInbXwp6LMqHo/36pFgMLitKIqIRCL3LperhnU9soUb3Jp0h2sk4MRFOBwWqVRKK5fLLnTrkbc4g7DgEO34AOHz+Z4KhcL7+m3UQ0sWI4tynQ0It9t9Wq1W3zRG+nBrMnCPYXShBuH1ejdf1m4M/TAZOUYnRvHP4/GIfD4/0SwyhicTEU0+r8q3OC8Wi95mETsOTETG5fO/o9Go4Cg3vXwvoXfIYcqAaUyiA4N4DIVCIp1Oz7S8sXJ/7bAZZIfKGwiHw3FVKpWiRiJfcIYjHBtQxR/9AiaTyV+VSqXdSGTAzCnjAopsNjvbMlAX+oRVqFjGnPxVpRXMYwEqvvr9/pVMJhM2FGhy6oZga5j3I1Q/MxtwYBf/8RM9cv4Zf3GJEauRxv8nIed7ENKy1YgdW6hhDTY5n8IJ9pFstc4z7l1RaDfx904AAAAASUVORK5CYII=",f=$.Deferred(),h=$.Deferred(),_=$.when(f,h),v=o();v.done(function(e){if(!e||(e.count||0)<1)return n("Ending - no cart item"),f.reject()&&h.reject();var i=e.itemInfo.slice().sort(function(t,e){return parseInt(t.price.replace("$",""),10)-parseInt(e.price.replace("$",""),10)}).pop();if(!i||!i.sku)return f.reject()&&h.reject();f.resolve(i),s().done(function(e){var a;if(n("rmRSI resolved"),t.location.pathname.match(/\/learn-/))return a=e({sku:i.sku}),h.resolve(a);if("function"==typeof RSI){var r=RSI;return a=(parseInt(r({sku:i.sku})[0].price,10)<parseInt(e({sku:i.sku})[0].price,10)?r:e)({sku:i.sku}),h[a.length?"resolve":"reject"](a)}return"function"==typeof e?(a=e({sku:i.sku}),h.resolve(a)):void 0})}),_.done(function(i,o){if(t.__flyOutLock)throw new Error("This code should only run once per load.");t.__flyOutLock=!0,n("Comparison resolved");var s="https://secure.rosettastone.com/us_en_store_view/checkout/cart/",d=0,u=parseInt(i.price.replace("$",""),10)-(i.discount||0),g=parseInt(o[0].price,10);u>g&&(s="https://secure.rosettastone.com/us_en_store_view/checkout/cart/couponPost?coupon_code="+o[0].code,d=u-g),n("Checkout URL: "+s),v.done(function(i){function o(){setTimeout(l.bind(this,".sweepA"),3e3),setInterval(function(){l(".sweepA")},1e4),setTimeout(function(){l(".sweepB"),setInterval(function(){l(".sweepB")},12e3)},5e3),setTimeout(p,1e3)}n("flyoutdata received");var u=i.itemInfo.slice(0,2).map(function(t){var e=t;return e.typespec="Online Sub"==t.type?"Online Subscription":t.type,e.language="Spanish"==t.language?"Spanish (Latin America)":t.language,"Online Sub"==t.type?e.levelspec=t.sub_month+"-Months":e.levelspec={S3:"Levels 1-3",S5:"Levels 1-5",L1:"Level 1"}[t.level],e});n("Got cleaned flyout products");var g={languageName:u[0].language,products:u,cartLink:s,subTotal:i.cartInfo.subtotal,discount:parseInt(i.cartInfo.discount.toString().replace(/\$/,""),10)+d,total:d>0?"$"+(parseInt(i.cartInfo.grand_total.replace("$",""))-d):i.cartInfo.grand_total};n("Getting flyout code");var f=a(g),h=r(g);n("Appending flyout to body"),$("body").append(h+f);var _,v=$("#cartFlyoutOverlay"),y=$("#cartFlyoutBox"),b=y.find("header a").get(0),k=$(".flyoutSummaryInfoAndCTA a").get(0),w=new c(b,k),x=!1;if($(e).on("cartFlyout_request",function(){v.css({"z-index":"1001","background-color":"rgba(0,0,0,.5)"}),y.removeClass("out"),v.attr("tabindex","0"),w.addFocus(),$(b).focus(),t.scrollTo(0,0),t.flyoutShowing=!0,x||(x=!0,o()),setTimeout(function(){t.scrollTo(0,0)},500)}),$(e).on("cartFlyout_dismiss",function(){v.css({"z-index":"-1","background-color":"rgba(0,0,0,.5)"}),y.addClass("out"),v.attr("tabindex","-1"),w.removeFocus(),$(e.body).focus(),$("body,html").css("overflow","unset"),t.flyoutShowing=!1}),v.on("click",function(t){t.target==this&&$(e).trigger("cartFlyout_dismiss")}),v.find(".flyoutClose").on("click",function(){$(e).trigger("cartFlyout_dismiss")}),t.location.pathname.match(/\/lp\/sbsr/)){var C=$('<img src="'+m+'" />');$("#site-language-button").before(C),C.attr("aria-role","button"),C.attr("tabindex","0"),C.attr("alt","See items in your shopping cart"),C.css({width:"1.3em","margin-right":"1.5em",cursor:"pointer"}),C.on("click keypress",function(){$(e).trigger("cartFlyout_"+(t.flyoutShowing?"dismiss":"request"))})}t.location.pathname.match(/learn-/)&&($("#cartFlyoutOverlay").css("font-family","gothamlight"),$(".flyoutProduct figcaption h2").css("font-family","gothambold"),$("#flyoutLbl strong, .flyoutGuarantee div h2").css("font-family","gothambold"),(_=$(".nav-item:eq(4)")).find(".dropdown").css("display","none"),_.off("click").off("keydown"),_.on("click keydown",function(){$(e).trigger("cartFlyout_"+(t.flyoutShowing?"dismiss":"request"))}),$(e).on("cartFlyout_dismiss",function(){_.removeClass("is-active")}),$(e).on("cartFlyout_request",function(){_.addClass("is-active")}));"true"===_satellite.getVar("isHomePage")&&($("#cartFlyoutOverlay").css("font-family","gothamlight"),$(".flyoutProduct figcaption h2").css("font-family","gothambold"),$("#flyoutLbl strong, .flyoutGuarantee div h2").css("font-family","gothambold"),$(".flyoutProduct figcaption h2").css({"font-size":"1em"}),$(".flyoutSummaryInfoAndCTA h2").css({"font-size":"1em"}),$(".flyoutGuarantee h2").css({"font-size":"1em"}),$(".flyoutGuarantee").css({"padding-top":"10px"}),$(".flyoutProduct:last-of-type").css({"padding-bottom":"10px"}),(_=$(".nav-item:eq(4)")).find(".dropdown").css("display","none"),_.off("click").off("keydown"),_.on("click keydown",function(){$(e).trigger("cartFlyout_"+(t.flyoutShowing?"dismiss":"request"))}),$(e).on("cartFlyout_dismiss",function(){_.removeClass("is-active")}),$(e).on("cartFlyout_request",function(){_.addClass("is-active")}),$("#cartFlyoutBox h2,#cartFlyoutBox p").css({"margin-top":"0","margin-bottom":"0"}));setTimeout(function(){$(e).trigger("cartFlyout_request")},3e3)})})},storeLength:"pageview"},timeincrement:{customJS:function(){return(e=new Date).getFullYear()+"-"+("00"+(e.getMonth()+1)).slice(-2)+"-"+("00"+e.getDate()).slice(-2)+" "+("00"+e.getHours()).slice(-2)+":"+("00"+((t=e).getMinutes()-t.getMinutes()%10)).slice(-2);var t,e},storeLength:"pageview"},UAAutoDetect:{customJS:function(){function n(){var t;try{null[0]()}catch(e){t=e}return!!(t.stack||"").match(/phantom/gi)}var i=["Unlikely","Possible","Likely","Definitely"],a=0;try{if(/HeadlessChrome|Selenium|Phantom/i.test(t.navigator.userAgent))return"Headless UA";if(Object.keys(t).filter(function(t){return t.match(/$cdc_|$wdc_|selenium/gi)}).length>0)return"Selenium";if(n())return"PhantomJS";0==navigator.plugins.length&&a++,""==navigator.languages&&(a+=2);try{var r=e.createElement("canvas").getContext("webgl"),o=r.getExtension("WEBGL_debug_renderer_info"),s=r.getParameter(o.UNMASKED_VENDOR_WEBGL),c=r.getParameter(o.UNMASKED_RENDERER_WEBGL);"Brian Paul"==s&&"Mesa OffScreen"==c&&(a+=2)}catch(l){}a<0&&(a=0),a>i.length-1&&(a=i.length-1)}catch(l){}return i[a]},"default":"Unlikely",storeLength:"visitor"}},appVersion:"7QN",buildDate:"2019-05-01 16:59:54 UTC",publishDate:"2019-05-01 00:06:41 UTC"})}(window,document);