rrequire(["jquery","j/jquery.cookie"],function(){var n=$("#IEPopup");$(window).load(function(){if($("html").hasClass("no-csstransforms3d")&&window.self==window.top&&$(window).width()>600){n.addClass("show");$(".modal-btn").on("click",function(){n.remove()})}else n.remove()})});
function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[];gtag("js",new Date);gtag("config","AW-616480175");
function gtag(){dataLayer.push(arguments)}gtag("event","conversion",{send_to:"AW-616480175/0Tq1CL29vtYBEK_7-qUC"});ttd_dom_ready(function(){if(typeof TTDUniversalPixelApi=="function"){var n=new TTDUniversalPixelApi;n.init("wdf5izy",["0t097eh"],"https://insight.adsrvr.org/track/up")}});window.dataLayer=window.dataLayer||[];gtag("js",new Date);gtag("config","AW-616480175");
window.registerLoading&&registerLoading("uri"),function(n){function s(n,r){var e,o=t.count(n);for(var u in r)i.call(r,u)&&(e=(""+u).toLowerCase(),f(n,e,u,r[u],o++))}function f(n,i,r,u,f){f===undefined&&(f=t.count(n));n[i]={name:r,value:u,index:f}}var i=Object.prototype.hasOwnProperty,r=function(n,t,i){return n&&n[0]===t?i?n.substring(1):n:!i&&n?t+n:n||""},u=function(n,t,i){return n&&n[n.length-1]===t?i?n.substring(0,n.length-1):n:!i&&n?n+t:n||""},e=function(n){return n?encodeURIComponent(""+n).replace(/['"\(\)]/g,function(n){switch(n){case"'":return"%27";case'"':return"%22";case"(":return"%28";case")":return"%29";default:return n}}):""},o=function(n){return jQuery.type(n)!=="object"||n.nodeType||jQuery.isWindow(n)?!1:n.constructor&&!i.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},t=function(n,i){if(Object.defineProperty){var f=undefined,e=undefined,h=undefined,o=undefined,s=undefined;Object.defineProperty(this,"Scheme",{get:function(){return u(f,":",!0)},set:function(n){f=u(n,":",!1)}});Object.defineProperty(this,"UserInfo",{get:function(){return u(e,"@",!0)},set:function(n){e=u(n,"@",!1)}});Object.defineProperty(this,"Port",{get:function(){return r(h,":",!0)},set:function(n){h=r(n,":",!1)}});Object.defineProperty(this,"Query",{get:function(){return r(o,"?",!0)},set:function(n){o=r(n,"?",!1)}});Object.defineProperty(this,"Hash",{get:function(){return r(s,"#",!0)},set:function(n){s=r(n,"#",!1)}});this.get=function(n){return!n||e||f&&f!="http:"&&f!="https:"?(f||"")+(this.Whack||"")+(e||"")+(this.Host||"")+(h||"")+(this.Path||"")+(o||"")+(s||""):(this.Path||"")+(o||"")+(s||"")}}else this.get=function(n){return!n||this.UserInfo||this.Scheme&&this.Scheme!="http:"&&this.Scheme!="https:"?(this.Scheme||"")+(this.Whack||"")+(this.UserInfo||"")+(this.Host||"")+(this.Port||"")+(this.Path||"")+(this.Query||"")+(this.Hash||""):(this.Path||"")+(this.Query||"")+(this.Hash||"")};this.toString=this.get;n&&typeof n=="string"?this.parse(n):n&&n.constructor===t&&(this.Scheme=n.Scheme,this.Whack=n.Whack,this.UserInfo=n.UserInfo,this.Host=n.Host,this.Port=n.Port,this.Path=n.Path,this.Query=n.Query,this.Hash=n.Hash);i&&this.extend(i)};t.prototype.QueryString=function(n,i){var e,r,u=t.parseQuery(this.Query)||{};if(n)if(n&&o(n))s(u,n);else{if(e=(""+n).toLowerCase(),r=u[e],i===undefined)return r?r.value:undefined;r?r.value=i:f(u,e,n,i)}else return;return this.Query=t.serialize(u),this};t.prototype.RemoveQuery=function(){var n,i=Array.prototype.slice.call(arguments),r=i.length,u=0;if(r){if(n=t.parseQuery(this.Query),!n)return}else return;while(u<r)delete n[i[u++]];return this.Query=t.serialize(n),this};t.prototype.parse=function(n){var t=/^(?:(\w{3,8}:)?(\/\/)?([\w\-\.:]+@)?([\w\-\.]+)(:\d+)?)?(\/?[^\?#]+)?(\?[^#]*)?(#.*)?$/.exec(n);return t&&(this.Scheme=t[1],this.Whack=t[2],this.UserInfo=t[3],this.Host=t[4],this.Port=t[5],this.Path=t[6],this.Query=t[7],this.Hash=t[8],this.Path||this.Scheme||!this.Host||(this.Path=this.Host,this.Host=undefined)),this};t.prototype.extend=function(n){var r,u,s,f,c,e,o,h;if(n)if(n.constructor===t)r=n;else if(typeof n=="string")r=new t(n);else if(n.constructor===Object)u=t.parseQuery(n);else return this;else return this;if(r&&r.Path)this.Scheme=r.Scheme||this.Scheme,this.Host=r.Host||this.Host,r.Path[0]==="/"?this.Path=r.Path:(s=this.Path.split("/"),s.pop(),this.Path=s.concat(r.Path.split("/")).join("/")),this.Query=r.Query,this.Hash=r.Hash;else{if(r&&r.Query&&(u=t.parseQuery(r.Query)),u){f=t.parseQuery(this.Query)||{};c=t.count(f);for(e in u)i.call(u,e)&&(o=u[e],h=f&&f[e],h?h.value=o.value:(o.index=c++,f[e]=o));this.Query=t.serialize(f)}r&&r.Hash&&(this.Hash=r.Hash)}return this};t.prototype.addChild=function(n){var t,i;if(n)n[0]==="/"?this.extend(n):(t=this.Path?this.Path.split("/"):["",""],i=t[t.length-1],i?(i=i.replace(/\.\w+$/,""),t[t.length-1]=i,t.push(n)):t[t.length-1]=n,this.Path=t.join("/"));else return this;return this};t.parseQuery=function(n){var r,u,e,f,o,t,h;if(n){if(n.constructor===Object){t=0;f={};for(r in n)i.call(n,r)&&(u=n[r],e=r.toLowerCase(),f[e]=u&&u.name?u:{name:r,value:u,index:t++});return f}if(typeof n=="string"){for(n[0]==="?"&&(n=n.substring(1)),f={},o=n.split("&"),t=0,h=o.length;t<h;t++){var u,s=o[t].split("="),r=s[0],e=r.toLowerCase();u=s[1]===undefined?null:decodeURIComponent((""+s[1]).replace(/\+/g,"%20"));f[e]={name:r,value:u,index:t}}return f}}else return undefined};t.serialize=function(n){var t,o,u,r,h,s,f;if(n&&typeof n!="string"){if(n.constructor===Object){t=[];for(o in n)i.call(n,o)&&t.push(n[o]);for(t.sort(function(n,t){var i=typeof n.index=="number"?n.index:9999,r=typeof t.index=="number"?t.index:9999;return i-r}),u=[],r=0,h=t.length;r<h;r++)if(s=t[r].name,f=t[r].value,f===undefined)continue;else f===null?u.push(s):u.push(s+"="+e(f||""));return u.join("&")}return null}return n};t.count=function(n){var t=0,r;if(n)for(r in n)i.call(r,n)&&t++;return t};n.URI=t;window.register&&window.register("uri")}(this);
$.widget("cms.masthead",{options:{overlap:!0,speed:200,scrollCount:1},_create:function(){var n=new URI(window.location.href),i=n.Hash&&n.Hash.split("#").pop(),t=$('a[name="'+i+'"]'),r=this,u=document.documentElement.clientWidth;this.transitionEvent=this._whichTransitionEvent();this.scrollCount=this.element.innerHeight()-1;this.lastScroll=0;this.nav=this.element.find("nav > ul").attr("role","menubar");this.items=this.nav.find("li a").attr("role","menuitem");this.flyNavs=this.nav.find('[data-role="fly-nav"]').attr("role","menu");this.element.on("mouseenter mouseleave",$.proxy(this._trackFocus,this));if(!this.options.overlap){window.buffer=this.element.innerHeight();setTimeout($.proxy(function(){window.buffer=this.element.innerHeight();i&&t&&t.length&&setTimeout(this._checkAnchor.apply(this,[t]),100)},this),500);$(window).onidle("resize",$.proxy(function(){document.documentElement.clientWidth!==u&&(u=document.documentElement.clientWidth,window.buffer=this.element.innerHeight())},this),250)}$(window).onidle("scroll",$.proxy(this._checkScroll,this),100);$('a[href*="#"]').on("click",function(t){var i=$(t.target).is("a")?t.target:t.currentTarget,u=new URI(i.href),e=u.Hash,f=$('a[name="'+e+'"]');t.preventDefault();n.Path==u.Path&&f.length?r._checkAnchor.apply(r,[f]):window.location=i.href});this.flyNavs.length!=0&&document.documentElement.clientWidth>985&&this._flyManagement()},_flyManagement:function(){var t=this.flyNavs.closest("li"),i=t.children("a").attr({"aria-haspopup":!0,"aria-expanded":!1}),n=this.element.find(".desktop-nav > li"),r=n.children("a");i.on("focus",function(){t.removeClass("open").children("a").attr({"aria-expanded":!1});$(this).closest("li").addClass("open").children("a").attr({"aria-expanded":!0})});r.on("keydown",function(t){if(t.keyCode==9&&t.shiftKey){$(this).closest("li").removeClass("open").children("a").attr({"aria-expanded":!1});var i=n.eq($(this).closest("li").index()-1).children("a");i.is('[aria-haspopup="true"]')&&(t.preventDefault(),n.eq($(this).closest("li").index()-1).children("a").focus())}});this.flyNavs.find("li a").last().on("keydown",function(n){n.keyCode==9&&(n.shiftKey||$(this).closest("li.open").removeClass("open").children("a").attr({"aria-expanded":!1}))})},_trackFocus:function(n){window.focused=n.type==="mouseenter"?!0:!1},_checkFocus:function(){function i(){window.focused===!0&&$("html").is(".up-scroll")&&$("body").is(".fixed")?(clearTimeout(n),t()):$("html").addClass("down-scroll").removeClass("up-scroll")}function t(){n=setTimeout(function(){i()},4e3)}var n;t()},_checkScroll:function(){var n=$(window).scrollTop();$("html").hasClass("anchors")||(n>this.scrollCount?$("body").addClass("fixed"):$("body").removeClass("fixed"));this.lastScroll<n-99?$("html").addClass("down-scroll").removeClass("up-scroll"):this.lastScroll>n+window.innerHeight/3&&($("html").removeClass("down-scroll").addClass("up-scroll"),document.documentElement.clientWidth>985&&this._checkFocus());this.lastScroll=n},_checkAnchor:function(n){var t=n.offset().top;t-=this.options.overlap?this.element.innerHeight():this.element.innerHeight()-window.buffer;this._runScroll.apply(this,[t])},_runScroll:function(n){n<500&&(this.options.speed=100);$("html, body").animate({scrollTop:n},this.options.speed,function(){$("html").removeClass("anchors")})},_whichTransitionEvent:function(){var n,i=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in t)if(i.style[n]!==undefined)return t[n]}});window.register&&window.register("/includes/js/header-script.js");
$.widget("cms.simpleShowHide",{options:{className:"show",slider:!1,fader:!1,speed:500},_create:function(){this.element.attr({role:"dialog"});this.btn=this.element.find('[data-role="btn"]').attr({role:"button",tabindex:0,"aria-pressed":!1,"aria-haspopup":!1});this.panel=this.element.find('[data-role="panel"]').attr({"aria-hidden":!0});var n=this._handleEvents.bind(this);this.btn.on("click keydown",n);$(document).on("keydown",function(n){n.keyCode===27&&this.element.is("."+this.options.className)&&this.hidePanel()})},_handleEvents:function(n){(n.type!=="keydown"||n.keycode===13)&&(this.element.is("."+this.options.className)?this.hidePanel():this.showPanel())},hidePanel:function(){this.element.removeClass(this.options.className).trigger("hidepanel");this.panel.attr({"aria-hidden":!0});this.btn.attr({"aria-pressed":!1});this.options.slider===!0?this.panel.slideUp(this.options.speed):this.options.fader===!0&&this.panel.fadeOut(this.options.speed);this.btn.length===1?this.btn.focus():this.btn.filter('[ data-type="open" ]').focus()},showPanel:function(){this.element.addClass(this.options.className).trigger("showpanel");this.panel.attr({"aria-hidden":!1});this.btn.attr({"aria-pressed":!0});this.options.slider===!0?this.panel.slideDown(this.options.speed):this.options.fader===!0&&this.panel.fadeIn(this.options.speed);this.panel.focus()}});window.register&&window.register("/includes/js/simple-show-hide-script.js");
var searchBtn,fontBtn;rrequire(["uri","/includes/js/header-script.js","/includes/js/simple-show-hide-script.js"],function(){var n=$("#HeaderZone"),t;body=$("body");body.is(".home-page")?(t=window.innerWidth-1201,t===Math.abs(t)?(n.masthead({overlap:!0,padBanner:!1}),$(".home-page .side-header-area a,.home-page .footer-header a ").removeClass("btn v1 mob-btn-width").addClass("side-header")):(n.masthead({overlap:!1,padBanner:!1}),$(".home-page .side-header-area a,.home-page .footer-header a").addClass("btn v1 mob-btn-width").removeClass("side-header"))):n.masthead();$("html").addClass("header-v1");$(document).ready(function(){var n=$("body"),t=n.position();$(window).scroll(function(){var t=$(window).scrollTop();t==0?n.addClass("top"):n.removeClass("top")})});n.simpleShowHide({className:"mm-open",htmlClass:!0});$("html").addClass("mobile-ready")});searchBtn=$(".search-btn, .search-btn-close, .header-pop .overlay");searchBtn.click(function(){$("body").toggleClass("search-open");$("#HeaderZone").toggleClass("mm-open")});$(document).keyup(function(n){n.keyCode==27&&($("body").removeClass("search-open"),$("#HeaderZone").removeClass("mm-open"))});$(".search-btn").click(function(){$(".header-pop").find("input").focus();$("#FooterZone").addClass("search-open")});$(".search-btn-close").click(function(){$(".header-pop").find("input").blur()});$(".top-bar .search-input input").change(function(){$(".mobile-menu .search-input input").val($(".top-bar .search-input input").val())});$(".mobile-menu .search-input input").change(function(){$(".top-bar .search-input input").val($(".mobile-menu .search-input input").val())});$(".top-bar .search-input input").keyup(function(){$(".mobile-menu .search-input input").val($(".top-bar .search-input input").val())});$(".mobile-menu .search-input input").keyup(function(){$(".top-bar .search-input input").val($(".mobile-menu .search-input input").val())});fontBtn=$(".bc-buttons a.font");fontBtn.click(function(n){n.preventDefault();var t=$(".content-zone");t.toggleClass("large-fonts")});$(".mobile-menu .see-more-babies").click(function(){$(this).toggleClass("active").siblings("ul").slideToggle(400).parent().siblings().children("span").removeClass("active").siblings("ul").slideUp(400);$(this).hasClass("active")?$(this).parent().siblings(":not(.nohide)").slideUp(400):$(this).parent().siblings().slideDown(400)});$(".mobile-menu .dd-close").click(function(){$(this).parent("ul").slideUp(400).siblings("span").removeClass("active").parent().siblings().slideDown(400)});