<!DOCTYPE html>
<html lang="{$bb_cfg['default_lang']}">
<head>
<title><!-- IF HAVE_NEW_PM -->({HAVE_NEW_PM}) <!-- ENDIF --><!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF --></title>
<meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="TorrentPier LTS">
<meta name="application-name" content="{SITENAME}"/>
<meta property="og:site_name" content="{SITENAME}">
<meta property="og:image" content="{SITE_URL}styles/images/logo/logo.png" />
<meta property="twitter:image" content="{SITE_URL}styles/images/logo/logo.png">
<meta property="og:title" content="<!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF -->">
<meta property="twitter:title" content="<!-- IF PAGE_TITLE -->{PAGE_TITLE} :: {SITENAME}<!-- ELSE -->{SITENAME}<!-- ENDIF -->">
{META}
<link rel="shortcut icon" href="{SITE_URL}favicon.ico" type="image/x-icon">
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc.xml" title="{SITENAME} (Forum)" />
<link rel="search" type="application/opensearchdescription+xml" href="{SITE_URL}opensearch_desc_bt.xml" title="{SITENAME} (Tracker)" />

<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" type="text/css">
<link href="styles/templates/default/assets/css/ionicons.min.css" rel="stylesheet" type="text/css">
<link href="styles/templates/default/assets/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{STYLESHEET}?v={$bb_cfg['css_ver']}" type="text/css">

<script type="text/javascript" src="{SITE_URL}styles/js/jquery.pack.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript" src="{SITE_URL}styles/js/main.js?v={$bb_cfg['js_ver']}"></script>

<script>function _pxDemo_loadStylesheet(a,b,c){var c=c||decodeURIComponent((new RegExp(";\\s*"+encodeURIComponent("px-demo-theme")+"\\s*=\\s*([^;]+)\\s*;","g").exec(";"+document.cookie+";")||[])[1]||"clean"),d="rtl"===document.getElementsByTagName("html")[0].getAttribute("dir");document.write(a.replace(/^(.*?)((?:\.min)?\.css)$/,'<link href="$1'+(c.indexOf("dark")!==-1&&a.indexOf("/css/")!==-1&&a.indexOf("/themes/")===-1?"-dark":"")+(!d||0!==a.indexOf("styles/templates/default/assets/css")&&0!==a.indexOf("styles/templates/default/assets/demo")?"":".rtl")+'$2" rel="stylesheet" type="text/css"'+(b?'class="'+b+'"':"")+">"))}</script>

<script>"ltr"!==document.getElementsByTagName("html")[0].getAttribute("dir")&&"1"===decodeURIComponent((new RegExp(";\\s*"+encodeURIComponent("px-demo-rtl")+"\\s*=\\s*([^;]+)\\s*;","g").exec(";"+document.cookie+";")||[])[1]||"0")&&document.getElementsByTagName("html")[0].setAttribute("dir","rtl");</script>

<script>
_pxDemo_loadStylesheet('styles/templates/default/assets/css/bootstrap.min.css', 'px-demo-stylesheet-bs');
_pxDemo_loadStylesheet('styles/templates/default/assets/css/pixeladmin.min.css', 'px-demo-stylesheet-core');
_pxDemo_loadStylesheet('styles/templates/default/assets/css/widgets.min.css', 'px-demo-stylesheet-widgets');
</script>

<script>
function _pxDemo_loadTheme(a){var b=decodeURIComponent((new RegExp(";\\s*"+encodeURIComponent("px-demo-theme")+"\\s*=\\s*([^;]+)\\s*;","g").exec(";"+document.cookie+";")||[])[1]||"clean");_pxDemo_loadStylesheet(a+b+".min.css","px-demo-stylesheet-theme",b)}
_pxDemo_loadTheme('styles/templates/default/assets/css/themes/');
</script>

<script>_pxDemo_loadStylesheet('styles/templates/default/assets/demo/demo.css');</script>

<script src="{SITE_URL}styles/templates/default/assets/js/pace.min.js"></script>
<script src="{SITE_URL}styles/templates/default/assets/js/demo.js"></script>
<style>
.page-header-form .input-group-addon,
.page-header-form .form-control {background: rgba(0,0,0,.05);}
</style>

