<link rel="stylesheet" href="{SITE_URL}misc/js/prettyphoto/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="{SITE_URL}misc/js/prettyphoto/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000});
});
</script>

<!-- IF LOGGED_IN -->
<style type="text/css">
<!-- IF HIDE_AVATAR -->.avatar { display: none; }<!-- ENDIF -->
<!-- IF HIDE_RANK_IMG -->.rank_img { display: none; }<!-- ENDIF -->
<!-- IF HIDE_POST_IMG -->img.postImg, div.postImg-wrap { display: none; }<!-- ENDIF -->
<!-- IF HIDE_SMILE -->.smile { display: none; }<!-- ENDIF -->
<!-- IF HIDE_SIGNATURE -->.signature { display: none; }<!-- ENDIF -->
</style>
<!-- IF SPOILER_OPENED -->
<script type="text/javascript">
	$(document).ready(function(){ $('div.sp-head').click(); });
</script>
<!-- ENDIF -->
<!-- ENDIF / LOGGED_IN -->

<!-- IF $bb_cfg['use_ajax_posts'] && (AUTH_DELETE || AUTH_REPLY || AUTH_EDIT) -->
<script type="text/javascript">
ajax.open_edit = false;
function edit_post(post_id, type, text) {
	if(ajax.open_edit && ajax.open_edit != post_id) {
		alert('{L_AJAX_EDIT_OPEN}');
	} else{
		if(ajax.open_edit && !text){
			$('#pp_'+ post_id).show();
			$('#pe_'+ post_id).hide();
		} else{
			$('#pp_'+ post_id).hide();
			$('#pe_'+ post_id).show();
			ajax.exec({
				action   : 'posts',
				post_id  : post_id,
				topic_id : {TOPIC_ID},
				text     : text,
				type     : type
			});
		}
		ajax.open_edit = false;
	}
}
ajax.callback.posts = function(data) {
	if(data.html){
		$('#pp_'+ data.post_id).show().html(data.html);
		initPostBBCode('#pp_'+ data.post_id);
		$('#pe_'+ data.post_id).hide();
		ajax.open_edit = false;
	} else if(data.text){
		ajax.open_edit = data.post_id;
		$('#pe_'+ data.post_id).html(data.text);
	}
	if(data.redirect) document.location.href = data.redirect;
	if(data.hide) {
		if(ajax.open_edit == data.post_id) ajax.open_edit = false;
		$('div#post_'+ data.post_id).hide();
	}
	if(data.quote) $('textarea#message').attr('value', $('textarea#message').val() + data.message +' ').focus();
	if(data.message_html){
		$('#view_message').show();
			$('.view-message').html(data.message_html);
			initPostBBCode('.view-message');
			var maxH   = screen.height - 490;
		$('.view-message').css({ maxHeight: maxH });
	}
};
</script>
<!-- ENDIF -->

<!-- IF SPLIT_FORM -->
<script type="text/javascript">
function set_hid_chbox (id)
{
	$('#del_split_row').show();

	// set checkbox value
	$('#cb_'+id).val( $('#cb_'+id).val() == id ? 0 : id );
	// highlight selected post
	$('#post_'+id+' td').toggleClass('hl-selected-post');

	return false;
}
</script>
<!-- ENDIF / SPLIT_FORM -->

<div id="secondary_navigation" class="clearfix">
    <ol class="breadcrumb top ipsList_inline left" id="breadcrumb">
        <li class="first">
            <a href="{U_INDEX}"><span>{T_INDEX}</span></a>
        </li>
		<li>
			<a href="{U_VIEWCAT}"><span>{CAT_TITLE}</span></a>
		</li>
        <!-- IF PARENT_FORUM_NAME -->
		<li>
            <a href="{PARENT_FORUM_HREF}"><span>{PARENT_FORUM_NAME}</span></a>
        </li>
		<!-- ENDIF -->
        <li>
            <a href="{U_VIEW_FORUM}"><span>{FORUM_NAME}</span></a>
        </li>
    </ol>
</div>

