Dynamic panels included in template appear below content
I'd really like to create a template that contains a button, and when that button is pressed, a dynamic panel is displayed with a form in it (i.e. a login popup, register form, etc).
However, in practice, the popup always appears lower than content on the page (because it's part of the template. The only alternative I can see is to manually include the button/panel in every page using a master--this seems tedious.
Are there any alternatives?