<!-- IF INCLUDE_BBCODE_JS -->
<script type="text/javascript" src="{SITE_URL}styles/js/bbcode.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript">
	window.BB = {};
	window.encURL = encodeURIComponent;
</script>
<script type="text/javascript">
var bb_url = '{SITE_URL}';
var bbl    = { "code": "{L_CODE}", "wrote": "{L_WROTE}", "quote": "{L_QUOTE}", "quoted_post": "{L_GOTO_QUOTED_POST}", "loading": "{L_LOADING}", "spoiler_head": "{L_SPOILER_HEAD}", "spoiler_close": "{L_SPOILER_CLOSE}", "links_are": "{L_LINKS_ARE_FORBIDDEN}", "scr_rules": "{L_SCREENSHOTS_RULES}", "play_on": "{L_PLAY_ON_CURPAGE}" };

var postImg_MaxWidth = screen.width - {POST_IMG_WIDTH_DECR_JS};
var postImgAligned_MaxWidth = Math.round(screen.width/3);
var attachImg_MaxWidth = screen.width - {ATTACH_IMG_WIDTH_DECR_JS};
var ExternalLinks_InNewWindow = '{EXT_LINK_NEW_WIN}';
var hidePostImg = false;
</script>
<!-- ENDIF / INCLUDE_BBCODE_JS -->

<script type="text/javascript">
var BB_ROOT      = "{#BB_ROOT}";
var cookieDomain = "{$bb_cfg['cookie_domain']}";
var cookiePath   = "{$bb_cfg['script_path']}";
var cookiePrefix = "{$bb_cfg['cookie_prefix']}";
var cookieSecure = "{$bb_cfg['cookie_secure']}";
var LOGGED_IN    = {LOGGED_IN};
var IWP          = 'HEIGHT=510,WIDTH=780,resizable=yes';
var IWP_US       = 'HEIGHT=250,WIDTH=400,resizable=yes';
var IWP_SM       = 'HEIGHT=420,WIDTH=470,resizable=yes,scrollbars=yes';

var user = {
	opt_js: {USER_OPTIONS_JS},

	set: function (opt, val, days, reload) {
		this.opt_js[opt] = val;
		setCookie('opt_js', $.toJSON(this.opt_js), days);
		if (reload) {
			window.location.reload();
		}
	}
};

<!-- IF SHOW_JUMPBOX -->
$(document).ready(function(){
	$("div.jumpbox").html('\
		<div class="input-group"> \
		<span id="jumpbox-container"> \
		<select id="jumpbox" class="custom-select form-control"> \
			<option id="jumpbox-title" value="-1">&nbsp;&raquo;&raquo; {L_JUMPBOX_TITLE} &nbsp;</option> \
		</select> \
		</span> \
		<span class="input-group-btn"> \
			<input id="jumpbox-submit" class="btn btn-primary" type="button" class="lite" value="{L_GO}" /> \
		</span> \
		</div> \
	');
	$('#jumpbox-container').one('click', function(){
		$('#jumpbox-title').html('&nbsp;&nbsp; {L_LOADING} ... &nbsp;');
		var jumpbox_src = '{AJAX_HTML_DIR}' + ({LOGGED_IN} ? 'jumpbox_user.html' : 'jumpbox_guest.html');
		$(this).load(jumpbox_src);
		$('#jumpbox-submit').click(function(){ window.location.href='{FORUM_URL}'+$('#jumpbox').val(); });
	});
});
<!-- ENDIF -->

var ajax = new Ajax('{SITE_URL}{$bb_cfg['ajax_url']}', 'POST', 'json');

function getElText (e)
{
	var t = '';
	if (e.textContent !== undefined) { t = e.textContent; } else if (e.innerText !== undefined) { t = e.innerText; } else { t = jQuery(e).text(); }
	return t;
}
function escHTML (txt)
{
	return txt.replace(/</g, '&lt;');
}
<!-- IF USE_TABLESORTER -->
$(document).ready(function() {
	$('.tablesorter').tablesorter();
});
<!-- ENDIF -->

