<!-- IF TORHELP_TOPICS -->
	<!-- INCLUDE torhelp.tpl -->
	<div class="spacer_6"></div>
<!-- ENDIF -->

<div id="forums_list_wrap">

<div id="forums_top_nav">
	<h1 class="pagetitle"><a href="{U_INDEX}">{T_INDEX}</a></h1>
</div><!--/forums_top_nav-->

<!-- IF LOGGED_IN -->
<div id="index_navigation" class="clearfix bold">
	<div class="floatL" style="margin-left:10px;">
		<a href="{U_SEARCH_LATEST}" class="med">{L_SEARCH_LATEST}</a> &#0183;
		<a href="{U_SEARCH_SELF_BY_LAST}" class="med">{L_SEARCH_SELF}</a> <a href="#search-my-posts" class="menu-root menu-alt1">{OPEN_MENU_IMG_ALT}</a> &#0183;
		<a href="{SITE_URL}atom/f/0.atom" class="med">{FEED_IMG} {L_LATEST_RELEASES}</a> &#0183;
		<a href="{U_INDEX}?map=1" class="med bold">{FEED_IMG} {L_FORUM_MAP}</a>
	</div>
	<div class="floatR med bold" style="margin-right:10px;">
		<a class="menu-root" href="#only-new-options">{L_DISPLAYING_OPTIONS}</a>
	</div>
	<div class="clear"></div>
</div><!--/forums_top_links-->

<div class="menu-sub" id="search-my-posts">
	<table cellspacing="1" cellpadding="4">
	<tr>
		<th>{L_SEARCH_SELF}</th>
	</tr>
	<tr>
		<td>
			<fieldset id="search-my">
			<legend>{L_SORT_BY}</legend>
			<div class="bold nowrap pad_2">
				<p class="mrg_4"><a class="med" href="{U_SEARCH_SELF_BY_LAST}">{L_SEARCH_SELF_BY_LAST}</a></p>
				<p class="mrg_4"><a class="med" href="{U_SEARCH_SELF_BY_MY}">{L_SEARCH_SELF_BY_MY}</a></p>
			</div>
			</fieldset>
		</td>
	</tr>
	</table>
</div><!--/search-my-posts-->
<!-- ENDIF -->


<div id="forums_wrap">

<!-- IF H_C_AL_MESS -->
<div class="row1 med tCenter pad_4 border bw_TRBL" style="margin: 4px 0;">{L_HIDE_CAT_MESS}</div>
<div class="spacer_2"></div>
<!-- ENDIF -->

<!-- IF SHOW_FORUMS -->

<!-- IF SHOW_MAP -->
	<!-- INCLUDE index_map.tpl -->
<!-- ELSE -->

<!-- BEGIN c -->
<div class="category_block block_wrap">
	<h3 class="block_title"><a href="{c.U_VIEWCAT}">{c.CAT_TITLE}</a></h3>
	<div class="ipsBox table_wrap_b removeDefault">
		<div class="ipsBox_container">
			<table class="ipb_table">
				<!-- BEGIN f -->
				<tr>
					<td class="col_c_icon"><a href="search.php?f={c.f.FORUM_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1"><img class="forum_icon" src="{c.f.FORUM_FOLDER_IMG}" alt="{c.f.FORUM_FOLDER_ALT}" /></a></td>
					<td class="col_c_forum">
						<h4 class="forum_name"><a href="{FORUM_URL}{c.f.FORUM_ID}">{c.f.FORUM_NAME}</a></h4>
						<!-- IF c.f.FORUM_DESC --><p class="desc forum_desc">{c.f.FORUM_DESC}</p><!-- ENDIF -->
							
						<!-- IF c.f.LAST_SF_ID -->
						<p class="subforums">
							<em>{L_SUBFORUMS}:</em>
							<!-- BEGIN sf -->
							<span class="sf_title{c.f.sf.SF_NEW}"><a href="search.php?f={c.f.sf.SF_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1" class="dot-sf">&#9658;</a><a href="{FORUM_URL}{c.f.sf.SF_ID}" class="dot-sf">{c.f.sf.SF_NAME}</a></span><span class="sf_separator"></span>
							<!-- END sf -->
						</p>
						<!-- ENDIF -->
							
						<!-- IF c.f.MODERATORS && SHOW_MOD_INDEX --><p class="moderators"><em>{L_MODERATORS}:</em> {c.f.MODERATORS}</p><!-- ENDIF -->
					</td>
					<td class="col_c_stats ipsType_small">
						<ul>
							<li>{c.f.TOPICS} Тем</li>
							<li>{c.f.POSTS} Сообщений</li>
						</ul>
					</td>
                    <td class="col_c_post">
					<!-- IF c.f.POSTS -->
						<ul class="last_post ipsType_small">
							<!-- BEGIN last -->
								<!-- IF SHOW_LAST_TOPIC -->
									<li><a href="{TOPIC_URL}{c.f.last.LAST_TOPIC_ID}{NEWEST_URL}" title="{c.f.last.LAST_TOPIC_TIP}">{c.f.last.LAST_TOPIC_TITLE}</a></li>
								<!-- ENDIF / SHOW_LAST_TOPIC -->
								<li>
									<span class="desc lighter blend_links">{c.f.last.LAST_POST_TIME}</span>
									  {c.f.last.LAST_POST_USER}
								</li>
							<!-- END last -->
						</ul>
					<!-- ELSE / start of !c.f.POSTS -->
						<span class="desc lighter blend_links">{L_NO_POSTS}</span>
					<!-- ENDIF -->
					</td>
				</tr>
				<!-- END f -->
			</table>
		</div>
	</div>
