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IAAI,aAAe,GAC3B,EAAS,iBAAiB,SAAS,IAC/B,EAAE,gBAAgB,IAEtB,EAAS,MAAM,MAAQ,UACvB,EAAS,MAAM,QAAU,MACzB,EAAS,MAAM,OAAS,WAI5B,cAAc,SAAS,eAAe,cAAe,CAAC,WAAa,WACvE,CAEA,SAAS,UAEL,KAAO,SAAS,eAAe,cAC/B,cAAc,KAAM,CAAC,QAAW,SAEhC,UAAU,WAAU,EAAM,GAC9B,CAGI,SAAS,iBAAiB,oBAAoB,WAE9C","file":"/gh/ksoaresasae/asae-explore@7.108/asae-explore.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /gh/ksoaresasae/asae-explore@7.108/asae-explore.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* \n******************************************************\nASAE EXPLORE\nGNU GENERAL PUBLIC LICENSE\nASAE:       https://www.asaecenter.org\nDeveloper:  Keith M. Soares - https://keithmsoares.com\n******************************************************\n\nVersion: \n------------\n7.108         2026-03-10\nNotes:\n- updating alert for move; revised for day 1; updated day 2\n- Making a version without any alert, for use on sig events sites\n*/\n\n//////////////////////////////////////////////\n// MASTER GITVERSION\nvar gitVersion = \"v7.108\";\n\n// MASTER BASE URL\nvar thisBaseURL = \"https://cdn.jsdelivr.net/gh/ksoaresasae/asae-explore@\" + gitVersion + \"/\";\n\n//////////////////////////////////////////////\n//////////////////////////////////////////////\n// MASTER CONTROLS: true/false\nvar showPB = true;        // SHOW PROMO BAR - STILL CONTROLLED BY DATETIME AND THE alertTimer FUNCTION\nvar showSearch = false;   // SHOW SEARCH ICON\nvar showChatbot = true;  // SHOW CHATBOT ICON\n// USER ICON IS ALWAYS ON\n// BELOW ARE RELATED TO alertTimer FUNCTION\nconst alertStartDate = new Date(\"2026-02-20 00:00:01\");\nconst alertEndDate = new Date(\"2026-03-20 23:59:59\");\n//////////////////////////////////////////////\n//////////////////////////////////////////////\n\n/*\nPurpose:\n--------\nAdd ASAE EXPLORE to any site on a per-page, per-site, or per-property basis, to provide navigation among ASAE sites. \n\nUsage:\n------\n<!-- ASAE Explore - CSS/JS - [GITVERSION] -->\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/gh/ksoaresasae/asae-explore@[GITVERSION]/asae-explore.css\"/>\n<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/gh/ksoaresasae/asae-explore@[GITVERSION]/asae-explore.js\"></script>\n\nNote: if thisBaseURL is changed, this src will change, too.\n\nInstructions:\n-------------\nSimply place the above <script> code anywhere on a page to add it to that single page, or\nplace it in a global include/widget to make the header appear on the entire site.\nThis script can also be added via Google Tag Manager to quickly add it to an entire property.\n\nNotes:\n------\nASAE EXPLORE automatically positions its contents just after the opening <BODY> tag,\nso it can be added **anywhere** in your code to function correctly.\n\nThis script also hides two legacy banners/headers:\n- id: notification-bar\n- class: sister-domains\n\nASAE EXPLORE has 3 major editable parts:\n- Edit HTML for the EXPLORE BAR (eb) component between the START and STOP comments, below\n- Edit HTML for the PROMO BAR (pb) component between the START and STOP comments, below\n- Edit CSS for all components in the asae-explore.css file\n\n**************************************************\n*/\n\n// placeholders for HTML contents\nvar asaeEB = \"\";\nvar asaePB = \"\";\nvar body = document.body;\nvar ebDiv = \"\";\nvar pbDiv = \"\";\n\n//////////////////////////////////////////////\n// READ EXTERNAL HTML FILES\n//console.log(\"READING FILES...\");\n\nfunction loadEBHTML() {\n    var ebhttp = new XMLHttpRequest();\n    ebhttp.onreadystatechange = function() {\n        if (this.readyState == 4 && this.status == 200) {\n            //ebhttp.responseText has HTML content\n            asaeEB = ebhttp.responseText + \"<!-- ASAE Explore \" + gitVersion + \" -->\";\n            //console.log(\" - EB IS OK!\");\n            parseEBHTML();\n            loadPBHTML();\n        }\n    };\n    ebhttp.open(\"GET\", thisBaseURL + \"asae-eb.html\", true);\n    ebhttp.send();\n}\n\nloadEBHTML();\n\nfunction loadPBHTML() {\n    var pbhttp = new XMLHttpRequest();\n    pbhttp.onreadystatechange = function() {\n        if (this.readyState == 4 && this.status == 200) {\n            //pbhttp.responseText has HTML content\n            asaePB = pbhttp.responseText;\n            alertTimer();\n            //console.log(\" - PB IS OK!\");\n            parsePBHTML();\n        }\n    };\n    pbhttp.open(\"GET\", thisBaseURL + \"asae-pb.html\", true);\n    pbhttp.send();    \n}\n\n// populate HTML into divs\nfunction parseEBHTML() {\n    // add EXPLORE BAR (eb)\n    ebDiv = document.createElement('div');\n    ebDiv.id = 'asae-eb-id';\n    // hide div until loaded\n    setAttributes(ebDiv, {\"visibility\":\"hidden\"});\n    ebDiv.innerHTML = asaeEB;\n    body.insertBefore(ebDiv, body.firstChild);\n    //console.log(\" - EB HTML IS ADDED\");\n    setupEB();\n\n    setTabIndexes();\n\n    showHideButtons();\n}\n\nfunction parsePBHTML() {\n    // add PROMO BAR (pb)\n    if (showPB == true) {\n        pbDiv = document.createElement('div');\n        pbDiv.id = 'asae-pb-id';        \n        pbDiv.innerHTML = asaePB;\n        body.insertBefore(pbDiv, ebDiv.nextSibling);    \n        //console.log(\" - PB HTML IS ADDED\");\n    }\n}\n//////////////////////////////////////////////\n\n// internal checks to see what modal is open\nvar isOpenNav = false;\nvar isOpenSearch = false;\nvar isOpenChatbot = false;\nvar isOpenUser =  false;\n\nvar directClick = false;\n\n/* ---------- CSS HELPERS - START ---------- */\n// USE: setAttributes(elem, {\"src\": \"http://example.com/something.jpeg\", \"height\": \"100%\", ...});\nfunction setAttributes(el, attrs) {\n    for(var key in attrs) {\n        //console.log(\"setAttribute: \" + key + \": \" + attrs[key]);\n        el.setAttribute('style', key + \": \" + attrs[key]);\n    }\n}\n/* ---------- CSS HELPERS - END ---------- */\n\n/* ---------- TABINDEX HELPERS - START ---------- */\n// USE: setTabIndexes();\nfunction setTabIndexes() {\n    var navTabIndex = 1;\n    var searchTabIndex = 2;\n    var chatbotTabIndex = 3;\n    var userTabIndex = 4;\n\n    document.getElementById(\"asae-eb-left-nav\").tabIndex = navTabIndex;\n    document.getElementById(\"asae-eb-mag\").tabIndex = searchTabIndex;\n    document.getElementById(\"asae-eb-chatbot\").tabIndex = chatbotTabIndex;\n    document.getElementById(\"asae-eb-user\").tabIndex = userTabIndex;\n\n    if (!isOpenNav) {\n        navTabIndex = -1;\n    }\n    var links = document.getElementById('asae-eb-modal-nav').getElementsByTagName(\"a\");\n    for (var i = 0; i < links.length; i++) {\n        //console.log(links[i]);\n        links[i].tabIndex = navTabIndex;\n    }\n\n\n    if (!isOpenSearch) {\n        searchTabIndex = -1;\n    }\n    document.getElementById(\"asae-eb-search-terms\").tabIndex = searchTabIndex;\n    document.getElementById(\"asae-eb-search-submit\").tabIndex = searchTabIndex;\n\n    if (!isOpenChatbot) {\n        chatbotTabIndex = -1;\n    }\n    document.getElementById(\"asae-eb-chatbot-terms\").tabIndex = chatbotTabIndex;\n\n    // HIDE THE SEARCH AND CHATBOT ALERTS UNTIL USER ENTRY OCCURS\n    searchAlert = document.getElementById(\"asae-eb-search-terms-alert\");\n    setAttributes(searchAlert, {\"display\": \"none\"});\n    chatbotAlert = document.getElementById(\"asae-eb-chatbot-terms-alert\");\n    setAttributes(chatbotAlert, {\"display\": \"none\"});\n\n}\n/* ---------- TABINDEX HELPERS - END ---------- */\n\n/* ---------- SHOW/HIDE BUTTONS HELPERS - START ---------- */\n// USE: showHideButtons();\nfunction showHideButtons() {\n    searchIcon = document.getElementById(\"asae-eb-right-search\");\n    if (!showSearch) {\n        setAttributes(searchIcon, {\"display\": \"none\"});\n        searchIcon.tabIndex = -1;\n    }\n    chatbotIcon = document.getElementById(\"asae-eb-right-chatbot\");\n    if (!showChatbot) {\n        setAttributes(chatbotIcon, {\"display\": \"none\"});\n        chatbotIcon.tabIndex = -1;\n    }\n}\n/* ---------- SHOW/HIDE BUTTONS HELPERS - END ---------- */\n\n/* ---------- COOKIE HELPERS - START ----------*/\nfunction doesCookieExist(cname) {\n    var status = false;\n    if (document.cookie && document.cookie.indexOf(cname) != -1) {\n        status = true;\n    }\n    //console.log('COOKIE ' + cname + ' EXISTS? ' + status);\n    return status;\n}\n\nfunction setCookie(cname, cvalue, exdays) {\n    //console.log ('SET COOKIE: ' + cname + '|' + cvalue);\n    const d = new Date();\n    d.setTime(d.getTime() + (exdays*24*60*60*1000));\n    let expires = \"expires=\"+ d.toUTCString();\n    document.cookie = cname + \"=\" + cvalue + \";\" + expires + \";path=/\";\n}\n\nfunction getCookie(cname) {\n    //console.log ('GET COOKIE: ' + cname);\n    let name = cname + \"=\";\n    let decodedCookie = decodeURIComponent(document.cookie);\n    let ca = decodedCookie.split(';');\n    for(let i = 0; i <ca.length; i++) {\n      let c = ca[i];\n      while (c.charAt(0) == ' ') {\n        c = c.substring(1);\n      }\n      if (c.indexOf(name) == 0) {\n        //console.log (' - VALUE: ' + c.substring(name.length, c.length));\n        if (c.substring(name.length, c.length) == \"true\") {\n            return true;\n        }\n        if (c.substring(name.length, c.length) == \"false\") {\n            return false;\n        }\n        return c.substring(name.length, c.length);\n      }\n    }\n    //console.log (' - VALUE: null');\n    return \"\";\n}\n/* ---------- COOKIE HELPERS - END ----------*/\n\n/* ---------- ALERT HELPER - START ---------- */\n// USE: alertTimer();\nfunction alertTimer() {\n    // console.log('Current datetime between alert datetimes?');\n    if (isCurrentDateBetween(alertStartDate,alertEndDate)) {\n        // console.log(' - YES');\n        showPB = true;\n    } else {\n        // console.log(' - NO');\n        showPB = false;\n    }\n}\nfunction isCurrentDateBetween(startDate, endDate) {\n    const currentDate = new Date();\n    // console.log('Current datetime: ' + currentDate);\n    // Check if the current date is greater than or equal to the start date\n    // and less than or equal to the end date\n    return currentDate >= startDate && currentDate <= endDate;\n}\n/* ---------- ALERT HELPER - END ---------- */\n\nfunction setTransStyles(thisClick) {\n    // SET TRANSITIONS FOR MODALS\n    // Use these transition effects:\n    // -webkit-transition: 0.5s linear;\n    // -moz-transition: 0.5s linear;\n    // -o-transition: 0.5s linear;\n    // transition: 0.5s linear;\n    var slideTrans = {\"transition\": \"0.5s linear\", \"-o-transition\": \"0.5s linear\", \"-moz-transition\": \"0.5s linear\",  \"-webkit-transition\": \"0.5s linear\"};\n\n    //   --- OR ---\n    // -webkit-transition: none;\n    // -moz-transition: none;\n    // -o-transition: none;\n    // transition: none;\n    var noTrans = {\"transition\": \"none\", \"-o-transition\": \"none\", \"-moz-transition\": \"none\",  \"-webkit-transition\": \"none\"};\n\n    var transModalNav = document.getElementById(\"asae-eb-modal-nav-container\");\n    var transModalSearch = document.getElementById(\"asae-eb-modal-search-container\");\n    var transModalChatbot = document.getElementById(\"asae-eb-modal-chatbot-container\");\n    //var transModalUser = document.getElementById(\"asae-eb-modal-user-container\");\n\n    setAttributes(transModalNav, slideTrans);\n    setAttributes(transModalSearch, slideTrans);\n    setAttributes(transModalChatbot, slideTrans);\n    //setAttributes(transModalUser, slideTrans);\n\n    if (thisClick == \"navClick\") {\n        if (isOpenSearch || isOpenChatbot) { // || isOpenUser) {\n            setAttributes(transModalNav, noTrans);\n        } else {\n            setAttributes(transModalNav, slideTrans);\n        }\n    }\n    if (thisClick == \"searchClick\") {\n        if (isOpenNav || isOpenChatbot) { // || isOpenUser) {\n            setAttributes(transModalSearch, noTrans);\n        } else {\n            setAttributes(transModalSearch, slideTrans);\n        }\n    }\n    if (thisClick == \"chatbotClick\") {\n        if (isOpenNav || isOpenSearch) { // || isOpenUser) {\n            setAttributes(transModalChatbot, noTrans);\n        } else {\n            setAttributes(transModalChatbot, slideTrans);\n        }\n    }\n    //if (thisClick == \"userClick\") {\n        //if (isOpenNav || isOpenSearch || isOpenChatbot) {\n            //setAttributes(transModalUser, noTrans);\n        //}\n    //}\n}\n\nfunction ebNavClickFunc() {\n    //console.log(\"ebNavClickFunc\")\n    setTransStyles(\"navClick\");\n\n    isOpenNav = !isOpenNav;\n    //console.log(\"isOpenNav=\"+isOpenNav);\n\n    const ebNavClick = document.querySelector(\"#asae-eb-left-nav\");\n    const ebExploreASAE = document.querySelector(\"#asae-eb-explore-asae\");\n    const ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n    \n    ebNavClick.classList.toggle(\"active\");\n    ebExploreASAE.classList.toggle(\"active\");\n    ebNavModal.classList.toggle(\"active\");\n    let svgparts = document.querySelectorAll('.asae-eb-switcher-icon');\n    for (let i = 0; i < svgparts.length; i++) {\n        svgparts[i].classList.toggle(\"active\");\n    }\n\n    //set aria-expanded value as well, for a11y\n    const expanded = ebNavClick.getAttribute('aria-expanded') === 'true';\n    ebNavClick.setAttribute('aria-expanded', !expanded);\n    //\n    \n    setTimeout(function(){\n        document.getElementById(\"asae-eb-id\").scrollIntoView({ behavior: \"smooth\" });\n    }, 1000);\n\n    setTabIndexes();\n}\n\nfunction ebNavShowDescClickFunc(directClick) {\n    //console.log(\"ebNavShowDescClickFunc\");\n    var setNavShowDescCookie = false;\n    const ebNavShowDescClick = document.querySelector(\"#asae-eb-showdesc-toggle\");\n\n    // what is current state?\n    // if current state is OFF, set cookie var to TRUE\n    //console.log(\"is ShowDesc active?\");\n    if (ebNavShowDescClick.classList.contains(\"active\")) {\n        //console.log(\" - YES\");\n    } else {\n        //console.log(\" - NO\");\n        setNavShowDescCookie = true;\n    }\n\n    // toggle active style\n    ebNavShowDescClick.classList.toggle(\"active\");\n    var els = document.querySelectorAll('.asae-eb-link-desc');\n    for (var i=0; i < els.length; i++) {\n        els[i].classList.toggle(\"active\");\n    }\n\n    // if this was not a direct click on the input, handle changing the input, too\n    if (!directClick) {\n        var inputs = document.querySelectorAll('.asae-eb-showdesc-input');\n        for (var i = 0; i < inputs.length; i++) {\n            if (inputs[i].checked) {\n                //console.log(\"input - change to unchecked\");\n                inputs[i].checked = false;\n            } else {\n                //console.log(\"input - change to checked\");\n                inputs[i].checked = true;\n            }\n        }\n    }\n    setCookie('eb-nav-showdesc',setNavShowDescCookie,10000);\n}\n\nfunction ebSearchClickFunc() {\n    \n    //console.log(\"ebSearchClickFunc\");\n    setTransStyles(\"searchClick\");\n    \n    isOpenSearch = !isOpenSearch;\n    //console.log(\"isOpenSearch=\"+isOpenSearch);\n    \n    const ebSearchClick = document.querySelector(\"#asae-eb-right-search\");\n    const ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n\n    ebSearchClick.classList.toggle(\"active\");\n    ebSearchModal.classList.toggle(\"active\");\n    let svgparts = document.querySelectorAll('.asae-eb-mag-icon');\n    for (let i = 0; i < svgparts.length; i++) {\n        svgparts[i].classList.toggle(\"active\");\n    }\n\n    if (isOpenSearch) {\n        //document.getElementById(\"asae-eb-search-terms\").focus();\n    }\n\n    //set aria-expanded value as well, for a11y\n    const expanded = document.getElementById(\"asae-eb-mag\").getAttribute('aria-expanded') === 'true';\n    document.getElementById(\"asae-eb-mag\").setAttribute('aria-expanded', !expanded);\n    //\n\n    setTimeout(function(){\n        document.getElementById(\"asae-eb-id\").scrollIntoView({ behavior: \"smooth\" });\n    }, 1000);\n    \n    setTabIndexes();\n}\n\nfunction validateSearch() {\n    let termsSearch = document.getElementById(\"asae-eb-search-terms\").value;\n    termsSearch = encodeURIComponent(termsSearch);\n    console.log(\"search query: [\" + termsSearch + \"]\");\n    //document.getElementById(\"asae-eb-search-terms\").value = termsSearch;\n    searchAlert = document.getElementById(\"asae-eb-search-terms-alert\");\n    if (termsSearch == \"\") {\n        setAttributes(searchAlert, {\"display\": \"inline-block\"});\n        return false;\n    } else {\n        setAttributes(searchAlert, {\"display\": \"none\"});\n        // goto https://www.asaecenter.org/federatedsearch\n        window.location.href = 'https://www.asaecenter.org/federatedsearch?query=' + termsSearch;\n        return false;\n    }\n}\n\nfunction ebChatbotClickFunc() {\n    \n    //console.log(\"ebChatbotClickFunc\");\n    setTransStyles(\"chatbotClick\");\n\n    isOpenChatbot = !isOpenChatbot;\n    //console.log(\"isOpenChatbot=\"+isOpenChatbot);\n    \n    const ebChatbotClick = document.querySelector(\"#asae-eb-right-chatbot\");\n    const ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n\n    ebChatbotClick.classList.toggle(\"active\");\n    ebChatbotModal.classList.toggle(\"active\");\n    let svgparts = document.querySelectorAll('.asae-eb-chatbot-icon');\n    for (let i = 0; i < svgparts.length; i++) {\n        svgparts[i].classList.toggle(\"active\");\n    }\n\n    if (isOpenChatbot) {\n        //document.getElementById(\"asae-eb-chatbot-terms\").focus();\n    }\n\n    //set aria-expanded value as well, for a11y\n    const expanded = document.getElementById(\"asae-eb-chatbot\").getAttribute('aria-expanded') === 'true';\n    document.getElementById(\"asae-eb-chatbot\").setAttribute('aria-expanded', !expanded);\n    //\n\n    setTimeout(function(){\n        document.getElementById(\"asae-eb-id\").scrollIntoView({ behavior: \"smooth\" });\n    }, 1000);\n\n    setTabIndexes();\n    \n}\n\nfunction validateChatbot() {\n    let termsChatbot = document.getElementById(\"asae-eb-chatbot-terms\").value;\n    termsChatbot = encodeURIComponent(termsChatbot);\n    console.log(\"chatbot query: [\" + termsChatbot + \"]\");\n    //document.getElementById(\"asae-eb-chatbot-terms\").value = termsChatbot;\n    chatbotAlert = document.getElementById(\"asae-eb-chatbot-terms-alert\");\n    if (termsChatbot == \"\") {\n        setAttributes(chatbotAlert, {\"display\": \"inline-block\"});\n        return false;\n    } else {\n        setAttributes(chatbotAlert, {\"display\": \"none\"});\n        window.location.href = 'https://www.asaecenter.org/stellar?prompt=' + termsChatbot;\n        return false;\n    }\n}\n\nfunction ebUserClickFunc() {\n    //console.log(\"ebUserClickFunc\");\n    setTransStyles(\"userClick\");\n\n    isOpenUser = true; // !isOpenUser;\n    //console.log(\"isOpenUser=\"+isOpenUser);\n\n    let thisRedirectURL = window.location.href;\n    // goto https://sso.asaecenter.org/\n    if (isOpenUser) {\n        window.location.href = 'https://asae-login.wicketcloud.com/login?service=https://my.asaecenter.org/my-account/&locale=en';\n    }\n    // https://sso.asaecenter.org/sso.asaecenter.org/b2c_1a_signin_no_sign_up_aptify/oauth2/v2.0/authorize?response_type=code&scope=f64cfe0a-fef2-4cff-a059-87dc4ca71a52%20profile%20email%20address%20phone&redirect_uri=' + thisRedirectURL;\n    \n    //const ebUserClick = document.querySelector(\"#asae-eb-right-user\");\n    //const ebUserModal = document.querySelector(\"#asae-eb-modal-user-container\");\n\n    //ebUserClick.classList.toggle(\"active\");\n    //ebUserModal.classList.toggle(\"active\");\n    //let svgparts = document.querySelectorAll('.asae-eb-user-icon');\n    //for (let i = 0; i < svgparts.length; i++) {\n    //    svgparts[i].classList.toggle(\"active\");\n    //}\n\n    //setTimeout(function(){\n    //    document.getElementById(\"asae-eb-id\").scrollIntoView({ behavior: \"smooth\" });\n    //}, 1000);\n\n    setTabIndexes();\n}\n\nfunction setupEB() {\n\n    // SET INITIAL COOKIES\n    // ---------->>  ADD CHECK FOR GDPR  <<---------- //\n    //console.log('CHECKING COOKIES...');\n    // start with Link Descriptions hidden\n    if (doesCookieExist('eb-nav-showdesc')) {\n        if (getCookie('eb-nav-showdesc')) {\n            //console.log('...Show Desc is true');\n            ebNavShowDescClickFunc(false);\n        } else {\n            setCookie('eb-nav-showdesc',false,10000);\n        }\n    }\n    // start with Promo Bar shown\n    if (doesCookieExist('pb-show')) {\n        if (!getCookie('pb-show')) {\n            //console.log('...Show PB is false');\n            showPB = false;\n        } else {\n            setCookie('pb-show',true,10000);\n        }\n    }\n\n    // EXPLORE ASAE NAV (left)\n    const ebNavClick = document.querySelector(\"#asae-eb-left-nav\");\n    ebNavClick.addEventListener(\"click\", ()=>{\n        //console.log(\"CLICK: nav\");\n        ebNavClickFunc();\n        if (isOpenSearch) {\n            // INSTANTLY HIDE SEARCH\n            ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n            setAttributes(ebSearchModal, {\"display\": \"none\"});\n            ebSearchClickFunc();\n        } \n        if (isOpenChatbot) {\n            // INSTANTLY HIDE CHATBOT\n            ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n            setAttributes(ebChatbotModal, {\"display\": \"none\"});\n            ebChatbotClickFunc();\n        } \n        //if (isOpenUser) {\n        //    ebUserClickFunc();\n        //} \n    });\n    ebNavClick.addEventListener('keydown', function(event) {\n        if (event.key === 'Enter') {        \n            //console.log(\"CLICK: nav\");\n            ebNavClickFunc();\n            if (isOpenSearch) {\n                // INSTANTLY HIDE SEARCH\n                ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n                setAttributes(ebSearchModal, {\"display\": \"none\"});\n                ebSearchClickFunc();\n            } \n            if (isOpenChatbot) {\n                // INSTANTLY HIDE CHATBOT\n                ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n                setAttributes(ebChatbotModal, {\"display\": \"none\"});\n                ebChatbotClickFunc();\n            } \n            //if (isOpenUser) {\n            //    ebUserClickFunc();\n            //} \n        }\n    });\n    const ebNavShowDescClick = document.querySelector(\"#asae-eb-showdesc-toggle\");\n    ebNavShowDescClick.addEventListener(\"click\", ()=>{\n        //console.log(\"CLICK: nav descriptions\");\n        ebNavShowDescClickFunc(false);\n    });\n\n    // EXPLORE ASAE SEARCH (right)\n    const ebSearchClick = document.querySelector(\"#asae-eb-right-search\");\n    ebSearchClick.addEventListener(\"click\", ()=>{\n        //console.log(\"CLICK: search\");\n        ebSearchClickFunc();\n        if (isOpenNav) {\n            // INSTANTLY HIDE NAV\n            ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n            setAttributes(ebNavModal, {\"display\": \"none\"});\n            ebNavClickFunc();\n        }\n        if (isOpenChatbot) {\n            // INSTANTLY HIDE CHATBOT\n            ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n            setAttributes(ebChatbotModal, {\"display\": \"none\"});\n            ebChatbotClickFunc();\n        } \n        //if (isOpenUser) {\n        //    ebUserClickFunc();\n        //} \n    });\n    ebSearchClick.addEventListener('keydown', function(event) {\n        if (event.key === 'Enter') {        \n            //console.log(\"CLICK: search\");\n            ebSearchClickFunc();\n            if (isOpenNav) {\n                // INSTANTLY HIDE NAV\n                ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n                setAttributes(ebNavModal, {\"display\": \"none\"});\n                ebNavClickFunc();\n            } \n            if (isOpenChatbot) {\n                // INSTANTLY HIDE CHATBOT\n                ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n                setAttributes(ebChatbotModal, {\"display\": \"none\"});\n                ebChatbotClickFunc();\n            } \n            //if (isOpenUser) {\n            //    ebUserClickFunc();\n            //} \n        }\n    });\n\n    // EXPLORE ASAE CHATBOT (right)\n    const ebChatbotClick = document.querySelector(\"#asae-eb-right-chatbot\");\n    ebChatbotClick.addEventListener(\"click\", ()=>{\n        //console.log(\"CLICK: chatbot\");\n        ebChatbotClickFunc();\n        if (isOpenNav) {\n            // INSTANTLY HIDE NAV\n            ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n            setAttributes(ebNavModal, {\"display\": \"none\"});\n            ebNavClickFunc();\n        }\n        if (isOpenSearch) {\n            // INSTANTLY HIDE SEARCH\n            ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n            setAttributes(ebSearchModal, {\"display\": \"none\"});\n            ebSearchClickFunc();\n        } \n        //if (isOpenUser) {\n        //    ebUserClickFunc();\n        //} \n    });\n    ebChatbotClick.addEventListener('keydown', function(event) {\n        if (event.key === 'Enter') {        \n            //console.log(\"CLICK: chatbot\");\n            ebChatbotClickFunc();\n            if (isOpenNav) {\n                // INSTANTLY HIDE NAV\n                ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n                setAttributes(ebNavModal, {\"display\": \"none\"});\n                ebNavClickFunc();\n            } \n            if (isOpenSearch) {\n                // INSTANTLY HIDE SEARCH\n                ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n                setAttributes(ebSearchModal, {\"display\": \"none\"});\n                ebSearchClickFunc();\n            } \n            //if (isOpenUser) {\n            //    ebUserClickFunc();\n            //} \n        }\n    });\n\n    // EXPLORE ASAE USER (right)\n    const ebUserClick = document.querySelector(\"#asae-eb-right-user\");\n    ebUserClick.addEventListener(\"click\", ()=>{\n        //console.log(\"CLICK: user\");\n        ebUserClickFunc();\n        if (isOpenNav) {\n           // INSTANTLY HIDE NAV\n           ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n           setAttributes(ebNavModal, {\"display\": \"none\"});\n           ebNavClickFunc();\n        }\n        if (isOpenSearch) {\n            // INSTANTLY HIDE SEARCH\n            ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n            setAttributes(ebSearchModal, {\"display\": \"none\"});\n            ebSearchClickFunc();\n        } \n        if (isOpenChatbot) {\n            // INSTANTLY HIDE CHATBOT\n            ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n            setAttributes(ebChatbotModal, {\"display\": \"none\"});\n            ebChatbotClickFunc();\n        } \n    });\n    ebUserClick.addEventListener('keydown', function(event) {\n        if (event.key === 'Enter') {        \n            //console.log(\"CLICK: user\");\n            ebUserClickFunc();\n            if (isOpenNav) {\n                // INSTANTLY HIDE NAV\n                ebNavModal = document.querySelector(\"#asae-eb-modal-nav-container\");\n                setAttributes(ebNavModal, {\"display\": \"none\"});\n                ebNavClickFunc();\n            }\n            if (isOpenSearch) {\n                // INSTANTLY HIDE SEARCH\n                ebSearchModal = document.querySelector(\"#asae-eb-modal-search-container\");\n                setAttributes(ebSearchModal, {\"display\": \"none\"});\n                ebSearchClickFunc();\n            } \n            if (isOpenChatbot) {\n                // INSTANTLY HIDE CHATBOT\n                ebChatbotModal = document.querySelector(\"#asae-eb-modal-chatbot-container\");\n                setAttributes(ebChatbotModal, {\"display\": \"none\"});\n                ebChatbotClickFunc();\n            } \n        }\n    });\n\n    /* \n    **********************************************************\n    Disable links for the current website\n    IDs are:\n    eb-asae - ASAE\n    eb-foun - ASAE Research Foundation\n    eb-coll - Collaborate\n    eb-cahq - CareerHQ\n    eb-asnw - Associations Now\n    eb-absi - ASAE Business Solutions\n    eb-lear - Learning\n    eb-govn - Association Governance Institute\n    eb-solu - Soluntion Providers HQ\n    eb-mmct - MMC+Tech Conference\n    eb-annl - Annual Meeting\n    eb-join - Join\n    */\n    var thisLink = null;\n    const ebasae = document.querySelector(\"#eb-asae\");\n    const ebfoun = document.querySelector(\"#eb-foun\");\n    const ebcoll = document.querySelector(\"#eb-coll\");\n    const ebcahq = document.querySelector(\"#eb-cahq\");\n    const ebasnw = document.querySelector(\"#eb-asnw\");\n    const ebabsi = document.querySelector(\"#eb-absi\");\n    const eblear = document.querySelector(\"#eb-lear\");\n    const ebgovn = document.querySelector(\"#eb-govn\");\n    const ebsolu = document.querySelector(\"#eb-solu\");\n    const ebmmct = document.querySelector(\"#eb-mmct\");\n    const ebannl = document.querySelector(\"#eb-annl\");\n    const ebjoin = document.querySelector(\"#eb-join\");\n\n    if (window.location.href.indexOf(\"www.asaecenter.org\") != -1) {\n        //console.log(\"Current page is ASAE\");\n        thisLink = ebasae;\n    }\n    if (window.location.href.indexOf(\"foundation.asaecenter.org\") != -1) {\n        //console.log(\"Current page is FOUN\");\n        thisLink = ebfoun;\n    }\n    if (window.location.href.indexOf(\"collaborate.asaecenter.org\") != -1) {\n        //console.log(\"Current page is COLL\");\n        thisLink = ebcoll;\n    }\n    if (window.location.href.indexOf(\"careerhq.asaecenter.org\") != -1) {\n        //console.log(\"Current page is CAHQ\");\n        thisLink = ebcahq;\n    }\n    if (window.location.href.indexOf(\"associationsnow.com\") != -1) {\n        //console.log(\"Current page is ASNW\");\n        thisLink = ebasnw;\n    }\n    if (window.location.href.indexOf(\"www.asaebusinesssolutions.org\") != -1) {\n        //console.log(\"Current page is ABSI\");\n        thisLink = ebabsi;\n    }\n    if (window.location.href.indexOf(\"academy.asaecenter.org\") != -1) {\n        //console.log(\"Current page is LEAR\");\n        thisLink = eblear;\n    }\n    if (window.location.href.indexOf(\"agi.asaecenter.org\") != -1) {\n        //console.log(\"Current page is GOVN\");\n        thisLink = ebgovn;\n    }\n    if (window.location.href.indexOf(\"solutionshq.asaecenter.org\") != -1) {\n        //console.log(\"Current page is SOLU\");\n        thisLink = ebsolu;\n    }\n    if ((window.location.href.indexOf(\"mmcc.asaecenter.org\") != -1) || (window.location.href.indexOf(\"mmct.asaecenter.org\") != -1)) {\n        //console.log(\"Current page is MMCT\");\n        thisLink = ebmmct;\n    }\n    if (window.location.href.indexOf(\"annual.asaecenter.org\") != -1) {\n        //console.log(\"Current page is ANNL\");\n        thisLink = ebannl;\n    }\n    if (1 == 2) { // never turn off JOIN button\n        thisLink = ebjoin;\n    }\n\n    if (thisLink !== null) {\n        console.log(\"Disabling \" + thisLink);\n        thisLink.addEventListener(\"click\", e => {\n            e.preventDefault();\n        })\n        thisLink.style.color = \"#d15007\";\n        thisLink.style.opacity = \"70%\";\n        thisLink.style.cursor = \"default\";    \n    }\n\n    // hide div until loaded\n    setAttributes(document.getElementById(\"asae-eb-id\"), {\"visibility\":\"visible\"});\n}\n\nfunction closePB() {\n    // close pb and set cookie to not show again until new\n    pbID = document.getElementById(\"asae-pb-id\");\n    setAttributes(pbID, {\"display\": \"none\"});\n    \n    setCookie('pb-show',false,30); // expire in days; set to 30 for production\n}\n\n(function() {\n    document.addEventListener(\"DOMContentLoaded\", function() { \n        // currently not in use \n    })\n}) ()\n"]}