function cfm (txt)
{
	return window.confirm(txt);
}
function post2url (url, params) {
	params = params || {};
	var f = document.createElement('form');
	f.setAttribute('method', 'post');
	f.setAttribute('action', url);
	params['form_token'] = '{FORM_TOKEN}';
	for (var k in params) {
		var h = document.createElement('input');
		h.setAttribute('type', 'hidden');
		h.setAttribute('name', k);
		h.setAttribute('value', params[k]);
		f.appendChild(h);
	}
	document.body.appendChild(f);
	f.submit();
	return false;
}
</script>

<!--[if gte IE 7]><style type="text/css">
input[type="checkbox"] { margin-bottom: -1px; }
</style><![endif]-->

<!--[if IE]><style type="text/css">
.post-hr { margin: 2px auto; }
.fieldsets div > p { margin-bottom: 0; }
</style><![endif]-->

<style type="text/css">
	.menu-sub, #ajax-loading, #ajax-error, var.ajax-params, .sp-title, .q-post { display: none; }
</style>
</head>

<body>
<!-- IF EDITABLE_TPLS -->
<div id="editable-tpl-input" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<input type="text" class="editable-value" />
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
	</span>
</div>
<div id="editable-tpl-yesno-select" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<select class="editable-value">
			<option value="1">&nbsp;{L_YES}&nbsp;</option>
			<option value="0">&nbsp;{L_NO}&nbsp;</option>
		</select>
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
	</span>
</div>
<div id="editable-tpl-yesno-radio" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<label><input class="editable-value" type="radio" name="editable-value" value="1" />{L_YES}</label>
		<label><input class="editable-value" type="radio" name="editable-value" value="0" />{L_NO}</label>&nbsp;
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;" />
		<input type="button" class="editable-cancel" value="x" style="width: 30px;" />
	</span>
</div>
<div id="editable-tpl-yesno-gender" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<select class="editable-value">
			<option value="0">&nbsp;{$lang['GENDER_SELECT'][0]}&nbsp;</option>
			<option value="1">&nbsp;{$lang['GENDER_SELECT'][1]}&nbsp;</option>
			<option value="2">&nbsp;{$lang['GENDER_SELECT'][2]}&nbsp;</option>
		</select>
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
		<input type="button" class="editable-cancel" value="x" style="width: 30px;">
	</span>
</div>
<div id="editable-tpl-yesno-twitter" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<input type="text" class="editable-value" value="{TWITTER}" />
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
		<input type="button" class="editable-cancel" value="x" style="width: 30px;">
	</span>
</div>
<div id="editable-tpl-yesno-skype" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<input type="text" class="editable-value" value="{SKYPE}" />
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
		<input type="button" class="editable-cancel" value="x" style="width: 30px;">
	</span>
</div>
<div id="editable-tpl-yesno-birthday" style="display: none;">
	<span class="editable-inputs nowrap" style="display: none;">
		<input type="date" class="editable-value" value="{BIRTHDAY}" />
		<input type="button" class="editable-submit" value="&raquo;" style="width: 30px; font-weight: bold;">
		<input type="button" class="editable-cancel" value="x" style="width: 30px;">
	</span>
</div>
<!-- ENDIF / EDITABLE_TPLS -->

<!-- IF PAGINATION -->
<div class="modal fade" id="pg-jump" tabindex="-1">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h4 class="modal-title">{L_GO_TO_PAGE}</h4>
            </div>
            <div class="modal-body">
                <form class="input-group" method="get" onsubmit="return go_to_page();">
					<input id="pg-page" class="form-control" type="text" size="5" maxlength="4" />
					<span class="input-group-btn">
						<input class="btn btn-primary" type="submit" value="{L_GO}"/>
					</span>
				</form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
function go_to_page ()
{
	var page_num = (parseInt( $('#pg-page').val() ) > 1) ? $('#pg-page').val() : 1;
	var pg_start = (page_num - 1) * {PG_PER_PAGE};
	window.location = '{PG_BASE_URL}&start=' + pg_start;
	return false;
}
</script>
<!-- ENDIF -->

