<!--
 redirect
 * ***** BEGIN LICENSE BLOCK *****
 * Zimbra Collaboration Suite Web Client
 * Copyright (C) 2011, 2012, 2013, 2014, 2016 Synacor, Inc.
 *
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software Foundation,
 * version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License along with this program.
 * If not, see <https://www.gnu.org/licenses/>.
 * ***** END LICENSE BLOCK *****
-->
<%@ page buffer="8kb" session="false" autoFlush="true" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="zm" uri="com.zimbra.zm" %>
<%@ taglib prefix="fmt" uri="com.zimbra.i18n" %>
<%@ taglib prefix="app" uri="com.zimbra.htmlclient" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<app:skinAndRedirect />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title><fmt:message key="zimbraTitle"/></title>
    <link rel="stylesheet" type="text/css" href="<c:url value='/css/images,common,dwt,msgview,login,zm,spellcheck,wiki,skin' />">
    <body>
    <c:set var="url" value="/public/login.jsp"/>
    <c:if test="${empty param.postLoginUrl and not empty requestScope.postLoginUrl and zm:validatePostLoginUrl(requestScope.postLoginUrl)}">
        <c:set var="url" value="${zm:cook(requestScope.postLoginUrl)}"/>
    </c:if>
    <form method="post" name="loginForm2" id="loginForm2" action="${url}" accept-charset="UTF-8">
        <div class="LoginScreen">
        <div id='skin_container_splash_screen' class='SplashScreen'>
        <div class="center">
            <h1><div id='ZLoginBannerImage' class='ImgLoginBanner' onclick='showCompanyUrl()'></div></h1>
            <div id="#ZSplashBodyContainer" class="content">
                <div class="offline" id='ZLoginLoadingPanel'>
                 <div class="spacer">
                     <noscript><input type="submit" name="Submit" id="submitBtn" value="<fmt:message key='errorJavaScriptDisabled'/>"></noscript>
                 </div>
                </div>
                <div class="switch"></div>
                <div class="copyright" id='ZLoginLicenseContainer'><fmt:message key="splashScreenCopyright"/></div>
            <div>
            <div class="decor1"></div>
            </div>
          </div>
        </div>
        <input type="hidden" name="zauthtoken" value="${zm:cook(param.zauthtoken)}"/>
        <c:if test="${not empty param.client}">
            <input type="hidden" name="client" value="${zm:cook(param.client)}"/>
        </c:if>
        </div>
        </div>
    </form>
    <script type="text/javascript">
        function submitForm() {
        var frm = document.getElementById("loginForm2");
        if (frm)
            frm.submit();
        }
        window.onload = submitForm;
    </script>
    </body>
</head>
</html>