<html>
<div class="navigation-container">
	<%
		String pagePath = request.getServletPath();
		String userName = (String)session.getAttribute(com.etherios.gae.connector.tank.BaseServlet.SESSION_USER);
		
		if (pagePath.equals(com.etherios.gae.connector.tank.BaseServlet.PAGE_LOGIN)) {
	%>
	<div class="navigation-tab-selected">
		<p>Login</p>
	</div>
	<div class="navigation-tab" onclick="location.href='devices'">
		<p>Devices</p>
	</div>
	<div class="navigation-tab" onclick="location.href='tank'">
		<p>Tank</p>
	</div>
	<%
		} else if(pagePath.equals(com.etherios.gae.connector.tank.BaseServlet.PAGE_DEVICES)) {
	%>
	<div class="navigation-tab" onclick="location.href='login'">
		<p>Login</p>
	</div>
		<div class="navigation-tab-selected">
		<p>Devices</p>
	</div>
	<div class="navigation-tab" onclick="location.href='tank'">
		<p>Tank</p>
	</div>
	<%
		} else if(pagePath.equals(com.etherios.gae.connector.tank.BaseServlet.PAGE_TANK)) {
	%>
	<div class="navigation-tab" onclick="location.href='login'">
		<p>Login</p>
	</div>
	<div class="navigation-tab" onclick="location.href='devices'">
		<p>Devices</p>
	</div>
	<div class="navigation-tab-selected">
		<p>Tank</p>
	</div>
	<% 
		}
	%>
	<div class="status-container">
	<%
		if (userName != null) {
	%>
		Welcome <%= userName %> - <a href="/logout"> Logout</a>
	<% 
		} else {
	%>
		Logged out
	<% 
		}
	%>
</div>
</div>
</html>