<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="utf-8">
    <meta name="keywords" content="[[*introtext]]">
    <meta name="description" content="[[*description]]">
    <title>[[++site_name]] - [[*longtitle:is=``:then=`[[*pagetitle]]`:else=`[[*longtitle]]`]]</title>
    <base href="[[++site_url]]">
    [[$_head]]
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
	<script type="text/javascript" src="[[++site_url]]tmpl/js/scripts.js"></script>
</head>
<body>
<header>[[++site_name]]</header>
<nav class="menu">
	<div>
        <a href="[[++site_url]]"></a>
		[[$_menu]]
    </div>
</nav>
<section class="light">
	[[!BreadCrumbs? &currentAsLink=`0` &homeCrumbTitle=`Главная` 
		&bcTplCrumbCurrent=`<span itemprop="title">[[+text]]</span>`
		&bcTplCrumbFirst=`<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">[[+text]]</span>` 
		&bcTplCrumbHome=`<a itemprop="url" href="[[~[[++site_start]]]]"><span itemprop="title">[[+text]]</span></a>` 
		&bcTplCrumbLast=`<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">[[+text]]</span>` 
		&bcTplCrumbMax=`<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">[[+text]]</span>`
		&bcTplCrumbLink=`<a itemprop="url" rel="[[+description]]" href="[[+resource]]"><span itemprop="title">[[+text]]</span></a>` 
		&bcTplCrumbOuter=`<nav class="breadcrumb">[[+text]]</nav>` 
		&bcTplCrumb=`<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">[[+text]]</span>`
	]]
	<div class="sidebar">
    	<nav>
			[[!getResources? &parents=`[[*id]]` &depth=`0` &includeTVs=`1` &tpl=`contact` &sortby=`{"menuindex":"ASC"}`]]
        </nav>
    	<div id="map"></div>
        <div class="clr"></div>
		[[*content]]
    </div>
    <script type="text/javascript">
	points = [
		[[!getResources? &parents=`[[*id]]` &depth=`0` &includeTVs=`1` &tpl=`point`]]
	];
	google.maps.event.addDomListener(window, 'load', gmapInit([[*lat]], [[*lng]], [[*zoom]], points));
	</script>
</section>
<footer></footer>
</body>
</html>