<div class="user_block-2"><a href="#" id="user_menu">User Menu</a></div>
<div id="user_menu_popup" class="popup_menu" style="display: none;">
<div class="thead" style="padding:5px"><b>User Menu</b></div>
<div class="popup_item_container"><a href="usercp.php" class="popup_item">{$lang->welcome_usercp}</a></div>
<div class="popup_item_container"><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);" class="popup_item">{$lang->welcome_open_buddy_list}</a></div>
<div class="thead" style="padding:5px"><b>Message Menu</b></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/search.php?action=getnew" class="popup_item">{$lang->welcome_newposts}</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/search.php?action=getdaily" class="popup_item">{$lang->welcome_todaysposts}</a></div>
<div class="popup_item_container"><a href="{$mybb->settings['bburl']}/private.php" class="popup_item">{$lang->welcome_pms}</a></div>
{$modcplink}{$admincplink}
</div>
<script type="text/javascript">
// <!--
if(use_xmlhttprequest == "1")
{
new PopupMenu("user_menu");
}
// -->
</script>
<div class="user_block">{$lang->welcome_back} <a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}">{$lang->welcome_logout}</a></div>