{#
    mhtheme3/layout.html
    ~~~~~~~~~~~~~~~~~~~~~

    Based on Sphinxdoc
    :license: BSD
#}
{% extends "layout_basic.html" %}


{%- block extrahead %}
	<script>
	(function($) {

	$(function(){
	$("a").each(function (){
	var link = $(this);
	var href = link.attr("href");
	if(href && href[0] == "#")
	{
	var name = href.substring(1);
	$(this).click(function() {
	var nameElement = $("[name='"+name+"']");
	var idElement = $("#"+name);
	var element = null;
	if(nameElement.length > 0) {
	element = nameElement;
	} else if(idElement.length > 0) {
	element = idElement;
	}

	if(element) {
	var offset = element.offset();
	window.parent.scrollTo(offset.left, offset.top);
	}

	return false;
	});
	}
	});
	});
	})(jQuery);
	</script>
{% endblock %}


{# do not display sidebars #}
{% block sidebar1 %}{% endblock %}
{% block sidebar2 %}{% endblock %}

{% macro nav() %}
<div class="tableofindex">

{%- if prev %} 
<div class="tableofindexint">       
<a href="{{ prev.link|e }}"><img src="{{pathto("_static/images/previous.png", 1) }}" border="0" alt="previous"/>&#160;&#160;{{ prev.title }}</a>        
</div>
{%- endif %}

<div class="tableofindexint">   
<a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Main') }}</a>
</div>

{%- if next %} 
<div class="tableofindexint">         
<a href="{{ next.link|e }}">{{ next.title }}&#160;&#160;<img src="{{pathto("_static/images/next.png", 1) }}" border="0" alt="next"/></a>       
</div> 
{%- endif %}  

</div> 
{% endmacro %}

{% macro sitecolumn() %}
<div class="sitecolumn">
{%- include "sitecolumn.html" %}
</div>      
{% endmacro %}
        
  {%- block document %}         
        <div class="bodywrapper">           
          <div class="body">			            
            {% block body %} {% endblock %}            
          </div>
          {{sitecolumn()}}      
        </div>     
  {%- endblock %}

{% block relbar1 %}
{{ nav() }}
{% endblock %}


{% block relbar2 %}
{{ nav() }}
{% endblock %}












