<%@ Control Language="VB" AutoEventWireup="false" CodeFile="MyAccount.ascx.vb" Inherits="Controls_MyAccount" %>
<%@ Register Src="Login.ascx" TagName="Login" TagPrefix="uc" %>
<asp:Panel ID="panelOld" runat="server">
    <uc:Login ID="ucLogin" runat="server" Mode="Vertical" />
    <%--<asp:Panel ID="pnlUnauthenticated" runat="server" DefaultButton="btnLogin">--%>
    <asp:Panel ID="pnlUnauthenticated" runat="server">
        <div class="roundedFlexible">
            <div id="blue" class="roundedTopLeft">
                <div id="blue" class="roundedTopRight">
                    <div id="blue" class="roundedBotRight">
                        <div id="blue" class="roundedBotLeft">
                            <div class="solidRoundedBlue">
                                <div class="solidRoundedTop">
                                    <div>
                                    </div>
                                </div>
                                <div id="solidRoundedContent">
                                    <%--<p class="centered"><asp:LinkButton ID="btnLogin" runat="server" Text="Login"></asp:LinkButton> to My Account</p>--%>
                                    <%  If Application("MyAccountLoginLink") Is Nothing Then%>
                                    <p class="centered">
                                        <a href="../MSLogin" target="_blank">Login</a> to My Account</p>
                                    <%  Else%>
                                    <p class="centered">
                                        <%= Application("MyAccountLoginLink") %>
                                        to My Account</p>
                                    <%  End If%>
                                </div>
                                <div class="solidRoundedBot">
                                    <div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="pnlAuthenticated" runat="server" DefaultButton="btnLogout" Visible="false">
        <div class="roundedFlexible">
            <div id="blue" class="roundedTopLeft">
                <div id="blue" class="roundedTopRight">
                    <div id="blue" class="roundedBotRight">
                        <div id="blue" class="roundedBotLeft">
                            <div class="solidRoundedBlue">
                                <div class="solidRoundedTop">
                                    <div>
                                    </div>
                                </div>
                                <div id="solidRoundedContent">
                                    <div class="authenticatedHome">
                                        <p>
                                            <span>
                                                <asp:Label ID="lblGreeting" runat="server"></asp:Label></span></p>
                                        <p class="topRule">
                                            <asp:LinkButton ID="btnLogout" runat="server" Text="Logout" ValidationGroup="log"
                                                CssClass="floatRight"></asp:LinkButton>
                                            <a href="../MS/MyAccount.aspx">My Account</a>
                                        </p>
                                    </div>
                                </div>
                                <div class="solidRoundedBot">
                                    <div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <asp:Literal ID="ltlAuthenticated" runat="server"></asp:Literal>
    </asp:Panel>
    <asp:Panel ID="pnlAuthenticatedHome" runat="server" DefaultButton="btnLogoutHome">
        <div class="roundedFlexible">
            <div id="blue" class="roundedTopLeft">
                <div id="blue" class="roundedTopRight">
                    <div id="blue" class="roundedBotRight">
                        <div id="blue" class="roundedBotLeft">
                            <h2>
                                My Account:</h2>
                            <div class="solidRoundedBlue">
                                <div class="solidRoundedTop">
                                    <div>
                                    </div>
                                </div>
                                <div id="solidRoundedContent">
                                    <div class="authenticatedHome">
                                        <p>
                                            <span>
                                                <asp:Label ID="lblGreetingHome" runat="server"></asp:Label></span></p>
                                        <p class="topRule">
                                            <asp:LinkButton ID="btnLogoutHome" runat="server" Text="Logout" CssClass="floatRight"></asp:LinkButton>
                                            <a href="../MS/MyAccount.aspx">My Account</a>
                                        </p>
                                    </div>
                                </div>
                                <div class="solidRoundedBot">
                                    <div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <asp:Literal ID="ltlAuthenticatedHome" runat="server"></asp:Literal>
    </asp:Panel>
</asp:Panel>
<asp:Panel ID="panelV3" runat="server">
    <asp:Panel ID="pnlMyAccountWelcomeCustomer" runat="server">
        Welcome Back,
        <asp:Label ID="lblMyAccountWelcomeCustomer" runat="server"></asp:Label>
    </asp:Panel>
</asp:Panel>
