{% load i18n goods_filters system_base smart_if attachments_base fb_versions %}<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="cs">
    <head>
        <title>{% block headtitle %}{{ page_title }}{% if web.use_name_in_title %} | {{ web.name }}{% endif %}{% endblock %}</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="FF=3;otherUA=4;IE=8" />
        {% if web.google_site_verification %}<meta name="google-site-verification" content="{{ web.google_site_verification }}" />{% endif %}
        {% if description %}<meta name="description" content="{{ description }}" />{% endif %}
        {% if keywords %}<meta name="keywords" content="{{ keywords }}" />{% endif %}
        <meta name="author" content="YXY.CZ Tvorba internetových prezentací a e-shopů, url: www.yxy.cz" />
        <meta name="robots" content="all, follow" />
        {% block csslib %}
        <link rel="stylesheet" href="/media/css/style.css" type="text/css" media="screen" />
        <!--[if IE 8]><link rel="stylesheet" href="/media/css/ie8-style.css" type="text/css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" href="/media/css/ie7-style.css" type="text/css" media="screen" /><![endif]-->
        {% endblock %}{% block javascriptlib %}
        <script type="text/javascript" src="/media/js/jquery.js"></script>
        <script type="text/javascript" src="/media/js/jquery.tabs.min.js"></script>
        <script type="text/javascript" src="/media/js/jquery-options.js"></script>
        <script type="text/javascript" src="/media/js/droppy.js"></script>
        <!--[if lt IE 8]>
        <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta3)/IE8.js"></script>
        <![endif]-->
        {% endblock %}
     
     <script type="text/javascript"> 
 
      $(document).ready(function(){
        $(function() {
            $('.navigation').droppy();
        });
      })
    </script>
    
    {% block extraheaders %}{% endblock %}
    </head>
    <body>
        <!--[if IE 6]><div id="ie6" class="body"><![endif]-->
        <!--[if IE 7]><div id="ie7" class="body"><![endif]-->
        <!--[if IE 8]><div id="ie8" class="body"><![endif]-->
        <!--[if !IE]>--><div class="body"><!--<![endif]-->
        
            <div id="wrapper">

                {% block header %}
                <div id="header"> 
                    {% block logo %}
                    <div id="logo">
                      {% if page.parent %}<a href="/" class="left">{% else %}<h1>{% endif %}<img src="/media/img/logo.png" alt="BIODIS - webový portál o zpracování bioodpadů, logo" /><span></span>{% if page.parent %}</a>{% else %}</h1>{% endif %}
                    </div>
                    <a class="hidden" href="#left-blocks" title="Přeskočit menu a přejít na obsah">Skočit na obsah</a>
                    {% endblock %}
                    
                    {% block search %}
                    <div class="search">
                      <!-- Google CSE Search Box Begins  --><!-- Google CSE Search Box Ends -->
                      <form action="http://bioodpady.dev.yxy.cz/vysledky-vyhledavani/" id="cse-search-box">
                        <fieldset>
                          <input type="hidden" name="cx" value="016359167702887383562:sahawhthfda" />  
                          <input type="hidden" name="cof" value="FORID:11" />
                          <input type="text" name="q" id="searchBox" size="25" />  
                          <input type="submit" name="sa" value="Hledat" /><span class="button-right"></span>
                        </fieldset> 
                      </form>
                      <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=cs"></script>
                    </div>
                    {% endblock %}
                    
                    {% block left_navigation %}
                    {% if left_navigation %}
                    <div id="nav">
                    <ul class="navigation left">
                        <li><a{% if not page.parent %} class="active"{% endif %} href="/" title="Domů" accesskey="1">Domů</a></li>
                        {% for nav in left_navigation %}
                        <li>
                            <a class="{% if nav.get_children %}submenu {% endif %}{% ifequal nav.id page.id %}active{% endifequal %}" href="{{ nav.get_absolute_url }}" title="{{ nav.get_title }}">{{ nav.get_title }}</a>
                            {% if nav.get_children %}
                            <ul>
                                {% for child in nav.get_children %}
                                {% if child.navigation %}
                                <li>
                                    <a class="{% if child.get_children %}subsubmenu {% endif %}{% ifequal child.id page.id %}active{% endifequal %}" href="{{ child.get_absolute_url }}" title="{{ child.get_title }}">{{ child.get_title }}</a>
                                    {% if child.get_children %}
                                    <ul>
                                        {% for subchild in child.get_children %}
                                        {% if subchild.navigation %}
                                        <li><a{% ifequal subchild.id page.id %} class="active"{% endifequal %} href="{{ subchild.get_absolute_url }}" title="{{ subchild.get_title }}">{{ subchild.get_title }}</a></li>
                                        {% endif %}
                                        {% endfor %}
                                    </ul>
                                    {% endif %}
                                </li>
                                {% endif %}
                                {% endfor %}
                            </ul>
                            {% endif %}
                        </li>
                        {% endfor %}
                    </ul> <!-- navigation -->
                    <span id="menu-right"></span>
                    </div>
                    {% endif %}
                    {% endblock %}
                      
                    {% block quick_path %}
                    {% if page.parent or object %}
                    <div id="quick-path">
                        <a href="/">{% trans "Domů" %}</a> &nbsp;&raquo;&nbsp;
                        {% if object %}{% if page %}<a href="{{ page.get_absolute_url }}">{{ page.get_title }}</a> &nbsp;&raquo;&nbsp;{% endif %}
                        {% else %}{% if page.parent.parent %}<a href="{{ page.parent.get_absolute_url }}">{{ page.parent.get_title }}</a> &nbsp;&raquo;&nbsp;
                        {% endif %}{% endif %}<strong>{{ title }}</strong>
                    </div>
                    {% endif %}
                    {% endblock %}
                      
                    {% block subheading %}
                    <div id="info">
                        <div>{% if web.subheading %}{{ web.subheading }}{% endif %}</div>
                    </div>
                    {% endblock %}

                    {% block header_blocks %}
                    {% if "header" in blocks and blocks.header %}
                    <div id="header-block">
                    {% for block in blocks.header %}
                        <div class="{{ block.css_class }}{% cycle '' ' even' %}{% if forloop.first %} first{% endif %}{% if forloop.last %} last{% endif %}">
                        {% include block.template %}
                        </div>
                    {% endfor %}
                    </div>
                    {% endif %}
                    {% endblock %}

                    {% block bottom_header_blocks %}
                    {% if "headerbottom" in blocks and blocks.headerbottom %}
                    <div id="header-bottom">
                    {% for block in blocks.headerbottom %}
                        <div class="{{ block.css_class }}{% cycle '' ' even' %}{% if forloop.first %} first{% endif %}{% if forloop.last %} last{% endif %}">
                        {% include block.template %}
                        </div>
                    {% endfor %}
                    </div>
                    {% endif %}
                    {% endblock %}

                    <div class="clear"></div>
                </div> <!--#header-->
                <hr class="hide" />
                {% endblock %}
                 
                 
                <!-- _____________________ left blocks (247) _____________________ -->
                <div id="left-blocks" {% if not page.parent %}class="homepage"{% endif %}>
                
                    <div id="{% block contentcls %}content{% endblock %}" class="{% if not object %}{% if not page.parent %}home{% else %}subpage{% endif %}{% endif %}{% block extracontentcls %}{% endblock%}">
                        <div class="content-top"></div>
                        <div class="content-in">
                            {% block title %}
                                {% if page.parent or object %}<h1>{{ title }} {% if object %}<span class="article-date">({{ object.time_create|date:"d. N Y" }})</span>{% endif %}</h1>{% else %}<h2 class="title">{{ title }}</h2>{% endif %}
                            {% endblock %}
                            {% if attributes %}{% include "include/filter.html" %}{% endif %}
                            {% block content %}{% endblock %}
                            {% block isoh %}{% endblock %}
                            {% block others_content_blocks %}
                            {% if "content" in blocks and blocks.content %}
                            <div id="content-blocks">
                                {% for block in blocks.content %}
                                    <div class="{{ block.css_class }}{% cycle '' ' even' %}{% if forloop.first %} first{% endif %}{% if forloop.last %} last{% endif %}">
                                    {% include block.template %}
                                    </div>
                                {% endfor %}
                            </div>
                            {% endif %}
                            {% endblock %}
                            
                            
                            {% for nav in left_navigation %}
                                {% if nav.get_children %}
                                    {% ifequal nav.id page.id %}
                                        <ul class="subcategories">
                                            {% for child in nav.get_children %}
                                                {% if child.navigation %}
                                                <li><a href="{{ child.get_absolute_url }}" title="{{ child.get_title }}">{{ child.get_title }}</a></li>
                                                {% endif %}
                                            {% endfor %}
                                        </ul>
                                    {% endifequal %}
                                    
                                    {% for child in nav.get_children %}
                                    {% ifequal child.id page.id %}
                                    <ul class="subcategories">
                                        {% for subchild in child.get_children %}
                                            {% if subchild.navigation %}
                                            <li><a href="{{ subchild.get_absolute_url }}" title="{{ subchild.get_title }}">{{ subchild.get_title }}</a></li>
                                            {% endif %}
                                        {% endfor %}
                                    </ul>
                                    {% endifequal %}
                                    {% endfor %}
                                    
                                {% endif %}
                            {% endfor %}
                            
                            
                        </div>
                        <div class="content-bottom"></div>
                    </div>
                    
                    {% block left_column %} 
                    <div id="left-column">

                      {% if mainleft_navigation %}
                        <div id="col-navigation">
                            <h2>Levá navigace</h2>
                            <ul>
                            {% for nav in mainleft_navigation %}
                                <li class="nav-{{ nav.id }}{% if nav in page.get_path and page.parent != nav %} active{% endif %}{% if forloop.first %} first{% else %}{% if forloop.last %} last{% endif %}{% endif %}">
                                    <a href="{{ nav.get_absolute_url }}" title="{{ nav.get_title }}">{{ nav.get_title }}</a>
                                </li>
                            {% endfor %}
                            </ul>
                            <div class="bottom"></div>
                        </div>
                      {% endif %}
                      
                      

                      {% block others_left_blocks %}
                          {% if "left" in blocks and blocks.left %}
                              {% for block in blocks.left %}
                              <div class="{{ block.css_class }}{% cycle '' ' even' %}{% if forloop.first %} first{% endif %}{% if forloop.last %} last{% endif %}">
                              {% include block.template %}
                              </div>
                              {% endfor %}
                          {% endif %}
                      {% endblock %}
                    
                    </div>
                    {% endblock %}
                
                </div><!-- #left-blocks -->


                <!-- _____________________ right blocks (301) _____________________ -->
                
                <div id="right-blocks" {% if not page.parent %}class="homepage"{% endif %}>
                    
                    {% for facilities_category in facilities %}
                    <div class="part">
                        <h3><a href="{{ facilities_category.get_absolute_url }}" title="{{ facilities_category.get_title }}">{{ facilities_category.get_title }}</a></h3>
                        
                        {% for map_category in map %}
                        {% ifnotequal page.id map_category.id %}
                        <div id="small-map">
                          <a href="{{ map_category.get_absolute_url }}" title="{{ map_category.get_title }}">{{ map_category.get_title }}</a>
                        </div>
                        {% endifnotequal %}
                        {% endfor %}
                        
                        {% ifnotequal page.id facilities_category.id %}
                        <p class="zarizeni-link">
                          <a href="{{ facilities_category.get_absolute_url }}" title="{{ facilities_category.get_title }}">seznam bioplynových stanic a&nbsp;kompostáren v ČR</a>
                        </p>
                        {% endifnotequal %}
                    </div>
                    {% endfor %}
                    
                    {% for statistics_category in statistics %}
                    {% ifnotequal page.id statistics_category.id %}
                    <div class="part">
                        <h3><a href="{{ statistics_category.get_absolute_url }}" title="{{ statistics_category.get_title }}">{{ statistics_category.get_title }}</a></h3>
                        {{ statistics_category.get_content.content|truncatewords_html:10 }}
                        <p class="more"><a href="{{ statistics_category.get_absolute_url }}" title="Číst více">zobrazit statistiky &raquo;</a></p>
                    </div>
                    {% endifnotequal %}
                    {% endfor %}

                    {% for project_category in project %}
                    {% ifnotequal page.id project_category.id %}
                    <div class="part">
                        <h3><a href="{{ project_category.get_absolute_url }}" title="{{ project_category.get_title }}">{{ project_category.get_title }}</a></h3>
                        {{ project_category.get_content.content|truncatewords_html:10 }}
                        <p class="more"><a href="{{ project_category.get_absolute_url }}" title="Číst více">další informace &raquo;</a></p>
                    </div>
                    {% endifnotequal %}
                    {% endfor %}
                    
                    {% for portal_category in portal %}
                    {% ifnotequal page.id portal_category.id %}
                    <div class="part">
                        <h3><a href="{{ portal_category.get_absolute_url }}" title="{{ portal_category.get_title }}">{{ portal_category.get_title }}</a></h3>
                        {{ portal_category.get_content.content|truncatewords_html:10 }}
                        <p class="more"><a href="{{ portal_category.get_absolute_url }}" title="Číst více">více o portálu &raquo;</a></p>
                    </div>
                    {% endifnotequal %}
                    {% endfor %}
                    
                    {% for links_category in links %}
                    {% ifnotequal page.id links_category.id %}
                    <div class="part links">
                        <h3><a href="{{ links_category.get_absolute_url }}" title="{{ links_category.get_title }}">{{ links_category.get_title }}</a></h3>
                        {{ links_category.get_content.content|truncatewords_html:10 }}
                        <p class="more"><a href="{{ links_category.get_absolute_url }}" title="Číst více">další odkazy &raquo;</a></p>
                    </div>
                    {% endifnotequal %}
                    {% endfor %}
                </div> <!--#right-blocks-->

                
                <div class="clear"></div>
              
                {% block top_navigation %} 
                {% if top_navigation %} 
                <div id="top-navigation">
                    <h2>Horní navigace</h2>
                    <ul>
                    {% for nav in top_navigation %}
                        <li class="nav-{{ nav.id }}{% if nav in page.get_path and page.parent != nav %} active{% endif %}{% if forloop.first %} first{% else %}{% if forloop.last %} last{% endif %}{% endif %}">
                            {% if nav in page.get_path and page.parent != nav %}<span>{{ nav.get_title }}</span>
                            {% else %}<a href="{{ nav.get_absolute_url }}" title="{{ nav.get_title }}">{{ nav.get_title }}</a>{% endif %}
                        </li>
                    {% endfor %}
                    </ul>
                    <span class="clear"></span>
                </div>
                {% endif %}
                {% endblock %}

                
                
            

            {% block footer %} 
            <div id="footer">
                <a href="#" title="Nahoru" class="up"></a>
                <div class="left">
                    <ul>
                        <li><a href="/" title="">Domů</a></li>
                        <li><a href="/mapa-webu/" title="" accesskey="2">Mapa webu</a></li>
                        <li><a href="/prohlaseni-o-pristupnosti/" title="" accesskey="0">Prohlášení o přístupnosti</a></li>
                        <li><a href="/kontakt/" title="">Kontakt</a></li>
                    </ul>
                </div>
                
                <div class="right">
                Vytvořil <a href="http://www.wdesigner.cz/" title="Tvorba webových stránek">Lukáš Hala</a> {% if web.footer %}{{ web.footer|safe }}
                {% else %}Copyright &copy; {% now "Y" %} {{ web.name }}. Všechna práva vyhrazena.{% endif %} {% if web.show_yxy_mark %}{% mark %}{% endif %}
                </div>
            </div>
            <br /><br />
            {% endblock %} 
            </div><!-- #page -->
        </div>
        {% block externalcodes %}
        {% if web.google_analytics_code %}
        <!-- google analytics -->
        <script type="text/javascript">
            var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
            document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
            var pageTracker = _gat._getTracker("{{ web.google_analytics_code }}");
            pageTracker._initData();
            pageTracker._trackPageview();
        </script>
        <!-- end google analytics -->
        {% endif %}
        {% if web.other_codes %}{{ web.other_codes }}{% endif %}
        {% endblock %}
    </body>
</html>
