Popup: Toggle true/false for the aria-expanded attribute of all links in the document that refer to a given popup upon opening resp. closing the popup.
Links: Do not attach two event handlers for each popup link to the document.