<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru" dir="ltr">
    <head>
        <meta charset="UTF-8" />
        {% set title = block('title') %}
        {% set breadcrumbs2 = block('breadcrumbs') %}
        {% set body = block('body') %}
        {% set is_main = (title == '') %}
        {% set is_user_logged_in = isUserLoggedIn() %}
        {% set width = getWidth() %}
        {% set mobile_device_dialog = mobileDeviceDialog() %}
        
        <title>{% if title %}{{ title|raw }} | {% endif %}НЕ агентство</title>
        
        <link href="{{ asset('css/page.css') }}" rel="stylesheet" type="text/css" />
        <link href="{{ asset('css/global.css') }}" rel="stylesheet" type="text/css" />
        <link href="{{ asset('css/bbcode.css') }}" rel="stylesheet" type="text/css" />
        <link href="{{ asset('jquery-ui/css/ui-lightness/jquery-ui-1.10.3.custom.min.css') }}" rel="stylesheet" type="text/css" />        
        {% block css %}{% endblock %}
        
        <link rel="shortcut icon" href="{{ asset('favicon.ico') }}" type="image/x-icon" />
        <link rel="icon" href="{{ asset('favicon.ico') }}" type="image/x-icon" />
        
        <script src="{{ asset('jquery-ui/js/jquery-1.9.1.js') }}" type="text/javascript"></script>
        <script src="{{ asset('jquery-ui/js/jquery-ui-1.10.3.custom.min.js') }}" type="text/javascript"></script>        
        <script src="{{ asset('js/md5.js') }}" type="text/javascript"></script>
        <script src="{{ asset('js/cookie.js') }}" type="text/javascript"></script>
        <script src="{{ asset('js/functions.js') }}" type="text/javascript"></script>
        <script src="{{ asset('js/swf_object.js') }}" type="text/javascript"></script>        
        {% block js %}{% endblock %}
       
    </head>
    <body>
            
<div id="head">
    <div id="logo2"> 
        <a href="{{ path('main') }}" title="НЕ агентство"><img src="{{ asset('images/logo.png') }}" width="220" height="35" alt="НЕ агентство" /></a>
    </div>
    {{ menuTop()|raw }}
    {{ userBlock()|raw }}
</div> 

{% if is_main %}
{# Главная страница #}
<div id="main">
    {{ traceOutput()|raw }}
    {{ messagesOutput()|raw }}
    {{ body|raw }}
</div>
{% else %}
{# Прочие страницы #}
<div id="main">
    {{ traceOutput()|raw }}
    {{ messagesOutput()|raw }}
    {{ body|raw }}
</div>
{% endif %}

<div id="middle">

    {% if title %} 
    <div id="content-title">{{ title|raw }}</div>
    {% endif %}
            
    
    <div id="content">
    
        {{ mobile_device_dialog|raw }}

        
        {{ traceOutput()|raw }}
        {{ messagesOutput()|raw }}
        {% if breadcrumbs2 %}
        <div class="breadcrumbs">
            {{ breadcrumbs2|raw }}
        </div>
        {% endif %}
        {{ body|raw }}        
        
    </div> 
    
</div>           
            

<div id="footer">
    <div id="counters">
    <noindex>
    {{ getConfigVar('counters')|raw }}
    </noindex>
    </div>
    {{ getConfigVar('footer')|raw }}
</div>

<script type="text/javascript">

$(document).ready(function(){
    window_width = $(document).width();
    
    // Ширина окна
    document_width = $(document).width();
    window_width = $(window).width();
    $.cookie('width', window_width, { path: '/', expires: 31 });
    
});
$(window).resize(function(){
});
</script>
      
        {% block javascripts %}{% endblock %}
    </body>
</html>