<div class="ipbfs_titlebox">
	<div class="ipsBox_withphoto">
		<!-- IF LOGGED_IN --><span class="right"><span class="mark_button">{S_WATCH_TOPIC}</span><a class="ipsButton_secondary" title="{T_POST_REPLY}" href="{U_POST_REPLY_TOPIC}">{T_POST_REPLY}</a></span><!-- ENDIF -->		
		<h1 class="ipsType_pagetitle"><a class="tt-text" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a>
<!-- IF AUTH_MOD -->
<script type="text/javascript">
var $tt_td = $('.ipsType_pagetitle');
function edit_topic_title (mode)
{
	if (mode == 'edit') {
		var tt_text = $tt_td.find('.tt-text').text();

		ajax.tte_orig_html = $tt_td.html();
		$tt_td.html( $('#tt-edit-tpl').html() );
		$('.tt-edit-input', $tt_td).val(tt_text).focus();
	}
	else if (mode == 'save') {
		var topic_title = $('.tt-edit-input', $tt_td).val();

		ajax.edit_topic_title(topic_title);
	}
	else {
		$tt_td.html(ajax.tte_orig_html);
	}
}
ajax.edit_topic_title = function(topic_title) {
	ajax.exec({
		action      : 'mod_action',
		mode        : 'edit_topic_title',
		topic_id    : {TOPIC_ID},
		topic_title : topic_title
	});
};
ajax.callback.mod_action = function(data) {
	$tt_td.html(ajax.tte_orig_html);
	$('.tt-text', $tt_td).html(data.topic_title);
};
ajax.post_mod_comment = function(post_id, mc_text, mc_type) {
	ajax.exec({
		action  : 'post_mod_comment',
		post_id : post_id,
		mc_type : mc_type,
		mc_text : mc_text
	});
};
ajax.callback.post_mod_comment = function(data) {
	if (data.mc_type == 0) {
		$('#mc_text_'+ data.post_id).attr('value', '');
		$('#pc_'+ data.post_id).hide();
	}
	else {
		$('#pc_'+ data.post_id +' h4').html(data.mc_title);
		$('#mc_comment_'+ data.post_id).html(data.mc_text);
		$('#mc_class_'+ data.post_id).attr('class', 'alert alert-'+ data.mc_class);
		initPostBBCode('#pc_'+ data.post_id);
		$('#pc_'+ data.post_id).show();
	}
};
</script>
<a style="cursor: help; color: #800000;" title="{L_EDIT_TOPIC_TITLE}" onclick="edit_topic_title('edit'); return false" href="#">&para;</a>

<div id="tt-edit-tpl" style="display: none;">
	<div class="tt-edit" style="padding: 4px;">
		<textarea class="tt-edit-input" rows="2" cols="50" style="width: 70%; height: 35px;"></textarea>
		<input type="button" value="{L_SAVE}" onclick="edit_topic_title('save'); return false;" />
		<input type="button" value="{L_CANCEL}" onclick="edit_topic_title('cancel'); return false;" />
	</div>
</div>
<!-- ENDIF -->
		</h1>
	</div>
</div>

<!-- IF PAGINATION -->
<div class="pagination clearfix right pag">{PAGINATION}</div>
<div class="clear"></div>
<!-- ELSE -->
<div class="spacer_12"></div>
<!-- ENDIF -->

<!-- IF SHOW_DL_LIST || SHOW_TOR_ACT --><!-- INCLUDE viewtopic_torrent.tpl --><!-- ENDIF -->

