<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" locale="es">
	<h:head>
		<link rel="stylesheet" type="text/css"
			href="#{request.contextPath}/javax.faces.resource/css/maia.css.xhtml?v=4" />
		<h:outputScript name="js/maia.js?v=1" />
		<h:outputScript name="js/keyevent.js?v=1" />
		<h:outputScript name="js/calendar_es.js?v=1" />
		<h:outputScript name="js/datatable_es.js?v=1" />
		<h:outputScript name="js/script.js?v=1" />
		<script type="text/javascript">
			        $(document).ready(function() {
			        	top.showTimer(#{request.session.maxInactiveInterval}*1000);
			        });
                                /** INTENTAMOS MOSTRAR LA ALERTA*/
			       
			      
	   </script>
	   
	  <script type="text/javascript"
	      src="https://maps.googleapis.com/maps/api/js?sensor=true">
      </script> 

	</h:head>
	<h:body>
		<p:messages id="messages" autoUpdate="true" globalOnly="true" />

		<p:ajaxStatus onstart="PF('statusDialog').show();"
			onsuccess="PF('statusDialog').hide();" />
		<p:dialog modal="true" widgetVar="statusDialog"
			header="#{msg_general.lbl_loading}" draggable="false"
			closable="false">
			<p:graphicImage value="/resources/images/ajaxloadingbar.gif" />
		</p:dialog>
                
		<!--p:dialog autosized="true" widgetVar="popupTimeout" closable="false"
			modal="true" draggable="false" closeOnEscape="false"
			resizable="false" header="Sesi&#243;n expirada">
			<h:panelGroup layout="block" style="margin:auto;">
				<h:commandButton value="Aceptar"
					onclick="window.location='#{initParam['casServerLogoutUrl']}?service=#{request.scheme}://#{request.serverName}:#{request.serverPort}#{request.contextPath}'" />
			</h:panelGroup>
		</p:dialog-->
		<ui:insert name="content" />
	</h:body>
</ui:composition>
