<%--
/**
 * ident "@(#)Masthead.jsp 1.4 04/03/08 SMI"
 * 
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 * Use is subject to license terms.
 */
--%>
<%@page language="java" %>
<%@page import="com.sun.web.ui.common.CCI18N" %>
<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato" %>
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc" %>

<%
    // Get query parameters.
    //
    // Note: When query parameters are used as text, they must be
    // UTF-8 encoded to display double-byte locales correctly --
    // including title and alt text.
    String windowTitle = (request.getParameter("windowTitle") != null)
	? new String(request.getParameter("windowTitle").
	    getBytes(CCI18N.ISO_ENCODING), CCI18N.UTF8_ENCODING)
	: "";
    String mastheadTitle = (request.getParameter("mastheadTitle") != null)
	? new String(request.getParameter("mastheadTitle").
	    getBytes(CCI18N.ISO_ENCODING), CCI18N.UTF8_ENCODING)
	: "secondaryMasthead.productNameSrc";
    String pageTitle = (request.getParameter("pageTitle") != null)
	? new String(request.getParameter("pageTitle").
	    getBytes(CCI18N.ISO_ENCODING), CCI18N.UTF8_ENCODING)
	: "service.pageTitle";

    // Values only, no encoding necessary.
    String helpLogoWidth = (request.getParameter("helpLogoWidth") != null)
        ? request.getParameter("helpLogoWidth") : "";
    String helpLogoHeight= (request.getParameter("helpLogoHeight") != null)
        ? request.getParameter("helpLogoHeight") : "";	
%>

<jato:useViewBean className="com.sun.netstorage.mgmt.fm.storade.ui.viewbeans.serviceadvisor.MastheadViewBean">

<!-- Header -->
<cc:header
 name="Header"
 pageTitle="<%=windowTitle %>"
 styleClass="HlpMstTtlBdy"
 baseName="com.sun.netstorage.mgmt.fm.storade.ui.resources.ApplicationResources"
 bundleID="appBundle">

<cc:form name="mastheadForm" method="post">

<!-- Secondary Masthead -->
<cc:secondarymasthead
 name="Masthead"
 src="<%=mastheadTitle %>"
 bundleID="appBundle"
 width="<%=helpLogoWidth %>"
 height="<%=helpLogoHeight %>" />

<!-- Page Title -->
<cc:pagetitle name="PageTitle" bundleID="appBundle"
 pageTitleText="<%=pageTitle %>"
 showPageTitleSeparator="true"
 showPageButtonsTop="true"
 showPageButtonsBottom="false" />

</cc:form>
</cc:header>
</jato:useViewBean>
