{% load basictheme %}

{% block doctype %}
<!DOCTYPE html PUBLIC "//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1transitional.dtd">
{% endblock %}
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta httpequiv="ContentType" content="text/html; charset={{ encoding }}" />
    {{ metatags }}
    {% block htmltitle %}
    <title>{{ title|striptags }}{{ titlesuffix }}</title>
    {% endblock %}
    {% block styles %}
    <link rel="stylesheet" href="{{pathto.style}}" type="text/css" />
    <link rel="stylesheet" href="{% relativize %}_/static/pygments.css{% endrelativize %}" type="text/css" />
    {% for cssfile in css_files %}
    <link rel="stylesheet" href="{% relativize %}{{cssfile}}{% endrelativize %}" type="text/css" />
    {% endfor %}
    {% endblock %}
    {% if not embedded %}
    {% block javascript %}
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '{{ url_root }}',
        VERSION:     '{{ release }}',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '{{ file_suffix }}',
        HAS_SOURCE:  {{ has_source|lower }}
      };
    </script>
    {% for scriptfile in script_files %}
    <script type="text/javascript" src="{% relativize %}{{scriptfile}}{% endrelativize %}"></script>
    {% endfor %}
    {% endblock %}
    {% if use_opensearch %}
    <link rel="search" type="application/opensearchdescription+xml"
          title="Search within {{ docstitle }}"
          href="{% relativize %}_static/opensearch.xml{% endrelativize %}"/>
    {% endif %}
    {% if favicon %}
    <link rel="shortcut icon" href="{% relativize %}_static/{{favicon}}{% endrelativize %}"/>
    {% endif %}
    {% endif %}
{% block linktags %}
    {% for parent in parents %}
    {% if forloop.last %}
    <link rel="up" title="{{ parent.title|striptags }}" href="{{ parent.link }}" />
    {% endif %}
    {% endfor %}
    {% if next %}
    <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link }}" />
    {% endif %}
    {% if prev %}
    <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link }}" />
    {% endif %}
{% endblock %}
{% block extrahead %} {% endblock %}
  </head>
  <body class="yui-skin-sam">

{% block header %}{% endblock %}
{% block relbar1 %}{% relbar %}{% endblock %}

{% block content %}
{% block sidebar1 %}{% comment %}possible location for sidebar{% endcomment %}{% endblock %}
    <div class="document">
  {% block document %}
      <div class="documentwrapper">
      {% if render_sidebar %}
        <div class="bodywrapper">
      {% endif %}
          <div class="body">
            {% block body %} {% endblock %}
          </div>
      {% if render_sidebar %}
        </div>
      {% endif %}
      </div>
  {% endblock %}

{% block sidebar2 %}{% sidebar %}{% endblock %}
      <div class="clearer"></div>
    </div>
{% endblock %}

{% block relbar2 %}{% relbar %}{% endblock %}

  </body>
</html>
