<?xml version="1.0" encoding="UTF-8"?>
<!-- ident "$Id$ SMI" -->

<!-- Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     Use is subject to license terms. -->
     
<jsp:root version="1.2" 
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" 
                        pageEncoding="UTF-8"/>
    <f:view>
        <f:loadBundle basename="com.sun.ut.console.resource.ConsoleLabels" var="msg"/>
        <f:loadBundle basename="com.sun.ut.console.resource.Copyright" var="tm"/>
        <ui:page>
            <ui:html>
                <ui:head title="#{login.serverName} - #{msg.login_page_title}"> 
                    <ui:meta name="Copyright" content="#{msg.meta_copyright}" />
                </ui:head>    
                <ui:body styleClass="LogBdy" onLoad="performLoadUtilities();return;">
                    <ui:script>	
                        <f:verbatim>
                            if (self.location.href != top.location.href) {
                                top.location.href = self.location.href;
                            }

                            function performLoadUtilities() {
                                var inputField = document.forms['f1'].elements[0];
                                inputField.focus();
                            }
                        </f:verbatim>
                    </ui:script>	

                    <ui:form id="f1" autoComplete="#{login.autoComplete}">
                        <table border="0" cellpadding="0" cellspacing="0" align="center" title="">
                            <!--  general (three column) layout of the login page  -->
                            <tr>
                                <td width="50%"><ui:image icon="DOT" width="1" height="1"/></td>
                                <td><ui:image icon="DOT" width="728" height="1"/></td>
                                <td width="50%"><ui:image icon="DOT" width="1" height="1"/></td>
                            </tr>  
                            <jsp:directive.include file="UtilityBar.jsp"/>

                            <!-- middle content with product image and login section -->
                            <tr>
                                <td class="LogMidBnd" style="background-image: url(/ut/theme/com/sun/web/ui/suntheme/images/login/gradlogsides.jpg);background-repeat:repeat-x;background-position:left top;">&#160;</td>
                                <td class="LogCntTd" style="background-image: url(/ut/theme/com/sun/web/ui/suntheme/images/login/login-backimage.jpg);background-repeat:no-repeat;background-position:left top;" height="435" align="center" valign="middle">
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" title="">
                                        <tr>
                                            <td width="260">
                                                <ui:image icon="DOT" width="260" height="245"/>
                                            </td>
                                            <!-- product logo -->
                                            <td width="415" bgcolor="#ffffff" valign="top">
                                                <ui:image id="productLogo"
                                                    url="/images/LoginProductName.gif"
                                                    width="270" height="30"
                                                    alt="#{msg.product_image_tooltip}"/>

                                                <table border="0" cellspacing="0" cellpadding="0">                                            
                                                    <jsp:directive.include file="Alert.jsp"/>
                                                    <jsp:directive.include file="GenericLoginForm.jsp"/>
                                                </table>
                                            </td>
                                            <td width="45">
                                                <ui:image icon="DOT" width="45" height="245"/>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="LogMidBnd" style="background-image: url(/ut/theme/com/sun/web/ui/suntheme/images/login/gradlogsides.jpg);background-repeat:repeat-x;background-position:left top;">&#160;</td>
                            </tr>    
                            <jsp:directive.include file="Copyright.jsp"/>       
                        </table>

                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