<div id="ajax-loading"></div><div id="ajax-error"></div>
<div id="preload" style="position: absolute; overflow: hidden; top: 0; left: 0; height: 1px; width: 1px;"></div>

<!--******************-->
<!-- IF SIMPLE_HEADER -->
<!--==================-->

<!--=================-->
<!-- ELSEIF IN_ADMIN -->
<!--=================-->

<link href="{SITE_URL}styles/templates/default/css/admin.css" rel="stylesheet">

<!--======-->
<!-- ELSE -->
<!--======-->

<nav class="px-nav px-nav-left">
    <button type="button" class="px-nav-toggle" data-toggle="px-nav">
		<span class="px-nav-toggle-arrow"></span>
		<span class="navbar-toggle-icon"></span>
		<span class="px-nav-toggle-label font-size-11">HIDE MENU</span>
    </button>

	<ul class="px-nav-content">
		<!-- IF LOGGED_IN -->
		<li class="px-nav-box p-a-3 b-b-1" id="demo-px-nav-box">
			<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<div class="pull-xs-left m-r-2 border-round ava">{THIS_AVATAR}</div>
			<div class="font-size-12"><span class="font-weight-light"><strong>{THIS_USER}</strong></div>
			<div class="btn-group" style="margin-top: 4px;">
				<a href="{U_PRIVATEMSGS}" class="btn btn-sm btn-primary btn-outline" data-toggle="tooltip" data-placement="top" title="{L_PRIVATE_MESSAGES}"><i class="fa fa-envelope"></i></a>
				<a href="{U_CUR_DOWNLOADS}" class="btn btn-sm btn-primary btn-outline" data-toggle="tooltip" data-placement="top" title="{L_PROFILE}"><i class="fa fa-user"></i></a>
				<a href="{U_OPTIONS}" class="btn btn-sm btn-primary btn-outline" data-toggle="tooltip" data-placement="top" title="{L_OPTIONS}"><i class="fa fa-cog"></i></a>
				<a href="{U_LOGIN_LOGOUT}" onclick="return confirm('{L_CONFIRM_LOGOUT}');" class="btn btn-sm btn-danger btn-outline" data-toggle="tooltip" data-placement="top" title="{L_LOGOUT}"><i class="fa fa-power-off"></i></a>
			</div>
		</li>
		<!-- ENDIF -->

		<li class="px-nav-item px-nav-dropdown">
			<a href="#"><i class="px-nav-icon ion-ios-pulse-strong"></i><span class="px-nav-label">TorrentPier II</span></a>

			<ul class="px-nav-dropdown-menu">
				<li class="px-nav-item"><a href="index.php"><span class="px-nav-label">{L_HOME}</span></a></li>
				<li class="px-nav-item"><a href="tracker.php"><span class="px-nav-label">{L_TRACKER}</span></a></li>
				<li class="px-nav-item"><a href="search.php"><span class="px-nav-label">{L_SEARCH}</span></a></li>
				<li class="px-nav-item"><a href="terms.php"><span class="px-nav-label">{L_TERMS}</span></a></li>
				<li class="px-nav-item"><a href="group.php"><span class="px-nav-label">{L_USERGROUPS}</span></a></li>
				<li class="px-nav-item"><a href="memberlist.php"><span class="px-nav-label">{L_MEMBERLIST}</span></a></li>
			</ul>
		</li>
		<li class="px-nav-item px-nav-dropdown">
			<a href="#"><i class="px-nav-icon fa fa-file-video-o"></i><span class="px-nav-label">Категория</span></a>

			<ul class="px-nav-dropdown-menu">
				<li class="px-nav-item px-nav-dropdown">
					<a href="#"><span class="px-nav-label">Форум</span></a>

					<ul class="px-nav-dropdown-menu">
						<li class="px-nav-item"><a href="#"><span class="px-nav-label">Подфорум</span></a></li>
						<li class="px-nav-item"><a href="#"><span class="px-nav-label">Подфорум</span></a></li>
						<li class="px-nav-item"><a href="#"><span class="px-nav-label">Подфорум</span></a></li>
					</ul>
				</li>
				<li class="px-nav-item"><a href="pages-about-us.html"><span class="px-nav-label">Форум</span></a></li>
			</ul>
		</li>
		<li class="px-nav-item">
			<a href="#"><i class="px-nav-icon ion-aperture"></i><span class="px-nav-label">Категория</span></a>
		</li>
		<li class="px-nav-box b-t-1 p-a-2">
			<a href="#" class="btn btn-primary btn-block btn-outline">Ссылка</a>
		</li>
    </ul>
