try { var _wcShowcaseId = escape('searscampaign'); var _wcCookiesDomain = 'sears.com'; var _wcEntryPoint = escape('caterpillar-entry-custom'); var _wcBrand = _wcShowcaseId; if (_wcShowcaseId == "searscampaign" && _wcEntryPoint != null) { var idexOfSuffix = _wcEntryPoint.indexOf("-entry-custom"); _wcBrand = _wcEntryPoint.substr(0, idexOfSuffix); } function wcPutCookie(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value == null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE } var path = options.path ? '; path=' + (options.path) : ''; var domain = options.domain ? '; domain=' + (options.domain) : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } } wcPutCookie ('wctag', 'module='+_wcBrand+'&showcaseid='+_wcBrand, { expires: 31, domain: _wcCookiesDomain, path: '/' }); document.write('