(function() { function bxBootstrap() { var re = /bot|crawl|slurp|spider|mediapartners|headlesschrome|snap-prefetch|remotasks|woorank|uptime\.com|facebookexternalhit|facebookcatalog/i; if (re.test(navigator.userAgent) || navigator.userAgent == '') { return; } if (!(window.bouncex&&bouncex.website)) { var pushedData = []; if(window.bouncex && bouncex.push && bouncex.length){ pushedData = bouncex; } window.bouncex = {}; bouncex.pushedData = pushedData; bouncex.website = {"id":2158,"name":"HC - Checks in the Mail","cookie_name":"bounceClientVisit2158","domain":"checksinthemail.com","ct":"bind_to_domain","ally":1,"ei":0,"tcjs":"// PD 8/30/2018: Trigger omniture event on post conversion only if bx ad has impressed\n(function() {\n for (var ca_id in bouncex.cookie.campaigns) {\n if (bouncex.cookie.campaigns.hasOwnProperty(ca_id) && bouncex.cookie.campaigns[ca_id].lavid) {\n bouncex.omnitureLinkTrack2('BounceX Conversion - Campaign ' + ca_id, 'event30');\n }\n }\n})();","cjs":"// Set CV if user submits to onsite email capture\nif (!bouncex.vars.email_submitted) {\n\tjQuery('body').on('submit.email-submit-bx', '#subsForm', function(){\n\t\tbouncex.setv('email_submitted', true);\n bouncex.setBounceCookie();\n\t});\n}\n\n// omitureLinkTrack2 is called in Custom Campaign JS\nbouncex.omnitureLinkTrack2 = function(campaignLabel, eventId) {\n var parsedLabel = eventId !== 'event30' ? '' : campaignLabel;\n // PD: Post conversion events get unique label formatting sine GA label isn't available\n if (eventId !== 'event30') {\n var campaignNameRegex = /(?:variation|control) - (.*)(?:\\([^)]*\\))/;\n var campaignIDRegex = /[^(]\\d{3,10}[^)]/g;\n var campaignName = campaignNameRegex.exec(campaignLabel)[1] || [];\n var parentId = campaignLabel.match(campaignIDRegex)[0] || [];\n var variationId = campaignLabel.match(campaignIDRegex)[1] || [];\n parsedLabel = parentId + ' ' + variationId + ' : ' + campaignName;\n }\n\n\n try{\n window.s.linkTrackVars = 'eVar34,events';\n window.s.linkTrackEvents = eventId;\n window.s.eVar34 = parsedLabel;\n window.s.events = eventId;\n window.s.tl(true, 'o', parsedLabel);\n } catch (e) {\n console.error('BX Omniture Error: ' + e);\n }\n};","force_https":false,"waypoints":false,"content_width":0,"gai":"","swids":"","sd":0,"ljq":"auto","campaign_id":0,"is_preview":false,"aco":{"first_party_limit":"3500","local_storage":"1"},"cmp":{"gdpr":0,"gmp":0,"whitelist_check":0},"burls":[],"ple":false,"fbe":false,"ffs":"","mas":2,"map":1,"gar":true,"ete":1,"ettm":false,"etjs":"// ---- HELPERS ---- //\nfunction getUrl() {\n\treturn bouncex.utils.url.allowParams();\n}\n\nfunction stripWWW(url) {\n return url.replace('www.', '');\n}\n\nfunction isExcludedSubDomain(url) {\n url = stripWWW(url);\n return (url.indexOf('qa') === 0 || url.indexOf('dev') === 0 || url.indexOf('uat') === 0);\n}\n\nfunction isValidDomain() {\n var validOrigins = [\n 'https://secure.checksinthemail.com'\n ];\n\n return validOrigins.indexOf(window.location.origin) > -1;\n}\n\nfunction isValidForTracking() {\n return isValidDomain() && !isExcludedSubDomain(window.location.hostname);\n}\n\nfunction getProductType() {\n var productType = jQuery('#isThisBusinessProduct').val() || '';\n return productType.toLowerCase() === 'true' ? 'business' : 'personal';\n}\n\nfunction getPageType() {\n var sProp4 = '',\n firstPath = '',\n pathType = '',\n businessType = '',\n pageType = '';\n\n if (window.location.pathname.indexOf('/cart.aspx') > -1) {\n return 'cart';\n }\n if (window.location.pathname.indexOf('/search.aspx') > -1) {\n return 'search';\n }\n\n sProp4 = bouncex.utils.getNestedProp('window.s.prop4');\n\n if (sProp4) {\n firstPath = window.location.pathname.slice(0, 3);\n switch(firstPath) {\n case '/c/':\n pathType = 'category';\n break;\n case '/p/':\n pathType = 'product';\n break;\n }\n\n switch(sProp4) {\n case 'Consumer':\n businessType = 'personal';\n break;\n case 'Business':\n businessType = 'business';\n break;\n case 'ProductDetailPage':\n businessType = getProductType();\n break;\n }\n\n if (pathType && businessType) {\n pageType = pathType + '(' + businessType + ')';\n }\n }\n\n return pageType;\n}\n\n\n// atc page: https://secure.checksinthemail.com/infoEntryIII.aspx?productid=2828\n// search: product.aspx?productid=7796\n// cat: /p/baroque-checks/610\nfunction getIdFromUrl(url) {\n var id = bouncex.utils.url.getParam('productid', url),\n pdpHrefRegex = /\\/p\\/.+\\/(\\d+)/,\n idMatch;\n\n if (!id) {\n idMatch = url.match(pdpHrefRegex);\n if (idMatch && idMatch.length === 2) {\n id = idMatch[1];\n }\n }\n return id;\n}\n\n// ---- ITEM META DATA ---- //\n\nfunction getItemImageUrl() {\n var rawImageUrl = jQuery('.productThumbImg:first, #ctl00_ContentPlaceHolder1_singledisplayimage')\n .first()\n .attr('src')\n || '',\n formattedSrc = rawImageUrl\n .replace(/\\.\\.\\//g, '')\n .replace('width=70', 'width=500&format=jpg'),\n imageUrl = '';\n \n if (formattedSrc) {\n imageUrl = stripWWW(window.location.origin + '/' + formattedSrc);\n }\n\n return imageUrl;\n}\n\nfunction getItem() {\n return {\n id : jQuery('#ctl00_ContentPlaceHolder1_hdnProductID').val() \n || '',\n copy : jQuery('#ctl00_ContentPlaceHolder1_lblProdTitle').text(),\n category : jQuery('.breadcrumb').text().split('>').slice(-1)[0].trim()\n || 'global',\n url : stripWWW(jQuery('link[rel=canonical]').attr('href')) \n || getUrl(),\n imageurl : getItemImageUrl(),\n productType: getProductType(),\n instock : true,\n\t};\n}\n\n// ---- CART TRACKING ---- //\n\nfunction getIdAndFireAddToCart() {\n var id = getIdFromUrl(window.location.href);\n if (id) {\n fireAddToCart(id);\n }\n return;\n}\n\nfunction initializePersonalizedATC() {\n bouncex.et.on(\n jQuery('#lbApproveButton2a'),\n 'click.bx',\n function() {\n if (jQuery('#ckAgree').is(':checked')) {\n getIdAndFireAddToCart();\n } \n }\n );\n return;\n}\n\n// for items that can be directly added to cart\nfunction initializeStandardATC() {\n bouncex.et.on(\n jQuery('#ctl00_ContentPlaceHolder1_lnkAddtoCart'),\n 'click.bx',\n getIdAndFireAddToCart\n );\n return;\n}\n\nfunction initializeATCTracking() {\n initializePersonalizedATC();\n initializeStandardATC();\n}\n\nfunction initializeCartEvents() {\n bouncex.et.cart.init({\n replenish: function() {},\n replenishmentType: 'single'\n });\n initializeATCTracking();\n // empty cart\n bouncex.et.onVarChange(\n 'items_in_cart',\n function(oldVal, newVal) {\n if (bouncex.vars.cart_set && newVal === 0) {\n bouncex.push(['empty_cart']);\n bouncex.setVar('cart_set', false);\n bouncex.setBounceCookie();\n }\n }\n );\n return;\n}\n\nfunction fireAddToCart(itemId) {\n bouncex.push(['add to cart', { 'item:id': itemId }]);\n if (!bouncex.vars.cart_set) {\n bouncex.setVar('cart_set', true);\n bouncex.setBounceCookie();\n }\n return;\n}\n\n// ---- INITIALIZE EVENTS ---- //\n\nfunction isValidItem(item) {\n return !!item.id \n && !!item.copy\n && !!item.category\n && !!item.imageurl\n // is not custom image\n && item.imageurl.indexOf('picturechecks/preview') === -1;\n}\n\nfunction initializeItemEvents(pageType) {\n pageType = pageType || getPageType();\n\tif (pageType.indexOf('product') > -1){\n var item;\n bouncex.et.onTrue(\n function(){\n item = getItem();\n return isValidItem(item);\n },\n function(){\n bouncex.push(\n [\n 'view item', \n {\n 'item:id': item.id,\n 'page:type': pageType\n }\n ]\n );\n bouncex.push(['item', item]);\n return;\n }\n );\n }\n return;\n}\n\nfunction initializeListPageEvents(pageType) {\n pageType = pageType || getPageType();\n \n if (pageType.indexOf('category') > -1|| pageType.indexOf('search') > -1) { \n bouncex.et.onHover(\n '.gallery-item', \n function($el){\n var href = $el.attr('href') || '';\n id = getIdFromUrl(href);\n \n if (id) {\n bouncex.push(['hover item', {\n 'item:id' : id,\n 'page:type': pageType\n }]);\n }\n }\n );\n }\n return;\n}\n\nfunction init() {\n var pageType;\n if (isValidForTracking()) {\n pageType = getPageType();\n initializeItemEvents(pageType);\n initializeCartEvents();\n initializeListPageEvents(pageType);\n }\n return;\n}\n\ninit();\n","dge":false,"bxidLoadFirst":false,"pie":false,"cme":false,"gbi_enabled":0,"bpush":false,"pt":{"cart":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === \"/cart.aspx\";"}]]},"category":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.href.indexOf('/c/') > -1 && window.location.href.indexOf('/sitemap') === -1 && window.location.href.indexOf('/help') === -1;"}]]},"checkout":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"[\"/checkout.aspx\",\"/payment.aspx\"].indexOf(window.location.pathname) > -1;"}]]},"home":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"[\"/index.aspx\",\"/\"].indexOf(window.location.pathname) > -1;"}]]},"product":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.href.indexOf('/p/') > -1 || [\"/Preview.aspx\"].indexOf(window.location.pathname) > -1;"}]]},"search":{"testmode":true,"val":[[{"activation":"js","prop":"","prop2":"","prop3":"","val":"window.location.pathname === \"/search.aspx\";"}]]}},"els":null,"vars":[{"name":"business_or_personal","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"is_business_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#isThisBusinessProduct').val().toLowerCase() === 'true' ? true : false;","trigger":""},{"name":"high_security_pd_page","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#hsmodal').length > 0;","trigger":""},{"name":"items_in_cart","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function() {\n var $cart = jQuery('#ctl00_Header_TopMenu_lblCartCount');\n if ($cart.length > 0) {\n return Number($cart.text());\n }\n})();","trigger":""},{"name":"cart_value","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"0","code":"(function(){\n\tif (window.location.href.indexOf('/cart') > -1){\n\t\treturn jQuery('#ctl00_ContentPlaceHolder1_ctlCart_Subtotal').text().replace(/[^0-9\\.]/g, '');\n\t}\n\treturn null;\n})();","trigger":""},{"name":"previous_customer","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"is_deposit_ticket","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#isThisDepositTicket').val().toLowerCase() === 'true' ? true : false;","trigger":""},{"name":"is_check_product","polling":"none","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('#isThisCheckProduct').val().toLowerCase() === 'true' ? true : false;","trigger":""},{"name":"coupon_applied","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"(function() {\n var $couponField = jQuery('input.PromoTxt');\n var $discountDiv = jQuery('.cart_discount');\n \n if ($couponField.length > 0 && $discountDiv.length > 0) {\n var minus10CouponEntered = $couponField.val() === 'MINUS10';\n var discountApplied = parseFloat($discountDiv.text().replace(/[^0-9.]/g,'')) > 0;\n \n return minus10CouponEntered && discountApplied;\n \n }\n})()","trigger":""},{"name":"ibx_test","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"location.href.indexOf('ibx_test')>=0 || null;\n","trigger":""},{"name":"email_submitted","polling":"none","persist":"permanent","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":""},{"name":"fraud_service_checked","polling":"all","persist":"no","page_types":[],"testmode":false,"default":"false","code":"jQuery('label.btn.btn-link.wrap-white-space').hasClass('active');","trigger":"pageload"},{"name":"cart_set","polling":"none","persist":"visit","page_types":[],"testmode":false,"default":"false","code":"null;","trigger":"pageload"}],"dgu":"pixel.cdnwidget.com","dgp":false,"ba":{"enabled":0,"fbte":0},"biu":"assets.bounceexchange.com","bau":"api.bounceexchange.com","beu":"events.bouncex.net","ibx":{"tjs":"","cjs":"","miw":1,"mibcx":1,"te":1,"cart_rep":{"get":"","set":""},"ulpj":null,"cus":"","miw_exclude":"","enabled":1},"etjson":null,"osre":true,"osru":"osr.bounceexchange.com/v1/osr/items","checkDfp":false,"gamNetwork":"","spa":0,"spatm":1,"preinit_cjs":"","crs":{"integrations":null,"pageCount":null},"mat":0,"math":0,"cpnu":"coupons.bounceexchange.com","dfpcms":0,"sms":{"optm":"","eventSharing":false,"shqId":"","enabled":0},"pde":false,"fmc":["US","CA"],"fme":true,"fmx":"","sdk":{"android":{"enabled":false,"enabledVersions":[],"eventModifications":null},"ios":{"enabled":false,"enabledVersions":[],"eventModifications":null}},"onsite":{"enabled":1},"ads":{"enabled":0},"pubs":{"enabled":0},"websdk":{"enabled":0},"ga4_property_id":"","ga4_measurement_id":"","tag_state_domain":"api.bounceexchange.com"} ; bouncex.tag = 'tag3'; bouncex.$ = window.jQuery; bouncex.env = 'production'; bouncex.restrictedTlds = {"casl":{"ca":1},"gdpr":{"ad":1,"al":1,"at":1,"ax":1,"ba":1,"be":1,"bg":1,"by":1,"xn--90ais":1,"ch":1,"cy":1,"cz":1,"de":1,"dk":1,"ee":1,"es":1,"eu":1,"fi":1,"fo":1,"fr":1,"uk":1,"gb":1,"gg":1,"gi":1,"gr":1,"hr":1,"hu":1,"ie":1,"im":1,"is":1,"it":1,"je":1,"li":1,"lt":1,"lu":1,"lv":1,"mc":1,"md":1,"me":1,"mk":1,"xn--d1al":1,"mt":1,"nl":1,"no":1,"pl":1,"pt":1,"ro":1,"rs":1,"xn--90a3ac":1,"ru":1,"su":1,"xn--p1ai":1,"se":1,"si":1,"sj":1,"sk":1,"sm":1,"ua":1,"xn--j1amh":1,"va":1,"tr":1}}; bouncex.client = { supportsBrotli: 1 }; bouncex.assets = {"ads":"ababbfcac9b56e701d1f877082b16c1d","creativesBaseStyles":"a53944a2","gpsAuction":"1375a7b38c31e98d14fe7f396b72da14","inbox":"02aca5df0e176b8810a86da97ac05424","onsite":"0e56ab6ba004ee080ce3deb3edae35e9","sms":"e39203556bab2366e56296ce42e974a7","websdk":"3314cefb9e5f7de4ce4a17e3cca4b891"}; bouncex.push = function(pushData) { bouncex.pushedData.push(pushData); } var runtime = document.createElement('script'); runtime.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/runtime_6459738026535cda4232dc813c61447d.br.js'); runtime.setAttribute('async', 'async'); runtime.setAttribute('onload', 'bouncex.initializeTag()'); bouncex.initializeTag = function() { var script = document.createElement('script'); script.setAttribute('src', '//assets.bounceexchange.com/assets/smart-tag/versioned/main-v2_e3c047536bdaca2c8911cb1f6f6d8aa7.br.js'); script.setAttribute('async', 'async'); document.body.appendChild(script); bouncex.initializeTag = function() {}; }; document.body.appendChild(runtime); } } if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", bxBootstrap); } else { bxBootstrap(); }})();