<%-- 
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%> 
<%@ taglib uri="/tld/desktopTheme.tld" prefix="dttheme" %>
<%@ include file="toolbarRollovers.js" %>

<%
        String containerName = (String)pageContext.getAttribute("containerName",PageContext.REQUEST_SCOPE);
        String encodedTabName = null; 
        if (selectedTabName != null) {
%>


<table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="<dttheme:getAttribute name="brandBgColor" default="#FFFFFF"/>">
<tr><td>
<img src="<dt:scontent/>/images/spacer.gif" width="0" height="8" alt=""></td>
</tr>

<tr><td>

<table border="0" cellspacing="0" cellpadding="0" bgcolor="<dttheme:getAttribute name="titleBarColor"/>">
          
    <tr>
            
        <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#FFFFFF"/>" rowspan="3"><img src="<dt:scontent/>/desktop/images/nothing.gif" width="4" height="1" alt=""></td>
        <td valign="top" rowspan="3"><img src="<dt:scontent/>/desktop/tabs/images/<dttheme:getAttribute name="tabNotchImage" default="tabNotch.gif"/>" alt=""></td>
        <td><img src="<dt:scontent/>/desktop/images/nothing.gif" width="1" height="4" alt=""></td>
      <td rowspan="3"><img src="<dt:scontent/>/desktop/images/nothing.gif" width="6" height="1" alt=""></td>
    </tr>
          
    <tr>
            
      <td nowrap><font color="<dttheme:getAttribute name="titleFontColor" default="#FFFFFF"/>" class="<dttheme:getAttribute name="titleText" default="nonuw"/>"><b><%=selectedTabName%></b></font></td>
    </tr>
          
    <tr>
            
      <td><img src="<dt:scontent/>/desktop/images/nothing.gif" width="1" height="4" alt=""></td>
    </tr>
        
  </table>
 


</td><td width="100%">&nbsp;</td></tr>
<%--encode selectedTabName and store it in encodedTabName before generate the content link --%>
<%
encodedTabName = scp.getProviderContext().encodeURLParameter(selectedTabName);
        }
%>
</table>



<table border="0" cellpadding="0" cellspacing="0" width="100%">
    
  <tr>
      
    <td bgcolor="<dttheme:getAttribute name="titleBarColor"/>"><img src="<dt:scontent/>/desktop/images/nothing.gif" width="1" height="2" alt=""></td>
  </tr>
    
  <tr>
      
    <td bgcolor="<dttheme:getAttribute name="titleBarColor"/>">

        
      <table border="0" cellspacing="0" cellpadding="2" onMouseOver="highlightCell()" onMouseOut="resetCellColor()">
          
        <tr>           
          <td>&nbsp;&nbsp;&nbsp;
<%
          if (encodedTabName != null) {
%>
          <a href="<dtpc:getDesktopURL/>?action=edit&provider=JSPContentContainer&container=<%=container%>&selected=<%=selectedTabName%>" class="noUnderline">
<%
          }
	  else {
%>
          <a href="<dtpc:getDesktopURL/>?action=edit&provider=JSPContentContainer&container=<%=container%>" class="noUnderline">
<%
          }
%>
	  <font color="<dttheme:getAttribute name="contentLayoutLinkColor" default="#000000"/>" class="<dttheme:getAttribute name="contentLayoutText" default="noUnderline"/>">Content</font></a>&nbsp;&nbsp;&nbsp;</font><font color="<dttheme:getAttribute name="linkSeparatorColor" default="#9999CC"/>">|</font></td>
          <td>&nbsp;&nbsp;&nbsp;<font color="<dttheme:getAttribute name="contentLayoutLinkColor" default="#000000"/>" class="<dttheme:getAttribute name="contentLayoutText" default="noUnderline"/>"><b>Layout</font>&nbsp;&nbsp;&nbsp;</font></td>
        </tr>
        
      </table>
    </td>
  </tr>
    
  
</table>
