<!DOCTYPE html>
<html lang="fr-FR"
	  tal:define="config context/myams:configuration; static context/myams:static_configuration;">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta charset="utf-8">

	<title tal:content="config/title"></title>
	<meta name="description" tal:attributes="content config/description">
	<meta name="author" tal:attributes="content config/author">

	<meta name="HandheldFriendly" content="True">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

	<tal:if define="icon config/icon" condition="icon">
		<!-- Favorite icon -->
		<link rel="shortcut icon" tal:attributes="href icon/@@absolute_url" type="image/x-icon">
		<link rel="icon" tal:attributes="href icon/@@absolute_url" type="image/x-icon">
	</tal:if>

	<tal:var replace="context/myams:resources" />
</head>
<body tal:attributes="class static/body_css_class">

	<!-- Content -->
	<div id="content" style="opacity: 1;">
		<!--[if lt IE 9]>
		<h1>Votre navigateur est trop ancien. Veuillez installer une version 9 ou sup&eacute;rieure d'Internet Explorer.</h1>
		<![endif]-->
		<tal:var content="structure provider:pagelet" />
	</div>
	<!-- end content -->

	<tal:if condition="config/google_analytics_key">
		<!-- Google Analytics -->
		<script type="text/javascript" tal:content="python:'''

		  var _gaq = _gaq || [];
		  _gaq.push(['_setAccount', '%(key)s']);
		  _gaq.push(['_trackPageview']);

		  (function() {
			var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		  })();

		''' % {'key': config.google_analytics_key}"></script>
		<!-- end Google Analytics -->
	</tal:if>
</body>
</html>
