<%--
  /**
   * Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
   * Use is subject to license terms.
   *
   * "@(#)top_minor_tabs.jsp    1.17    03/07/09     SMI"
   * 
   */
 --%>
  <!-- minor tabs table -->
  <table bgcolor="#ffffcc" border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td valign="top"><img alt src="images/general/LFsecondary_jlf.gif" width="6" height="6"></td>
      <td><img alt border="0" width="109" height="1" src="images/general/dot.gif"></td>
      <td>
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td colspan="4"><img alt border="0" width="1" height="2" src="images/general/dot.gif"></td>
          </tr>
          <tr>
          <% if(subItems != null) {
                     			                          			                 			
                  for( int i = 0; i<subItems.length; i++) {
                      				
                  	//String item = (String) subItems.get(i);                      				
                  	String item =  subItems[i];
                  	if(item.compareTo(selectedSubItem) == 0) { %>
                  	
                <!-- currently selected sub-menu item has static look/feel -->
            
		            	<td nowrap><span class="masthead-subnavsel-text"><b><bean:message key="<%=item%>" /></b></span></td>
            	        <% if(i < subItems.length -1) { %>
        		    	<td nowrap>&nbsp;<span class="sub-nav-divider">|</span>&nbsp;</td>
            			<% }           	
					 } else { %>
          
		   		<td nowrap><a class="masthead-subnav-text" href="<%=item%>.do" 
		   			title='<bean:message key='<%=item+".title"%>'/>' onmouseover="window.status='<bean:message key="<%=item%>" />'; return true" 
		   			onmouseout="window.status=''; return true" 
		   			onfocus="window.status='<bean:message key="<%=item%>" />'; return true" 
		   			onblur="window.status=''; return true"><bean:message key="<%=item%>" /></a>
		   		</td>
				   		<% if(i < subItems.length -1) { %>
		            	<td nowrap>&nbsp;<span class="sub-nav-divider">|</span>&nbsp;</td>
            			<% }
                } // end if
                  } //end for
          } else {
          %>  
            <td colspan="4">&nbsp; </td>
          <% 
          }//end if
          %>       
               	                                  
          </tr>
          <tr>
            <td colspan="4"><img alt border="0" width="1" height="2" src="images/general/dot.gif"></td>
          </tr>
        </table>        
      </td>
      <!--
        show the name of the currently selected array if the current major tab is 
        storage access or strage management, or if this is MR1/MR2 and the current
        major tab is administration.
      -->
      <% if(selectedSubItem.indexOf("root.menu.item0") != -1 
                || selectedSubItem.indexOf("root.menu.item1") != -1
                || (selectedSubItem.indexOf("root.menu.item3") != -1)
                    && (Repository.getRepository().getConfigInteger() 
                                < MaseratiConfig.MIDRANGE3_INT)) { %>
      <logic:present name="<%=Constants.HttpSessionFields.CURRENT_T4%>">
        <td valign="top" align="right" width="90%" >
         <bean:message key="menu.selected.array"/>
           <b><bean:write name="<%=Constants.HttpSessionFields.CURRENT_T4%>" property="name"/></b>&nbsp;
        </td>
      </logic:present>
      <% } %>
      <td valign="top" align="right" width="90%"><img alt src="images/general/RTsecondary_jlf.gif" width="6" height="6"></td>
    </tr>
  </table>
