Language selector in Register Form?

I am able to show the language selector in this page. But, when I click on the link, it does not pop-up the selector window. It redirect to a full page. I just want to see the pop-up.

This is what I added at the top of my register_form template.

<div id="languageSelector">
<a href="{xen:link 'misc/language', '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger" title="{xen:phrase language_chooser}" rel="nofollow">{$visitorLanguage.title}</a>
Top Bottom