This is what I use for the drop down javascript if it will help you at all:
Code:
<div class="vbmenu_popup" id="rules_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[postbit_rules]</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$post[postid]&u=$post[userid]&textsel=1">Bump Thread</a></td>
</tr>
</table>
</div>
I have it doing case statements for the various templates.