<!-- IF TOPIC_HAS_POLL or CAN_MANAGE_POLL -->
<form id="poll-form" method="post" action="poll.php" style="display: none;">
<input id="poll-mode" type="hidden" name="mode" value="" />
<input type="hidden" name="topic_id" value="{TOPIC_ID}" />
<input type="hidden" name="{TOPIC_HASH}" value="1" />
<input type="hidden" name="start" value="{START}" />
<input type="hidden" name="forum_id" value="{FORUM_ID}" />
<input id="vote-id" type="hidden" name="vote_id" value="-1" />
<input id="poll-submit-btn" type="submit" name="submit" value="1" />
<input id="poll-caption-val" name="poll_caption" type="hidden" value="" />
<textarea id="poll-votes-val" name="poll_votes" rows="10" cols="10"></textarea>
</form>
<!-- ENDIF -->
<!-- IF CAN_MANAGE_POLL -->
<script type="text/javascript">
// заполняет #poll-form и отправляет запрос
function poll_manage (mode, confirm_msg)
{
	if (confirm_msg != null && !window.confirm( confirm_msg )) {
		return false;
	}
	$('#poll-mode').val(mode);
	$('#poll-caption-val').val( $('#poll-caption-inp').val() );
	$('#poll-votes-val').val( $('#poll-votes-inp').val() );
	$('#poll-submit-btn').click();
	return false;
}
function build_poll_add_form (src_el)
{
	$('#poll').empty().append( $('#poll-edit-tpl').contents() ).show();
	$('#poll-legend').html('{L_ADD_POLL}');
	$('#poll-edit-submit-btn').click(function(){
		return poll_manage('poll_add');
	});
	$(src_el).remove();
	return false;
}
</script>
<div id="poll-edit-tpl" style="display: none;">
	<table class="med bCenter"><tr><td>
	<fieldset style="padding: 0 8px;">
	<legend id="poll-legend"></legend>
		<div style="margin-top: 4px;">{L_NEW_POLL_M_TITLE}:</div>
		<input id="poll-caption-inp" name="poll_caption" type="text" value="" class="bold" style="width: 550px;" />
		<div class="med" style="margin-top: 4px;">{L_NEW_POLL_M_VOTES}:</div>
		<textarea id="poll-votes-inp" rows="8" cols="10" wrap="off" class="gen" style="width: 550px;"></textarea>
		<div class="med mrg_4"><i>{L_NEW_POLL_M_EXPLAIN}: {$bb_cfg['max_poll_options']})</i></div>
		<div class="mrg_8 tCenter"><input id="poll-edit-submit-btn" type="button" value="{L_SUBMIT}" class="bold" style="width: 100px;" /></div>
	</fieldset>
	</td></tr></table>
</div>
<!-- ENDIF -->
<!-- IF TOPIC_HAS_POLL or CAN_ADD_POLL -->
<div id="poll" class="row5" style="padding: 0 10%; display: none;">
<!-- IF TOPIC_HAS_POLL --><!-- INCLUDE viewtopic_poll.tpl --><!-- ENDIF -->
</div>
<!-- ENDIF -->

<div class="blurBox">
<div class="ipsFilterbar maintitle" style="padding: 0 0 8px;">
<!-- IF LOGGED_IN -->
<div class='topicViewIcons left'>
	<a href="#" id="topicViewRegular" title="Regular View"><img src="../styles/images/spacer.gif" /></a>
	<a href="#" id="topicViewBasic" title="Basic View"><img src="../styles/images/spacer.gif" /></a>
</div>
<!-- ENDIF -->
<table class="w90 right">
<tr>

		<!-- IF AUTH_MOD -->
		<td class="small bold nowrap" style="padding: 0 0 0 4px;">
			<!-- IF IN_MODERATION -->{L_MODERATE_TOPIC}<!-- ELSE --><a href="{PAGE_URL}&amp;mod=1&amp;start={PAGE_START}" class="small bold">{L_MODERATE_TOPIC}</a><!-- ENDIF -->
			&nbsp;<span style="color:#CDCDCD;">|</span>&nbsp;
			<a class="small bold" href="{PIN_HREF}">{PIN_TITLE}</a>
		</td>
		<!-- IF SELECT_PPP -->
		<td class="med" style="padding: 0 4px 2px 4px;">|</td>
		<td class="small nowrap" style="padding: 0 0 0 0;">{L_SELECT_POSTS_PER_PAGE}</td>
		<td class="small nowrap" style="padding: 0 0 0 3px;">
			<form id="ppp" action="{PAGE_URL_PPP}" method="post">{SELECT_PPP}</form>
		</td>
		<!-- ENDIF / SELECT_PPP -->
		<!-- ENDIF / AUTH_MOD -->

		<td class="small bold nowrap tRight" width="100%">
			&nbsp;
			<!-- IF LOGGED_IN -->
			<a class="small" href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a> &nbsp;<span style="color:#CDCDCD;">|</span>&nbsp;
			<a class="menu-root" href="#topic-options">{L_DISPLAYING_OPTIONS}</a>
			<!-- ENDIF / LOGGED_IN -->
		</td>

		<td class="nowrap" style="padding: 0 4px 2px 4px;">
			<form action="search.php?t={TOPIC_ID}&amp;dm=1&amp;s=1" method="post">
				<input id="search-text" type="text" name="nm" class="hint" style="width: 150px;" placeholder="{L_SEARCH_IN_TOPIC}" required />
				<input type="submit" class="bold" value="&raquo;" style="width: 30px;" />
			</form>
		</td>
	</tr>
	</table>
