function setCookie(e, t, n) {
    var o = new Date;
    o.setTime(o.getTime() + 24 * n * 60 * 60 * 1e3);
    var i = "expires=" + o.toUTCString();
    document.cookie = e + "=" + t + ";" + i + ";path=/"
}
function getCookie(e) {
    for (var t = e + "=", n = document.cookie.split(";"), o = 0; o < n.length; o++) {
        for (var i = n[o]; " " == i.charAt(0);)i = i.substring(1);
        if (0 == i.indexOf(t))return i.substring(t.length, i.length)
    }
    return""
}
function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: "en", includedLanguages: "am,ar,da,de,en,es,fr,hi,hmn,ig,ja,ko,lo,no,ru,so,sv,sw,vi,yo,zh-CN,zh-TW", layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: !0, gaId: "UA-26951838-1"}, "google_translate_element")
}
var _extends = Object.assign || function (e) {
    for (var t = 1; t < arguments.length; t++) {
        var n = arguments[t];
        for (var o in n)Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o])
    }
    return e
}, _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
    return typeof e
} : function (e) {
    return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
!function (e, t) {
    "object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : e.LazyLoad = t()
}(this, function () {
    "use strict";
    var e = {elements_selector: "img", container: window, threshold: 300, throttle: 150, data_src: "original", data_srcset: "original-set", class_loading: "loading", class_loaded: "loaded", class_error: "error", class_initial: "initial", skip_invisible: !0, callback_load: null, callback_error: null, callback_set: null, callback_processed: null}, t = !("onscroll"in window) || /glebot/.test(navigator.userAgent), n = function (e, t) {
        e && e(t)
    }, o = function (e) {
        return e.getBoundingClientRect().top + window.pageYOffset - e.ownerDocument.documentElement.clientTop
    }, i = function (e, t, n) {
        return(t === window ? window.innerHeight + window.pageYOffset : o(t) + t.offsetHeight) <= o(e) - n
    }, s = function (e) {
        return e.getBoundingClientRect().left + window.pageXOffset - e.ownerDocument.documentElement.clientLeft
    }, a = function (e, t, n) {
        var o = window.innerWidth;
        return(t === window ? o + window.pageXOffset : s(t) + o) <= s(e) - n
    }, r = function (e, t, n) {
        return(t === window ? window.pageYOffset : o(t)) >= o(e) + n + e.offsetHeight
    }, l = function (e, t, n) {
        return(t === window ? window.pageXOffset : s(t)) >= s(e) + n + e.offsetWidth
    }, c = function (e, t, n) {
        return!(i(e, t, n) || r(e, t, n) || a(e, t, n) || l(e, t, n))
    }, d = function (e, t) {
        var n = new e(t), o = new CustomEvent("LazyLoad::Initialized", {detail: {instance: n}});
        window.dispatchEvent(o)
    }, u = function (e, t) {
        var n = e.parentElement;
        if ("PICTURE" === n.tagName)for (var o = 0; o < n.children.length; o++) {
            var i = n.children[o];
            if ("SOURCE" === i.tagName) {
                var s = i.dataset[t];
                s && i.setAttribute("srcset", s)
            }
        }
    }, m = function (e, t, n) {
        var o = e.tagName, i = e.dataset[n];
        if ("IMG" === o) {
            u(e, t);
            var s = e.dataset[t];
            return s && e.setAttribute("srcset", s), void(i && e.setAttribute("src", i))
        }
        if ("IFRAME" === o)return void(i && e.setAttribute("src", i));
        i && (e.style.backgroundImage = "url(" + i + ")")
    }, g = function (t) {
        this._settings = _extends({}, e, t), this._queryOriginNode = this._settings.container === window ? document : this._settings.container, this._previousLoopTime = 0, this._loopTimeout = null, this._boundHandleScroll = this.handleScroll.bind(this), this._isFirstLoop = !0, window.addEventListener("resize", this._boundHandleScroll), this.update()
    };
    g.prototype = {_reveal: function (e) {
        var t = this._settings, o = function o() {
            t && (e.removeEventListener("load", i), e.removeEventListener("error", o), e.classList.remove(t.class_loading), e.classList.add(t.class_error), n(t.callback_error, e))
        }, i = function i() {
            t && (e.classList.remove(t.class_loading), e.classList.add(t.class_loaded), e.removeEventListener("load", i), e.removeEventListener("error", o), n(t.callback_load, e))
        };
        "IMG" !== e.tagName && "IFRAME" !== e.tagName || (e.addEventListener("load", i), e.addEventListener("error", o), e.classList.add(t.class_loading)), m(e, t.data_srcset, t.data_src), n(t.callback_set, e)
    }, _loopThroughElements: function () {
        var e = this._settings, o = this._elements, i = o ? o.length : 0, s = void 0, a = [], r = this._isFirstLoop;
        for (s = 0; s < i; s++) {
            var l = o[s];
            e.skip_invisible && null === l.offsetParent || (t || c(l, e.container, e.threshold)) && (r && l.classList.add(e.class_initial), this._reveal(l), a.push(s), l.dataset.wasProcessed = !0)
        }
        for (; a.length > 0;)o.splice(a.pop(), 1), n(e.callback_processed, o.length);
        0 === i && this._stopScrollHandler(), r && (this._isFirstLoop = !1)
    }, _purgeElements: function () {
        var e = this._elements, t = e.length, n = void 0, o = [];
        for (n = 0; n < t; n++)e[n].dataset.wasProcessed && o.push(n);
        for (; o.length > 0;)e.splice(o.pop(), 1)
    }, _startScrollHandler: function () {
        this._isHandlingScroll || (this._isHandlingScroll = !0, this._settings.container.addEventListener("scroll", this._boundHandleScroll))
    }, _stopScrollHandler: function () {
        this._isHandlingScroll && (this._isHandlingScroll = !1, this._settings.container.removeEventListener("scroll", this._boundHandleScroll))
    }, handleScroll: function () {
        var e = this, t = this._settings.throttle;
        0 !== t ? function () {
            var n = function () {
                (new Date).getTime()
            }, o = n(), i = t - (o - e._previousLoopTime);
            i <= 0 || i > t ? (e._loopTimeout && (clearTimeout(e._loopTimeout), e._loopTimeout = null), e._previousLoopTime = o, e._loopThroughElements()) : e._loopTimeout || (e._loopTimeout = setTimeout(function () {
                this._previousLoopTime = n(), this._loopTimeout = null, this._loopThroughElements()
            }.bind(e), i))
        }() : this._loopThroughElements()
    }, update: function () {
        this._elements = Array.prototype.slice.call(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)), this._purgeElements(), this._loopThroughElements(), this._startScrollHandler()
    }, destroy: function () {
        window.removeEventListener("resize", this._boundHandleScroll), this._loopTimeout && (clearTimeout(this._loopTimeout), this._loopTimeout = null), this._stopScrollHandler(), this._elements = null, this._queryOriginNode = null, this._settings = null
    }};
    var h = window.lazyLoadOptions;
    return h && function (e, t) {
        var n = t.length;
        if (n)for (var o = 0; o < n; o++)d(e, t[o]); else d(e, t)
    }(g, h), g
});
var myLazyLoad = new LazyLoad({threshold: 600, elements_selector: ".img-unveil", data_src: "src", class_loaded: "img-unveiled"}), globalScrollActivation = window.innerHeight / 1.02;
try {
    globalScrollActivation = window.matchMedia("(max-width: 767px)").matches ? window.innerHeight / .88 : window.innerHeight / 1.02
} catch (e) {
}
if (Element.prototype.hasClassName = function (e) {
    return new RegExp("(?:^|\\s+)" + e + "(?:\\s+|$)").test(this.className)
}, Element.prototype.addClassName = function (e) {
    this.hasClassName(e) || (this.className = [this.className, e].join(" "))
}, Element.prototype.removeClassName = function (e) {
    if (this.hasClassName(e)) {
        var t = this.className;
        this.className = t.replace(new RegExp("(?:^|\\s+)" + e + "(?:\\s+|$)", "g"), " ")
    }
}, Element.prototype.toggleClassName = function (e) {
    this[this.hasClassName(e) ? "removeClassName" : "addClassName"](e)
}, Element.prototype.isScrolledIntoView = function (e) {
    var t = this.getBoundingClientRect().top, n = this.getBoundingClientRect().bottom;
    return t >= 0 && n <= globalScrollActivation
}, Element.prototype.getAncestorByClassName = function (e) {
    for (var t = this; (t = t.parentElement) && !t.classList.contains(e););
    return t
}, String.prototype.trim || (String.prototype.trim = function () {
    return this.replace(/^\s+|\s+$/g, "")
}), document.getElementsByClassName || (document.getElementsByClassName = function (e) {
    return document.querySelectorAll("." + e)
}), function () {
    function e(e) {
        this.element = e
    }

    var t = function (e) {
        return new RegExp("(^| )" + e + "( |$)")
    }, n = function (e, t, n) {
        for (var o = 0; o < e.length; o++)t.call(n, e[o])
    };
    e.prototype = {add: function () {
        n(arguments, function (e) {
            this.contains(e) || (this.element.className += this.element.className.length > 0 ? " " + e : e)
        }, this)
    }, remove: function () {
        n(arguments, function (e) {
            this.element.className = this.element.className.replace(t(e), "")
        }, this)
    }, toggle: function (e) {
        return this.contains(e) ? (this.remove(e), !1) : (this.add(e), !0)
    }, contains: function (e) {
        return t(e).test(this.element.className)
    }, replace: function (e, t) {
        this.remove(e), this.add(t)
    }}, "classList"in Element.prototype || Object.defineProperty(Element.prototype, "classList", {get: function () {
        return new e(this)
    }}), window.DOMTokenList && null == DOMTokenList.prototype.replace && (DOMTokenList.prototype.replace = e.prototype.replace)
}(), String.prototype.startsWith || (String.prototype.startsWith = function (e, t) {
    return this.substr(t || 0, e.length) === e
}), function () {
    var e = document.getElementsByClassName("header__nav-list-item-link");
    if (e)for (var t = 0; t < e.length; t++)e[t].addEventListener("focus", function () {
        this.getAncestorByClassName("header__nav-list-item").removeClassName("header__nav-list-item--active")
    }, !1);
    var n = document.getElementsByClassName("header__nav-sub-list-item-link");
    if (n)for (var t = 0; t < n.length; t++)n[t].addEventListener("blur", function () {
        this.getAncestorByClassName("header__nav-list-item").removeClassName("header__nav-list-item--active")
    }, !1), n[t].addEventListener("focus", function () {
        this.getAncestorByClassName("header__nav-list-item").addClassName("header__nav-list-item--active")
    }, !1)
}(), function (e, t) {
    var n = 0, o = !1, i = function () {
        var n = e.pageYOffset || t.documentElement.scrollTop, i = document.getElementById("header");
        n > 120 ? i.addClassName("header--shrink") : i.removeClassName("header--shrink"), o = !1
    }, s = function () {
        o || (e.requestAnimationFrame(i), o = !0)
    }, a = function () {
        n = e.scrollY, s()
    };
    e.onscroll = a;
    var r = e.pageYOffset || t.documentElement.scrollTop, l = document.getElementById("header");
    r > 120 ? l.addClassName("header--shrink") : l.removeClassName("header--shrink")
}(window, document), function (e, t) {
    if (t.getElementsByClassName("strategicpriorities__list")) {
        var n = 0, o = !1, i = Array.prototype.slice.call(t.getElementsByClassName("strategicpriorities__item"), 0), s = function () {
            for (var e = 0; e < i.length; e++)if (1 == i[e].isScrolledIntoView()) {
                i[e].addClassName("strategicpriorities__item--animate"), i.splice(e, 1);
                break
            }
            o = !1
        }, a = function () {
            o || (e.requestAnimationFrame(s), o = !0)
        }, r = function () {
            n = e.scrollY, a()
        };
        e.addEventListener("scroll", r);
        for (var l = 0; l < i.length; l++)i[l].addClassName("strategicpriorities__item--hide")
    }
}(window, document), window.requestAnimationFrame) {
    var screenWidth = window.innerWidth, screenHeight = window.innerHeight;
    !function () {
        !function (e, t, n) {
            n = n || window;
            var o = !1, i = function () {
                o || (o = !0, requestAnimationFrame(function () {
                    n.dispatchEvent(new CustomEvent(t)), o = !1
                }))
            };
            n.addEventListener(e, i)
        }("resize", "optimizedResize")
    }(), window.addEventListener("optimizedResize", function () {
        try {
            globalScrollActivation = window.matchMedia("(max-width: 767px)").matches ? window.innerHeight / .88 : window.innerHeight / 1.05
        } catch (e) {
        }
    })
}
!function (e, t) {
    function n() {
        i.toggleClassName("header__mobile-nav__button--active"), s.toggleClassName("header__mobile-nav__button--active"), a.toggleClassName("header__mobile-nav--active"), r.toggleClassName("header__nav__collapse--mobilize"), d.toggleClassName("header__mobile-utilites__search--active")
    }

    function o() {
        if (n(), !c) {
            var e = document.createElement("button");
            e.innerHTML = "Close", e.id = "btn-close-nav", e.className = "header__nav__collapse__btn-close", l.insertBefore(e, l.firstChild), c = t.getElementById("btn-close-nav"), c.addEventListener("click", function (e) {
                n()
            })
        }
    }

    var i = t.getElementById("mobile-nav-button"), s = t.getElementById("sticky-nav-button"), a = t.getElementById("mobile-nav"), r = t.getElementById("header-nav-collapse"), l = t.getElementById("header-nav-collapse-wrap"), c = t.getElementById("btn-close-nav"), d = t.getElementById("mobile-search-button");
    t.getElementById("desktop-search-button").addEventListener("click", function (e) {
        r.toggleClassName("header__nav__collapse--search"), t.getElementById("search-q").focus()
    }), i.addEventListener("click", function (e) {
        o()
    }), d.addEventListener("click", function (e) {
        t.getElementById("search-q").focus(), o()
    }), t.getElementById("stick-nav").toggleClassName("header__sticky-nav--active"), t.getElementById("sticky-nav-button").addEventListener("click", function (e) {
        o()
    })
}(window, document), function (e, t) {
    function n(o) {
        e.removeEventListener("scroll", n), t.getElementById("jointheclub-image").setAttribute("xlink:href", t.getElementById("jointheclub-image").getAttribute("data-image")), t.getElementById("eventlist-img-1").setAttribute("src", t.getElementById("eventlist-img-1").getAttribute("data-src")), t.getElementById("eventlist-img-2").setAttribute("src", t.getElementById("eventlist-img-2").getAttribute("data-src"));
        var i = t.getElementById("jointheclub-image").getAncestorByClassName("img-responsive");
        i.innerHTML = "" + i.innerHTML
    }

    t.getElementById("jointheclub-image") && e.addEventListener("scroll", n)
}(window, document);
var getFirstBrowserLanguage = function () {
    var e, t, n = window.navigator, o = ["language", "browserLanguage", "systemLanguage", "userLanguage"];
    if (Array.isArray(n.languages))for (e = 0; e < n.languages.length; e++)if ((t = n.languages[e]) && t.length)return t;
    for (e = 0; e < o.length; e++)if ((t = n[o[e]]) && t.length)return t;
    return null
};
!function (e, t, n) {
    var o = "";
    try {
        o = getFirstBrowserLanguage().toLowerCase()
    } catch (e) {
    }
    if ("" == getCookie("translate") && o.startsWith("en")) {
        var i = !0;
        window.addEventListener("scroll", function (t) {
            var o = !1;
            o || (window.requestAnimationFrame(function () {
                if ((e.body.scrollTop || e.documentElement.scrollTop) > 1 && i) {
                    var t = e.createElement(n), s = e.getElementsByTagName(n)[0];
                    t.src = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit", s.parentNode.insertBefore(t, s), i = !1, setCookie("translate", "true", 30)
                }
                o = !1
            }), o = !0)
        })
    } else {
        var s = e.createElement(n), a = e.getElementsByTagName(n)[0];
        s.src = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit", a.parentNode.insertBefore(s, a)
    }
}(document, window, "script"), function () {
    for (var e = document.querySelectorAll("a[href^='http'],area[href^='http']"), t = 0; t < e.length; t++) {
        var n = e[t].href;
        -1 === n.indexOf("//youtu.be/") && -1 === n.indexOf("//www.youtube.com/") && "undefined" !== n && -1 === n.indexOf(window.location.host) && e[t].addEventListener("click", function (e) {

        })
    }
}(), function () {
    var e = document.querySelectorAll('.raisedonors input[type="radio"]');
    [].forEach.call(e, function (e) {
        e.addEventListener("click", function (e) {
            console.log(this);
            for (var t = document.querySelectorAll('.raisedonors input[name="donate-amount"]'), n = 0, o = t.length; n < o; n++)if (t[n].checked) {
                isNaN(t[n].value) ? (document.querySelector(".raisedonors input.amount").value = "", document.querySelector(".raisedonors input.amount").focus()) : (document.querySelector(".raisedonors input.amount").value = t[n].value, document.getElementById("raise-donors-submit").focus());
                break
            }
        })
    }), document.getElementById("raise-donors-submit") && document.getElementById("raise-donors-submit").addEventListener("click", function (e) {
        e.preventDefault();
        var t = document.querySelector(".raisedonors input.amount").value, n = document.getElementById("raisedonors_url").value + "?amt=" + t;
        window.open(n)
    })
}();