_WGLOBAL=window;if(window.parent!=window&&document.getElementById("js-bcq-fif")){_WGLOBAL=window.parent}_WGLOBAL.bc=_WGLOBAL.bc||[];bc=_WGLOBAL.bc;_WGLOBAL._bcc=_WGLOBAL._bcc||{};_bcc=_WGLOBAL._bcc;_WGLOBAL._bcq=_WGLOBAL._bcq||[];_bcq=_WGLOBAL._bcq;_WGLOBAL.BOOMR=_WGLOBAL.BOOMR||{};BOOMR=_WGLOBAL.BOOMR;
bc.utils.log("Loading the Beacon Configuration...");var bcc={configuration:{page_type_map:{}},partners:{boomerang:{configuration:{beacon_url:bc.domain,site_domain:_WGLOBAL.document.domain,log:bc.utils.log,RT:{cookie:null}},actions:{}},omniture:{configuration:{log:bc.utils.log,autorun:false},actions:{ITEM:{visitorMigrationKey:{value:"4EB1C758"},visitorMigrationServer:{value:"walmart.112.2o7.net"},trackingServer:{value:"omniture.walmart.com"},trackingServerSecure:{value:"omniture-ssl.walmart.com"},reportSuite:{template:"walmartcom,walmart{{category}}",format:"LOWER_CASE"},pageName:{template:"[{{category}}] Product Details"},prop1:{attribute:"pageType"},prop2:{attribute:{iterator:"item",properties:["title"]}},prop3:{attribute:"category"},prop4:{attribute:"category"},prop5:{attribute:"category"},prop8:{value:"Product Details"},prop10:{attribute:{iterator:"vendors",separator:"|"}},prop11:{attribute:"prevPageName"},prop12:{template:"D={{trafficType}}:{{pageName}}"},prop17:{attribute:"wmvisitorId"},prop19:{attribute:"s_code"},prop21:{attribute:{iterator:"deliveryMethod",separator:","}},prop26:{attribute:"wmsessionId"},prop34:{template:"{{prevStoreId}}>{{currStoreId}}"},prop38:{attribute:"pageType"},prop42:{attribute:"pageType"},prop57:{attribute:"prevPageName"},eVar28:{attribute:"localTime"},eVar54:{attribute:"fsvPageName"},eVar55:{value:"D=pageName"},eVar59:{attribute:"fsvCategory"},eVar62:{attribute:"isThShpAvail"},eVar63:{value:"D=pageName"},eVar64:{value:"D=c2"},events:{value:"prodView,event1,event33"}}}}}};
BOOMR_start=new Date().getTime();(function(a){var e,c,b,g=a.document;if(typeof BOOMR==="undefined"){BOOMR={}}if(BOOMR.version){return}BOOMR.version="0.9.1370628800";e={beacon_url:"",site_domain:a.location.hostname.replace(/.*?([^.]+\.[^.]+)\.?$/,"$1").toLowerCase(),user_ip:"",events:{page_ready:[],page_unload:[],visibility_changed:[],before_beacon:[]},vars:{},disabled_plugins:{},fireEvent:function(d,l){var j,k,m;if(!this.events.hasOwnProperty(d)){return false}m=this.events[d];for(j=0;j<m.length;j++){k=m[j];k[0].call(k[2],l,k[1])}return true},addListener:function(h,i,d){if(h.addEventListener){h.addEventListener(i,d,false)}else{if(h.attachEvent){h.attachEvent("on"+i,d)}}}};c={t_start:BOOMR_start,t_end:null,utils:{getCookie:function(d){if(!d){return null}d=" "+d+"=";var h,j;j=" "+g.cookie+";";if((h=j.indexOf(d))>=0){h+=d.length;j=j.substring(h,j.indexOf(";",h));return j}return null},setCookie:function(h,d,n,r,l,m){var q="",j,p,o,i="";if(!h){return false}for(j in d){if(d.hasOwnProperty(j)){q+="&"+encodeURIComponent(j)+"="+encodeURIComponent(d[j])}}q=q.replace(/^&/,"");if(n){i=new Date();i.setTime(i.getTime()+n*1000);i=i.toGMTString()}p=h+"="+q;o=p+((n)?"; expires="+i:"")+((r)?"; path="+r:"")+((typeof l!=="undefined")?"; domain="+(l!==null?l:e.site_domain):"")+((m)?"; secure":"");if(p.length<4000){g.cookie=o;return(q===this.getCookie(h))}return false},getSubCookies:function(k){var j,h,d,n,m={};if(!k){return null}j=k.split("&");if(j.length===0){return null}for(h=0,d=j.length;h<d;h++){n=j[h].split("=");n.push("");m[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return m},removeCookie:function(d){return this.setCookie(d,{},0,"/",null)},pluginConfig:function(m,d,k,j){var h,l=0;if(!d||!d[k]){return false}for(h=0;h<j.length;h++){if(typeof d[k][j[h]]!=="undefined"){m[j[h]]=d[k][j[h]];l++}}return(l>0)}},init:function(h){var l,d,j=["beacon_url","site_domain","user_ip"];if(!h){h={}}for(l=0;l<j.length;l++){if(typeof h[j[l]]!=="undefined"){e[j[l]]=h[j[l]]}}if(typeof h.log!=="undefined"){this.log=h.log}if(!this.log){this.log=function(i,k,n){}}for(d in this.plugins){if(h[d]&&("enabled" in h[d])&&h[d].enabled===false){e.disabled_plugins[d]=1;continue}else{if(e.disabled_plugins[d]){delete e.disabled_plugins[d]}}if(this.plugins.hasOwnProperty(d)&&typeof this.plugins[d].init==="function"){this.plugins[d].init(h)}}if(!("autorun" in h)||h.autorun!==false){e.addListener(a,"load",function(){e.fireEvent("page_ready")})}var m=function(){e.fireEvent("visibility_changed")};if(g.webkitVisibilityState){e.addListener(g,"webkitvisibilitychange",m)}else{if(g.msVisibilityState){e.addListener(g,"msvisibilitychange",m)}else{if(g.visibilityState){e.addListener(g,"visibilitychange",m)}}}e.addListener(a,"unload",function(){a=null});return this},page_ready:function(){e.fireEvent("page_ready");return this},subscribe:function(d,m,j,o){var k,l,n;if(!e.events.hasOwnProperty(d)){return this}n=e.events[d];for(k=0;k<n.length;k++){l=n[k];if(l[0]===m&&l[1]===j&&l[2]===o){return this}}n.push([m,j||{},o||null]);if(d==="page_unload"){e.addListener(a,"unload",function(){if(m){m.call(o,null,j)}m=o=j=null});e.addListener(a,"beforeunload",function(){if(m){m.call(o,null,j)}m=o=j=null})}return this},addVar:function(h,i){if(typeof h==="string"){e.vars[h]=i}else{if(typeof h==="object"){var j=h,d;for(d in j){if(j.hasOwnProperty(d)){e.vars[d]=j[d]}}}}return this},removeVar:function(){var d,h;if(!arguments.length){return this}if(arguments.length===1&&Object.prototype.toString.apply(arguments[0])==="[object Array]"){h=arguments[0]}else{h=arguments}for(d=0;d<h.length;d++){if(e.vars.hasOwnProperty(h[d])){delete e.vars[h[d]]}}return this},sendBeacon:function(){var i,j,h,d=0;for(i in this.plugins){if(this.plugins.hasOwnProperty(i)){if(e.disabled_plugins[i]){continue}if(!this.plugins[i].is_complete()){return this}}}e.fireEvent("before_beacon",e.vars);if(!e.beacon_url){return this}j=e.beacon_url+((e.beacon_url.indexOf("?")>-1)?"&":"?")+"v="+encodeURIComponent(BOOMR.version)+"&u="+encodeURIComponent(g.URL.replace(/#.*/,""));for(i in e.vars){if(e.vars.hasOwnProperty(i)){d++;j+="&"+encodeURIComponent(i)+"="+(e.vars[i]===undefined||e.vars[i]===null?"":encodeURIComponent(e.vars[i]))}}if(d){h=new Image();h.src=j}return this}};delete BOOMR_start;var f=function(d){return function(h,i){this.log(h,d,"boomerang"+(i?"."+i:""));return this}};c.debug=f("debug");c.info=f("info");c.warn=f("warn");c.error=f("error");if(a.YAHOO&&a.YAHOO.widget&&a.YAHOO.widget.Logger){c.log=a.YAHOO.log}else{if(typeof a.Y!=="undefined"&&typeof a.Y.log!=="undefined"){c.log=a.Y.log}else{if(typeof console!=="undefined"&&typeof console.log!=="undefined"){c.log=function(d,h,i){console.log(i+": ["+h+"] ",d)}}}}for(b in c){if(c.hasOwnProperty(b)){BOOMR[b]=c[b]}}BOOMR.plugins=BOOMR.plugins||{}}(_WGLOBAL));(function(a){var c=a.document;BOOMR=BOOMR||{};BOOMR.plugins=BOOMR.plugins||{};var b={complete:false,timers:{},cookie:"RT",cookie_exp:600,strict_referrer:true,navigationType:0,navigationStart:undefined,responseStart:undefined,start:function(){var e,d=new Date().getTime();if(!this.cookie){return this}if(!BOOMR.utils.setCookie(this.cookie,{s:d,r:c.URL.replace(/#.*/,"")},this.cookie_exp,"/",null)){BOOMR.error("cannot set start cookie","rt");return this}e=new Date().getTime();if(e-d>50){BOOMR.utils.removeCookie(this.cookie);BOOMR.error("took more than 50ms to set cookie... aborting: "+d+" -> "+e,"rt")}return this},initNavTiming:function(){var d,f,e;if(this.navigationStart){return}f=a.performance||a.msPerformance||a.webkitPerformance||a.mozPerformance;if(f&&f.navigation){this.navigationType=f.navigation.type}if(f&&f.timing){d=f.timing}else{if(a.chrome&&a.chrome.csi&&a.chrome.csi().startE){d={navigationStart:a.chrome.csi().startE};e="csi"}else{if(a.gtbExternal&&a.gtbExternal.startE()){d={navigationStart:a.gtbExternal.startE()};e="gtb"}}}if(d){BOOMR.addVar("rt.start",e||"navigation");this.navigationStart=d.navigationStart||undefined;this.responseStart=d.responseStart||undefined;if(navigator.userAgent.match(/Firefox\/[78]\./)){this.navigationStart=d.unloadEventStart||d.fetchStart||undefined}}else{BOOMR.warn("This browser doesn't support the WebTiming API","rt")}return}};BOOMR.plugins.RT={init:function(d){b.complete=false;b.timers={};BOOMR.utils.pluginConfig(b,d,"RT",["cookie","cookie_exp","strict_referrer"]);BOOMR.subscribe("page_ready",this.done,null,this);BOOMR.subscribe("page_unload",b.start,null,b);if(BOOMR.t_start){this.startTimer("boomerang",BOOMR.t_start);this.endTimer("boomerang",BOOMR.t_end);this.endTimer("boomr_fb",BOOMR.t_start)}return this},startTimer:function(d,e){if(d){if(d==="t_page"){this.endTimer("t_resp",e)}b.timers[d]={start:(typeof e==="number"?e:new Date().getTime())};b.complete=false}return this},endTimer:function(d,e){if(d){b.timers[d]=b.timers[d]||{};if(!("end" in b.timers[d])){b.timers[d].end=(typeof e==="number"?e:new Date().getTime())}}return this},setTimer:function(d,e){if(d){b.timers[d]={delta:e}}return this},done:function(){var j,d,h,e,i={t_done:1,t_resp:1,t_page:1},g=0,k,f,l=[];if(b.complete){return this}b.initNavTiming();if((c.webkitVisibilityState&&c.webkitVisibilityState==="prerender")||(c.msVisibilityState&&c.msVisibilityState===3)){this.startTimer("t_load",b.navigationStart);this.endTimer("t_load");this.startTimer("t_prerender",b.navigationStart);this.startTimer("t_postrender");BOOMR.subscribe("visibility_changed",this.done,null,this);return this}this.endTimer("t_done");if(b.responseStart){this.endTimer("t_resp",b.responseStart);if(b.timers.t_load){this.setTimer("t_page",b.timers.t_load.end-b.responseStart)}else{this.setTimer("t_page",new Date().getTime()-b.responseStart)}}else{if(b.timers.hasOwnProperty("t_page")){this.endTimer("t_page")}}if(b.timers.hasOwnProperty("t_postrender")){this.endTimer("t_postrender");this.endTimer("t_prerender")}d=h=c.referrer.replace(/#.*/,"");if(b.cookie){e=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(b.cookie));BOOMR.utils.removeCookie(b.cookie);if(e&&e.s&&e.r){d=e.r;if(!b.strict_referrer||d===h){j=parseInt(e.s,10)}}}if(j&&b.navigationType!=2){BOOMR.addVar("rt.start","cookie")}else{j=b.navigationStart}BOOMR.removeVar("t_done","t_page","t_resp","r","r2","rt.bstart","rt.end");BOOMR.addVar("rt.bstart",BOOMR.t_start);BOOMR.addVar("rt.end",b.timers.t_done.end);for(k in b.timers){if(!b.timers.hasOwnProperty(k)){continue}f=b.timers[k];if(typeof f.delta!=="number"){if(typeof f.start!=="number"){f.start=j}f.delta=f.end-f.start}if(isNaN(f.delta)){continue}if(i.hasOwnProperty(k)){BOOMR.addVar(k,f.delta)}else{l.push(k+"|"+f.delta)}g++}if(g){BOOMR.addVar("r",d);if(h!==d){BOOMR.addVar("r2",h)}if(l.length){BOOMR.addVar("t_other",l.join(","))}}b.timers={};b.complete=true;BOOMR.sendBeacon();return this},is_complete:function(){return b.complete}}}(_WGLOBAL));(function(b){var e=b.document;BOOMR=BOOMR||{};BOOMR.plugins=BOOMR.plugins||{};var a=[{name:"image-0.png",size:11483,timeout:1400},{name:"image-1.png",size:40658,timeout:1200},{name:"image-2.png",size:164897,timeout:1300},{name:"image-3.png",size:381756,timeout:1500},{name:"image-4.png",size:1234664,timeout:1200},{name:"image-5.png",size:4509613,timeout:1200},{name:"image-6.png",size:9084559,timeout:1200}];a.end=a.length;a.start=0;a.l={name:"image-l.gif",size:35,timeout:1000};var c={base_url:"images/",timeout:15000,nruns:5,latency_runs:10,user_ip:"",cookie_exp:7*86400,cookie:"BA",results:[],latencies:[],latency:null,runs_left:0,aborted:false,complete:false,running:false,ncmp:function(f,d){return(f-d)},iqr:function(h){var g=h.length-1,f,m,k,d=[],j;f=(h[Math.floor(g*0.25)]+h[Math.ceil(g*0.25)])/2;m=(h[Math.floor(g*0.75)]+h[Math.ceil(g*0.75)])/2;k=(m-f)*1.5;g++;for(j=0;j<g&&h[j]<m+k;j++){if(h[j]>f-k){d.push(h[j])}}return d},calc_latency:function(){var h,f,j=0,g=0,k,m,d,o,l;l=this.iqr(this.latencies.sort(this.ncmp));f=l.length;BOOMR.debug(l,"bw");for(h=1;h<f;h++){j+=l[h];g+=l[h]*l[h]}f--;k=Math.round(j/f);d=Math.sqrt(g/f-j*j/(f*f));o=(1.96*d/Math.sqrt(f)).toFixed(2);d=d.toFixed(2);f=l.length-1;m=Math.round((l[Math.floor(f/2)]+l[Math.ceil(f/2)])/2);return{mean:k,median:m,stddev:d,stderr:o}},calc_bw:function(){var y,x,t=0,p,g=[],v=[],f=0,o=0,C=0,u=0,q,A,B,h,d,w,k,m,l,z,s;for(y=0;y<this.nruns;y++){if(!this.results[y]||!this.results[y].r){continue}p=this.results[y].r;l=0;for(x=p.length-1;x>=0&&l<3;x--){if(!p[x]){break}if(p[x].t===null){continue}t++;l++;z=a[x].size*1000/p[x].t;g.push(z);s=a[x].size*1000/(p[x].t-this.latency.mean);v.push(s)}}BOOMR.debug("got "+t+" readings","bw");BOOMR.debug("bandwidths: "+g,"bw");BOOMR.debug("corrected: "+v,"bw");if(g.length>3){g=this.iqr(g.sort(this.ncmp));v=this.iqr(v.sort(this.ncmp))}else{g=g.sort(this.ncmp);v=v.sort(this.ncmp)}BOOMR.debug("after iqr: "+g,"bw");BOOMR.debug("corrected: "+v,"bw");t=Math.max(g.length,v.length);for(y=0;y<t;y++){if(y<g.length){f+=g[y];o+=Math.pow(g[y],2)}if(y<v.length){C+=v[y];u+=Math.pow(v[y],2)}}t=g.length;q=Math.round(f/t);A=Math.sqrt(o/t-Math.pow(f/t,2));B=Math.round(1.96*A/Math.sqrt(t));A=Math.round(A);t=g.length-1;h=Math.round((g[Math.floor(t/2)]+g[Math.ceil(t/2)])/2);t=v.length;d=Math.round(C/t);w=Math.sqrt(u/t-Math.pow(C/t,2));k=(1.96*w/Math.sqrt(t)).toFixed(2);w=w.toFixed(2);t=v.length-1;m=Math.round((v[Math.floor(t/2)]+v[Math.ceil(t/2)])/2);BOOMR.debug("amean: "+q+", median: "+h,"bw");BOOMR.debug("corrected amean: "+d+", median: "+m,"bw");return{mean:q,stddev:A,stderr:B,median:h,mean_corrected:d,stddev_corrected:w,stderr_corrected:k,median_corrected:m}},defer:function(f){var d=this;return setTimeout(function(){f.call(d);d=null},10)},load_img:function(g,k,m){var f=this.base_url+a[g].name+"?t="+(new Date().getTime())+Math.random(),l=0,j=0,d=new Image(),h=this;d.onload=function(){d.onload=d.onerror=null;d=null;clearTimeout(l);if(m){m.call(h,g,j,k,true)}h=m=null};d.onerror=function(){d.onload=d.onerror=null;d=null;clearTimeout(l);if(m){m.call(h,g,j,k,false)}h=m=null};l=setTimeout(function(){if(m){m.call(h,g,j,k,null)}},a[g].timeout+Math.min(400,this.latency?this.latency.mean:400));j=new Date().getTime();d.src=f},lat_loaded:function(d,f,h,j){if(h!==this.latency_runs+1){return}if(j!==null){var g=new Date().getTime()-f;this.latencies.push(g)}if(this.latency_runs===0){this.latency=this.calc_latency()}this.defer(this.iterate)},img_loaded:function(f,g,h,j){if(h!==this.runs_left+1){return}if(this.results[this.nruns-h].r[f]){return}if(j===null){this.results[this.nruns-h].r[f+1]={t:null,state:null,run:h};return}var d={start:g,end:new Date().getTime(),t:null,state:j,run:h};if(j){d.t=d.end-d.start}this.results[this.nruns-h].r[f]=d;if(f>=a.end-1||typeof this.results[this.nruns-h].r[f+1]!=="undefined"){BOOMR.debug(this.results[this.nruns-h],"bw");if(h===this.nruns){a.start=f}this.defer(this.iterate)}else{this.load_img(f+1,h,this.img_loaded)}},finish:function(){if(!this.latency){this.latency=this.calc_latency()}var f=this.calc_bw(),d={bw:f.median_corrected,bw_err:parseFloat(f.stderr_corrected,10),lat:this.latency.mean,lat_err:parseFloat(this.latency.stderr,10),bw_time:Math.round(new Date().getTime()/1000)};BOOMR.addVar(d);if(!isNaN(d.bw)){BOOMR.utils.setCookie(this.cookie,{ba:Math.round(d.bw),be:d.bw_err,l:d.lat,le:d.lat_err,ip:this.user_ip,t:d.bw_time},(this.user_ip?this.cookie_exp:0),"/",null)}this.complete=true;BOOMR.sendBeacon();this.running=false},iterate:function(){if(this.aborted){return false}if(!this.runs_left){this.finish()}else{if(this.latency_runs){this.load_img("l",this.latency_runs--,this.lat_loaded)}else{this.results.push({r:[]});this.load_img(a.start,this.runs_left--,this.img_loaded)}}},setVarsFromCookie:function(l){var i=parseInt(l.ba,10),k=parseFloat(l.be,10),j=parseInt(l.l,10)||0,f=parseFloat(l.le,10)||0,d=l.ip.replace(/\.\d+$/,"0"),m=parseInt(l.t,10),h=this.user_ip.replace(/\.\d+$/,"0"),g=Math.round((new Date().getTime())/1000);if(d===h&&m>=g-this.cookie_exp){this.complete=true;BOOMR.addVar({bw:i,lat:j,bw_err:k,lat_err:f});return true}return false}}}(_WGLOBAL));(function(a){BOOMR=BOOMR||{};BOOMR.plugins=BOOMR.plugins||{};var b={complete:false,done:function(){var f,c,e,d;f=a.performance||a.msPerformance||a.webkitPerformance||a.mozPerformance;if(f&&f.timing&&f.navigation){BOOMR.info("This user agent supports NavigationTiming.","nt");c=a.performance.navigation;e=a.performance.timing;d={nt_red_cnt:c.redirectCount,nt_nav_type:c.type,nt_nav_st:e.navigationStart,nt_red_st:e.redirectStart,nt_red_end:e.redirectEnd,nt_fet_st:e.fetchStart,nt_dns_st:e.domainLookupStart,nt_dns_end:e.domainLookupEnd,nt_con_st:e.connectStart,nt_con_end:e.connectEnd,nt_req_st:e.requestStart,nt_res_st:e.responseStart,nt_res_end:e.responseEnd,nt_domloading:e.domLoading,nt_domint:e.domInteractive,nt_domcontloaded_st:e.domContentLoadedEventStart,nt_domcontloaded_end:e.domContentLoadedEventEnd,nt_domcomp:e.domComplete,nt_load_st:e.loadEventStart,nt_load_end:e.loadEventEnd,nt_unload_st:e.unloadEventStart,nt_unload_end:e.unloadEventEnd};if(e.secureConnectionStart){d.nt_ssl_st=e.secureConnectionStart}BOOMR.addVar(d)}this.complete=true;BOOMR.sendBeacon()}};BOOMR.plugins.NavigationTiming={init:function(){BOOMR.subscribe("page_ready",b.done,null,b);return this},is_complete:function(){return b.complete}}}(_WGLOBAL));BOOMR.t_end=new Date().getTime();
bc.utils.log("Loading the Beacon Instrumentation Library...");bc.utils.bind=function(b,c,a){if(b.addEventListener){b.addEventListener(c,a,false)}else{if(b.attachEvent){b.attachEvent("on"+c,a)}}};bc.utils.createClass=function(b){var c,a=function(){this.initialize.apply(this,arguments)};for(c in b){a.prototype[c]=b[c]}if(!a.prototype.initialize){a.prototype.initialize=function(){}}return a};bc.utils.extend=function(){return bc.utils.createClass(bc.utils.merge.apply(this,arguments))};bc.utils.toCamelCase=function(c,b){var a=c.replace(/(\-[a-z])/g,function(d){return d.toUpperCase().replace("-","")});if(b){a=c.charAt(0).toUpperCase()+c.slice(1)}return a};bc.utils.template=function(c,h,g){var a="",b,d,f,e=g||{};bc.utils.merge(e,bc.data,{action:h});if(c.value){a=c.value}else{if(c.attribute&&typeof c.attribute==="string"){a=e[c.attribute];if(c.cases){a=bc.utils.conditionalTpl(c,a)}}else{if(c.template){a=bc.utils.simpleTpl(c.template,e)}else{if(c.attribute&&typeof c.attribute==="object"){a=bc.utils.attributeTpl(e,c.attribute)}else{if(c.attributes){a=bc.utils.attributesTpl(e,c.attributes,c.separator)}else{if(c.func&&typeof c.func==="function"){a=c.func.apply(this,e,{})}}}}}}a=bc.utils.format(c.format,a);return a};bc.utils.format=function(a,b){switch(a){case"LOWER_CASE":b=typeof result==="string"?b.toLowerCase():b;break;case"UPPER_CASE":b=typeof result==="string"?b.toUpperCase():b;break;case"CAMEL_CASE":b=typeof result==="string"?bc.utils.toCamelCase(b):b;break}return b};bc.utils.simpleTpl=function(b,d){var c,e,a,b=b||"";for(c in d){e=d[c];a=new RegExp("{{"+c+"}}","g");if(e){b=b.replace(a,e)}}return b};bc.utils.conditionalTpl=function(c,b){var d,a,e,f=false,b=b||"";e=c.cases;a=e.length;if(e&&a){for(d=0;d<a;d++){if(e[d]&&e[d].attrValue===b){b=e[d].value;f=true;break}}if(!f){b=c.defaultValue}}return b};bc.utils.attributeTpl=function(c,h){var j="",d,f,b,g,e,a=(h&&h.separator)||",";if(Array.isArray(h.properties)){b=h.properties;e=c[h.iterator]||{};f=b.length;for(d=0;d<f;d++){g=b[d];j+=(e[g]?e[g]:"")+a}}else{if(Array.isArray(c[h.iterator])){return c[h.iterator].join(a)}}return j.substr(0,j.length-1)};bc.utils.attributesTpl=function(e,m,l){var p="",n,f,d,h,o,b,j,c,g,a=(m&&m.separator)||",",l=l||",";if(Array.isArray(m.properties)){b=m.properties;c=e[m.iterator];if(Array.isArray(c)){h=c.length;for(d=0;d<h;d++){o=b.length;g=c[d]||{};for(f=0;f<o;f++){j=b[f];p+=(g[j]?g[j]:"")+a}p=p.substr(0,p.length-1);if(!l){return p}p+=l}}}return p.substr(0,p.length-1)};bc.handlers=bc.handlers||{};bc.classes.Handler={initialize:function(a){this.actions=a.actions;this.configuration=a.configuration},getParams:function(d,a){var e={},c,b;if(this.actions[d]!=="undefined"){c=this.actions[d];for(b in c){e[b]=bc.utils.template(c[b],d,a)}}return e},load:function(a){a()},tagAction:function(c,a,b){return 0}};bc.classes.Boomerang=bc.utils.extend({},bc.classes.Handler,{initialize:function(b){this.actions=b.actions;this.configuration=b.configuration;this.configuration.autorun=false;var a=this.configuration.beacon_url.replace(/.*:\/\//g,"");if(a.charAt(a.length-1)!=="/"){a+="/"}this.configuration.beacon_url="https://"+a+"beacon.gif";BOOMR.init(this.configuration);BOOMR.plugins.RT.startTimer("t_page",bc.options.start_time);BOOMR.plugins.RT.startTimer("t_window",bc.options.start_time)},getParams:function(b,a){return a},tagAction:function(d,f,b){var j=1,c=this.getParams(d,f),h,e,a=this.configuration.beacon_url,g;c.ts=c.ts||new Date().getTime();c.pv_id=bc.page_view_id;c.a=d;c.u=c.u||_WGLOBAL.document.URL.replace(/#.*/,"");c.ctx=b;if(d==="PAGE_READY"){delete c.u;if(bc.options.above_the_fold_end>0){BOOMR.plugins.RT.startTimer("t_atf",bc.options.start_time);BOOMR.plugins.RT.endTimer("t_atf",bc.options.above_the_fold_end)}BOOMR.plugins.RT.endTimer("t_page");if(!c.ctx&&(bc.options.bh==="beacon.samsclub.com"||bc.options.bh==="beacon.qa.samsclub.com")){if(_WGLOBAL.pageData&&typeof _WGLOBAL.pageData.page_type==="string"){c.ctx=_WGLOBAL.pageData.page_type}else{if(typeof _WGLOBAL.currentPageType==="string"){c.ctx=_WGLOBAL.currentPageType}}}BOOMR.addVar(c);BOOMR.page_ready()}else{c.r=c.r||_WGLOBAL.document.referrer;a=a+((a.indexOf("?")>-1)?"&":"?")+bc.utils.urlSerialize(c);g=new Image();g.src=a}return j}});bc.classes.Omniture=bc.utils.extend({},bc.classes.Handler,{initialize:function(a){this.actions=a.actions;this.configuration=a.configuration},tagError:function(b,a){},tagAction:function(f,e){var b,a=0,g=this.getParams(f,e)||{},d=g.reportSuite;if(!d){bc.utils.log("No report suite found for action ["+f+"]");return a}b=s_gi(d)||{};b=bc.utils.merge(b,g);if(b.t){var c=b.t();a=1}return a}});bc.commands._setOptions=function(a){bc.utils.merge(bc.options,a)};bc.commands._beforeTag=function(b,a){return a};bc.commands._afterTag=function(b,a){};bc.commands._tagAction=function(e,b,d){var c,f=0,a=d||bc.options.global_context;b=bc.commands._beforeTag(e,b);for(c in bc.handlers){f+=bc.handlers[c].tagAction(e,b,a)}bc.commands._afterTag(e,b);if(!f){bc.utils.log("The action ["+e+"] was tagged by "+f+" Partners")}};bc.commands._tagPageReady=function(a){a=a||{};bc.commands._tagAction("PAGE_READY",a)};bc.push=function(){var c,d,b,a;a=arguments.length;for(c=0;c<a;c++){d=arguments[c];if(Array.isArray(d)&&d.length){b=d[0];if(b!=="_setOptions"&&b.search("_set")&&d.lenth>1&&typeof d[1]==="function"){b=b.replace("set","");bc.commands[b]=d[1]}else{if(bc.commands.hasOwnProperty(b)){d.shift();bc.commands[b].apply(bc,d)}}}}};(function(e){var b,c,d="",a;for(b in e){d=bc.utils.toCamelCase(b,true);bc.handlers[b]=new bc.classes[d](bcc.partners[b])}a=_bcq;_bcq=bc;_bcq.push.apply(bc,a);if(window.parent&&window.parent._bcq){window.parent._bcq=_bcq}})(bcc.partners);
bc.utils.log("Loading the Data Sniffer...");(function(){var a=function(){bc.utils.log("Starting Sniffing...");_bcq.push(["_tagPageReady"])};if(bc.options.autorun){bc.utils.bind(_WGLOBAL,"load",a)}else{BOOMR.plugins.RT.endTimer("t_window",(new Date()).getTime())}})();
