Have you checked up the Style Guide Template application? There are some patterns similar to yours.
You can get it here .
To open a popup on page load you can use the RichWidgets.Widget_Click() action in the web screen preparation to click a link (that could have the Invisible style) that will open a popup.
Is this what you are looking for?