', atx:'', fda:0, lda:0}); catbanarr.push({cn:'view-all-departments/birkenstock', fbn:'birkenstock', subcat:true, showmsg:true, bmgtoch:'
', bmg:'
', atx:'', fda:0, lda:0}); catbanarr.push({cn:'view-all-departments/birkenstocks', fbn:'birkenstocks', subcat:true, showmsg:true, bmgtoch:'
', bmg:'
', atx:'', fda:0, lda:0}); if(searchpagegotthemsg=="no"){ for(s=0;s
"); }else if($(".store-circular").html()!=undefined){ $(".store-circular").prepend("
"); $(".store-circular").prepend(storeimg); }}function buildStoreSchema(wh){ var wh2temp=""; wh2temp=getStoreIDforFront(wh); var wh2=wh2temp; var storeimgtemp='https://www.dunhamssports.com/on/demandware.static/-/Library-Sites-AutobahnSharedLibrary/default/dw5aa9d895/assets/img/store-fronts/1.jpg'; var storesecondind=storeimgtemp.length-5; var storeimgpath=storeimgtemp.substring(0,storesecondind); var storeimgnamepath=storeimgpath+""+wh2+".jpg"; //var storeimg=""; var whid=""; var phtemp=""; var addr1temp=""; var addr2temp=""; var cittemp=""; var stntemp=""; var zctemp=""; var suhtemp=""; var mohtemp=""; var tuhtemp=""; var wehtemp=""; var thhtemp=""; var frhtemp=""; var sahtemp=""; var storeurl="https://dunhamssportsforms.com/assets/php/returnstoredetails.php"; var storeqstr="whst="+wh; $.ajax({ type:'GET', url:storeurl, dataType:'json', data:storeqstr, success:function(r){ if(r.status==="success"){ //console.log("SUCCESS - "+r.message); phtemp=r.s.ph; addr1temp=r.s.addr1; addr2temp=r.s.addr2; cittemp=r.s.cit; stntemp=r.s.stn; zctemp=r.s.zc; suhtemp=r.s.suh; mohtemp=r.s.moh; tuhtemp=r.s.tuh; wehtemp=r.s.weh; thhtemp=r.s.thh; frhtemp=r.s.frh; sahtemp=r.s.sah; name2pass="Dunham's Sports in "+cittemp+", "+stntemp; $("#storefrontimg").attr("alt", name2pass).attr("title", name2pass); var addr2pass=""+addr1temp; var mohtemparr=mohtemp.split("|"); var mohopen2pass="2015-07-27T"+mohtemparr[0]; var mohclos2pass="2015-07-27T"+mohtemparr[1]; var sahtemparr=sahtemp.split("|"); var sahopen2pass="2015-07-27T"+sahtemparr[0]; var sahclos2pass="2015-07-27T"+sahtemparr[1]; var suhtemparr=suhtemp.split("|"); var suhopen2pass="2015-07-27T"+suhtemparr[0]; var suhclos2pass="2015-07-27T"+suhtemparr[1]; if(addr2temp!=""){ addr2pass+=" "+addr2temp; } var storschemadata={ "@context" : "http://schema.org", "@type" : "LocalBusiness", "name" : name2pass, "image" : storeimgnamepath, "telephone" : phtemp, "address" : { "@type" : "PostalAddress", "streetAddress" : addr2pass, "addressLocality" : cittemp, "addressRegion" : stntemp, "postalCode" : zctemp }, "openingHoursSpecification" : [ { "@type" : "OpeningHoursSpecification", "dayOfWeek" : { "@type" : "DayOfWeek", "name" : "Mon-Fri" }, "opens" : mohopen2pass, "closes" : mohclos2pass }, { "@type" : "OpeningHoursSpecification", "dayOfWeek" : { "@type" : "DayOfWeek", "name" : "Sat" }, "opens" : sahopen2pass, "closes" : sahclos2pass }, { "@type" : "OpeningHoursSpecification", "dayOfWeek" : { "@type" : "DayOfWeek", "name" : "Sun" }, "opens" : suhopen2pass, "closes" : suhclos2pass } ] }; //creating the script element and storing the JSON-LD var storscript = document.createElement('script'); storscript.type = "application/ld+json"; storscript.innerHTML = JSON.stringify(storschemadata); document.getElementsByTagName('head')[0].appendChild(storscript); }else if(r.status==="error"){ console.log("ERROR - "+r.message); //updStoreDD('old'); } } }); }function getParameterByName(name, url){ if(!url){ url=window.location.href; } name=name.replace(/[\[\]]/g, '\\$&'); var regex=new RegExp('[?&]'+name+'(=([^]*)|&|#|$)'),results=regex.exec(url); if(!results){ return null; } if(!results[2]){ return ''; } return decodeURIComponent(results[2].replace(/\+/g, ' '));}/* FUNCTIONS - END */
"; trinote+="
"; $("#textreminderdiv > div").append(trinote); $("#textreminder").css("width", "70px"); $("#textreminder").on('change', function(e){ var tr=$(this).val(); //show or hide the QR Code and text alert message if(tr=="Yes"){ $("#scanqrdiv").css("display", "inline-block"); //alert("text COACH to 78557 to opt-in for weekend reminders from the same number you typed into this form. Then reply with a Y to confirm"); }else{ $("#scanqrdiv").css("display", "none"); } }); //$("#textreminderdiv").hide(); }});/* FUNCTIONS */function wrJQUIToHead(){ var jquijs='https://www.dunhamssports.com/on/demandware.static/-/Library-Sites-AutobahnSharedLibrary/en_US/v1728103637428/assets/js/jquery-ui.min.js'; var jquicss='https://www.dunhamssports.com/on/demandware.static/-/Library-Sites-AutobahnSharedLibrary/en_US/v1728103637428/assets/css/jquery-ui.min.css'; var jquistyle=document.createElement('link'); jquistyle.type="text/css"; jquistyle.href=jquicss; jquistyle.rel="stylesheet"; document.getElementsByTagName('head')[0].appendChild(jquistyle); var jquiscript=document.createElement('script'); jquiscript.type="text/javascript"; jquiscript.src=jquijs; document.getElementsByTagName('head')[0].appendChild(jquiscript);}function biClicked(whic){ //whic=0 switch (whic){ case 0: handleDropDownCh("non"); break; case 1: handleDropDownCh("team"); break; case 2: handleDropDownCh("sportsmen"); break; case 3: handleDropDownCh("company"); break; case 4: handleDropDownCh("group-organization"); break; case 5: handleDropDownCh("military"); break; default: handleDropDownCh("non"); break; }}function initSourceVal(){ //determine if the sc val exists in the url, if true then add a hidden val to the form to pass this through - add the sourcecode to a cookie val in case the visitor navigates away from this page before coming back and submitting ##cookie //check for sc in url and in cookie, if exists pass val through to form either in action as querystring or append an input to the form: // new source campaign flow: var disprosctoch=getCookie("disprosc"); //var thisisnow=new Date(); //var ttdiff=0; var cururltoch = "" + window.location.href; var sourcecampaign = gPBN('sc', cururltoch.toLowerCase()); //1. check if URL has sc value if so then set the var and cookie if(sourcecampaign){//set var and cookie setCookie("disprosc", sourcecampaign, 365); }else{//check if cookie or set all to none if(disprosctoch){ sourcecampaign=disprosctoch; }else{ sourcecampaign="none"; } } return sourcecampaign;}function updTermsLink(){ var returnsc=initSourceVal(); var scinput=''; $("div.update-section").each(function (){ $(this).prepend(scinput); }); $(".tab").each(function(){ var olpotxt=" (No P.O. Boxes if requesting over 1,000 cards)"; var thpo=$(this).html(); var thpotemp=thpo.replace(olpotxt, ""); $(this).html(thpotemp); });}function chDeliveryMethod(){ //$("#Company div.checkbox-group > label:eq(2)").css("display", "none"); rwLabels("Company"); //$("#Sportsmens-Club") rwLabels("Sportsmens-Club"); //$("#Group-Organization") rwLabels("Group-Organization"); //hide the 3rd label and rewrite the first two}function chDeliveryMethodPCM(){ //$("#Company div.checkbox-group > label:eq(2)").css("display", "none"); //rwLabelsPleaseContactMe("Company"); rwLabels("Company"); //$("#Sportsmens-Club") rwLabelsPleaseContactMe("Sportsmens-Club"); //rwLabels("Sportsmens-Club"); //$("#Group-Organization") rwLabels("Group-Organization"); //hide the 3rd label and rewrite the first two rwLabelsPCMTeam("Team");}function rwLabelsPCMTeam(wh){ //if(cururl.indexOf('staging-na02')!=-1){ //default "Email my offers" radio as checked onload $("input[name='distributionOffer']").each(function (){ if ($(this).val() == "Email my offers"){ $(this).prop('checked', true); //$(this).val("Email my offers weekend flyer but Print and Mail my discount cards"); } }); updSportsDD(); //hide all radios //replace label from "Distribution of Offers" to $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > b").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > p").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > label:eq(0)").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > label:eq(1)").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > label:eq(2)").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > br:eq(0)").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > br:eq(1)").css("display", "none"); $("#"+wh+" > form > div > ul > li:contains('Distribution of Offers *') > br:eq(2)").css("display", "none"); $("#distribution-block").show(); //add checkbox with "Please call me" var newliforteam=''; newliforteam+='
Can't receive the offers via email? Click below and we will mail your Discount Cards, and Team Weekend Flyers.
'; $("#"+wh+" > form > div > ul > li:contains('Program Status')").after(newliforteam); //}}function rwLabelsPleaseContactMe(wh){ //label 1 replace: var labelheadera="Preferred Delivery Method (select all that apply): * "; var labelheaderb="Can't receive the offers via email? CClick below and we will mail your Discount Cards, and Team Weekend Flyers."; //Not Required! var labelheadertemp=$("#"+wh+" > form > div > ul > li:eq(11) > p.inline-display > b").html(); var newheader=labelheadertemp.replace(labelheadera, labelheaderb); $("#"+wh+" > form > div > ul > li:eq(11) > p.inline-display > b").html(newheader); var l1a="Print & Mail (please specify how many below)"; var l1b="Please Contact Me"; var l1temp=$("#"+wh+" div.checkbox-group > label:eq(0)").html(); var l1=l1temp.replace(l1a, l1b); $("#"+wh+" div.checkbox-group > label:eq(0)").html(l1); $("#"+wh+" div.checkbox-group > label:eq(1)").css("display", "none"); $("#"+wh+" div.checkbox-group > label:eq(2)").css("display", "none"); rebuildAllDisProLIs(wh);}function rebuildAllDisProLIs(wh){ var newsecondli=''; newsecondli+='
'; $("#"+wh+" > form > div > ul > li:eq(1)").before(newsecondli); $("#"+wh+" > form > div > ul > li.printed-needed > p > b").html("How many printed cards will you need?");}function rwLabels(wh){ //update the drop-down with a Military option: //label 1 replace: var l1a="Print & Mail (please specify how many below)"; var l1b="Printed Cards
We understand there may be special circumstances that require printed cards. By checking this box, you consent to Dunham's contacting you for further information."; var l1temp=$("#"+wh+" div.checkbox-group > label:eq(0)").html(); var l1=l1temp.replace(l1a, l1b); $("#"+wh+" div.checkbox-group > label:eq(0)").html(l1); //label 2 replace: var l2a="Post a PDF to Internal Site or Member Informational Area"; var l2b="Digital Download
You will receive an email that includes a PDF that you can post in an informational area or on an internal website. This communication will include instructions on how to download your discount directly to your Mobile Wallet app."; var l2temp=$("#"+wh+" div.checkbox-group > label:eq(1)").html(); var l2=l2temp.replace(l2a, l2b); $("#"+wh+" div.checkbox-group > label:eq(1)").html(l2); $("#"+wh+" div.checkbox-group > label:eq(2)").css("display", "none");}function chSetTeamRadio(){ $("input[name='distributionOffer']").each(function (){ if ($(this).val() == "Email my weekend flyer but Print and Mail my discount cards"){ $(this).val("Email my offers weekend flyer but Print and Mail my discount cards"); } });}function handleDropDownCh(whpsearch){ //whpsearch="" if (whpsearch == "company"){ $("#program-select").val("Company").change(); } else if (whpsearch == "sportsmen"){ $("#program-select").val("Sportsmens-Club").change(); } else if (whpsearch == "group-organization"){ $("#program-select").val("Group-Organization").change(); } else if (whpsearch == "team"){ $("#program-select").val("Team").change(); } else if (whpsearch == "military"){ $("#program-select").val("Military").change(); } else { $("#program-select").val("non").change(); }}function updateHeaderTxt(wh){ $("#discountsbody > h1").html(wh);}function setUrlParam(whpParam){ const url = new URL(window.location); url.searchParams.set('whp', whpParam); window.history.pushState({}, '', url);}function chDiscountQSTR(){ if(cururl.indexOf('/Discounts-Show')!=-1||cururl.indexOf('/discounts-show')!=-1){ updateDisProDD(); dicururl = "" + window.location.href; whpsearch = gPBN('whp', dicururl.toLowerCase()); handleDropDownCh(whpsearch); //alert(whpsearch); //console.log("IN: hpcaroscont"); if(whpsearch!="non"&&whpsearch!=""){ //console.log("HIDE: hpcaroscont"); $(".hpcaroscont").css("display", "none"); } }}function updSportsDD(){ var ns1="
\n"; ns1+="
\n"; $("select[name='Sports']").append(ns1);}function updateDisProDD(){ var opttoadd="
"; $("#program-select").append(opttoadd); }function gPBN(name, url){ if (!url) url = window.location.href; name = name.replace(/[\[\]]/g, '\\$&'); var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)'), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, ' '));}var dynlivsto=[];dynlivsto[0]={id:"", tz:"", ph:"", stn:"", zc:"", addr1:"", addr2:"", cit:""};//dynlivsto.push({id:"", tz:"", ph:"", stn:"", zc:"", addr1:"", addr2:"", cit:""});var womcarh="no";var custstid="";var dovestr=[];dovestr.push({id:"070"});dovestr.push({id:"192"});dovestr.push({id:"270"});dovestr.push({id:"196"});dovestr.push({id:"274"});dovestr.push({id:"110"});dovestr.push({id:"275"});dovestr.push({id:"078"});dovestr.push({id:"277"});dovestr.push({id:"278"});dovestr.push({id:"235"});dovestr.push({id:"038"});dovestr.push({id:"237"});dovestr.push({id:"238"});dovestr.push({id:"284"});dovestr.push({id:"241"});dovestr.push({id:"243"});dovestr.push({id:"244"});dovestr.push({id:"124"});dovestr.push({id:"201"});dovestr.push({id:"245"});dovestr.push({id:"202"});dovestr.push({id:"247"});dovestr.push({id:"208"});dovestr.push({id:"250"});dovestr.push({id:"251"});dovestr.push({id:"175"});dovestr.push({id:"176"});dovestr.push({id:"253"});dovestr.push({id:"177"});dovestr.push({id:"210"});dovestr.push({id:"211"});dovestr.push({id:"014"});dovestr.push({id:"179"});dovestr.push({id:"212"});dovestr.push({id:"213"});dovestr.push({id:"215"});dovestr.push({id:"259"});dovestr.push({id:"216"});dovestr.push({id:"217"});dovestr.push({id:"218"});dovestr.push({id:"219"});dovestr.push({id:"181"});dovestr.push({id:"182"});dovestr.push({id:"260"});dovestr.push({id:"263"});dovestr.push({id:"220"});dovestr.push({id:"264"});dovestr.push({id:"221"});dovestr.push({id:"225"});dovestr.push({id:"227"});dovestr.push({id:"229"});