<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MyAccountHeaderLogin.ascx.vb" Inherits="Controls_MyAccountHeaderLogin" %>

<%@ Register Src="Login.ascx" TagName="Login" TagPrefix="uc" %>


<asp:Panel ID="pnlUnauthenticated" runat="server" DefaultButton="btnLogin">
    <!-- The following commented out line is the original version from Creative Lift. 
         It simply opens up the drop down login box. If it needs to be implemented, make it available -->
    <table cellpadding="0" cellspacing="0" style="float:right">
        <tr nowrap>
            <td style='background-image: url(/CMS_IMAGES/loggedIn_left.ccom); background-position: right top; background-repeat: no-repeat; width: 20px; height: 45px;'>
            </td>
            <td style='background-image: url(/CMS_IMAGES/welcomeBGMiddle.ccom); background-repeat: repeat-x;'>
                <span  style="white-space: nowrap;">
                    <%  If Application("MyAccountLoginLink") Is Nothing Then%>
                    <strong>Existing Customer?</strong>&nbsp;&nbsp;<a id="link1" href="../MSLogin" runat="server">Log
                        into your account</a>
                    <%  Else%>
                    <span style="font-weight: bold;
                    color: #70aa35;"><strong>Existing Customer?</strong></span>&nbsp;&nbsp;
                    <%=Application("MyAccountLoginLink").ToString().Replace(">Login</a>", ">Log in</a>")%>
                    <asp:Image ID="Image2" AlternateText="" ImageUrl="link_sep.ccom" runat="server" /><asp:LinkButton
                        ID="btnLogin" runat="server" PostBackUrl="~/Visitors/Register.aspx" ValidationGroup="log">Create Account</asp:LinkButton>
                    <%  End If%>
                </span>
            </td>
            <td style='background-image: url(/CMS_IMAGES/loggedIn_right.ccom); background-repeat: no-repeat;
                width: 20px; height: 45px;'>
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnlAuthenticated" runat="server" DefaultButton="btnLogout">
    <table cellpadding="0" cellspacing="0" style="float:right">
        <tr nowrap>
            <td style='background-image: url(/CMS_IMAGES/loggedIn_left.ccom); background-position: right top;  background-repeat: no-repeat; width: 20px; height: 45px;'>
            </td>
            <td style='background-image: url(/CMS_IMAGES/welcomeBGMiddle.ccom); background-repeat: repeat-x;'>
                <span  style="white-space: nowrap;"><span style="font-weight: bolder;
                    color: #1C81AE"><asp:Label ID="notUserName" runat="server"></asp:Label></span>
                    <asp:LinkButton ID="btnNotUser" runat="server" ValidationGroup="log">
            <span style="font-size:x-small">(Not You?)</span></asp:LinkButton><asp:Image ID="Image1"
                AlternateText="" ImageUrl="link_sep.ccom" runat="server" />
                    <asp:LinkButton ID="btnLogout" runat="server" CommandName="btnLogOut_Click" ValidationGroup="log">Logout</asp:LinkButton>
                </span>
            </td>
            <td style='background-image: url(/CMS_IMAGES/loggedIn_right.ccom); background-repeat: no-repeat;
                width: 20px; height: 45px;'>
            </td>
        </tr>
    </table>
    <asp:Literal ID="ltlAuthenticated" runat="server"></asp:Literal>
</asp:Panel>
