							<div id="groupMenu" class="yuimenubar btmmenubar">
								<div class="bd">
									<ul class="first-of-type">
										<li class="yuimenubaritem first-of-type"><a class="yuimenubaritemlabel" href="<?php e(HTTP_ACTION); ?>member/personal/profile/<?php e($this->_vars['base']['member']['id']); ?>/"><img src="<?php e(BASE_URL); ?>resource/img/icons/vcard.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Top Page'); ?></a></li>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="#"><img src="<?php e(BASE_URL); ?>resource/img/icons/user.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Personal'); ?></a></li>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="<?php e(HTTP_ACTION); ?>member/blog/list/<?php e($this->_vars['base']['member']['id']); ?>/"><img src="<?php e(BASE_URL); ?>resource/img/icons/book_open.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Blog'); ?></a></li>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="#"><img src="<?php e(BASE_URL); ?>resource/img/icons/disconnect.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Contact'); ?></a></li>
									</ul>
								</div>
							</div><script type="text/javascript">
YAHOO.util.Event.onContentReady("groupMenu", function () {
	function onMenuBarBeforeRender(p_sType, p_sArgs) {
		var oSubmenuData = {
			"personal": [ 						
				{ id: "mFriends",   text: "<?php _e('Friends'); ?>",   url: "<?php e(HTTP_ACTION); ?>member/personal/friends/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "mCommunity", text: "<?php _e('Community'); ?>", url: "<?php e(HTTP_ACTION); ?>member/personal/community/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "mFiles",     text: "<?php _e('Album'); ?>",     url: "<?php e(HTTP_ACTION); ?>member/personal/album/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "mCalendar",  text: "<?php _e('Calendar'); ?>",  url: "<?php e(HTTP_ACTION); ?>member/schedule/calendar/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "mComment",   text: "<?php _e('Comment'); ?>",   url: "<?php e(HTTP_ACTION); ?>member/personal/comment/<?php e($this->_vars['base']['member']['id']); ?>/" }
			],
			"contact": [
				{ id: "mSend",        text: "<?php _e('Send Message'); ?>",    url: "<?php e(HTTP_ACTION); ?>private/message/send/0/<?php e(US.'ref_to='.$this->_vars['base']['member']['id']); ?>" },
				{ id: "mFriendAdd",   text: "<?php _e('Add to Friend'); ?>",   url: "<?php e(HTTP_ACTION); ?>member/contact/friendadd/<?php e($this->_vars['base']['member']['id']); ?>/" },
<?php if ($this->_vars['base']['visible'] & VISIBILITY_FRIEND): ?>
				{ id: "mPostComment", text: "<?php _e('Post a Comment'); ?>",  url: "<?php e(HTTP_ACTION); ?>member/contact/comment/<?php e($this->_vars['base']['member']['id']); ?>/" },
<?php endif; ?>
				{ id: "mFavorite",    text: "<?php _e('Add to Favorite'); ?>", url: "<?php e(HTTP_ACTION); ?>member/contact/favorite/<?php e($this->_vars['base']['member']['id']); ?>/" }
			]
		};
		this.getItem(1).cfg.setProperty("submenu", { id: "personal", itemdata: oSubmenuData["personal"] });
		this.getItem(3).cfg.setProperty("submenu", { id: "contact",  itemdata: oSubmenuData["contact"] });
	}
	var oMenuBar = new YAHOO.widget.MenuBar("groupMenu", { autosubmenudisplay: true, showdelay: 0, hidedelay:  250 });
	oMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender);
	oMenuBar.render();
});</script>
