<? if (!defined("_GNUBOARD_")) exit; 
if($c < 0 || !$c) $c = 0; ?>

<style type="text/css">
#zm_userinfo_topmenu	{ text-align:center; margin:10px; }
#zm_userinfo_topmenu ul#topmenu	{ width:880px; margin:0 auto; padding:0; }
#zm_userinfo_topmenu ul#topmenu li	{ float:left; list-style:none; width:123px; padding:10px 0 10px 0; background:#9BB077; color:#fff; margin:1px; cursor:pointer; }
#zm_userinfo_topmenu ul#topmenu li:hover { background:#608B38; color:#fff; }

</style>
<div id="zm_userinfo_topmenu">
<ul id="topmenu">
<?	if($member[mb_id]) : //-- 회원일 때 메뉴 ?>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/member_confirm.php?url=register_form.php?c=0')">회원정보수정</span></li>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=profile&c=1')">프로필관리</span></li>
	<li><span onclick="window.open('<?=$g4[path]?>/bbs/profile.php?mb_id=<?=$member[mb_id]?>&pcode=adm', 'profile', 'width=700, height=500, toolbar=0')">공개설정</span></li>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=log&c=2')">로그인 기록</span></li>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=pwmodify&c=3')">비밀번호 변경</span></li>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=leave&c=4')">회원탈퇴</span></li>
<? else :				//-- 비회원일 때 메뉴 ?>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=idfind&c=0')">아이디 찾기</span></li>
	<li><span onclick="zm_gourl('<?=$g4[path]?>/bbs/zm.userinfo.php?pcd=pwfind&c=1')">비밀번호 찾기</span></li>
<?	endif; ?>
</ul>
</div>
<script>
var c = <?=$c?>;
$(document).ready(function(){
	$("#topmenu li").eq(c).css("background", "#608B38");
});
</script>
<div style="clear:both;"></div>