<%@ page import="java.util.Map,
                 gov.va.med.fw.security.SecurityContext,
                 gov.va.med.fw.security.UserPrincipal,
                 gov.va.med.esr.ui.util.NameHelper"%>
<%@ taglib uri="/tags/displaytag" prefix="display" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>
<%@ taglib uri="/tags/authz" prefix="auth" %>
<%@ page import='gov.va.med.esr.common.model.lookup.Capability' %>

<c:set var="skipToMainContent" scope="page"><bean-el:message key="label.skipToMainContent"/></c:set>
<c:set var="systemHelp" scope="page"><bean:message key="header.systemHelp" /></c:set>
<c:set var="contextPath" scope="page"><%=request.getContextPath()%></c:set>

<c:set var="homeMenu"><bean-el:message key="link.name.home"/> <bean-el:message key="label.menu"/> (F12)</c:set>
<c:set var="veteranMenu"><bean-el:message key="link.name.veteran"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="veteranSearchMenu"><bean-el:message key="link.name.veteranSearch"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="veteranOverviewMenu"><bean-el:message key="link.name.veteranOverview"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="veteranMergeMenu"><bean-el:message key="link.name.veteranMerge"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="veteranMergeSearchMenu"><bean-el:message key="link.name.veteranMergeSearch"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="veteranUnmergeMenu"><bean-el:message key="link.name.veteranUnmerge"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="worklistMenu"><bean-el:message key="link.name.worklist"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="registryMenu"><bean-el:message key="link.name.registry"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="manageRegistryMenu"><bean-el:message key="link.name.manageRegistry"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="loadRegistryMenu"><bean-el:message key="link.name.loadRegistry"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="messagesMenu"><bean-el:message key="link.name.messages"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="mailMenu"><bean-el:message key="link.name.mail"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="undeliverableMailScanningMenu"><bean-el:message key="link.name.undeliverableMailScanning"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="undeliverableMailSearchMenu"><bean-el:message key="link.name.undeliverableMailSearch"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="reportsMenu"><bean-el:message key="link.name.reports"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="runReportMenu"><bean-el:message key="label.reportList"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="scheduleReportMenu"><bean-el:message key="label.scheduledReports"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="viewCompletedReportsMenu"><bean-el:message key="label.completedReports"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="referenceMenu"><bean-el:message key="link.name.reference"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="thresholdsMenu"><bean-el:message key="link.name.thresholds"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="egtSettingsMenu"><bean-el:message key="link.name.egtSettings"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="relaxationPercentageMenu"><bean-el:message key="link.name.relaxationPercentage"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="adminMenu"><bean-el:message key="link.name.admin"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="userAccountsMenu"><bean-el:message key="link.name.userAccounts"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="userProfilesMenu"><bean-el:message key="link.name.userProfiles"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="parametersMenu"><bean-el:message key="link.name.parameters"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="batchProcessMenu"><bean-el:message key="link.name.batchProcess"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="userSessionsMenu"><bean-el:message key="link.name.userSessions"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="log4jMenu"><bean:message key="link.name.log4j"/> <bean:message key="label.menu"/></c:set>
<c:set var="eeServiceMenu"><bean:message key="link.name.eeservice"/> <bean:message key="label.menu"/></c:set>
<c:set var="msdsServiceMenu"><bean:message key="link.name.msdsService"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppMenu"><bean:message key="link.name.esrApp"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppSearchMenu"><bean:message key="link.name.esrAppSearch"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppCompRegMenu"><bean:message key="link.name.esrAppCompleteRegistration"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppStatHistoryMenu"><bean:message key="link.name.esrAppStatusHistory"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppCancelRegistrationMenu"><bean:message key="link.name.esrAppCancelRegistration"/> <bean:message key="label.menu"/></c:set>
<c:set var="esrAppSaveInProcessMenu"><bean:message key="link.name.esrAppSaveInProcess"/> <bean:message key="label.menu"/></c:set>
<c:set var="displayFullAddPersonMenu" value="false"/>
<c:set var="handBookBatchRequestMenu"><bean-el:message key="link.name.handBookBatchRequest"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="handBookBatchFileStatisticsMenu"><bean-el:message key="link.name.handBookBatchFileStatistics"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="addAPersonMenu" value="false"/>
<c:set var="voaMenu" value="false"/>
<c:set var="voaResubmissionMenu"><bean-el:message key="link.name.voaResubmission"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="irsReportingMenu"><bean-el:message key="link.name.irsReporting"/> <bean-el:message key="label.menu"/></c:set>
<c:set var="healthBenefitPlansMenu"><bean-el:message key="link.name.healthBenefitPlans"/> <bean-el:message key="label.menu"/></c:set>

