<!DOCTYPE html>
{% load fiber_tags i18n %}
<html lang="en">
<head>
	<meta charset="utf-8" />
  <title>{% trans "Dauphine Logement" %} - {% block title %}{{ fiber_page.title }}{% endblock %}</title>
	<link rel="stylesheet" href="{{ STATIC_URL }}css/base.css" />
	<link href="{{ STATIC_URL }}bootstrap/css/bootstrap.css" type="text/css" media="all" rel="stylesheet" />
	<link rel="stylesheet" href="{{ STATIC_URL }}css/print.css" media="print" />
    {% block extra_scripts %}
    {% endblock %}
<script type="text/javascript">
function clean_submenu() {
	x = document.getElementById("submenu");
	if (x && /^\s*$/.test(x.textContent)) {
		x.parentNode.removeChild(x);
	}
}
</script>
</head>
<body class="{% block body-class %}{{ fiber_page.title|slugify }}{% endblock %}" onload="clean_submenu(); {% block onload %}{% endblock %}">
	<div id="wpr-page">
			<div id="header">
  <div id="set-language">
    {% if fiber_page and fiber_page.title_en %}
      {% for lang in LANGUAGES %}
        {% if LANGUAGE_CODE != lang.0 %}
          <form action="/i18n/setlang/" method="post">
            {% csrf_token %}
            <input type="hidden" name="language" value="{{ lang.0 }}"/>
            <button type="submit" title="{{ lang.1 }}"><img src="{{ STATIC_URL }}images/{{ lang.0 }}.png"/></button>
          </form>
        {% endif %}
      {% endfor %}
    {% endif %}
  </div>
<img src="/static/dauphine/titre2.jpg" width="950" height="165" border="0" usemap="#Map2" />
    <map name="Map2" id="Map2">
      <area shape="rect" coords="0,0,780,148" href="/" alt="accueil"/>
      <area shape="rect" coords="781,8,937,96" href="http://www.dauphine.fr" target="_blank" alt="dauphine" />
      <area shape="rect" coords="780,103,936,148" href="http://www.fondation.dauphine.fr/" target="_blank" alt="fondation_dauphine" />
    </map>
				<div id="mainmenu">
					{% show_menu "visibles" 1 1 %}
          <ul id="annonces">
            <li>
                {% if user.is_profilrecherche %}
                <a href="/recherche/">{% trans "Annonces" %}</a>
                {% elif user.is_profiloffre %}
                <a href="/offre/">{% trans "Annonces" %}</a>
                {% endif %}
            </li>
          </ul>
          <a href="/faire-un-don" id="faire-un-don"><img src="/static/dauphine/don-{{ LANGUAGE_CODE }}.png"/></a>
					{% if not user.is_anonymous %}
					<ul>
            <li style="float: right;" id="logout-item">
              <a href="/deconnexion">{% trans "Se déconnecter" %}</a>
            </li>
          </ul>
					{% endif %}
				</div>
			</div>
		<div id="page">
			{% block page %}
			<div id="aside-left">
				<div id="submenu">
                    {% block aside-left %}
                    {% show_menu "visibles" 2 3 %}
                    {% endblock %}
				</div>
			</div>
			<div id="main">
        {% block messages %}
          {% if messages %}
            {% for message in messages %}
            <p class="alert {% for tag in message.tags %} alert-{{ tag }}{% endfor %}">{{ message }}</li>
            {% endfor %}
          {% endif %}
        {% endblock %}
				<div>
					{% show_page_content "main" %}
					<!-- body start -->
					{% block body %}{% endblock %}
					<!-- end body -->
				</div>
			</div>
{% endblock %}
<br style="clear: both;"/>
</div>

		</div>
	</div>
    <div id="footer">{% show_menu "footer" 1 1 %}</div>
<script type="text/javascript">

   var _gaq = _gaq || [];
   _gaq.push(['_setAccount', 'UA-32283087-1']);
   _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);
   })();

</script>
</body>
</html>
