var bepns=bepns||function(n,t){function rt(){if(u=n("id_rh"),i=n("bepfo"),!i){var r=n("id_rwl");r&&(i=t("div"),i.id="bepfo",i.className=o,r.parentNode&&r.parentNode.insertBefore(i,r.nextSibling))}ft();sj_be(u,h,b,!1);sj_evt.bind(w,k,!1);sj_evt.bind(p,ht);sj_evt.bind("onP1",ut,1);sj_evt.bind("id:refreshed",et,1)}function ut(){var n=0,t=setInterval(function(){u&&u.offsetWidth>0&&u.offsetHeight>0?(clearInterval(t),sj_evt.fire("bepready",d)):n==80&&clearInterval(t);n++},400)}function ft(){st(u,it)}function et(){ot(_ge("idd_rwds"),_ge("idd_rwdstrial"))}function ot(n,t){n&&t&&(t.href=n.href,n.h?t.h=n.h:n.getAttribute&&n.getAttribute("h")&&t.setAttribute("h",n.getAttribute("h")))}function st(n,t){n&&(n.href=t)}function ht(n){n[1]!==y&&e()}function s(n,t){if(n&&n.className){var i=" "+n.className+" ";return i.indexOf(" "+t+" ")!==-1}return!1}function a(n,t){n&&!s(n,t)&&(n.className+=" "+t)}function v(n,t){if(s(n,t)){var i=new RegExp("(\\s|^)"+t+"(\\s|$)","g");n.className=n.className.replace(i," ")}}function b(n){i&&(s(i,o)?nt(n):e(n))}function k(n){i&&(!i||s(i,o)?nt(n):e(n),sj_evt.unbind(w,k))}function ct(){u&&sj_ue(u,h,b,!1)}function d(n){typeof _H!="undefined"&&(n&&n>0?lt():g())}function lt(){a(u,"rigleamon")}function g(){v(u,"rigleamon")}function nt(n){if(sj_evt.fire("focusChange","bep"),i){i.firstChild||(r=t("iframe"),r.id="bepfm",r.frameBorder="no",r.scrolling="no",r.height=0,sj_be(r,tt,yt,!1),i.appendChild(r),f=t("div"),f.id="bepfl",f.innerText=f.textContent="Loading...",i.appendChild(f),vt(f));var w=_w.location.search.substr(1),g=/(^|&)rewardstesthooks=1(&|$)/i.exec(w),b=/(?:^|&)rewardsbag=([^&]*)(?:&|$)/i.exec(w),s=new Date,k=s.getDate(),d=s.getMonth()+1,nt=(d<10?"0":"")+d+"/"+(k<10?"0":"")+k+"/"+s.getFullYear();r.src="/rewardsapp/bepflyoutpage?style=modular&date="+nt+(g&&b?"&atlahostname=localhost&bag="+b[1]:"");v(i,o);u.setAttribute("aria-expanded","true")}a(u,"openfo");sj_sp(n);sj_evt.fire(p,y);sj_be(_d,h,e,!0);sj_be(_d,c,l,!0)}function e(n){s(i,o)||a(i,o);v(u,"openfo");typeof _H!="undefined"&&g();u.setAttribute("aria-expanded","false");sj_ue(_d,h,e,!0);sj_ue(_d,c,l,!0);r&&r.contentWindow&&sj_ue(r.contentWindow.document,c,l,!0);n&&sj_sp(n)}function at(n){n&&(n.style.display="none")}function vt(n){n&&(n.style.display="block")}function yt(){at(f);r.height=Math.min(r.contentWindow.document.body.scrollHeight,569);r&&r.contentWindow&&sj_be(r.contentWindow.document,c,l,!0)}var y="bepfo",p="onPopTR",w="openbep",u,i,f,r,h="click",c="keyup",tt="load",o="b_hide",it="javascript:void(0)",l=function(n){var f=n.which||n.keyCode,i=sj_et(n),t;if(f==27){e(n);u.focus();return}if(f==9&&i&&r){if(t=i.nodeName,t=="BODY"||t=="HTML"||t=="#document")return;r.contentWindow.document.body.contains(i)||e(n)}};return rt(),{sg:d,ubc:ct}}(_ge,sj_ce)