<metal:block use-macro="here/global_defines/macros/defines" />
<html xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en"
      lang="en"
      i18n:domain="plone">

  <head metal:define-macro="html_header"
        tal:define="skinrequest python:request.get(here.portal_skins.getRequestVarname(), '');">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
          tal:define="charset site_properties/default_charset|string:utf-8"
          tal:attributes="content string:text/html;;charset=${charset}" />

    <title tal:define="portal_title portal_properties/title;
                       page_title object_title">
        <tal:pagetitle replace="page_title">
            Inserts page title
        </tal:pagetitle>
        &mdash;
        <tal:portaltitle replace="portal_title">
            Inserts portal title
        </tal:portaltitle>
    </title>

    <metal:baseslot define-slot="base" />

    <meta name="generator" content="Plone - http://plone.org" />

    <meta tal:define="metatags python:putils.listMetaTags(here).items()"
          tal:condition="metatags"
          tal:repeat="keyval metatags"
          tal:attributes="name python:keyval[0];
                          content python:keyval[1];" />

    <!-- Plone ECMAScripts -->
    <metal:js tal:define="scripts nocall:here/renderAllTheScripts|nothing"
	      tal:condition="nocall:scripts">
      <metal:block metal:use-macro="scripts/macros/jsrenderer">
        <!-- Fetch scripts from the Javascript Registry -->
      </metal:block>
    </metal:js>

    <metal:css tal:define="css nocall:here/renderAllTheStylesheets|nothing">
	<tal:block condition="nocall:css">
          <metal:block metal:use-macro="css/macros/cssrenderer">
            <!-- Fetch stylesheets from the CSS Registry -->
          </metal:block>
        </tal:block>
        <tal:block condition="not:nocall:css">
        <style type="text/css" media="all" tal:condition="exists:portal/base.css"
               tal:content="string:@import url($portal_url/base.css);">
        </style>
        <style type="text/css" media="all" tal:condition="exists:portal/columns.css"
               tal:content="string:@import url($portal_url/columns.css);">
        </style>
        <style type="text/css" media="all" tal:condition="exists:portal/public.css"
               tal:content="string:@import url($portal_url/public.css);">
        </style>
        <style type="text/css" media="all" tal:condition="exists:portal/portlets.css"
               tal:content="string:@import url($portal_url/portlets.css);">
        </style>
        </tal:block>
    </metal:css>

    <!-- Internet Explorer CSS Fixes -->
    <tal:iefixstart replace="structure string:&lt;!--[if lt IE 7]&gt;" />
        <style type="text/css" media="all" tal:condition="exists: portal/IEFixes.css"
               tal:content="string:@import url($portal_url/IEFixes.css);">
        </style>
    <tal:iefixend replace="structure string:&lt;![endif]--&gt;" />

    <link rel="shortcut icon" type="image/x-icon" tal:attributes="href string:$portal_url/favicon.ico" />

    <link rel="home"
          href=""
          title="Front page"
          i18n:attributes="title title_frontpage"
          tal:attributes="href string:$portal_url" />
    <link rel="search"
          href=""
          title="Search this site"
          i18n:attributes="title title_search_this_site"
          tal:attributes="href string:$portal_url/search_form" />
    <link rel="author"
          href=""
          title="Author information"
          i18n:attributes="title title_author_info"
          tal:attributes="href string:${portal_url}/author/${here/Creator}" />
    <link rel="contents"
          href=""
          title="Site Map"
          i18n:attributes="title title_sitemap"
          tal:attributes="href string:$portal_url/sitemap" />

    <tal:fixme tal:replace="nothing">
      <link rel="help" href="" title="Help" tal:attributes="href string:$portal_url/help" />
      <link rel="copyright" href="" title="Copyright information" tal:attributes="href string:copyright" />
    </tal:fixme>

    <link rel="alternate" href="" title="RSS 1.0" type="application/rss+xml"
          tal:condition="python: syntool.isSyndicationAllowed(here)"
          tal:attributes="href string:$here_url/RSS" />

    <link rel="up" href="" title="Up one level"
          tal:define="parent python:here.navigationParent(here, template_id)"
          tal:condition="parent"
          tal:attributes="href parent" />

    <metal:block metal:define-slot="rel_slot" tal:replace="nothing">
      Inserts rel links specified from a page.
    </metal:block>

    <!-- Disable IE6 image toolbar -->
    <meta http-equiv="imagetoolbar" content="no" />

    <metal:block metal:define-slot="css_slot" tal:replace="nothing">
      Inserts CSS specified from a page.
    </metal:block>

    <metal:block metal:define-slot="head_slot" tal:replace="nothing">
      Flexibility for published templates to inject stuff into the head tag.
    </metal:block>

    <metal:block metal:define-slot="javascript_head_slot" tal:replace="nothing">
      Inserts javascript specified from a page.
    </metal:block>

  </head>

  <body>
  </body>

</html>
