<%-- 
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%> 
<%@ taglib uri="/tld/jx.tld" prefix="jx" %>
<%@ taglib uri="/tld/desktop.tld" prefix="dt" %>
<%@ taglib uri="/tld/desktopProviderContext.tld" prefix="dtpc" %>
<%@ taglib uri="/tld/desktopContainerProviderContext.tld" prefix="dtcpc" %>
<%@ taglib uri="/tld/desktopTab.tld" prefix="tab" %>
<%@ taglib uri="/tld/desktopTheme.tld" prefix="dttheme" %>

<%@ page session="false" %>
<dt:obtainContainer container="$JSPProvider">

<dtpc:getStringProperty key="productName" id="productName" scope="request"/>
<%
      String productName = (String)pageContext.getAttribute("productName", PageContext.REQUEST_SCOPE);
%>

<HTML>
  <HEAD>

<script src="<dt:scontent/>/close-windows.jsp" language="JavaScript" type="text/javascript"></script>

   <SCRIPT LANGUAGE="JavaScript1.2">
      function launchPopup(url, name, width, height) {
      popup_window = window.open( url, name, 'width=' + width + ',height=' + height +',resizable=yes,scrollbars=yes');
      }

      // Function to 'turn-off' all images.
        function imagesoff() {
                if (document.images) 
                {
                        document.banner_home.src = banner_homeoff.src;
                        document.banner_mobiledevices.src = banner_mobiledevicesoff.src;
                        document.banner_tabs.src = banner_tabsoff.src;
                        document.banner_help.src = banner_helpoff.src;
                        document.banner_logout.src = banner_logoutoff.src;
                        document.banner_theme.src = banner_themeoff.src;
        }
        }


      // Function to 'turn-on' the target image.
        function imageon(imgName) {
                if (document.images) {
                        document[imgName].src = eval(imgName + "on.src");
                        }
        }

      // Function to handle mouse overs
     function over(imgName) {
        document[imgName].src= eval(imgName + "over.src");
        }

      // Function to handle mouse outs
     function out(imgName) {
        document[imgName].src= eval(imgName + "off.src");
        }

     // set the window name
     function setWindowName() {
      window.name='ps_main';
     }

      
    //-->
    </SCRIPT>

      <TITLE><%=productName%></TITLE>
  </HEAD>
  <BODY ONLOAD=setWindowName(); BGCOLOR="#FFFFFF" leftMargin=0  rightMargin=0 topMargin=0 marginheight="0" marginwidth="0" link="<dttheme:getAttribute name="channelLinkColor" default="#3a2eb5"/>">
  <LINK REL="stylesheet" TYPE="text/css" HREF="<dt:scontent/>/desktop/css/style.css" TITLE="fonts">

    <SCRIPT>
        if (document.images) {
                banner_homeoff = new Image();
                banner_homeoff.src =
                "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                banner_mobiledevicesoff = new Image();
                banner_mobiledevicesoff.src = "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                banner_tabsoff = new Image();
                banner_tabsoff.src = "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                banner_helpoff = new Image();
                banner_helpoff.src = "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                banner_logoutoff = new Image();
                banner_logoutoff.src = "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                banner_themeoff = new Image();
                banner_themeoff.src = "<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>";
                                        
                banner_homeover = new Image();
                banner_homeover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
                banner_mobiledevicesover = new Image();
                banner_mobiledevicesover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
                banner_tabsover = new Image();
                banner_tabsover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
                banner_helpover = new Image();
                banner_helpover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
                banner_logoutover = new Image();
                banner_logoutover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
                banner_themeover = new Image();
                banner_themeover.src = "<dt:scontent/>/images/<dttheme:getAttribute name="activeBulletImage" default="redBullet.gif"/>";
     }
          
    </SCRIPT>

    <CENTER>
    <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
      <TR>
         <td bgcolor="<dttheme:getAttribute name="tableBgColor" default="#CC0000"/>" colspan="7"><img src="<dt:scontent/>/images/spacer.gif" width="1" height="3" alt=""></td>
      </TR>
     <tr> 
      <dttheme:getSelectedName id="selectedTheme"/>
      <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#333366"/>"> <img src="<dt:scontent/>/images/spacer.gif" width="8" height="44" alt=""></td>
      <td bgcolor="<dttheme:getAttribute name="brandImageBgColor" default="#333366"/>"><img src="<dt:scontent/>/images/<dttheme:getAttribute name="brandImage" default="productName.gif"/>" width="<dttheme:getAttribute name="brandImageWidth" default="274"/>" alt="<%=productName%>"></td>
      <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#333366"/>"> <img src="<dt:scontent/>/images/spacer.gif" width="8" height="44" alt=""></td>
      <jx:choose>
      <jx:when test="$selectedTheme=='SunTheme'">
        <td bgcolor="<dttheme:getAttribute name="brandImage2BgColor" default="#333366"/>">
        <img src="<dt:scontent/>/images/<dttheme:getAttribute name="brandImage2" default="spacer.gif"/>" width="242" height="44" alt=""> </td>
      </jx:when>
      <jx:otherwise>
        <td bgcolor="<dttheme:getAttribute name="brandImage2BgColor" default="#333366"/>">
        <img src="<dt:scontent/>/images/<dttheme:getAttribute name="brandImage2" default="spacer.gif"/>"  alt=""> </td>
      </jx:otherwise>
      </jx:choose>
      <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#333366"/>"> <img src="<dt:scontent/>/images/spacer.gif" width="8" height="44" alt=""></td>

      <td bgcolor="<dttheme:getAttribute name="headerBgColor" default="#333366"/>">
        <table border="0" cellspacing="0" cellpadding="3" align="right" height="29">
          <tr> 
            <td><a href="<dtpc:getDesktopURL/>" onMouseOver="over('banner_home')" onMouseOut="out('banner_home')"> 
              <img name="banner_home" src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>" width="12" height="8" border="0" alt=""></a></td>
            <td><a href="<dtpc:getDesktopURL/>" onMouseOver="over('banner_home')" onMouseOut="out('banner_home')" class="noUnderline"> 
              <span class="banner-links"><FONT
              class="<dttheme:getAttribute name="headerText" default="banner-links"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>">Home</span></FONT></a> </td>
            <td><img src="<dt:scontent/>/images/spacer.gif" width="60" height="1" alt=""></td>
            <td> 
              <jx:choose>
                <jx:when test="$selectedTheme=='CustomTheme'">
                  <A HREF="<dtpc:getDesktopURL/>?action=edit&provider=JSPCustomThemeContainer" onMouseOver="over('banner_theme')" onMouseOut="out('banner_theme')">
                </jx:when>
                <jx:otherwise>
                  <A HREF="<dtpc:getDesktopURL/>?action=edit&provider=JSPPresetThemeContainer" onMouseOver="over('banner_theme')" onMouseOut="out('banner_theme')">
                </jx:otherwise>
               </jx:choose>
              <img name="banner_theme" src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>" width="12" height="8" border="0" alt=""></a></td>
            <td>
              <jx:choose>
                <jx:when test="$selectedTheme=='CustomTheme'">
                  <A HREF="<dtpc:getDesktopURL/>?action=edit&provider=JSPCustomThemeContainer" onMouseOver="over('banner_theme')" onMouseOut="out('banner_theme')" class="noUnderline">
                </jx:when>
                <jx:otherwise>
                  <A HREF="<dtpc:getDesktopURL/>?action=edit&provider=JSPPresetThemeContainer" onMouseOver="over('banner_theme')" onMouseOut="out('banner_theme')" class="noUnderline">
                </jx:otherwise>
               </jx:choose>
              <span class="banner-links"><FONT class="<dttheme:getAttribute name="headerText" default="banner-links"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>"> Theme</span></FONT></a></td>
            <td><img src="<dt:scontent/>/images/spacer.gif" width="60" height="1" alt=""></td>
            <td><a href="<dtpc:getDesktopURL/>?action=logout" onMouseOver="over('banner_logout')" onMouseOut="out('banner_logout')" onClick="closeWindows(); return true;"> 
              <img name="banner_logout"
              src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>" width="12" height="8" border="0" alt=""></a></td>
            <td colspan="3"><a href="<dtpc:getDesktopURL/>?action=logout" onMouseOver="over('banner_logout')" onMouseOut="out('banner_logout')" onClick="closeWindows(); return true;" class="noUnderline"> 
              <span class="banner-links"><FONT class="<dttheme:getAttribute name="headerText" default="banner-links"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>">Log Out</span><FONT></a></td>



            <td><img src="<dt:scontent/>/images/spacer.gif" width="30" height="1" alt=""></td>
          </tr>
          <tr> 
            <td><a href="<dtpc:getDesktopURL/>?action=edit&provider=WirelessJSPClientConfigContainer" onMouseOver="over('banner_mobiledevices')" onMouseOut="out('banner_mobiledevices')">
              <img name="banner_mobiledevices" src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>" width="12" height="8" border="0" alt=""></a></td>
            <td colspan="1" nowrap><a href="<dtpc:getDesktopURL/>?action=edit&provider=WirelessJSPClientConfigContainer" onMouseOver="over('banner_mobiledevices')" onMouseOut="out('banner_mobiledevices')" class="noUnderline">
              <span class="banner-links"><FONT class="<dttheme:getAttribute name="headerText" default="banner-link"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>">Mobile Devices</FONT></span></a></td>
            <td><img src="<dt:scontent/>/images/spacer.gif" width="60" height="1" alt=""></td>
            <td><a href="<dtpc:getDesktopURL/>?action=edit&provider=<dtpc:getDefaultChannelName/>" onMouseOver="over('banner_tabs')" onMouseOut="out('banner_tabs')"> 
              <img name="banner_tabs" src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif" />" width="12" height="8" border="0" alt=""></a></td>
            <td><a href="<dtpc:getDesktopURL/>?action=edit&provider=<dtpc:getDefaultChannelName/>" onMouseOver="over('banner_tabs')" onMouseOut="out('banner_tabs')" class="noUnderline"> 
              <span class="banner-links"><FONT class="<dttheme:getAttribute name="headerText" default="banner-links"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>">Tabs</span></FONT></a></td>
            <td><img src="<dt:scontent/>/images/spacer.gif" width="60" height="1" alt=""></td>
            <td><a href="<dt:getHelp/>" onMouseOver="over('banner_help')" onMouseOut="out('banner_help')" onClick="javascript: var helpWin=window.open('<dt:getHelp/>', 'wthelp', 'width=600,height=400,hotkeys=no,status=no,resizable=yes,scrollbars=yes,toolbar=yes'); helpWin.focus();return false;"> 
              <img name="banner_help" src="<dt:scontent/>/images/<dttheme:getAttribute name="inactiveBulletImage" default="blueBullet.gif"/>" width="12" height="8" border="0" alt=""></a></td>
            <td><a href="<dt:getHelp/>" onMouseOver="over('banner_help')" onMouseOut="out('banner_help')" onClick="javascript: var helpWin=window.open('<dt:getHelp/>', 'wthelp', 'width=600,height=400,hotkeys=no,status=no,resizable=yes,scrollbars=yes,toolbar=yes'); helpWin.focus();return false;" class="noUnderline"> 
              <span class="banner-links"><FONT class="<dttheme:getAttribute name="headerText" default="banner-links"/>" color="<dttheme:getAttribute name="headerFontColor" default="#FFFFFF"/>">Help</span><FONT></a></td>

            <td><img src="<dt:scontent/>/images/spacer.gif" width="60" height="1" alt=""></td>
	    <%@ include file="searchbox.jsp" %>
          </tr>
          <tr>

           </tr>

        </table>
      </td>
      <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#333366"/>"> <img src="<dt:scontent/>/images/spacer.gif" width="8" height="44" alt=""></td>
    </tr>
    <tr>
    <td bgcolor="<dttheme:getAttribute name="brandBgColor" default="#FFFFFF"/>" colspan="7"><img src="<dt:scontent/>/images/spacer.gif" width="1" height="15" alt=""></td>
    </tr>
    </table>

</dt:obtainContainer>
