{#
    statsmodels/layout.hml

    :copyright: Skipper Seabold
    :license: BSD
    #}
{% extends "basic/layout.html" %}
{% block extrahead %}
<link rel="stylesheet" href="{{ pathto('_static/examples.css', 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/facebox.css', 1) }}" type="text/css" />
<script type="text/javascript" src="{{ pathto('_static/scripts.js', 1) }}">
</script>
<script type="text/javascript" src="{{ pathto('_static/facebox.js', 1) }}">
</script>
<script type="text/javascript">
$.facebox.settings.closeImage = "{{ pathto('_static/closelabel.png', 1) }}"
$.facebox.settings.loadingImage = "{{ pathto('_static/loading.gif', 1) }}"
</script>

<script>
$(document).ready(function() {
  $.getJSON("{{ pathto('../versions.json', 1) }}", function(data) {
    $(".header").prepend(`
    <div class="dropdown">
      <button class="dropbtn">Other Versions</button>
      <div class="dropdown-content">
      </div>
    </div>`)
    for (var i = 0; i < data.length; i++) {
      $(".dropdown-content").append("<a href=\"{{ pathto('../', 1) }}" + data[i] + "/index.html\">" + data[i] + "</a>")
    };
  });
});
</script>

{% endblock %}
{% set reldelim1 = ' |' %}

{% block sidebarlogo %}{% endblock %} {# override to not display, we keep the "logo" at the very top #}

{% if pagename == 'index' %}
    {% set title = 'StatsModels: Statistics in Python' %}
{% endif %}


{% block rootrellink %}
<li><a href ="{{ pathto('install') }}">Install</a></li> &nbsp;|&nbsp;
<li><a href="https://groups.google.com/forum/?hl=en#!forum/pystatsmodels">Support</a></li> &nbsp;|&nbsp;
<li><a href="https://github.com/statsmodels/statsmodels/issues">Bugs</a></li> &nbsp;|&nbsp;
<li><a href="{{ pathto('dev/index') }}">Develop</a></li> &nbsp;|&nbsp;
<li><a href="{{ pathto('examples/index') }}">Examples</a></li> &nbsp;|&nbsp;
<li><a href="{{ pathto('faq') }}">FAQ</a></li> &nbsp;|&nbsp;
{% endblock %}

{# Render the Header with Banner #}

{% block header %}
<div class="headerwrap">
    <div class = "header">
        {% if logo %}
        <a href = "{{ pathto('index') }}">
<img src="{{pathto('_static/statsmodels_hybi_banner.png', 1) }}" alt="Logo"
    style="padding-left: 15px"/></a>
        {% endif %}
    </div>
</div>
{% endblock %}

{#{% block document %}
<div class="navbar">
    <ul>
        <li>Download</li>
        <li>Support</li>
        <li>Bugs</li>
        <li>Develop</li>
        <li>Examples</li>
    </ul>
</div>
{{ super() }}
{% endblock %}#}

{#{% block document %}
{% block relbaritems %}
    {% if pagename != 'index' %}
{{ title }}
    {% endif %}
    {% endblock %}
    {{ super() }}
    {% endblock %}#}

{#{% block relbar1 %}{% endblock %} #}
{% block relbar2 %}{% endblock %}
