text: /*! p13n.js Copyright 2007-2018 RichRelevance, Inc. All Rights Reserved. Build V1.2.6.20180822 */
  function rr_addLoadEvent(a){RR.ol(a)}function rr_create_script(a){var b=document.createElement("script");b.type="text/javascript",b.charset=RR.charset,b.src=a,b.async=!0,document.getElementsByTagName("head")[0].appendChild(b)}function r3_generic(){this.type="GENERIC",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.createScript=function(a){return a}}function r3_home(){this.type="HOME",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.createScript=function(a){return a}}function r3_error(){this.type="ERROR",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.createScript=function(a){return a}}function r3_personal(){this.type="PERSONAL",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.createScript=function(a){return a}}function r3_brand(){this.type="BRAND",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.createScript=function(a){return a}}function r3_item(){this.type="ITEM",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.setId=function(a){RR.set.call(this,a,"id")},this.setName=function(a){RR.set.call(this,a,"name")},this.setRecommendable=function(a){RR.set.call(this,a,"recommendable")},this.setPrice=function(a){RR.set.call(this,a,"price")},this.setSalePrice=function(a){RR.set.call(this,a,"salePrice")},this.setBrand=function(a){RR.set.call(this,a,"brand")},this.addAttribute=function(a,b){var c=a+":"+b;RR.add.call(this,c,"attributes")},this.setEndDate=function(a){RR.set.call(this,a,"endDate")},this.setImageId=function(a){RR.set.call(this,a,"imageId")},this.setLinkId=function(a){RR.set.call(this,a,"linkId")},this.setRating=function(a){RR.set.call(this,a,"rating")},this.setReleaseDate=function(a){RR.set.call(this,a,"releaseDate")},this.addCategory=function(a,b){var c=a+":"+b;RR.add.call(this,c,"categories")},this.addCategoryId=function(a){RR.add.call(this,a,"categoryIds")},this.createScript=function(a){return this.categories&&(a+="&cs="+encodeURIComponent(this.categories)),this.categoryIds&&(a+="&cis="+encodeURIComponent(this.categoryIds)),this.id&&(a+="&p="+encodeURIComponent(this.id)),this.name&&(a+="&n="+encodeURIComponent(this.name)),this.imageId&&(a+="&ii="+encodeURIComponent(this.imageId)),this.linkId&&(a+="&li="+encodeURIComponent(this.linkId)),this.releaseDate&&(a+="&rd="+encodeURIComponent(this.releaseDate)),this.price&&(a+="&np="+encodeURIComponent(this.price)),this.salePrice&&(a+="&sp="+encodeURIComponent(this.salePrice)),this.endDate&&(a+="&ed="+encodeURIComponent(this.endDate)),this.rating&&(a+="&r="+encodeURIComponent(this.rating)),typeof this.recommendable!=RR.U&&(a+="&re="+encodeURIComponent(this.recommendable)),this.brand&&(a+="&b="+encodeURIComponent(this.brand)),this.attributes&&(a+="&at="+encodeURIComponent(this.attributes)),a}}function r3_category(){this.type="CATEGORY",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.setId=function(a){RR.set.call(this,a,"id")},this.setName=function(a){RR.set.call(this,a,"name")},this.setParentId=function(a){RR.set.call(this,a,"parentId")},this.setTopName=function(a){RR.set.call(this,a,"topName")},this.addItemId=RR.addItemId,this.createScript=function(a){return this.name&&(a+="&cn="+encodeURIComponent(this.name)),this.id&&(a+="&c="+encodeURIComponent(this.id)),this.parentId&&(a+="&pc="+encodeURIComponent(this.parentId)),this.topName&&(a+="&tcn="+encodeURIComponent(this.topName)),a}}function r3_cart(){this.type="CART",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemId=RR.addItemId,this.addItemIdCentsQuantity=RR.addItemIdCentsQuantity,this.addItemIdDollarsAndCentsQuantity=RR.addItemIdDollarsAndCentsQuantity,this.addItemIdPriceQuantity=RR.addItemIdPriceQuantity,this.createScript=function(a){return this.purchasesCents&&(a+="&ppc="+encodeURIComponent(this.purchasesCents)),this.purchasesDollarsAndCents&&(a+="&pp="+encodeURIComponent(this.purchasesDollarsAndCents)),this.quantities&&(a+="&q="+encodeURIComponent(this.quantities)),this.purchasesPrice&&(a+="&pp="+encodeURIComponent(this.purchasesPrice)),a}}function r3_addtocart(){this.type="ADDTOCART",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemIdToCart=RR.addItemIdToCart,this.createScript=function(a){return this.addedToCartItemIds&&(a+="&atcid="+encodeURIComponent(this.addedToCartItemIds)),a}}function r3_purchased(){this.type="PURCHASED",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemId=RR.addItemIdCentsQuantity,this.addItemIdCentsQuantity=RR.addItemIdCentsQuantity,this.addItemIdDollarsAndCentsQuantity=RR.addItemIdDollarsAndCentsQuantity,this.addItemIdPriceQuantity=RR.addItemIdPriceQuantity,this.setOrderNumber=function(a){this.orderNumber=a},this.setTotalPrice=function(a){this.totalPrice=a},this.setShippingCost=function(a){this.shippingCost=a},this.setTaxes=function(a){this.taxes=a},this.setPromotionCode=function(a){this.promotionCode=a},this.createScript=function(a){return this.orderNumber&&(a+="&o="+encodeURIComponent(this.orderNumber)),this.purchasesCents&&(a+="&ppc="+encodeURIComponent(this.purchasesCents)),this.purchasesDollarsAndCents&&(a+="&pp="+encodeURIComponent(this.purchasesDollarsAndCents)),this.quantities&&(a+="&q="+encodeURIComponent(this.quantities)),this.purchasesPrice&&(a+="&pp="+encodeURIComponent(this.purchasesPrice)),this.totalPrice&&(a+="&tp="+encodeURIComponent(this.totalPrice)),this.shippingCost&&(a+="&sc="+encodeURIComponent(this.shippingCost)),this.taxes&&(a+="&tx="+encodeURIComponent(this.taxes)),this.promotionCode&&(a+="&pmc="+encodeURIComponent(this.promotionCode)),a}}function r3_search(){this.type="SEARCH",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemId=RR.addItemId,this.setTerms=RR.addSearchTerm,this.createScript=function(a){return a}}function r3_wishlist(){this.type="WISHLIST",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemId=RR.addItemId,this.createScript=function(a){return a}}function r3_addtoregistry(){this.type="ADDTOREGISTRY",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType,this.addItemIdCentsQuantity=RR.addItemIdCentsQuantity,this.createScript=function(a){return a}}function r3_common(){function a(a,b){rr_placement_place_holders.push({elementId:a,placementType:b})}function b(a){return!1!==a}this.type="COMMON",RR.registerPageType(this,this.type),this.destroy=RR.unregisterPageType;var c={startRow:-1,count:-1,priceRanges:[],filterAttributes:{}};this.baseUrl="http://recs.richrelevance.com/rrserver/",this.jsFileName="p13n_generated.js",this.devFlags={},this.addCategoryHintId=function(a){RR.add.call(this,a,"categoryHintIds")},this.addClickthruParams=function(a,b){var c=encodeURIComponent(a)+":"+encodeURIComponent(b);RR.add.call(this,c,"clickthruParams")},this.addContext=function(a,b){RR.addObject.call(this,a,"context",b)},this.addFilter=function(a){RR.add.call(this,a,"filters")},this.addFilterBrand=function(a){RR.add.call(this,a,"filterBrands")},this.addFilterCategory=function(a){RR.add.call(this,a,"filterCategories")},this.addItemId=RR.addItemId,this.addItemIdToCart=RR.addItemIdToCart,this.addPlacementType=function(b,c){RR.add.call(this,b,"placementTypes"),c&&a(c,b)},this.addRefinement=function(a,b){var c=a+":"+b;RR.add.call(this,c,"refinements")},this.setRefinementFallback=function(a){var b=Boolean(a)?"t":"f";RR.set.call(this,b,"doRefinementsFallback")},this.addSearchTerm=RR.addSearchTerm,this.addSegment=function(a,b){var c;c=void 0===b?a:a+":"+b,RR.add.call(this,c,"segments")},this.blockItemId=function(a){RR.add.call(this,a,"blockeditemIds")},this.forceDisplayMode=function(a){this.devFlags.displayModeForced=b(a)},this.forceDevMode=function(a){this.devFlags.devModeForced=b(a)},this.forceDebugMode=function(a){this.devFlags.debugMode=b(a)},this.setApiKey=function(a){RR.set.call(this,a,"apiKey")},this.setBaseUrl=function(a){RR.set.call(this,a,"baseUrl")},this.setCartValue=function(a){RR.set.call(this,a,"cartValue")},this.setChannel=function(a){RR.set.call(this,a,"channel")},this.setClickthruServer=function(a){RR.set.call(this,a,"clickthruServer")},this.setFilterBrandsIncludeMatchingElements=function(a){RR.set.call(this,a,"filterBrandsInclude")},this.setForcedTreatment=function(a){RR.set.call(this,a,"forcedTreatment")},this.setMVTForcedTreatment=function(a){RR.set.call(this,a,"mvtforcedTreatment")},this.setPageBrand=function(a){RR.set.call(this,a,"brand")},this.setImageServer=function(a){RR.set.call(this,a,"imageServer")},this.setRegionId=function(a){RR.set.call(this,a,"regionId")},this.setLanguage=function(a){RR.set.call(this,a,"language")},this.setCurrency=function(a){RR.set.call(this,a,"currency")},this.setRegistryId=function(a){RR.set.call(this,a,"registryId")},this.setRegistryType=function(a){RR.set.call(this,a,"registryType")},this.setSessionId=function(a){RR.set.call(this,a,"sessionId")},this.setUserId=function(a){RR.set.call(this,a,"userId")},this.setPrivateMode=function(a){RR.set.call(this,a,"privateMode")},this.useDummyData=function(a){this.devFlags.dummyDataUsed=b(a),this.devFlags.displayModeForced=b(a)},this.enableRad=function(a){this.devFlags.rad=b(a)},this.enableCfrad=function(a){this.devFlags.cfrad=b(a)},this.RICHSORT={paginate:function(a,b){c.startRow=a,c.count=b},filterPrice:function(a){c.priceRanges=a||[]},filterAttribute:function(a,b){c.filterAttributes[a]=b}},this.initFromParams=function(){var a=RR.checkParamCookieValue("RR Environment","r3_env","r3_envCookie","r3_env");if(a&&""!==a){var b=(0===this.baseUrl.toLowerCase().indexOf("https://")?"https://":"http://")+a+".richrelevance.com/rrserver/";RR.set.call(this,b,"baseUrl")}var c=RR.checkParamCookieValue("CFRAD","cfrad","cfrad","cfrad");if(c&&""!==c&&this.enableCfrad(!0),RR.lc("rr_spoof")){var d=RR.pq("rr_spoof");RR.set.call(this,d,"spoof")}if(RR.lc("rrPreview")){var e=RR.pq("rrPreview");RR.set.call(this,e,"rrPreview")}if(RR.lc("r3_forceDisplay=true")&&(this.forceDebugMode(!0),this.forceDisplayMode(!0)),RR.lc("r3_forceDev=true")&&(this.forceDebugMode(!0),this.forceDevMode(!0)),RR.lc("r3_rad=true")){this.forceDebugMode(!0),this.forceDevMode(!0),this.enableRad(!0);var f=RR.pq("r3_radLevel");""!==f&&RR.set.call(this,f,"radLevel")}if(RR.lc("cfrad")){var g=RR.pq("cfrad");""!==g&&RR.set.call(this,g,"cfrad")}RR.lc("r3_useDummyData=true")&&(this.forceDebugMode(!0),this.useDummyData(!0),this.forceDevMode(!0));var h=RR.pq("r3_forcedTreatment");h&&""!==h&&RR.set.call(this,h,"forcedTreatment");var i=RR.checkParamCookieValue("RR MVT Treatment","r3_mvtTreatmentId","r3_mvtCookie","r3_mvtTreatmentId");i&&""!==i&&RR.set.call(this,i,"mvtforcedTreatment");var j=RR.pq("r3_ftp");j&&""!==j&&RR.set.call(this,j,"forcedFtp");var k=RR.pq("r3_responseDetails");if(k&&""!==k&&RR.set.call(this,k,"rap"),RR.lc("r3_debugMode=true")?this.forceDebugMode(!0):RR.lc("r3_debugMode=false")&&this.forceDebugMode(!0),RR.lc("rr_vg=")&&RR.set.call(this,RR.pq("rr_vg"),"viewGuid"),RR.lc("rm=")&&RR.set.call(this,RR.pq("rm"),"fromRichMail"),RR.lc("r3_privateMode=true")&&RR.set.call(this,!0,"privateMode"),typeof this.userId===RR.U)if(RR.lc("rr_u=")){var l=RR.pq("rr_u");if(RR.set.call(this,l,"userId"),RR.lc("rr_u_days=")){var m=RR.pq("rr_u_days");isNaN(parseFloat(m))||RR.c("rr_u",l,m)}}else(l=RR.c("rr_u"))&&RR.set.call(this,l,"userId");var n=RR.pq("rrEnv_requestTS");n&&""!==n&&RR.set.call(this,n,"tsSpoof")},this.createScript=function(a,b,d){var e,f,g,h,i,j,k,l,m=[],n=new Date,o=0,p=[],q=!1,r="";if(this.initFromParams(),q=0===this.baseUrl.toLowerCase().indexOf("https://")||0===this.baseUrl.indexOf("//")&&0===location.protocol.indexOf("https:"),a=this.baseUrl+this.jsFileName+"?a="+encodeURIComponent(this.apiKey)+"&ts="+n.getTime()+"&v="+rr_v+(q?"&ssl=t":"")+a,this.placementTypes?a+="&pt="+encodeURIComponent(this.placementTypes):d&&(this.addPlacementType(d),a+="&pt="+encodeURIComponent(d),a+="&pte=t"),this.privateMode?a+="&privm=t":this.userId&&(a+="&u="+encodeURIComponent(this.userId)),this.sessionId&&(a+="&s="+encodeURIComponent(this.sessionId)),this.viewGuid&&""!==this.viewGuid&&(a+="&vg="+encodeURIComponent(this.viewGuid)),this.segments&&(a+="&sgs="+encodeURIComponent(this.segments)),this.channel&&(a+="&channelId="+encodeURIComponent(this.channel)),this.clickthruServer&&(a+="&cts="+encodeURIComponent(this.clickthruServer)),this.imageServer&&(a+="&imgsrv="+encodeURIComponent(this.imageServer)),this.addedToCartItemIds&&(a+="&atcid="+encodeURIComponent(this.addedToCartItemIds)),this.cartValue&&(a+="&cv="+encodeURIComponent(this.cartValue)),this.forcedTreatment&&""!==this.forcedTreatment&&(a+="&ftr="+encodeURIComponent(this.forcedTreatment)),this.mvtforcedTreatment&&""!==this.mvtforcedTreatment&&(a+="&mvt_ftr="+encodeURIComponent(this.mvtforcedTreatment)),this.forcedFtp&&""!==this.forcedFtp&&(a+="&ftp="+encodeURIComponent(this.forcedFtp)),this.rap&&""!==this.rap&&(a+="&rap="+encodeURIComponent(this.rap)),this.fromRichMail&&""!==this.fromRichMail&&(a+="&rm="+encodeURIComponent(this.fromRichMail)),this.categoryHintIds&&(a+="&chi="+encodeURIComponent(this.categoryHintIds)),this.brand&&(a+="&fpb="+encodeURIComponent(this.brand)),this.filterBrands&&(a+="&filbr="+encodeURIComponent(this.filterBrands)),this.filterBrandsInclude&&(a+="&filbrinc="+encodeURIComponent(this.filterBrandsInclude)),this.filterCategories&&(a+="&filcat="+encodeURIComponent(this.filterCategories)),this.filterCategoriesInclude&&(a+="&filcatinc="+encodeURIComponent(this.filterCategoriesInclude)),this.clickthruParams&&(a+="&ctp="+encodeURIComponent(this.clickthruParams)),this.regionId&&(a+="&rid="+encodeURIComponent(this.regionId)),this.language&&(a+="&language="+encodeURIComponent(this.language)),this.currency&&(a+="&currency="+encodeURIComponent(this.currency)),this.filters&&(a+="&if="+encodeURIComponent(this.filters)),this.refinements&&(a+="&rfm="+encodeURIComponent(this.refinements),this.doRefinementsFallback&&(a+="&rfb="+encodeURIComponent(this.doRefinementsFallback))),this.devFlags.rad&&(a+="&rad=t"),typeof this.radLevel!=RR.U&&(a+="&radl="+encodeURIComponent(this.radLevel)),typeof this.cfrad!=RR.U&&(a+="&cfrad="+this.cfrad),typeof this.context!=RR.U)for(i in this.context)if(j=this.context[i],a+="&"+i+"=",RR.isArray(j))a+=encodeURIComponent(j.join("|"));else if(j===Object(j)){l=[],k="";for(f in j)k=f+":",RR.isArray(j[f])?k+=j[f].join(";"):k+=j[f],l.push(k);a+=encodeURIComponent(l.join("|"))}else a+=encodeURIComponent(j);if(this.registryId&&(a+="&rg="+encodeURIComponent(this.registryId)),this.registryType&&(a+="&rgt="+encodeURIComponent(this.registryType)),typeof this.searchTerms!=RR.U&&(a+="&st="+encodeURIComponent(this.searchTerms)),this.jsonCallback&&(a+="&jcb="+encodeURIComponent(this.jsonCallback)),this.blockeditemIds&&(a+="&bi="+encodeURIComponent(this.blockeditemIds)),this.itemIds&&(a+="&p="+encodeURIComponent(this.itemIds)),c.startRow>0&&(a+="&rssr="+encodeURIComponent(c.startRow)),c.count>0&&(a+="&rsrc="+encodeURIComponent(c.count)),void 0!==c.priceRanges&&c.priceRanges.length>0){for(h=c.priceRanges.length;o<h;o+=1)p.push(c.priceRanges[o].join(";"));a+="&rspr="+encodeURIComponent(p.join("|"))}for(e in c.filterAttributes)m.push(e+":"+c.filterAttributes[e].join(";"));return m.length>0&&(a+="&rsfoa="+encodeURIComponent(m.join("|"))),this.devFlags.debugMode&&(this.devFlags.displayModeForced&&(a+="&fdm=t"),this.devFlags.devModeForced&&(a+="&dev=t"),this.devFlags.dummyDataUsed&&(a+="&udd=t")),""!==RR.d.referrer&&typeof RR.d.referrer!=RR.U?r=RR.d.referrer:""!==RR.d.referer&&typeof RR.d.referer!=RR.U&&(r=RR.d.referer),""!==r&&(a+="&pref="+encodeURIComponent(r)),g=RR.c("rr_rcs"),g.length&&(a+="&rcs="+g),this.spoof&&(a+="&spoof="+encodeURIComponent(this.spoof)),this.rrPreview&&(a+="&preview="+encodeURIComponent(this.rrPreview)),this.tsSpoof&&(a+="&test_rt="+encodeURIComponent(this.tsSpoof)),a+="&l=1"}}function r3_placement(a){var b="rr_placement_"+rr_placement_place_holders.length;document.write('<div id="'+b+'"></div>'),rr_placement_place_holders.push({elementId:b,placementType:a})}function r3(a,b,c){typeof c!=RR.U&&c||RR.js()}function rr_flush_onload(){RR.onloadCalled||(RR.onloadCalled=!0,rr_onload_called=!0,rr_flush())}function rr_flush(){}function rr_insert_placement(a,b){RR.insert(a,b,rr_placements)}var rr_v="1.2.6.20180822",rr_onload_called=!1,rr_placements=[],rr_placement_place_holders=[],RR;RR=function(){function a(b,c){var d,e=b.cloneNode(!1);if("SCRIPT"===e.nodeName)e.text=b.innerHTML,c.appendChild(e);else if("#text"===e.nodeName)c.appendChild(e);else for(c.appendChild(e),d=0;d<b.childNodes.length;d++)a(b.childNodes[d],e)}function b(a){var b=document.createElement("script");b.type="text/javascript",b.charset=RR.charset,b.src=a,b.async=!0,document.getElementsByTagName("head")[0].appendChild(b)}function c(a){var b=a.split(".").reverse();return b.length>=3&&b[1].match(/^(com|edu|gov|net|mil|org|nom|co|name|info|biz)$/i)?b[2]+"."+b[1]+"."+b[0]:b[1]+"."+b[0]}return{U:"undefined",charset:"UTF-8",rcsCookieDefaultDuration:730,registeredPageTypes:{},registerPageType:function(a){var b=a.type||"NOTYPE";RR.registeredPageTypes[b]=a},unregisterPageType:function(a){if(!a){if(!this.type)return;a=this}RR.registeredPageTypes[a.type]=null},unregisterAllPageType:function(a){for(var b in RR.registeredPageTypes){if(!a&&"COMMON"===b)break;RR.registeredPageTypes.hasOwnProperty(b)&&RR.unregisterPageType(RR.registeredPageTypes[b])}},setCharset:function(a){RR.charset=a},isArray:function(a){return"[object Array]"==Object.prototype.toString.call(a)},fixName:function(a){var b=String(a);return b.indexOf("&amp;")>-1&&(b=b.replace(/&amp;/g,"&")),b.indexOf("&#039;")>-1&&(b=b.replace(/&#039;/g,"'")),b},l:location.href,d:document,c:function(a,b,d,e){if(typeof b==RR.U||null===b){if(-1!=d){if(RR.d.cookie.length>0)for(var f=RR.d.cookie.split(";").reverse(),g=0,h=f.length;g<h;g++){var i=f[g];i="function"==typeof i.trim?i.trim():i.replace(/^\s+|\s+$/g,"");var j=i.indexOf(a+"=");if(0===j){j=j+a.length+1;var k=i.length;return unescape(i.substring(j,k))}}return""}RR.d.cookie=a+"=;path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT"}else if(d){var l=new Date,m=e?c(window.location.hostname):"";l=new Date(l.getTime()+1e3*d*60*60*24),RR.d.cookie=a+"="+escape(b)+";path=/;domain="+m+";expires="+l.toUTCString()}else RR.d.cookie=a+"="+escape(b)},id:function(a){return RR.d.getElementById(a)},lc:function(a){if(-1===a.indexOf("=")&&(a+="="),-1===a.indexOf("?")&&-1===a.indexOf("&")){var b=RR.l.indexOf("?"+a);return-1===b&&(b=RR.l.indexOf("&"+a)),-1!==b}return-1!==RR.l.indexOf(a)},ol:function(a){if("function"!=typeof window.onload)window.onload=a;else{if(typeof window.rr_onloads==RR.U){var b=window.onload;window.rr_onloads=[b],window.onload=function(a){for(;window.rr_onloads.length>0;){var b=window.rr_onloads.shift();b&&"function"==typeof b&&b.call(window,a)}}}window.rr_onloads.push(a)}},pq:function(a){var b=RR.l.indexOf("?"+a+"=");-1==b&&(b=RR.l.indexOf("&"+a+"="));var c;if(-1!==b){b++;var d=RR.l.indexOf("&",b);c=-1!=d?RR.l.substring(b+a.length+1,d):RR.l.substring(b+a.length+1,RR.l.length)}else c="";return c},debugWindow:function(a){var b=RR.d.createElement("DIV");b.innerHTML=a,b.style.position="absolute",b.style.top="0px",b.style.right="0px",b.style.zIndex="10000",b.style.width="200px",b.style.border="2px solid black",b.style.padding="5px",b.style.background="#DDD",RR.d.body.insertBefore(b,RR.d.body.firstChild)},jsonCallback:function(a){},defaultCallback:function(b){var c,d,e,f,g,h,i,j,k=b.placements,l=rr_placement_place_holders;for(h=0;h<l.length;h++)if(g=!1,(c=RR.id(l[h].elementId))&&typeof c!=RR.U)for(i=0;i<k.length;i++)if(!k[i].used&&k[i].placementType==l[h].placementType){if(k[i].placeholderIndex=h,k[i].used=!0,-1==k[i].html.indexOf("<script")?(c.innerHTML=k[i].html,g=!0):RR.d.implementation.hasFeature("Range","2.0")&&RR.d.createRange&&(e=RR.d.createRange(),e.selectNodeContents&&e.createContextualFragment&&e.detach&&(e.selectNodeContents(c),f=e.createContextualFragment(k[i].html),c.appendChild(f),e.detach(),g=!0)),!g)for(d=RR.d.createElement("div"),d.innerHTML=k[i].html,j=0;j<d.childNodes.length;j++)a(d.childNodes[j],c);break}for(rr_placements=[],i=0;i<k.length;i++)rr_placements[i]=[k[i].used?1:0,k[i].placementType,k[i].html];if(typeof rr_remote_data!==RR.U&&rr_remote_data.length){var m=RR.rcsCookieDuration||RR.rcsCookieDefaultDuration;RR.c("rr_rcs",rr_remote_data.toString(),m,!0)}},onloadCalled:!1,js:function(a){var c="",d=!1,e="";if(RR.registeredPageTypes.COMMON&&typeof RR.registeredPageTypes.COMMON.baseUrl!=RR.U&&typeof RR.registeredPageTypes.COMMON.apiKey!=RR.U)return typeof RR.registeredPageTypes.COMMON.placementTypes!==RR.U&&""!==RR.registeredPageTypes.COMMON.placementTypes||(d=!0),RR.registeredPageTypes.PURCHASED?(e="purchase_complete_page",c=RR.registeredPageTypes.PURCHASED.createScript(c)):RR.registeredPageTypes.CART?(e="cart_page",c=RR.registeredPageTypes.CART.createScript(c)):RR.registeredPageTypes.ADDTOCART?(e="add_to_cart_page",c=RR.registeredPageTypes.ADDTOCART.createScript(c)):RR.registeredPageTypes.ADDTOREGISTRY?(e="add_to_registry_page",c=RR.registeredPageTypes.ADDTOREGISTRY.createScript(c)):RR.registeredPageTypes.ITEM?(e="item_page",c=RR.registeredPageTypes.ITEM.createScript(c)):RR.registeredPageTypes.BRAND?(e="brand_page",c=RR.registeredPageTypes.BRAND.createScript(c)):RR.registeredPageTypes.CATEGORY?(e="category_page",c=RR.registeredPageTypes.CATEGORY.createScript(c)):RR.registeredPageTypes.SEARCH?(e="search_page",c=RR.registeredPageTypes.SEARCH.createScript(c)):RR.registeredPageTypes.WISHLIST?(e="cart_page",c=RR.registeredPageTypes.WISHLIST.createScript(c)):RR.registeredPageTypes.HOME?(e="home_page",c=RR.registeredPageTypes.HOME.createScript(c)):RR.registeredPageTypes.PERSONAL?(e="personal_page",c=RR.registeredPageTypes.PERSONAL.createScript(c)):RR.registeredPageTypes.GENERIC?(e="generic_page",c=RR.registeredPageTypes.GENERIC.createScript(c)):RR.registeredPageTypes.ERROR&&(e="error_page",c=RR.registeredPageTypes.ERROR.createScript(c)),c=RR.registeredPageTypes.COMMON.createScript(c,d,e),a||(setTimeout(function(){b(c)},10),RR.ol(rr_flush_onload)),c},insert:function(b,c,d){var e,f,g,h,j,k;for(j=0;j<d.length;j++)if(e=!1,0===d[j][0]&&d[j][1]==c){if(d[j][0]=1,-1==d[j][2].indexOf("<script")?(b.innerHTML=d[j][2],e=!0):RR.d.implementation.hasFeature("Range","2.0")&&RR.d.createRange&&(g=RR.d.createRange(),g.selectNodeContents&&g.createContextualFragment&&g.detach&&(g.selectNodeContents(b),h=g.createContextualFragment(d[j][2]),b.appendChild(h),g.detach(),e=!0)),!e)for(f=RR.d.createElement("div"),f.innerHTML=d[i][2],k=0;k<f.childNodes.length;k++)a(f.childNodes[k],b);return}},get:function(a){return this[a]},set:function(a,b){return this[b]=RR.fixName(a),this[b]},add:function(a,b){return typeof this[b]==RR.U&&(this[b]=""),this[b]+="|"+RR.fixName(a),this[b]},addObject:function(a,b,c){var d,e,f;(typeof this[b]==RR.U||c)&&(this[b]={});for(d in a)if(e=a[d],void 0===this[b][d])this[b][d]=e;else if(this[b][d]===Object(this[b][d])&&e===Object(e))for(f in e)this[b][d][f]=e[f];else{var g=this[b][d],h=e;RR.isArray(g)||(g=[g]),RR.isArray(e)||(h=[e]),this[b][d]=g.concat(h)}},addItemId:function(a,b){var c=a;typeof b!=RR.U&&(c=c+"~"+b),RR.add.call(RR.registeredPageTypes.COMMON,c,"itemIds")},addItemIdToCart:function(a,b){var c=a;typeof b!=RR.U&&(c=c+"~"+b),RR.add.call(this,c,"addedToCartItemIds")},addSearchTerm:function(a){RR.add.call(RR.registeredPageTypes.COMMON,a,"searchTerms")},genericAddItemPriceQuantity:function(a,b,c,d,e){typeof c==RR.U&&(c=0),typeof e==RR.U&&(e=-1),e=String(e),-1!=e.indexOf(".")&&(e=e.substring(0,e.indexOf("."))),RR.addItemId.call(this,a,b),RR.add.call(this,c,d),RR.add.call(this,e,"quantities")},addItemIdCentsQuantity:function(a,b,c,d){RR.genericAddItemPriceQuantity.call(this,a,d,b,"purchasesCents",c)},addItemIdDollarsAndCentsQuantity:function(a,b,c,d){RR.genericAddItemPriceQuantity.call(this,a,d,b,"purchasesDollarsAndCents",c)},addItemIdPriceQuantity:function(a,b,c,d){RR.genericAddItemPriceQuantity.call(this,a,d,b,"purchasesPrice",c)},checkParamCookieValue:function(a,b,c,d){var e=RR.pq(b),f=RR.pq(c),g=new RegExp("^\\w+$");if(g.test(e))return"session"===f?RR.c(d,e):isNaN(parseInt(f))?RR.c(d,null,-1):RR.c(d,e,f),RR.debugWindow(a+' set to "'+e+'".'),e;if((e=RR.c(d))&&g.test(e)){if("remove"!==RR.pq("r3_mvtCookie"))return RR.debugWindow(a+' set to "'+e+'". To remove from cookie, add '+c+"=remove to your query parameters."),e;RR.c(d,null,-1)}return null}}}();