Custom Registration and Subscriptions Pages

What code do I need to add to customized registration/subscription pages in order to make the links display the popup that the default page generates?

I have a set of custom pages coded with buttons linked to the same URLs as the "Sign Up" buttons on the default page that Membership generates use, but I am uncertain of what code I need to add to the page to make the buttons functional.