<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<%-- Alt Text --%>
<c:set var="thresholdsText" scope="page"><bean-el:message key="label.thresholds"/>&nbsp;<bean-el:message key="label.tab"/></c:set>
<c:set var="copaymentsText" scope="page"><bean-el:message key="label.copayments"/>&nbsp;<bean-el:message key="label.tab"/></c:set>
<c:set var="selectedTabText" scope="page"><bean-el:message key="label.selectedTab"/>,&nbsp;</c:set>

<table cellSpacing="0" cellPadding="0" border="0" role="presentation">
<c:choose>
<c:when test="${tabName == 'thresholds'}">
  <tr valign="bottom">
    <c:set var="thresholdsText" scope="page" value="${selectedTabText}${thresholdsText}"/>
    <td><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Thresholds"><html-el:img alt="${thresholdsText}" src="/esr/images/tabs_thresholds_on.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td ><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Copayments"><html-el:img alt="${copaymentsText}" src="/esr/images/tabs_copayments_off.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td width="100%" style="border-bottom: 1px solid #000000;">&nbsp;</td>
  </tr>
</c:when>

<c:when test="${tabName == 'copayments'}">
  <tr valign="bottom">
    <c:set var="copaymentsText" scope="page" value="${selectedTabText}${copaymentsText}"/>
    <td><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Thresholds"><html-el:img alt="${thresholdsText}" src="/esr/images/tabs_thresholds_off.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Copayments"><html-el:img alt="${copaymentsText}" src="/esr/images/tabs_copayments_on.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td width="100%" style="border-bottom: 1px solid #000000;">&nbsp;</td>
  </tr>
</c:when>
<c:otherwise>
  <tr valign="bottom">
    <td ><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Thresholds"><html-el:img alt="${thresholdsText}" src="/esr/images/tabs_thresholds_off.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td ><html-el:link styleClass="tabLink" href="/esr/financials/thresholds.do?methodName=Copayments"><html-el:img alt="${copaymentsText}" src="/esr/images/tabs_copayments_off.gif" width="123" height="23" border="0"/></html-el:link></td>
    <td width="100%" style="border-bottom: 1px solid #000000;">&nbsp;</td>
  </tr>
</c:otherwise>
</c:choose>
</table>
