<header>
	<!--! CrossNav: Project information -->
	<aside id="control_top_left" class="header-component project can-extend" tabindex="51" onkeypress="redirectToHrefChild(this)">
 	   	<script type="text/javascript">
 	   		$(document).ready(function() {
 	   			updateCallOutProject();
 	   		})
 	   	</script>
	</aside>

    {% set subMenu='header_menu' if submenu_list is defined and submenu_list else none %}
    {% set subMenuContent='project/project_submenu' if section_name=='project' else subMenu %}

	<!--! Section-related sub-navigation -->
	{% if subMenuContent %}
		<nav class="header-component can-extend {{ 'auto-extends' if (subMenuContent and subMenuContent in mainContent or mainContent in subMenuContent) else '' }}">
			<h3>{{ section_name.capitalize() }} Menu</h3>
			<div class="extension">
				<div class="dropdown-pane">
					{% include subMenuContent ~ ".html" %}
				</div>
			</div>
		</nav>
	{% else %}
		<nav class="header-component">
			<h3>{{ section_name.capitalize() }} Menu</h3>
		</nav>
	{% endif %}

	<!--! Optional Back button -->
	{% if back_page_link %}
		<section class="header-component back-nav">
			<a href="{{ back_page_link }}" title="Go back to invocation page">Back</a>
		</section>
	{% endif %}
	
	<!--! Headlines of current section -->
	<hgroup class="header-component">
		<h1><mark>{{ section_titles[section_name].capitalize() if section_name in section_titles else section_name.capitalize() }}</mark>
			{{ sub_section_titles[subsection_name].capitalize() if subsection_name in sub_section_titles else '' }}</h1>
		{% if showOnlineHelp %}
			<a class="helper-hook" title="Click here to open Online-Help" href="#" onClick="showHelpOverlay('{{ section_name }}', '{{ subsection_name }}')">?</a>
		{% endif %}
		<h2>{{ title }}</h2>
	</hgroup>

	<!--! Messages -->
	<section class="header-component message-container">
		<h3>Messages</h3>
		{% with %}
			{% set 	msgClass = {'ERROR': 'msg-sticky msg-level-fatal',
			                    'WARNING': 'msg-transient transient-medium msg-level-warn',
			                    'INFO': 'msg-transient msg-level-info',
			                    'IMPORTANT':'msg-transient transient-medium msg-level-confirm'} %}
			<ul>
				<li id="messageDivParent" class="{{ msgClass[messageType] }}"><div id="messageDiv">{{ message }}</div></li>
			</ul>
		{% endwith %}

	</section>

	<section class="header-component actionhook"></section>

</header>