See #508 for context, but the popup now supports three content attributes:
togglepopup=popup_id: If popup_id refers to a showing popup, hide it. If popup_id refers to a hidden popup, show it.
showpopup=popup_id: If popup_id refers to a hidden popup, show it.
hidepopup=popup_id: If popup_id refers to a showing popup, hide it.
The question becomes: what happens when one element has more than one of these attributes set? What if they point to different idrefs?