</div>

<!-- IF LOGGED_IN -->
<div class="menu-sub" id="topic-options">
	<table cellspacing="1" cellpadding="4">
	<tr>
		<th>{L_DISPLAYING_OPTIONS}</th>
	</tr>
	<tr>
		<td>
			<fieldset id="show-only">
			<legend>{L_HIDE_IN_TOPIC}</legend>
			<div class="med pad_4">
				<label>
					<input type="checkbox" <!-- IF HIDE_AVATAR -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_av', this.checked ? 1 : 0);"
					/>{L_AVATARS}
				</label>
				<label>
					<input type="checkbox" <!-- IF HIDE_RANK_IMG -->{CHECKED}<!-- ENDIF --><!-- IF HIDE_RANK_IMG_DIS -->{DISABLED}<!-- ENDIF -->
						onclick="user.set('h_rnk_i', this.checked ? 1 : 0);"
					/>{L_RANK_IMAGES}
				</label>
				<label>
					<input type="checkbox" <!-- IF HIDE_POST_IMG -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_post_i', this.checked ? 1 : 0);"
					/>{L_POST_IMAGES}
				</label>
				<label>
					<input type="checkbox" <!-- IF HIDE_SMILE -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_smile', this.checked ? 1 : 0);"
					/>{L_SMILIES}
				</label>
				<label>
					<input type="checkbox" <!-- IF HIDE_SIGNATURE -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_sig', this.checked ? 1 : 0);"
					/>{L_SIGNATURES}
				</label>
			</div>
			</fieldset>
			<div class="spacer_4"></div>
			<fieldset id="spoiler-opt">
			<legend>{L_SHOW}</legend>
			<div class="med pad_4">
			<p>
				<label>
					<input type="checkbox" <!-- IF SPOILER_OPENED -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('sp_op', this.checked ? 1 : 0);"
					/>{L_SHOW_OPENED}
				</label>
				<label>
				<input type="checkbox" <!-- IF SHOW_IMG_AFTER_LOAD -->{CHECKED}<!-- ENDIF -->
					onclick="user.set('i_aft_l', this.checked ? 1 : 0);"
				/>{L_DOWNLOAD_PIC}
			</label>
			</p>
			</div>
			</fieldset>
		</td>
	</tr>
	<tr>
		<td class="cat tCenter pad_4"><input type="button" value="{L_SUBMIT}" style="width: 100px;" onclick="window.location.reload();" /></td>
	</tr>
	</table>
</div><!--/topic-options-->
<!-- ENDIF / LOGGED_IN -->


<div class="border"><div id="customize_topic" class="topic hfeed clearfix removeDefault ">
<div class="ipsBox"><div id="ips_Posts" class="ipsBox_container">

