							<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); ?>community/view/community/<?php e($this->_vars['base']['community']['id']); ?>/"><img src="<?php e(BASE_URL); ?>resource/img/icons/information.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/bulletin.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Contents'); ?></a></li>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="#"><img src="<?php e(BASE_URL); ?>resource/img/icons/group.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Community'); ?></a></li>
<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="<?php e(HTTP_ACTION); ?>community/setting/resign/<?php e($this->_vars['base']['community']['id']); ?>/delete/"><img src="<?php e(BASE_URL); ?>resource/img/icons/disconnect.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Resign'); ?></a></li>
<?php else:?>
										<li class="yuimenubaritem"><a class="yuimenubaritemlabel" href="<?php e(HTTP_ACTION); ?>community/setting/join/<?php e($this->_vars['base']['community']['id']); ?>/"><img src="<?php e(BASE_URL); ?>resource/img/icons/connect.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<?php _e('Involved a Community'); ?></a></li>
<?php endif; ?>
									</ul>
								</div>
							</div><script type="text/javascript">
YAHOO.util.Event.onContentReady("groupMenu", function () {
	function onMenuBarBeforeRender(p_sType, p_sArgs) {
		var oSubmenuData = {
			"contents": [ 						
				{ id: "cForum",   text: "<?php _e('View Forum'); ?>",    url: "<?php e(HTTP_ACTION); ?>community/forum/list/<?php e($this->_vars['base']['community']['id']); ?>/" },
				{ id: "cEvent",   text: "<?php _e('View Event'); ?>",    url: "<?php e(HTTP_ACTION); ?>community/event/calendar/<?php e($this->_vars['base']['community']['id']); ?>/" },
				{ id: "cArticle", text: "<?php _e('View Article'); ?>",  url: "<?php e(HTTP_ACTION); ?>community/article/list/<?php e($this->_vars['base']['community']['id']); ?>/" },
			],
			"community": [
				{ id: "cMembers",  text: "<?php _e('View Members'); ?>",   url: "<?php e(HTTP_ACTION); ?>community/view/member/<?php e($this->_vars['base']['community']['id']); ?>/" },
<?php if ($this->_vars['base']['permission'] & PERMISSION_MEMBERS): ?>
				{ id: "cFootprint",text: "<?php _e('View Footprint'); ?>", url: "<?php e(HTTP_ACTION); ?>community/view/footprint/<?php e($this->_vars['base']['community']['id']); ?>/" },
<?php endif; ?>
				{ id: "cInvite",   text: "<?php _e('Invite Friends'); ?>", url: "<?php e(HTTP_ACTION); ?>community/setting/invite/<?php e($this->_vars['base']['community']['id']); ?>/" }
			]
		};
		this.getItem(1).cfg.setProperty("submenu", { id: "contents",  itemdata: oSubmenuData["contents"] });
		this.getItem(2).cfg.setProperty("submenu", { id: "community", itemdata: oSubmenuData["community"] });
	}
	var oMenuBar = new YAHOO.widget.MenuBar("groupMenu", { autosubmenudisplay: true, showdelay: 0, hidedelay:  250 });
	oMenuBar.beforeRenderEvent.subscribe(onMenuBarBeforeRender);
	oMenuBar.render();
});</script>
