<%@ Control Language="VB" AutoEventWireup="false" CodeFile="CBMyAccount.ascx.vb" Inherits="CBMS_UserControls_CBMyAccount" %>
<%@ Register Src="~/CBControls/CBLogin.ascx" TagName="Login" TagPrefix="uc" %>

<uc:Login ID="ucLogin" runat="server" Mode="Vertical" />
<asp:Panel ID="pnlUnauthenticated" runat="server">
	<div class="roundedFlexible">
		<div  class="roundedTopLeft" id="gray">
		    <div  class="roundedTopRight" id="gray">
		        <div  class="roundedBotRight" id="gray">
		            <div  class="roundedBotLeft" id="gray">
			            <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="../Order/CBLogin.aspx" 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">
	<div class="roundedFlexible">
		<div  class="roundedTopLeft" id="gray" >
		    <div  class="roundedTopRight" id="gray">
		        <div  class="roundedBotRight" id="gray">
		            <div  class="roundedBotLeft" id="gray">
			            <div class="solidRoundedBlue">
			                <div class="solidRoundedTop">
			                 <div>
			                 </div>
			                 </div>
				            <div id="solidRoundedContent">
					            <div class="authenticatedHome">
						            <p>Welcome, <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="../CBAccount/CBMyAccount.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  class="roundedTopLeft" id="gray">
		    <div  class="roundedTopRight" id="gray">
		        <div  class="roundedBotRight" id="gray">
		            <div  class="roundedBotLeft" id="gray">
			<h2>My Account:</h2>
			<div class="solidRoundedBlue"><div class="solidRoundedTop"><div></div></div>
				<div id="solidRoundedContent">
					<div class="authenticatedHome">
						<p>Welcome, <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="../CBAccount/CBMyAccount.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>