							<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); ?>private/home/living/"><img src="<?php e(BASE_URL); ?>resource/img/icons/cup.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="#"><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/connect.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: "pMailbox",   text: "<?php _e('Mailbox'); ?>",   url: "<?php e(HTTP_ACTION); ?>private/message/list/" },
				{ id: "pFriends",   text: "<?php _e('Friends'); ?>",   url: "<?php e(HTTP_ACTION); ?>member/personal/friends/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "pCommunity", text: "<?php _e('Community'); ?>", url: "<?php e(HTTP_ACTION); ?>member/personal/community/<?php e($this->_vars['base']['member']['id']); ?>/<?php e(US); ?>status=<?php e(PERMISSION_MEMBERS); ?>" },
				{ id: "pAlbum",     text: "<?php _e('Album'); ?>",     url: "<?php e(HTTP_ACTION); ?>private/attach/list/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "pCalendar",  text: "<?php _e('Calendar'); ?>",  url: "<?php e(HTTP_ACTION); ?>member/schedule/calendar/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "pPall",      text: "<?php _e('Poll'); ?>",      url: "<?php e(HTTP_ACTION); ?>member/poll/list/<?php e($this->_vars['base']['member']['id']); ?>/" }
			],
			"blog": [
				{ id: "pWrite",   text: "<?php _e('Post new Blog'); ?>", url: "<?php e(HTTP_ACTION); ?>private/post/blog/" },
				{ id: "pBlog",    text: "<?php _e('View blog'); ?>",     url: "<?php e(HTTP_ACTION); ?>member/blog/list/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "pSetting", text: "<?php _e('Setting'); ?>",       url: "<?php e(HTTP_ACTION); ?>private/setting/blog/" }
			],
			"contact": [
				{ id: "mComment",   text: "<?php _e('Comment'); ?>",    url: "<?php e(HTTP_ACTION); ?>member/personal/comment/<?php e($this->_vars['base']['member']['id']); ?>/" },
				{ id: "mFootprint", text: "<?php _e('Footprint'); ?>",  url: "<?php e(HTTP_ACTION); ?>private/view/footprint/" },
				{ id: "mFavorite",  text: "<?php _e('Favorite'); ?>",   url: "<?php e(HTTP_ACTION); ?>private/view/favorite/" },
				{ id: "mInvite",    text: "<?php _e('Invite'); ?>",     url: "<?php e(HTTP_ACTION); ?>private/home/invite/" }
			]
		};
		this.getItem(1).cfg.setProperty("submenu", { id: "personal", itemdata: oSubmenuData["personal"] });
		this.getItem(2).cfg.setProperty("submenu", { id: "blog",     itemdata: oSubmenuData["blog"] });
		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>
