<%@  page pageEncoding="utf-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/WEB-INF/iman.tld" prefix="iman" %>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<!-- //File:Nav.jsp -->
<c:if test="${categoryCount == null}"><c:set var="categoryCount" value="0" /></c:if>
<c:if test="${selectedCategoryId == null}"><c:set var="selectedCategoryId" value="0" /></c:if>
<html>
	<HEAD>
   <script>
		var m_categoryId =            new Array();   
	   var m_categoryDisplayName =   new Array();   
   	<c:forEach var="category" items="${CRTCategories}" varStatus="status">
   		<jsp:useBean id="status" type="javax.servlet.jsp.jstl.core.LoopTagStatus" />
			<c:set var="catIndex"><%=status.getCount()-1%></c:set>
      	m_categoryId[<c:out value="${catIndex}" />] = "<iman:toScript><c:out value='${category.id}' /></iman:toScript>";
      	m_categoryDisplayName[<c:out value="${catIndex}" />] = "<iman:toScript><c:out value='${category.displayName}' escapeXml="false"/></iman:toScript>";
		</c:forEach>

   	var m_categoryCnt = <c:out value="${categoryCount}" />;
   	var m_selectedCategoryIdx = <c:out value="${selectedCategoryId}" />;
   </script>
	</HEAD>
   <c:set var="row1Hight"><c:choose><c:when test="${ categoryCount > 0 }">52</c:when><c:otherwise>30</c:otherwise></c:choose></c:set>
   <FRAMESET ROWS="<c:out value="${row1Hight}" />,*" framespacing="0" frameborder="no">
		<c:set var="startingCat"><c:if test="${categoryCount>1}"><c:out value="${CTRCategories[0].id}" /></c:if></c:set>
		<c:set var="showHiddenTasks"><c:if test="${requestScope['Launch.ShowHiddenTasksMessage']!=null}">&Launch.ShowHiddenTasksMessage="<c:out value="requestScope['Launch.ShowHiddenTasksMessage']" />"</c:if></c:set>
		<FRAME NAME="code" 
             SRC="webacc?taskId=fw.Launch&merge=fw.Launch&tasksMode=<c:out value="${tasksMode}" />&category=<c:out value="${startingCat}" />&view=<c:out value="${param.view}" />" 
             MARGINWIDTH=0 MARGINHEIGHT=0 FRAMEBORDER=0 SCROLLING=NO noresize="noresize" />
		<FRAME NAME="menu" SRC="webacc?taskId=dev.Empty&merge=fw.LaunchEmptyMenu" SCROLLING="auto" />
	</FRAMESET>
</html>