</nav>

<nav class="navbar px-navbar">
    <div class="navbar-header">
      <a class="navbar-brand px-demo-brand" href="{U_INDEX}"><img src="styles/images/logo/logo.png" title="{SITENAME}" alt="{SITENAME}"></a>
    </div>

    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#px-demo-navbar-collapse" aria-expanded="false"><i class="navbar-toggle-icon"></i></button>

    <div class="collapse navbar-collapse" id="px-demo-navbar-collapse">
		<ul class="nav navbar-nav">
			<!-- IF LOGGED_IN --><!-- IF USER_HIDE_CAT -->
			<li class="dropdown">
				<a href class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-th px-navbar-icon font-size-20 valign-middle"></i></a>
				<div class="dropdown-multi-column">
					<ul class="dropdown-menu dropdown-column">
						<li><a href="{U_SEARCH_NEW}"><i class="fa fa-circle-o" aria-hidden="true"></i>&nbsp;&nbsp;{L_SEARCH_NEW}</a></li>
                        <li><a href="{U_SEARCH_LATEST}"><i class="fa fa-circle-o" aria-hidden="true"></i>&nbsp;&nbsp;{L_SEARCH_LATEST}</a></li>
                        <!-- IF U_ATOM_FEED --><a href="{U_ATOM_FEED}"><i class="fa fa-rss"></i>&nbsp;&nbsp;{L_LATEST_RELEASES}</a></li><!-- ENDIF -->
                        <li><a href="{U_INDEX}?map=1"><i class="fa fa-rss"></i>&nbsp;&nbsp;{L_FORUM_MAP}</a></li>
                        <li><a href data-toggle="modal" data-target="#only-new-options"><i class="fa fa-cog" aria-hidden="true"></i>&nbsp;&nbsp;{L_DISPLAYING_OPTIONS}</a></li>
					</ul>
				</div>
			</li>
			<!-- ENDIF --><!-- ENDIF -->
		</ul>

		<ul class="nav navbar-nav navbar-right">
			<!-- IF LOGGED_IN -->
			<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown">
					<i class="px-navbar-icon fa fa-bullhorn font-size-20"></i>
					<span class="px-navbar-icon-label">Notifications</span>
				</a>
				<div class="dropdown-menu p-a-0" style="width: 300px;">
					<div id="navbar-messages" style="height: 280px; position: relative;">
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
						<div class="widget-messages-alt-item">
							<img src="data/avatars/gallery/noavatar.png" alt="" class="widget-messages-alt-avatar">
							<a href="#" class="widget-messages-alt-subject text-truncate">Добро пожаловать в TorrentPier II</a>
							<div class="widget-messages-alt-description">от <a href="#">admin</a></div>
							<div class="widget-messages-alt-date">Сегодня, в 09:31</div>
						</div>
					</div>
					<a href="{U_SEARCH_SELF_BY_LAST}" class="widget-more-link">{L_SEARCH_SELF}</a>
				</div>
			</li>
			<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown">
					<i class="px-navbar-icon fa fa-envelope font-size-20<!-- IF HAVE_NEW_PM || HAVE_UNREAD_PM --> text-danger<!-- ENDIF -->"></i>
					<span class="px-navbar-icon-label">{L_PRIVATE_MESSAGES}</span>
				</a>
				<div class="dropdown-menu p-a-0" style="width: 300px;">
					<div id="navbar-messages" style="position: relative;">
						<!-- IF HAVE_NEW_PM || HAVE_UNREAD_PM -->
						<a href="{U_READ_PM}" class="widget-more-link font-size-12">{L_PRIVATE_MESSAGES}: {PM_INFO}</a>
						<!-- ELSE -->
						<a href="{U_PRIVATEMSGS}" class="widget-more-link font-size-12">{L_PRIVATE_MESSAGES}: {PM_INFO}</a>
						<!-- ENDIF -->
					</div>
			   </div>
			</li>
			<!-- ELSE -->
			<li><a href="#" data-toggle="modal" data-target="#login">{L_LOGIN}</a></li>
			<li><a href="{U_REGISTER}">{L_REGISTER}</a></li>
			<!-- ENDIF -->
			<li>
				<form class="navbar-form" action="" method="get" onsubmit="$(this).attr('action', $('#search-action').val()); if($('#search-action option:selected').attr('class') == 'hash') $('#search-text').attr('name', 'hash');">
					<div class="input-group" style="display: flex;">
						<input id="search-text" class="form-control" type="text" name="nm" placeholder="{L_SEARCH_S}" required style="width: 140px;">
						<select id="search-action" class="form-control custom-select" style="padding-right: 0;">
							<option value="{U_TRACKER}#results" selected="selected"> {L_TRACKER_S} </option>
							<option value="{U_SEARCH}"> {L_FORUM_S} </option>
							<option value="{U_TRACKER}" class="hash"> {L_HASH_S} </option>
						</select>
						<span class="input-group-btn" style="width: auto !important;">
							<button class="btn" type="submit"><span class="fa fa-search"></span></button>
						</span>
					</div>
				</form>
			</li>
		</ul>
    </div>