<!-- BEGIN postrow -->
<div id="post_{postrow.POST_ID}" class="post_block hentry clearfix column_view ">
<h3>
	<span class="right">
		<!-- IF postrow.IS_FIRST_POST and CAN_ADD_POLL --><a href="#" onclick="return build_poll_add_form(this);" class="txtb">{POLL_IMG}</a><!-- ENDIF -->
		<!-- IF postrow.QUOTE --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="ajax.exec({ action: 'posts', post_id: {postrow.POST_ID}, type: 'reply'}); return false;<!-- ELSE -->{QUOTE_URL}{postrow.POST_ID}<!-- ENDIF -->">{QUOTE_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
		<!-- IF postrow.EDIT --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="edit_post({postrow.POST_ID}, 'edit'); return false;<!-- ELSE -->{EDIT_POST_URL}{postrow.POST_ID}<!-- ENDIF -->">{EDIT_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
		<!-- IF postrow.DELETE --><a class="txtb" href="<!-- IF $bb_cfg['use_ajax_posts'] -->" onclick="ajax.exec({ action: 'posts', post_id: {postrow.POST_ID}, topic_id : {TOPIC_ID}, type: 'delete'}); return false;<!-- ELSE -->{DELETE_POST_URL}{postrow.POST_ID}<!-- ENDIF -->">{DELETE_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
		<!-- IF postrow.IP --><a class="txtb" href="{IP_POST_URL}{postrow.POST_ID}&amp;t={TOPIC_ID}">{IP_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
		<!-- IF AUTH_MOD -->
			<a class="menu-root menu-alt1 txtb" href="#mc_{postrow.POST_ID}">{MC_IMG}</a>{POST_BTN_SPACER}
			<!-- IF not IN_MODERATION --><a class="txtb" href="{PAGE_URL}&amp;mod=1&amp;start={PAGE_START}#{postrow.POST_ID}">{MOD_POST_IMG}</a>{POST_BTN_SPACER}<!-- ENDIF -->
		<!-- ENDIF -->
		<!-- IF postrow.MOD_CHECKBOX --><input type="checkbox" class="select_post" onclick="set_hid_chbox('{postrow.POST_ID}');"><!-- ENDIF -->
	</span>
	<div class="post_username">
		<!-- IF postrow.IS_UNREAD --><img title="Новое сообщение" class="post_online" src="/styles/templates/default/images/snapshot/post_online.png"><!-- ELSE --><img class="post_online" src="/styles/templates/default/images/snapshot/post_offline.png"><!-- ENDIF -->
		<!-- IF postrow.POSTER_BOT -->
		<!-- ELSE -->
		
		<!-- IF QUICK_REPLY -->
		<span class="author vcard" title="{L_INS_NAME_TIP}" onclick="bbcode.onclickPoster('{postrow.POSTER_NAME_JS}', {postrow.POST_ID});"><a href="#" onclick="return false;">{postrow.POSTER_NAME}</a></span>
		<!-- ELSE -->
		<span class="author vcard">{postrow.POSTER_NAME}</span>
		<!-- ENDIF -->
		
		<!-- ENDIF -->
	</div>
	<div class="post_date">
		Отправлено: <a href="{POST_URL}{postrow.POST_ID}#{postrow.POST_ID}" title="{L_POST_LINK}">{postrow.POST_DATE}</a>
		<!-- IF postrow.POSTED_AFTER -->
			<span>({L_POSTED_AFTER} {postrow.POSTED_AFTER})</span>
		<!-- ENDIF -->
	</div>
</h3>
<table class="w100">
<tr>
  <!-- IF LOGGED_IN -->
  <td class="author_info clearfix"><a name="{postrow.POST_ID}"></a><!-- IF postrow.IS_NEWEST --><a name="newest"></a><!-- ENDIF -->
	<ul class="basic_info">
	
	<!-- IF postrow.POSTER_RANK --><p class="rank_txt desc member_title">{postrow.POSTER_RANK}</p><!-- ENDIF -->
	
	<!-- IF postrow.POSTER_BOT -->
		<!-- IF postrow.POSTER_AVATAR --><li class="avatar">{postrow.POSTER_AVATAR}</li><!-- ENDIF -->
	<!-- ELSE -->
		
		<!-- IF postrow.POSTER_AVATAR --><li class="avatar"><a class="ipsUserPhotoLink" href="{PROFILE_URL}{postrow.POSTER_ID}">{postrow.POSTER_AVATAR}</a></li><!-- ENDIF -->
		<!-- IF postrow.RANK_IMAGE --><li class="group_title">{postrow.RANK_IMAGE}</li><!-- ENDIF -->
		<!-- IF postrow.POSTER_GENDER --><li class="title">{L_GENDER}: {postrow.POSTER_GENDER}</li><!-- ENDIF -->
		<!-- IF postrow.POSTER_JOINED --><li class="title" title="{postrow.POSTER_JOINED_DATE}">{L_LONGEVITY}: {postrow.POSTER_JOINED}</li><!-- ENDIF -->
		<!-- IF postrow.POSTER_POSTS --><li class="title">{L_POSTS}: {postrow.POSTER_POSTS}</li><!-- ENDIF -->
		<!-- IF postrow.POSTER_FROM --><li class="title">{L_LOCATION}: {postrow.POSTER_FROM}</li><!-- ENDIF -->
		
		<!-- IF postrow.POSTER_BIRTHDAY --><p class="birthday">{postrow.POSTER_BIRTHDAY}</p><!-- ENDIF -->
	
	</ul>
	<li>
		<a style="margin-top: 10px;" class="ipsButton_secondary pm_button" title="Отправить ЛС" href="{PM_URL}?mode=post&amp;u={postrow.POSTER_ID}"><img alt="Отправить ЛС" src="./styles/templates/default/images/snapshot/email_open.png"></a>
		<a style="margin-top: 10px;" class="ipsButton_secondary pm_button" title="Посмотреть профиль" href="{PROFILE_URL}{postrow.POSTER_ID}"><img alt="Посмотреть профиль" src="./styles/templates/default/images/snapshot/user_add.png"></a>
	</li>
	
	<p><img src="{SPACER}" width="{TOPIC_LEFT_COL_SPACER_WITDH}" height="<!-- IF postrow.POSTER_AVATAR || postrow.RANK_IMAGE -->2<!-- ELSE -->30<!-- ENDIF -->" border="0" alt="" /></p>
	<!-- ENDIF -->
  
  </td>
  <!-- ENDIF -->
	<td class="message" rowspan="2">

		<div class="post_body">
			<div class="post_wrap">
				<span id="pe_{postrow.POST_ID}"></span>
				<span id="pp_{postrow.POST_ID}">{postrow.MESSAGE}</span>
				<!-- IF postrow.RG_NAME -->
				<div id="pg_{postrow.POST_ID}" class="alert alert-gray" style="width: 92%;">
					<h4 class="alert-heading">{L_RELEASE_FROM_RG} <a href="{postrow.RG_URL}">{postrow.RG_NAME}</a></h4>
					<div id="pg_info_{postrow.POST_ID}">
						<!-- IF postrow.RG_AVATAR --><hr /><a href="{postrow.RG_URL}">{postrow.RG_AVATAR}</a><!-- ENDIF -->
						<!-- IF postrow.RG_SIG and postrow.RG_SIG_ATTACH --><hr /><div id="rg_sig">{postrow.RG_SIG}</div><!-- ENDIF -->
						<hr /><a href="{postrow.RG_FIND_URL}">{L_MORE_RELEASES}</a>
					</div>
				</div>
				<!-- ENDIF -->
				<div id="pc_{postrow.POST_ID}" <!-- IF not postrow.MC_COMMENT -->style="display: none;"<!-- ENDIF -->>
					<div id="mc_class_{postrow.POST_ID}" class="alert alert-{postrow.MC_CLASS}" style="width: 92%;">
						<h4 class="alert-heading">{postrow.MC_TITLE}</h4><hr />
						<div id="mc_comment_{postrow.POST_ID}">{postrow.MC_COMMENT}</div>
					</div>
				</div>
				{postrow.ATTACHMENTS}
			</div><!--/post_wrap-->
			<!-- IF postrow.SIGNATURE -->{postrow.SIGNATURE}<!-- ENDIF -->
			<!-- IF postrow.EDITED_MESSAGE --><div class="last_edited">{postrow.EDITED_MESSAGE}</div><!-- ENDIF -->
		</div><!--/post_body-->

		<!-- IF AUTH_MOD -->
		<div class="menu-sub" id="mc_{postrow.POST_ID}">
		<table cellspacing="1" cellpadding="4">
		<tr>
			<th>{L_MC_TITLE}</th>
		</tr>
		<tr>
			<td>
			<fieldset>
				<legend>{L_MC_LEGEND}</legend>
				<div class="pad_4">
					{postrow.MC_SELECT_TYPE}
				</div>
				</fieldset>
			</td>
		</tr>
		<tr>
			<td>
				<textarea name="mc_text_{postrow.POST_ID}" rows="10" cols="60" id="mc_text_{postrow.POST_ID}" placeholder="{L_MC_FAQ}">{postrow.MC_BBCODE}</textarea>
			</td>
		</tr>
		<tr>
			<td class="cat tCenter pad_4">
				<input type="button" value="{L_SUBMIT}" onclick="ajax.post_mod_comment({postrow.POST_ID}, $('#mc_text_{postrow.POST_ID}').val(), $('#mc_type_{postrow.POST_ID}').val());" />
			</td>
		</tr>
		</table>
		</div>
		<!-- ENDIF / AUTH_MOD -->

	</td>
</tr>
</table>
<ul class="post_controls clearfix">
	<li class="top "><a title="Вверх" class="top" href="#ipboard_body"><img alt="" src="/styles/templates/default/images/snapshot/post_top.png"> Вверх</a></li>
</ul>
</div>
<!-- END postrow -->

</div>
</div>
</div>
</div>

<!-- IF SPLIT_FORM -->
<table>
<tr id="del_split_row" class="row5" style="display: none;">
	<td colspan="2" class="med pad_4 td2">
	<form method="post" action="{S_SPLIT_ACTION}">
	<input type="hidden" name="redirect" value="modcp.php?t={TOPIC_ID}&amp;mode=split" />
	<input type="hidden" name="{POST_FORUM_URL}" value="{FORUM_ID}" />
	<input type="hidden" name="{POST_TOPIC_URL}" value="{TOPIC_ID}" />
	<input type="hidden" name="start" value="{START}" />
	<input type="hidden" name="mode" value="split" />

		<!-- BEGIN postrow -->
		<input type="hidden" name="post_id_list[]" id="cb_{postrow.POST_ID}" />
		<!-- END postrow -->

		<table class="bordered bCenter">
		<tr>
			<td class="row1">{L_NEW_TOPIC_TITLE}</td>
			<td class="row2"><input class="post" type="text" size="35" style="width: 500px" maxlength="120" name="subject" /></td>
		</tr>
		<tr>
			<td class="row1">{L_FORUM_FOR_NEW_TOPIC}</td>
			<td class="row2">{S_FORUM_SELECT}</td>
		</tr>
		<tr>
			<td colspan="2" class="row2 tCenter">
				<label><input type="checkbox" name="after_split_to_old" checked="checked" /> {L_BOT_AFTER_SPLIT_TO_OLD}</label>
				&nbsp;
				<label><input type="checkbox" name="after_split_to_new" checked="checked" /> {L_BOT_AFTER_SPLIT_TO_NEW}</label>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center" class="row3">
				<input type="submit" name="delete_posts" id="del" value="{L_DELETE_POSTS}" disabled="disabled" onclick="return window.confirm('{L_DELETE_POSTS}?');" />
				<input type="submit" name="split_type_all" id="spl_all" value="{L_SPLIT_POSTS}" disabled="disabled" onclick="return window.confirm('{L_SPLIT_POSTS}?');" />
				<input type="submit" name="split_type_beyond" id="spl_b" value="{L_SPLIT_AFTER}" disabled="disabled" onclick="return window.confirm('{L_SPLIT_AFTER}?');" />
				<label for="spl_cnf">
					{L_CONFIRM}
					<input id="spl_cnf" type="checkbox" name="confirm" value="1" onclick="
						toggle_disabled('del', this.checked);
						toggle_disabled('spl_all', this.checked);
						toggle_disabled('spl_b', this.checked);
					" />
				</label>
			</td>
		</tr>
		</table>
	</form>
	</td>
</tr>
</table>
<!-- ENDIF / SPLIT_FORM -->

</div><!--/topic_main-->

<!-- IF HIDE_POST_IMG --><script type="text/javascript">$('img.postImg').remove();</script><!-- ENDIF -->
<!-- IF HIDE_SMILE --><script type="text/javascript">$('img.smile').remove();</script><!-- ENDIF -->

<!-- IF PAGINATION -->
<div class="pagination clearfix left pNum">{PAGE_NUMBER}</div>
<div class="pagination clearfix right pag">{PAGINATION}</div>
<div class="clear"></div>
<!-- ELSE -->
<div class="spacer_20"></div>
<!-- ENDIF --><!--/pagination-->

<!-- IF QUICK_REPLY -->
<form action="{QR_POST_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }">
<input type="hidden" name="mode" value="reply" />
<input type="hidden" name="t" value="{QR_TOPIC_ID}" />

<div class="blurBox">
<div class="ipsFilterbar maintitle" style="padding: 0 0 8px;">{L_QUICK_REPLY}</div>

<div class="border"><div id="customize_topic" class="topic hfeed clearfix removeDefault ">
<div class="ipsBox"><div id="ips_Posts" class="ipsBox_container">
<table id="topic_quick_reply" class="w100" cellpadding="0" cellspacing="0">
<tr>
	<td class="tCenter">
		<div id="view_message" class="hidden">
			<div class="tLeft view-message"></div>
		</div>
		<div class="quick_reply_box bCenter">
			<!-- IF not LOGGED_IN -->
			<p class="mrg_6"><b>{L_QR_USERNAME}: </b><input type="text" name="username" size="20" maxlength="25" /></p>
			<!-- ENDIF -->
			<div class="spacer_2"></div>
			<!-- INCLUDE posting_editor.tpl -->
			<div class="spacer_2"></div>
		</div>

	</td>
</tr>
<tr id="post_opt" class="row1">
	<td class="td2 med tCenter pad_4">
		<label><input type="checkbox" name="notify" <!-- IF QR_NOTIFY_CHECKED -->checked="checked"<!-- ENDIF --> <!-- IF not LOGGED_IN -->disabled="disabled"<!-- ENDIF --> />
		{L_QR_NOTIFY}&nbsp;</label>
	</td>
</tr>
</table><!--/topic_quick_reply-->
</div></div></div></div></div>
</form>
<!-- ENDIF / QUICK_REPLY -->

<div class="spacer_10"></div>
<table class="rowC CbRow tCenter w100" cellpadding="0" cellspacing="0">
<tr>
	<td>
	<form method="post" action="{S_POST_DAYS_ACTION}">
		{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;
		{S_SELECT_POST_ORDER}&nbsp;
		<input type="submit" value="{L_GO}" class="lite" name="submit" />
	</form>
	</td>
</tr>
</table>

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

	<div class="jumpbox"></div>

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

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

<div class="spacer_10"></div>

<div class="rowC CbRow">
<table width="100%">
<tr>
	<td width="40%" valign="top" nowrap="nowrap">
	<div class="small">
<!-- IF S_TOPIC_ADMIN -->
		<br clear="all" />
		<div style="float: left;">{S_TOPIC_ADMIN}</div>
<!-- ENDIF -->
<!-- IF IS_ADMIN -->
		<div class="med" style="float: right;">
		Admin:&nbsp;
		<a href="{U_LOGS}">{L_LOGS}</a>&nbsp;
		</div>
<!-- ENDIF -->
<!-- IF S_DL_DELETE -->
		<br clear="all" />
		<div style="float: left;">{S_DL_DELETE}</div>
<!-- ENDIF -->
		<br clear="all" />
		<div style="float: left;">{S_AUTH_LIST}</div>
	</div>
	</td>
</tr>
</table>
</div>