<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" version="2.0">
	<f:subview id="topMenu">
		<h:outputText value="#{utilBean.uploadPath == '' ? '' : ''}"></h:outputText>
		<div id="TOP_MENU" class="menu"><h:form>
			<h:panelGrid border="0" columns="7">
				<h:commandLink action="login" rendered="#{empty visitBean.user}">
					<h:outputText value="#{resources['topMenu.login']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="#{authenticationBean.logout}" rendered="#{! empty visitBean.user}">
					<h:outputText value="#{resources['topMenu.logout']}"></h:outputText>
				</h:commandLink>
				<h:commandLink action="registration" rendered="#{empty visitBean.user}">
					<h:outputText value="#{resources['topMenu.registration']}"></h:outputText>
				</h:commandLink>
				<h:outputText value="#{visitBean.user.firstName} #{visitBean.user.lastName}" rendered="#{! empty visitBean.user}"></h:outputText>
				<h:commandLink actionListener="#{visitBean.changeLocale}" style="margin:5pt;" value="#{resources['country.polish']}">
					<f:param value="pl" name="locale"></f:param>
				</h:commandLink>
				<h:commandLink actionListener="#{visitBean.changeLocale}" 	style="margin:5pt;" value="#{resources['country.english']}">
					<f:param value="en" name="locale"></f:param>
				</h:commandLink>
				<h:outputFormat value="#{resources['country.info']}">
					<f:param value="#{facesContext.viewRoot.locale}"></f:param>
				</h:outputFormat>
			</h:panelGrid>
		</h:form></div>
	</f:subview>
</jsp:root>