<!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="{{ LANGUAGE_CODE }}" lang="{{ LANGUAGE_CODE }}">
{% load i18n richtemplates_tags native %}
<head>
    {% block head %}
    <title>{% block title %}{% endblock %}</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    
    {% block head_css %}
    <link rel="stylesheet" type="text/css" href="{{ RICHTEMPLATES_MEDIA_URL }}css/style.css" />
    {# set 'skin' context variable #}
    {% get_richskin %}
    {% if skin.alias != 'aqua' %}
        <link rel="stylesheet" type="text/css" href="{{ skin.url }}" />
    {% endif %}
    {% endblock %}

    {% block head_js %}
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/jquery.tipsy.js" type="text/javascript"></script>
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/jquery.togglable.0.1.min.js" type="text/javascript"></script>
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/common.js" type="text/javascript"></script>
    {% if RICHTEMPLATES_USE_DAJAX %}
    {% load dajaxice_templatetags %}
    {% dajaxice_js_import %}
    <script src="{{ RICHTEMPLATES_MEDIA_URL }}js/jquery.dajax.core.js" type="text/javascript" charset="utf-8"></script>
    {% endif %}
    {% endblock %}

    {% get_code_style as "style" %}
    <style type="text/css">
        {% highlight_style "code-highlight" style=style %}
    </style>
    {% block extra_head %}{% endblock %}
    {% endblock %}
</head>


<body{% block body_attrs %}{% endblock %}>
{% block body %}
    <div id="top">
        {% block top %}
        {% endblock %}
    </div>
    {% block menu_top %}
        {% include "richtemplates/layout/menu_top.html" %}
    {% endblock %}
    {% block breadcrumbs %}{% endblock %}
    <div id="body-content">
        
        {# Message Box #}
        {# For new message framework, available since Django 1.2 #}
        {% block messages_block %}
        {% if messages %}
        <ul id="global-messages" class="messages">
            {% for message in messages %}
            <li class="message message-{% if message.tags %}{{ message.tags }}{% else %}info{% endif %}">{{ message }}</li>
            {% endfor %}
        </ul>
        {% endif %}
        {% endblock messages_block %}

        {% block content %}
        
		    <!-- Column Left -->
	        <div id="col_left">
	        {% block col_left %}
				<div class="richtemplates-panel">
                    <h5>{% block col_left_title %}Left panel title{% endblock %}</h5>
		            <div class="richtemplates-panel-content">
		                {% block col_left_content %}{% endblock %}
		            </div>
		        </div>
				<!-- Add extra things if needed -->
		        {% block col_left_extra %}{% endblock %}
		    {% endblock col_left %}
	        </div>
	        
			<!-- Column Main -->
			<div id="col_main">
			{% block col_main %}
		        <div class="richtemplates-panel">
		            <h5>{% block col_main_title %}Left panel title{% endblock %}</h5>
		            <div class="richtemplates-panel-content">
		                {% block col_main_content %}{% endblock %}
		            </div>
		        
				</div>
				<!-- Add extra things if needed -->
                {% block col_main_extra %}{% endblock %}
			{% endblock col_main %}
			</div>
        
        {% endblock content %}
		
    </div>
    {# Footer #}
    {% block footer_wrapper %}
    <div id="footer">
        {% block footer %}
        <p>{% now "Y" %} &copy; <a href="http://bitbucket.org/lukaszb/django-richtemplates/"
                                   class="show-tipsy"
                                   title="Go to richtemplates homepage">django-richtemplates</a></p>
        {% endblock %}
    </div>
    {% endblock footer_wrapper %}
{% endblock body %}

{% block extra_body %}{% endblock %}
{% block end_body %}{% endblock %}
</body>
</html>
