<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% if (Request.IsAuthenticated && Page.User.Identity.IsAuthenticated) { SleisVisit visit = Page.User.Identity as SleisVisit; if (ViewUtility.IsAgencyUser()) { %>

Welcome <%: visit.Name%>

<%: Html.ActionLink("Home", "Home", "Public", null, new { id = "headerHomeLink" })%> |  Quick Find |  <%: Html.ActionLink("My Agency", "Home", "Agency")%> |  <%: Html.ActionLink("My Profile", "Profile", new { controller = "User", returnUrl = Page.Request.RawUrl })%> |  <% } else { %>

Welcome <%: visit.Name%>

<%: Html.ActionLink("Home", "Home", "Public", null, new { id = "headerHomeLink" })%> |  Quick Find |  <%: Html.ActionLink("My Facilities", "List", "Facility")%> |  <%: Html.ActionLink("My Profile", "Profile", new { controller = "User", returnUrl = Page.Request.RawUrl })%> |  <% } %> Help |  <%: Html.ActionLink("Logout", "Logout", "Account")%>

<% } else { %>

<%: Html.ActionLink("Home", "Home", "Public", null, new { id = "headerHomeLink" })%> |  <%: Html.ActionLink("Login", "Login", new { controller = "Account", returnUrl = Page.Request.RawUrl })%> |  Help 

<% } %>