<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:if test="${menu ne null}">
<!-- 타이틀 -->
<div id="title" class="title-area">
	<ul class="page-title">
		<li>
			<c:out value="${menu.name}" /> <span><c:out value="${menu.memo}" /> </span>
		</li>
	</ul>
</div>
<c:if test="${subMenu ne null && fn:length(subMenu) > 0 }">
	<div class="sub_menu">
		<c:if test="${!empty worlddb}">
		<c:if test="${worlddb eq '167' or worlddb eq 'n167' }">
		<ul class="nation_flag">
			<li>
				<img src="/images/nation/n167.gif">
			</li>
			<li>
				일본 JAPAN
			</li>
		</ul>
		</c:if>
		<c:if test="${worlddb eq '163' or worlddb eq 'n163' }">
		<ul class="nation_flag">
			<li>
				<img src="/images/nation/n163.gif">
			</li>
			<li>
				중국 CHINA
			</li>
		</ul>
		</c:if>
		<c:if test="${worlddb eq '33' or worlddb eq 'n033' }">
		<ul class="nation_flag">
			<li>
				<img src="/images/nation/n033.gif">
			</li>
			<li>
				러시아 RUSSIA
			</li>
		</ul>
		</c:if>
		</c:if>
		<ul>
		<c:set var="isEnd" value=" |"/>
		<c:set var="current" value="class='current'"/>
		<c:forEach var="sub" items="${subMenu}" varStatus="status">
			<li>
				<a <c:if test="${sub.id == menu.id}">${current}</c:if> href="<c:out value="${sub.uri}"/>">${sub.name}</a>
				<c:if test="${!status.last}">${isEnd}</c:if>
			</li>
		</c:forEach>
		</ul>
	</div>
</c:if>
</c:if>