<br />
</div>
<!-- END c -->

<!-- ENDIF / SHOW_MAP -->

<!-- ELSE / SHOW_FORUMS -->

<table class="forumline">
	<tr><td class="row1 tCenter pad_8">{NO_FORUMS_MSG}</td></tr>
</table>
<div class="spacer_6"></div>

<!-- ENDIF -->

</div><!--/forums_wrap-->


<!-- IF LOGGED_IN and SHOW_FORUMS -->
<div id="index_navigation" class="clearfix bold">
	<div class="floatL" style="margin-left:10px;">
	<a href="{U_SEARCH_NEW}" class="med"><b>{L_SEARCH_NEW}</b></a> &#0183;
	<a href="{U_INDEX}" class="med" onclick="setCookie('{COOKIE_MARK}', 'all_forums');">{L_MARK_ALL_FORUMS_READ}</a>
	</div>
</div>
<!-- ENDIF -->

<div class="category_block block_wrap">
	<h3 class="block_title">{L_WHOSONLINE}</h3>
	<div class="ipsBox table_wrap_b removeDefault">
		<div class="ipsBox_container">
			<table class="ipb_table">
			<tr>
				<td class="col_c_icon"><img class="forum_icon" src="{IMG}whosonline.gif" alt="" /></td>
				<td class="col_c_forum">
					<div class="med" style="line-height: 16px">
						<p>{TOTAL_TOPICS}</p>
						<p>{TOTAL_POSTS}</p>
						<p>{TOTAL_USERS}</p>
						<p>{TOTAL_GENDER}</p>
						<p>{NEWEST_USER}</p>

						<!-- IF $bb_cfg['tor_stats'] -->
						<div class="hr1" style="margin: 5px 0 4px;"></div>
						<p>{TORRENTS_STAT}</p>
						<p>{PEERS_STAT}</p>
						<p>{SPEED_STAT}</p>
						<!-- ENDIF -->

						<!-- IF $bb_cfg['birthday_enabled'] -->
						<script type="text/javascript">
						ajax.callback.index_data = function(data) {
							$('#'+ data.mode).html(data.html);
						};
						</script>
						<div class="hr1" style="margin: 5px 0 4px;"></div>
						<p id="birthday_today" class="birthday">{WHOSBIRTHDAY_TODAY}</p>
						<p id="birthday_week" class="birthday">{WHOSBIRTHDAY_WEEK}</p>
						<!-- ENDIF -->

						<div class="hr1" style="margin: 5px 0 4px;"></div>

						<p>{TOTAL_USERS_ONLINE}<!-- IF IS_ADMIN --> &nbsp;{USERS_ONLINE_COUNTS}<!-- ENDIF --></p>
						<p>{RECORD_USERS}</p>

						<!-- IF SHOW_ONLINE_LIST -->
							<style type="text/css"><!-- IF IS_ADMIN -->.colorISL, a.colorISL, a.colorISL:visited { color: #793D00; }<!-- ELSE -->.ou_stat { display: none; }<!-- ENDIF --></style>
							<a name="online"></a>
							<div id="online_userlist" style="margin-top: 4px;">{LOGGED_IN_USER_LIST}</div>

							<div class="hr1" style="margin: 5px 0 4px;"></div>

							<p id="online_time">{L_ONLINE_EXPLAIN}</p>
							<p id="online_explain">
								[ <span class="colorAdmin"><b>{L_ONLINE_ADMIN}</b></span> ]
								[ <span class="colorMod"><b>{L_ONLINE_MOD}</b></span> ]
								[ <span class="colorGroup"><b>{L_ONLINE_GROUP_MEMBER}</b></span> ]
							</p>
						<!-- ENDIF -->
					</div>
				</td>
			</tr>
			</table>
		</div>
	</div>
<br />
</div>
<!--bottom_info-->
<div class="bottom_info">

	<div id="timezone">
		<p>{CURRENT_TIME}</p>
		<p>{S_TIMEZONE}</p>
	</div>
	<div class="clear"></div>

	<table class="bCenter med" id="f_icons_legend">
	<tr>
		<td><img class="forum_icon" src="{IMG}folder_new_big.gif" alt="{L_NEW}"/></td>
		<td>{L_NEW_POSTS}</td>
		<td><img class="forum_icon" src="{IMG}folder_big.gif" alt="{L_OLD}" /></td>
		<td>{L_NO_NEW_POSTS}</td>
		<td><img class="forum_icon" src="{IMG}folder_locked_big.gif" alt="{L_FORUM_LOCKED_MAIN}" /></td>
		<td>{L_FORUM_LOCKED_MAIN}</td>
	</tr>
	</table>

</div><!--/bottom_info-->

</div><!--/forums_list_wrap-->