<auth:authorize ifAnyGranted="<%=Capability.ADD_PERSON_CAPABILITY_SETS.getName()%>">
  <c:set var="addAPersonMenu" value="true"/>
</auth:authorize>

<auth:authorize ifAnyGranted="<%=Capability.MANAGE_VOA.getName()%>">
    <c:set var="voaMenu" value="true"/>
</auth:authorize>

<c:if test="${AppData.SelectedPerson != null && AppData.addAPerson != null && AppData.addAPerson == true}">
        <c:set var="displayFullAddPersonMenu" value="true"/>
</c:if>

<script type="text/javascript" src="../scripts/udm-dom.js"></script>
<script type="text/javascript" src="../scripts/udm-mod-keyboard.js"></script>

  <tr>
    <td colspan="4" bgcolor="#788EBF"><img alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" height="1"></td>
  </tr>
  <tr>
    <td colspan="4">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation">
        <tr>
          <td width="1%" nowrap class="bannerDate" align="left">
          <!-- CCR13205 508 - Make sure skip navigation links are visible (508-2) -->
            <a id="es-header-skip" href="#ContentArea">
            <!-- <html-el:img src="/esr/images/spacer.gif" alt="${skipToMainContent}" width="1" height="1" border="0"/> --> Skip to Main Content </a>
            <fw:date format="EEE MM/dd/yyyy h:mm:ssa"/></td>
            <td width="25%" class="bannerWelcome"><img alt="" src="<%=request.getContextPath()%>/images/spacer.gif" height="1"></td>
            <c:choose>
            <c:when test="${AppData.SecurityContext != null}">
              <td width="5%" nowrap class="bannerWelcome"><bean:message key="header.welcome"/>:&nbsp;<span class="bannerName"><%= NameHelper.formatNameFirstNameFirst((UserPrincipal)((SecurityContext)((Map)session.getAttribute("AppData")).get("SecurityContext")).getUserPrincipal())%></span></td>
            </c:when>
            <c:otherwise>
              <td width="5%" nowrap class="bannerWelcome">&nbsp;</td>
            </c:otherwise>
            </c:choose>
          <td width="25%" class="bannerWelcome"><img alt="" src="<%=request.getContextPath()%>/images/spacer.gif" height="1"></td>
          <td width="5%" nowrap class="bannerLogIn"><html-el:link styleId="es-header-signout" styleClass="black" href="/esr/signout.do" ><bean:message key="header.signout"/></html-el:link></td>
          <td width="25%" class="bannerWelcome"><img alt="" src="<%=request.getContextPath()%>/images/spacer.gif" height="1"></td>
		      <td width="1%" nowrap class="bannerHelp" align="right">
		        <a id="es-header-help" class= " helpFocus" href="javascript:ESR_ShowHelp()"><html-el:img alt="${systemHelp}" border="0" src="${contextPath}/images/esr_help_small.gif"/></a>
		  </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="4" class="bannerSpacer"><img alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" height="3"></td>
  </tr>
  <tr>
    <td colspan="4">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" role="presentation">
        <tr>
         <td width="90" rowspan="2" valign="top" class="bannerSeal"><img alt=""  src="<%=request.getContextPath()%>/images/vha_seal.jpg" width="90" height="75"></td>
          <td width="3" rowspan="2" valign="top"><img alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" width="3"></td>
          <td nowrap class="bannerTableLeft">
            <p class="bannerKick"><bean:message key="header.vha"/>
            <br>
            <span class="bannerHead"><bean:message key="header.system"/></span>
            </p>
          </td>
          <td align="right" valign="middle" class="bannerTableRight"><img alt="Banner collage of VHA-centric photos"  src="<%=request.getContextPath()%>/images/vha_bannerPhotos.jpg" width="498" height="50"></td>
        </tr>
        <tr>
          <td colspan="2">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="bannerNav" role="presentation">
            <tr>
              <td height="20" width="100%"><img alt="" height="20" width="100%" src="<%=request.getContextPath()%>/images/spacer.gif">
                <ul id="udm" class="udm">
                	<li><a id="es-menu-home" <auth:authorize ifNotGranted="<%=Capability.LOGIN_INTO_SYSTEM.getName()%>">class="nohref"</auth:authorize> href="/esr/admin/home.do" title="<c:out value='${homeMenu}'/>"><bean-el:message key="link.name.home"/></a>
                	</li>
                	<li><a id="es-menu-vet" class="nohref" title="<c:out value='${veteranMenu}'/>"><bean-el:message key="link.name.veteran"/></a>
                  	<ul>
                  		<li><a id="es-menu-vet-1" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/search.do?methodName=DISPLAY" title="<c:out value='${veteranSearchMenu}'/>"><bean-el:message key="link.name.veteranSearch"/></a></li>
                  		<li><a id="es-menu-vet-2" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/overview.do" title="<c:out value='${veteranOverviewMenu}'/>"><bean-el:message key="link.name.veteranOverview"/></a></li>
                  		<li><a id="es-menu-vet-3" <auth:authorize ifNotGranted="<%=Capability.MERGE_VETERAN%>">class="nohref"</auth:authorize> href="/esr/person/personMergeWorklist.do?methodName=DISPLAY" title="<c:out value='${veteranMergeMenu}'/>"><bean-el:message key="link.name.veteranMerge"/></a></li>
                  		<li><a id="es-menu-vet-4" <auth:authorize ifNotGranted="<%=Capability.MERGE_VETERAN%>">class="nohref"</auth:authorize> href="/esr/person/personMergeWorklistSearch.do?methodName=MERGE_SEARCH" title="<c:out value='${veteranMergeMenu}'/>"><bean-el:message key="link.name.veteranMergeSearch"/></a></li>
                  		<li><a id="es-menu-vet-5" <auth:authorize ifNotGranted="<%=Capability.UNMERGE_VETERAN_MERGED_PAIRS.getName()%>">class="nohref"</auth:authorize> href="/esr/person/personUnmergeWorklist.do?methodName=DISPLAY" title="<c:out value='${veteranUnmergeMenu}'/>"><bean-el:message key="link.name.veteranUnmerge"/></a></li>
                  	</ul>
                	</li>
                	<li><a id="es-menu-worklist" <auth:authorize ifNotGranted="<%=Capability.MANAGE_WORKLIST%>">class="nohref"</auth:authorize> href="/esr/workflow/worklist.do?methodName=DISPLAY" title="<c:out value='${worklistMenu}'/>"><bean-el:message key="link.name.worklist"/></a>
                	</li>
                	<li><a id="es-menu-registry" class="nohref" title="<c:out value='${registryMenu}'/>"><bean-el:message key="link.name.registry"/></a>
                  	<ul>
                  		<li><a id="es-menu-registry-1" <auth:authorize ifNotGranted="<%=Capability.MANAGE_REGISTRY%>">class="nohref"</auth:authorize> href="/esr/person/searchRegistry.do?methodName=DISPLAY" title="<c:out value='${manageRegistryMenu}'/>"><bean-el:message key="link.name.manageRegistry"/></a></li>
                  		<li><a id="es-menu-registry-2" <auth:authorize ifNotGranted="<%=Capability.EXEC_BATCH_REGISTRY_LOAD.getName()%>">class="nohref"</auth:authorize> href="/esr/person/loadRegistry.do?methodName=DISPLAY" title="<c:out value='${loadRegistryMenu}'/>"><bean-el:message key="link.name.loadRegistry"/></a></li>
                  	</ul>
                	</li>
                	<li><a id="es-menu-hl7" <auth:authorize ifNotGranted="<%=Capability.MANAGE_HL7_MESSAGES%>">class="nohref"</auth:authorize> href="/esr/message/messageAction.do?methodName=DISPLAY" title="<c:out value='${messagesMenu}'/>"><bean-el:message key="link.name.messages"/></a>
                	</li>
                	<li><a id="es-menu-mail" class="nohref" title="<c:out value='${mailMenu}'/>"><bean-el:message key="link.name.mail"/></a>
                  	<ul>
                  		<li><a id="es-menu-mail-1" <auth:authorize ifNotGranted="<%=Capability.PROCESS_UNDELIVERABLE_MAIL.getName()%>">class="nohref"</auth:authorize> href="/esr/comms/undeliverableMailBarcodeScanning.do?methodName=CLEAR" title="<c:out value='${undeliverableMailScanningMenu}'/>"><bean-el:message key="link.name.undeliverableMailScanning"/></a></li>
                  		<li><a id="es-menu-mail-2" <auth:authorize ifNotGranted="<%=Capability.PROCESS_UNDELIVERABLE_MAIL.getName()%>">class="nohref"</auth:authorize> href="/esr/comms/undeliverableMailSearch.do?methodName=CLEAR" title="<c:out value='${undeliverableMailSearchMenu}'/>"><bean-el:message key="link.name.undeliverableMailSearch"/></a></li>
                  	</ul>
                	</li>
                	<li><a id="es-menu-reports" class="nohref" title="<c:out value='${reportsMenu}'/>"><bean-el:message key="link.name.reports"/></a>
                  	<ul>
                  		<li><a id="es-menu-reports-1" <auth:authorize ifNotGranted="<%=Capability.SCHEDULE_RUN_REPORTS%>">class="nohref"</auth:authorize> href="/esr/report/viewReports.do?methodName=displayAvailableReports" title="<c:out value='${runReportMenu}'/>"><bean-el:message key="label.reportList"/></a></li>
                  		<li><a id="es-menu-reports-2" <auth:authorize ifNotGranted="<%=Capability.SCHEDULE_RUN_REPORTS%>">class="nohref"</auth:authorize> href="/esr/report/scheduledReports.do?methodName=displayScheduledReports" title="<c:out value='${scheduleReportMenu}'/>"><bean-el:message key="label.scheduledReports"/></a></li>
                  		<li><a id="es-menu-reports-3" <auth:authorize ifNotGranted="<%=Capability.VIEW_REPORTS%>">class="nohref"</auth:authorize> href="/esr/report/completedReports.do?methodName=displayCompletedReports" title="<c:out value='${viewCompletedReportsMenu}'/>"><bean-el:message key="label.completedReports"/></a></li>
                  	</ul>
                	</li>
                	<li><a id="es-menu-reference" class="nohref" title="<c:out value='${referenceMenu}'/>"><bean-el:message key="link.name.reference"/></a>
                  	<ul>
                  		<li><a id="es-menu-reference-1" <auth:authorize ifNotGranted="<%=Capability.VIEW_THRESHOLDS%>">class="nohref"</auth:authorize> href="/esr/financials/thresholds.do?methodName=Thresholds" title="<c:out value='${thresholdsMenu}'/>"><bean-el:message key="link.name.thresholds"/></a></li>
                  		<li><a id="es-menu-reference-2" <auth:authorize ifNotGranted="<%=Capability.MANAGE_EGT%>">class="nohref"</auth:authorize> href="/esr/egt/egtSettingOverview.do?methodName=DISPLAY" title="<c:out value='${egtSettingsMenu}'/>"><bean-el:message key="link.name.egtSettings"/></a></li>
                  		<li><a id="es-menu-reference-3" <auth:authorize ifNotGranted="<%=Capability.MANAGE_RELAXATION_PERCENTAGE%>">class="nohref"</auth:authorize> href="/esr/financials/relaxationPercentage.do?methodName=display" title="<c:out value='${relaxationPercentageMenu}'/>"><bean-el:message key="link.name.relaxationPercentage"/></a></li>
                  	</ul>
                	</li>
            <c:if test="${voaMenu == true}">
            		<li><a id="es-menu-voa"<auth:authorize ifNotGranted="<%=Capability.MANAGE_CAPABILITY_SETS%>">class="nohref"</auth:authorize> href="/esr/voa/voaPendingList.do?methodName=displayPendingSubmissions" title="<c:out value='${voaResubmissionMenu}'/>"><bean-el:message key="link.name.voaResubmission"/></a>
					</li>
            </c:if>



            <c:if test="${addAPersonMenu == true}">
                	<li><a id="es-menu-addperson" class="nohref" title="<c:out value='${esrAppMenu}'/>"><bean-el:message key="link.name.esrApp"/></a>
                  	<ul>
                  		<li><a id="es-menu-addperson-1" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/searchNew.do?methodName=DISPLAY_NEW" title="<c:out value='${esrAppSearchMenu}'/>"><bean-el:message key="link.name.esrAppSearch"/></a></li>
                  		<c:if test="${displayFullAddPersonMenu == true}">
							<li><a id="es-menu-addperson-2" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/searchNew.do?methodName=SAVE_IN_PROCESS" title="<c:out value='${esrAppSaveInProcessMenu}'/>"><bean-el:message key="link.name.esrAppSaveInProcess"/></a></li>
							<li><a id="es-menu-addperson-3" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/searchNew.do?methodName=CANCEL_REGISTRATION" title="<c:out value='${esrAppCancelRegistrationMenu}'/>"><bean-el:message key="link.name.esrAppCancelRegistration"/></a></li>
							<li><a id="es-menu-addperson-4" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/searchNew.do?methodName=DISPLAY_STATUS_HISTORY" title="<c:out value='${esrAppStatHistoryMenu}'/>"><bean-el:message key="link.name.esrAppStatusHistory"/></a></li>
                  			<li><a id="es-menu-addperson-5" <auth:authorize ifNotGranted="<%=Capability.SEARCH%>">class="nohref"</auth:authorize> href="/esr/admin/searchNew.do?methodName=COMPLETE_REGISTRATION" title="<c:out value='${esrAppCompRegMenu}'/>"><bean-el:message key="link.name.esrAppCompleteRegistration"/></a></li>
                  		</c:if>
                  	</ul>
                	</li>
			</c:if>
                  <c:set var="manageUserProfiles" value="false"/>
                  <c:set var="manageRoles" value="false"/>
                  <c:set var="manageCapabilitySets" value="false"/>
                  <auth:authorize ifAnyGranted="<%=Capability.MANAGE_USER_PROFILES%>">
                  	<c:set var="manageUserProfiles" value="true"/>
                  </auth:authorize>
                  <auth:authorize ifAnyGranted="<%=Capability.MANAGE_ROLES%>">
                  	<c:set var="manageRoles" value="true"/>
                  </auth:authorize>
                  <auth:authorize ifAnyGranted="<%=Capability.MANAGE_CAPABILITY_SETS%>">
                  	<c:set var="manageCapabilitySets" value="true"/>
                  </auth:authorize>
                	<li><a id="es-menu-admin" class="nohref" title="<c:out value='${adminMenu}'/>"><bean-el:message key="link.name.admin"/></a>
                  	<ul>
                  		<li><a id="es-menu-admin-1" <auth:authorize ifNotGranted="<%=Capability.MANAGE_USER_ACCOUNTS%>">class="nohref"</auth:authorize> href="/esr/admin/searchUserAccount.do?methodName=DISPLAY" title="<c:out value='${userAccountsMenu}'/>"><bean-el:message key="link.name.userAccounts"/></a></li>
                      <c:choose>
                      <c:when test="${manageUserProfiles == true}">
                        <li><a id="es-menu-admin-2" <auth:authorize ifNotGranted="<%=Capability.MANAGE_PROFILES_ROLES_SETS%>">class="nohref"</auth:authorize> href="/esr/admin/searchUserProfile.do?methodName=DISPLAY" title="<c:out value='${userProfilesMenu}'/>"><bean-el:message key="link.name.userProfiles"/></a></li>
                      </c:when>
                      <c:when test="${manageRoles == true}">
                        <li><a id="es-menu-admin-3" <auth:authorize ifNotGranted="<%=Capability.MANAGE_PROFILES_ROLES_SETS%>">class="nohref"</auth:authorize> href="/esr/admin/viewRoles.do?methodName=DISPLAY" title="<c:out value='${userProfilesMenu}'/>"><bean-el:message key="link.name.userProfiles"/></a></li>
                      </c:when>
                      <c:when test="${manageCapabilitySets == true}">
                        <li><a id="es-menu-admin-4" <auth:authorize ifNotGranted="<%=Capability.MANAGE_PROFILES_ROLES_SETS%>">class="nohref"</auth:authorize> href="/esr/admin/viewCapabilitySets.do?methodName=DISPLAY" title="<c:out value='${userProfilesMenu}'/>"><bean-el:message key="link.name.userProfiles"/></a></li>
                      </c:when>
                      <c:otherwise>
                        <li><a id="es-menu-admin-5" <auth:authorize ifNotGranted="<%=Capability.MANAGE_PROFILES_ROLES_SETS%>">class="nohref"</auth:authorize> href="/esr/admin/searchUserProfile.do?methodName=DISPLAY" title="<c:out value='${userProfilesMenu}'/>"><bean-el:message key="link.name.userProfiles"/></a></li>
                      </c:otherwise>
                      </c:choose>
                  		<li><a id="es-menu-admin-6" <auth:authorize ifNotGranted="<%=Capability.MANAGE_SYSTEM_PARAMETERS%>">class="nohref"</auth:authorize> href="/esr/admin/systemParameters.do?methodName=DISPLAY" title="<c:out value='${parametersMenu}'/>"><bean-el:message key="link.name.parameters"/></a></li>
                  		<li><a id="es-menu-admin-7" <auth:authorize ifNotGranted="Administrator">class="nohref"</auth:authorize> href="/esr/admin/batchProcess.do?methodName=DISPLAY_MGMT" title="<c:out value='${batchProcessMenu}'/>"><bean-el:message key="link.name.batchProcess"/></a></li>
               			<li><a id="es-menu-admin-8" <auth:authorize ifNotGranted="Administrator">class="nohref"</auth:authorize> href="/esr/admin/viewLog4jCurrentLogLevels.do?methodName=displayCurrentLogLevels" title="<c:out value='${log4jMenu}'/>"><bean:message key="link.name.log4j"/></a></li>
               			<li><a id="es-menu-admin-9" <auth:authorize ifNotGranted="Administrator">class="nohref"</auth:authorize> href="/esr/admin/serviceUser.do?methodName=list" title="<c:out value='${eeServiceMenu}'/>"><bean:message key="link.name.eeservice"/></a></li>
               			<%--<li><a id="es-menu-admin-10" <auth:authorize ifNotGranted="Administrator">class="nohref"</auth:authorize> href="/esr/admin/msdsService.do?methodName=displayMSDSServiceTest" title="<c:out value='${msdsServiceMenu}'/>"><bean:message key="link.name.msdsService"/></a></li>--%>
                  		<%--<li><a id="es-menu-admin-11" <auth:authorize ifNotGranted="Administrator">class="nohref"</auth:authorize> href="/esr/admin/userSessions.do?methodName=DISPLAY" title="<c:out value='${userSessionsMenu}'/>"><bean-el:message key="link.name.userSessions"/></a></li>--%>

                       <li><a id="es-menu-admin-12" <auth:authorize ifNotGranted="<%=Capability.PUBLISH_HANDBOOKS%>">class="nohref"</auth:authorize> href="/esr/admin/handBookBatchRequest.do?methodName=displayNew" title="<c:out value='${handBookBatchRequestMenu}'/>"><bean-el:message key="link.name.handBookBatchRequest"/></a></li>
                       <li><a id="es-menu-admin-13" <auth:authorize ifNotGranted="<%=Capability.PUBLISH_HANDBOOKS%>">class="nohref"</auth:authorize> href="/esr/admin/handBookBatchFileProcess.do?methodName=displayHandbookFileDateFilter" title="<c:out value='${handBookBatchFileStatisticsMenu}'/>"><bean-el:message key="link.name.handBookBatchFileStatistics"/></a></li>
                       <li><a id="es-menu-admin-14" <auth:authorize ifNotGranted="<%=Capability.MANAGE_HBPINFORMATION%>">class="nohref"</auth:authorize>  href="/esr/admin/viewHbps.do?methodName=DISPLAY_NEW" title="<c:out value='${healthBenefitPlansMenu}'/>"><bean:message key="link.name.healthBenefitPlans"/></a></li>
                       <li><a id="es-menu-admin-15"<auth:authorize ifNotGranted="<%=Capability.MANAGE_ACA_COMMUNICATIONS.getName()%>">class="nohref"</auth:authorize> href="/esr/admin/irsReject.do?methodName=irsRejectPerson" title="<c:out value='${irsReportingMenu}'/>"><bean-el:message key="link.name.irsReporting"/></a>
					</li>

                  	</ul>
                	</li>
                </ul>
              </td>
            </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td colspan="4" class="bannerSpacer"><img alt=""  src="<%=request.getContextPath()%>/images/spacer.gif" width="1" height="3"></td>
  </tr>
  <tr>
    <td colspan="4" id="bgimage"><img alt=""  src="<%=request.getContextPath()%>/images/shadowFillBkg.gif" width="1" height="6"></td>
  </tr>