</nav>

<div class="px-content">

<!-- IF LOGGED_IN -->
<script type="text/javascript">
ajax.index_data = function(tz) {
	ajax.exec({
		action  : 'index_data',
		mode    : 'change_tz',
		tz      : tz
	});
};
ajax.callback.index_data = function(data) {};
$(document).ready(function() {
	x = new Date();
	tz = -x.getTimezoneOffset()/60;
	if (tz != {BOARD_TIMEZONE})
	{
		ajax.index_data(tz);
	}
});
</script>
<!-- ENDIF -->

<div class="modal fade" id="login" tabindex="-1">
	<div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h4 class="modal-title">{L_ENTER_PASSWORD}</h4>
            </div>
			<div class="modal-body p-a-0">
                <div class="page-signin-container" id="page-signin-form">
					<form action="{S_LOGIN_ACTION}" method="post" class="panel p-a-4">
						<fieldset class=" form-group form-group-lg">
							<input type="text" name="login_username" class="form-control" placeholder="{L_USERNAME}">
						</fieldset>

						<fieldset class=" form-group form-group-lg">
							<input type="password" name="login_password" class="form-control" placeholder="{L_PASSWORD}">
						</fieldset>

						<div class="clearfix">
							<label class="custom-control custom-checkbox pull-xs-left" for="demo-form-checkbox">
								<input id="demo-form-checkbox" class="custom-control-input" type="checkbox" name="autologin" checked="checked">
								<span class="custom-control-indicator"></span>
								{L_REMEMBER}
							</label>
							<a href="{U_SEND_PASSWORD}" class="font-size-12 text-muted pull-xs-right" id="page-signin-forgot-link">{L_FORGOTTEN_PASSWORD}</a>
						</div>

						<button type="submit" name="login" class="btn btn-block btn-lg btn-primary m-t-3">{L_LOGIN}</button>
						<a href="{U_REGISTER}" class="btn btn-block btn-lg btn-primary m-t-3">{L_REGISTER}</a>
					</form>

					<h4 class="m-y-3 text-xs-center font-weight-semibold text-muted">или войдите с помощью</h4>

					<div class="text-xs-center">
						<a href="index.php" class="page-signin-social-btn btn btn-success btn-rounded" data-toggle="tooltip" title="Facebook"><i class="fa fa-facebook"></i></a>&nbsp;&nbsp;&nbsp;
						<a href="index.php" class="page-signin-social-btn btn btn-info btn-rounded" data-toggle="tooltip" title="Twitter"><i class="fa fa-twitter"></i></a>&nbsp;&nbsp;&nbsp;
						<a href="index.php" class="page-signin-social-btn btn btn-danger btn-rounded" data-toggle="tooltip" title="Google+"><i class="fa fa-google-plus"></i></a>
					</div>
				</div>
            </div>
        </div>
    </div>
