<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
  <title>{{ page.title }}</title>
  <meta name="Author" content="John Zaitseff, J.Zaitseff@zap.org.au" />
  <meta name="Description" content="A minimal template page to use with the Sinorcaish CSS stylesheet" />
  <meta name="Copyright" content="This file may be redistributed and/or modified without limitation" />
  <meta name="CVSInfo" content="$ZAPGroupID: sinorcaish/template.html,v 1.8 2004/11/18 02:17:49 john Exp $" />
  <meta name="Language" content="en" />
  <meta name="Generator" content="Hand-written XHTML using Emacs under Debian GNU/Linux" />
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Content-Language" content="en" />
  <link rev="made" href="mailto:J.Zaitseff@zap.org.au" />
  {% block styles %}
  <link rel="StyleSheet" href="{{ relative_root | safe }}sinorcaish-screen.css" type="text/css" media="screen" />
  <link rel="StyleSheet" href="{{ relative_root | safe }}base.css" type="text/css" media="screen" />
  <link rel="StyleSheet" href="{{ relative_root | safe }}sinorcaish-print.css" type="text/css" media="print" />
  {% endblock styles %}
</head>

<body>

<!-- For non-visual or non-stylesheet-capable user agents -->
<div id="mainlink"><a href="#main">Skip to main content.</a></div>


<!-- ======== Header ======== -->

<div id="header">
  <div class="left">
    <p>{{ site.header | default(value="Header") | safe }}</p>
  </div>

  <div class="right">
    {% if options.dynamic %}
    <span class="hidden">Useful links:</span>
    <a href="{{ relative_root | safe }}{{ page.url }}?action=edit">Edit</a>
    {% if has_git %}
    |
    <a href="{{ relative_root | safe }}{{ page.url }}?action=history">History</a>
    {% endif %}

    <div>
      <form action="{{ relative_root | safe }}{{ page.url }}" method="get">
        <script type="text/javascript">
            var EmptySearchFieldDone = 0;
            function EmptySearchField(elem) {
                if (EmptySearchFieldDone == 0) {
                    elem.value = "";
                    EmptySearchFieldDone = 1;
                }
                return true;
            }
        </script>
        <div>
          <input type="text" name="q" value="Search" onfocus="EmptySearchField(this);" size="15" maxlength="250" />
          <input type="image" name="submit" src="search.png" alt="Search" />
        </div>
      </form>
    </div>
    {% endif %}
  </div>

  <div class="subheader">
    {% if site.navigation %}
    <p>
      <span class="hidden">Navigation:</span>
      {% for entry in site.navigation %}
      <a href="{{ entry.url }}">{{ entry.title }}</a> |
      {% endfor %}
    </p>
    {% endif %}
  </div>
</div>


<!-- ======== Left Sidebar ======== -->

<div id="sidebar">
  {% if page.parent %}
  <div>
    <p class="title"><a href="{{ relative_root | safe }}{{ page.parent.url }}">{{ page.parent.name }}</a></p>
    <ul>
      {% for child in page.parent.children %}
      <li{% if child == page.name %} class="highlight"{% endif %}>
        <a href="{% if page.is_directory %}../{% endif %}{{ child }}">{{ child | file_stem }}</a>
        {% if page.is_directory and child == page.name %}
        <ul>
          {% for child in page.children %}
          <li><a href="{{ child }}">{{ child | file_stem }}</a></li>
          {% endfor %}
        </ul>
        {% endif %}
      </li>
      {% endfor %}
    </ul>
  </div>
  {% else %}
  <div>
    <p class="title"><a href="{{ relative_root | safe }}{{ page.url }}">{{ page.name }}</a></p>
    <ul>
      {% for child in page.children %}
      <li><a href="{{ child }}">{{ child | file_stem }}</a></li>
      {% endfor %}
    </ul>
  </div>
  {% endif %}
</div>


<!-- ======== Main Content ======== -->

<div id="main">

<div id="navhead">
  <hr />
  <span class="hidden">Path to this page:</span>
  {% for ancestor in ancestors %}
  <a href="{{ relative_root | safe }}{{ ancestor.url }}">{% if ancestor.name %} {{ ancestor.name }} {% else %} Home {% endif %}</a> &raquo;
  {% endfor %}
  <a href="{{ relative_root | safe }}{{ page.url }}">{% if page.name %} {{ page.title }} {% else %} Home {% endif %}</a>
</div>

{% block content %}
{% endblock content %}

<br id="endmain" />
</div>


<!-- ======== Footer ======== -->

<div id="footer">
  <hr />
  This web page was generated by Historian 0.0.1.
  <br /> 

  <a href="https://www.zap.org.au/documents/styles/sinorcaish/">Sinorcaish style sheet and template</a> &copy; 2004 - 2007 John Zaitseff.
</div>

</body>
</html>
