<!DOCTYPE html>
{%- set html_lang = 'en' -%}
<html lang="{{ html_lang }}" class="hjhs" ng-app="hjhsApp" ng-controller="AppCtrl">
<head>

{% block head_preContent %}{% endblock %}

{% block head %}
	{% apply spaceless %}

	<base href="/">

	<title ng-bind-html="page_title|unsafe">{% if title is defined %}{{ title }}{% else %}{{ siteName }}{% endif %}</title>

	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

	{% if meta_description is defined %}
	<meta name="description" content="{{ meta_description|escape('html_attr') }}">
	{% endif %}

	{# <link rel="stylesheet" href="/i/css/core.min.css?{{ getenv('SITE_VERSION') }}"> #}
	{# {% includeCssFile "/i/css/core.css?" ~ getenv('SITE_VERSION') first %} #}

	<link rel="stylesheet" href="https://use.typekit.net/bbx4djb.css">
	{% do view.registerCssFile("/i/css/core" ~ getenv('MIN_SUFFIX') ~ ".css?" ~ getenv('SITE_VERSION')) %}

	{% include "_includes/favicon" %}

	<script>
		window.CRAFT_LOCALE = "{{ craft.app.language|e('js') }}";
		window.PRIMARY_SITE_URL = "{{ getenv('PRIMARY_SITE_URL')|e('js') }}";
		window.SITE_NAME = "{{ siteName|e('js') }}";
		// window.SESSIONS_SECTION_UID = "{{ getenv('SESSIONS_SECTION_UID')|e('js') }}";
		// window.CLIENTS_SECTION_UID = "{{ getenv('CLIENTS_SECTION_UID')|e('js') }}";
	</script>

	<!-- <link rel="stylesheet" href="/i/a/dropzone/dist/dropzone.min.css" type="text/css">
	<link rel="stylesheet" href="/i/a/ng-dropzone/dist/ng-dropzone.min.css" type="text/css"> -->

	{% endapply %}
{% endblock %}

{% apply spaceless %}

	{% if not getenv('LOCAL_BOX') and getenv('DEFAULT_GOOGLE_UA_ID') %}
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id={{ getenv('DEFAULT_GOOGLE_UA_ID') }}"></script>
	<script>
	var GA_MEASUREMENT_ID = "{{ getenv('DEFAULT_GOOGLE_UA_ID') }}";
	window.dataLayer = window.dataLayer || [];
	function gtag(){dataLayer.push(arguments);}
	gtag('js', new Date());
	gtag('config', "{{ getenv('DEFAULT_GOOGLE_UA_ID') }}");
	</script>
	{% endif %}

	{% if not getenv('LOCAL_BOX') and getenv('DEFAULT_GOOGLE_GTM_ID') %}
	<!-- Google Tag Manager -->
	<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
	new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
	j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
	'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
	})(window,document,'script','dataLayer',"{{ getenv('DEFAULT_GOOGLE_GTM_ID') }}");</script>
	<!-- End Google Tag Manager -->
	{% endif %}

{% endapply %}

{% block head_post_content %}{% endblock %}

{# {% apply spaceless %}
	{% hook 'seo' %}
{% endapply %} #}

</head>
<body class="{{ craft.app.language }} {% if entry is defined %}eid-{{ entry.id }}{% endif %} {% if bodyClass is defined %}{{ bodyClass }}{% endif %} {{ craft.app.request.segments|first }} {% verbatim %}{{ pageClass }}{% endverbatim %}">

	{% apply spaceless %}

		{% if not getenv('LOCAL_BOX') and getenv('DEFAULT_GOOGLE_GTM_ID') %}
		<noscript><iframe src="https://www.googletagmanager.com/ns.html?id={{ getenv('DEFAULT_GOOGLE_GTM_ID') }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
		{% endif %}

		<button class="skip-btn" data-s="maincontent">Skip to content</button>
		<button class="skip-btn" data-s="gnav">Skip to nav</button>

	{% endapply %}

	<div id="hjhs" ng-class="{ 'modal-opened': modal_opened }">

		<div id="wrapper">

			<div id="content" tabindex="0">

				{% block body %}{% endblock %}
				{% block foot %}{% endblock %}

			</div>

		</div>

	</div>

	{% apply spaceless %}
		{% js %}
		window.HJHS_CRAFT = {};
		window.HJHS_CRAFT.csrfTokenName = "{{ craft.app.config.general.csrfTokenName | e('js') }}";
		window.HJHS_CRAFT.csrfTokenValue = "{{ craft.app.request.csrfToken | e('js') }}";
		{% endjs %}
		<script src="/i/a/bower-asset/jquery/dist/jquery.min.js"></script>
		<script src="/i/a/bower-asset/jquery.lazyload/lazyload.min.js"></script>
		{% block foot_preCoreContent %}{% endblock %}
		{# <script src="/i/js/core{{ getenv('MIN_SUFFIX') }}.js?{{ getenv('SITE_VERSION') }}"></script> #}
		{% block foot_post_content %}{% endblock %}
	{% endapply %}

</body>
</html>