</div>

<!--menus-->
<!-- IF SHOW_ONLY_NEW_MENU -->
<div class="modal fade" id="only-new-options" tabindex="-1">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">×</button>
                <h4 class="modal-title">{L_DISPLAYING_OPTIONS}</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
					<h6 class="m-t-0 m-b-1 font-weight-semibold text-muted">{L_SHOW_ONLY}</h6>
					<label class="custom-control custom-checkbox has-primary" for="only_new_posts">
						<input id="only_new_posts" class="custom-control-input" type="checkbox" <!-- IF ONLY_NEW_POSTS_ON -->{CHECKED}<!-- ENDIF -->
						onclick="
							user.set('only_new', ( this.checked ? {ONLY_NEW_POSTS} : 0 ), 365, true);
							$('#only_new_topics').attr('checked', false);
						" />
						<span class="custom-control-indicator"></span>
						{L_ONLY_NEW_POSTS}
					</label>
					<label class="custom-control custom-checkbox has-primary" for="only_new_topics">
						<input id="only_new_topics" class="custom-control-input" type="checkbox" <!-- IF ONLY_NEW_TOPICS_ON -->{CHECKED}<!-- ENDIF -->
						onclick="
							user.set('only_new', ( this.checked ? {ONLY_NEW_TOPICS} : 0 ), 365, true);
							$('#only_new_posts').attr('checked', false);
						" />
						<span class="custom-control-indicator"></span>
						{L_ONLY_NEW_TOPICS}
					</label>
				</div>
				<!-- IF USER_HIDE_CAT -->
				<div class="form-group">
					<h6 class="m-t-0 m-b-1 font-weight-semibold text-muted">{L_HIDE_CAT}</h6>
					<form autocomplete="off">
						<!-- BEGIN h_c -->
						<label class="custom-control custom-checkbox has-primary" for="h-cat-cbx-{h_c.H_C_ID}">
							<input id="h-cat-cbx-{h_c.H_C_ID}" class="custom-control-input h-cat-cbx" type="checkbox" value="{h_c.H_C_ID}" {h_c.H_C_CHEKED} />
							{h_c.H_C_TITLE}
							<span class="custom-control-indicator"></span>
						</label>
						<!-- END h_c -->
					</form>
				</div>
				<!-- ENDIF -->
            </div>
			<div class="modal-footer">
                <!-- IF H_C_AL_MESS -->
				<button type="button" onclick="$('input.h-cat-cbx').attr('checked', false); $('button#sec_h_cat').click(); return false;" class="btn btn-3d" data-dismiss="modal">{L_RESET}</button>
                <!-- ENDIF -->
				<button id="sec_h_cat" type="button" onclick="set_h_cat();" class="btn btn-success btn-3d">{L_SUBMIT}</button>
				<script type="text/javascript">
				function set_h_cat ()
				{
					h_cats = [];
					$.each($('input.h-cat-cbx:checked'), function(i,el){
						h_cats.push( $(this).val() );
					});
					user.set('h_cat', h_cats.join('-'), 365, true);
				}
				</script>
            </div>
        </div>
    </div>
</div>
<!-- ENDIF / SHOW_ONLY_NEW_MENU -->
<!--/menus-->

<!--row-->
<div class="row">

<!--=======================-->
<!-- ENDIF / COMMON_HEADER -->
<!--***********************-->

<!-- IF ERROR_MESSAGE -->
<div class="info_msg_wrap">
<table class="error">
	<tr><td><div class="msg">{ERROR_MESSAGE}</div></td></tr>
</table>
</div>
<!-- ENDIF / ERROR_MESSAGE -->

<!-- page_header.tpl END -->
<!-- module_xx.tpl START -->
