<script type="text/javascript">
ajax.openedPosts = {};

ajax.view_post = function(post_id, src) {
  if (!ajax.openedPosts[post_id]) {
    ajax.exec({
      action		: 'view_post',
      topic_id	: post_id
    });
  }
  else {
    var $post = $('#post_'+post_id);
    if ($post.is(':visible')) {
      $post.hide();
    } else {
      $post.css({ display: '' });
    }
  }
  $(src).toggleClass('unfolded2');
};

ajax.callback.view_post = function(data) {
  var post_id = data.topic_id;
  var $tor = $('#tor_'+post_id);
  window.location.href='#tor_'+post_id;
  $('#post-row tr')
    .clone()
    .attr({ id: 'post_'+post_id })
    .find('div.post_body').html(data.post_html).end()
    .find('a.tLink').attr({ href: $('a.tLink', $tor).attr('href') }).end()
    .find('a.dLink').attr({ href: $('a.tr-dl', $tor).attr('href') }).end()
    .insertAfter($tor)
  ;
  initPostBBCode('#post_'+post_id);
  var maxH   = screen.height - 290;
  var maxW   = screen.width - 60;
  var $post  = $('div.post_wrap', $('#post_'+post_id));
  var $links = $('div.post_links', $('#post_'+post_id));
  $post.css({ maxWidth: maxW, maxHeight: maxH });
  $links.css({ maxWidth: maxW });
  if ($.browser.msie) {
    if ($post.height() > maxH) { $post.height(maxH); }
    if ($post.width() > maxW)  { $post.width(maxW); $links.width(maxW); }
  }
  ajax.openedPosts[post_id] = true;
};
</script>

<style type="text/css">
.post_wrap { border: 1px #A5AFB4 solid; margin: 8px 8px 6px; overflow: auto; }
.post_links { margin: 6px; }
.folded2   { display: inline; }
.unfolded2 { display: inline; }
/*
* Top mod by Dr. Brown Jr
*/
.top-navigate { padding: 0 10px 0 10px; }
a.topnav { position: relative; bottom: 3px; left: -5px; border: 1px solid darkgrey;	padding: 2px; background: #DEE3E7; }
a.topnav:hover { background: #fff; }
a.top-link {
	display: inline-block; height: 20px; text-align: center;
	color: #fff; padding: 6px 5px 0px 5px; text-decoration: none !important; font-weight: bold;
	border-top: 1px solid darkgrey; border-left: 1px solid darkgrey; border-right: 1px solid darkgrey; margin: 0 2px 0 2px;
	background: rgb(255,255,255);
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIyJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM3MTk1YmEiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top, rgba(255,255,255,1) 2%, rgba(113,149,186,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(2%,rgba(255,255,255,1)), color-stop(100%,rgba(113,149,186,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(255,255,255,1) 2%,rgba(113,149,186,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(255,255,255,1) 2%,rgba(113,149,186,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(255,255,255,1) 2%,rgba(113,149,186,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(255,255,255,1) 2%,rgba(113,149,186,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#7195ba',GradientType=0 ); /* IE6-8 */
}
a.top-link:active, a.top-link:focus, a.top-link:hover {
	background: rgb(113,149,186);
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzcxOTViYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top, rgba(113,149,186,1) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(113,149,186,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7195ba', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */
}
a.top-link-week, a.top-link-month, a.top-link-all,
a.top-link-upload, a.top-link-download, a.top-link-bonus, a.top-link-release,
a.top-link-seedbonus, a.top-link-ratio, a.top-link-30days, a.top-link-replies {
	display: inline-block; height: 20px; text-align: center;
	color: #fff; padding: 6px 5px 0px 5px; text-decoration: none !important; font-weight: bold;
	border-top: 1px solid darkgrey; border-left: 1px solid darkgrey; border-right: 1px solid darkgrey; margin: 0 2px 0 2px;
	background: rgb(113,149,186);
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzcxOTViYSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top, rgba(113,149,186,1) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(113,149,186,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom, rgba(113,149,186,1) 0%,rgba(255,255,255,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7195ba', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */
}
</style>
<table id="post-row" style="display: none;">
<tr class="row2">
  <td class="row2" colspan="7">
    <div class="post_wrap row1">
      <div class="post_body pad_6"></div><!--/post_body-->
      <div class="clear"></div>
    </div><!--/post_wrap-->
    <div class="post_links med bold tCenter"><a class="tLink">{L_OPEN_TOPIC}</a> &nbsp;&#0183;&nbsp; <a class="dLink">{L_DL_TORRENT}</a></div>
  </td>
</tr>
</table>

<div class="clearfix" id="forum_navigation">
    <ol id="breadcrumb" class="breadcrumb ipsList_inline left">
        <li class="first"><a href="{U_INDEX}"><span>{T_INDEX}</span></a></li>
        <li><span>{U_TOP}</span></li>
    </ol>
</div>

<div class="ipbfs_titlebox">
	<h1 class="ipsType_pagetitle left">{PAGE_TITLE}</h1>
	{U_TOP_RELEASE_STAT}
	{U_TOP_USERS_STAT}
</div>

<div class="spacer_6">&nbsp;</div>
<!-- BEGIN switch_release_top -->
<div class="top-navigate fLeft">
	<div class="spacer_4">&nbsp;</div>
	{U_RELEASE_ALL}{U_RELEASE_MONTH}{U_RELEASE_WEEK}{U_RELEASE_30DAYS}{U_RELEASE_REPLIES}
</div>
<!-- END switch_release_top -->
<!-- BEGIN switch_users_top -->
<div class="top-navigate fLeft">
	<div class="spacer_4">&nbsp;</div>
		{U_TOP_UPLOAD}{U_TOP_DOWNLOAD}{U_TOP_BONUS}{U_TOP_RELEASES}{U_TOP_SEEDBONUS}{U_TOP_RATIO}
		<span class="small">{L_SORT_PER_LETTER}{SELECT_LETTER}</span>
</div>
<!-- END switch_users_top -->
<br>
<!-- BEGIN switch_release_top -->
<table class="forumline w100 tablesorter" id="tbl-bonus">
 <thead>
  <tr class="row3 med">
   <th class="{sorter: 'text'} block_topic_no_r"><b class="tbs-text">{L_FORUM}</b></th>
   <th class="{sorter: 'text'} block_topic_no_r"><b class="tbs-text">{L_TOPIC}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_REPLIES}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_DOWNLOADED}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_SIZE}</b></th>
   <th class="{sorter: 'text'} block_topic_no_r"><b class="tbs-text">{L_AUTHOR}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_ADDED}</b></th>
  </tr>
 </thead>
 <tbody>
<!-- BEGIN release -->
  <tr class="{release.ROW_CLASS} med" id="tor_{switch_release_top.release.TOPIC_ID}">
   <td class="tCenter pad_4">{switch_release_top.release.FORUM_URL}</td>
   <td class="tLeft pad_4">{switch_release_top.release.TOPIC_URL}</td>
   <td class="tCenter bold pad_4" title="{switch_release_top.release.REPLIES}">{switch_release_top.release.REPLIES}</td>
   <td class="tCenter bold pad_4" title="{switch_release_top.release.COMPLETE}">{switch_release_top.release.COMPLETE}</td>
   <td class="tCenter pad_4" title="{switch_release_top.release.COMPLETE}"><u>{switch_release_top.release.TBS_SIZE}</u>{switch_release_top.release.DL_URL}</td>
   <td class="tCenter pad_4">{switch_release_top.release.POSTER_URL}</td>
   <td class="tCenter pad_4"><u>{switch_release_top.release.TBS_TIME}</u>{switch_release_top.release.REG_TIME}</td>
  </tr>
<!-- END release -->
 </tbody>
 <tfoot>
  <tr>
   <td class="catBottom tCenter pad_6" colspan="7">&nbsp;</td>
  </tr>
 </tfoot>
</table>
<!-- END switch_release_top -->
<!-- BEGIN switch_users_top -->
<table class="forumline w100 tablesorter" id="tbl-bonus">
 <thead>
  <tr class="row3 med">
   <th class="{sorter: 'text'} block_topic_no_r"><b class="tbs-text">{L_USERNAME}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_UPLOADED}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_RELEASED}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_DOWNLOADED}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_BONUS}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_SEED_BONUS}</b></th>
   <th class="{sorter: 'digit'} block_topic_no_r"><b class="tbs-text">{L_USER_RATIO}</b></th>
	</tr>
  </tr>
 </thead>
 <tbody>
<!-- BEGIN users -->
  <tr class="{users.ROW_CLASS} med">
   <td class="tCenter pad_4" id="tr-{switch_users_top.users.USER_ID}">{switch_users_top.users.USERNAME_URL}</td>
   <td class="tCenter pad_4 seed"><u>{switch_users_top.users.UPLOAD_RAW}</u>{switch_users_top.users.UPLOAD}</td>
   <td class="tCenter pad_4 main"><u>{switch_users_top.users.RELEASE_RAW}</u>{switch_users_top.users.RELEASE}</td>
   <td class="tCenter pad_4 leech"><u>{switch_users_top.users.DOWNLOAD_RAW}</u>{switch_users_top.users.DOWNLOAD}</td>
   <td class="tCenter pad_4 bonus"><u>{switch_users_top.users.BONUS_RAW}</u>{switch_users_top.users.BONUS}</td>
   <td class="tCenter pad_4">{switch_users_top.users.SEED_BONUS}</td>
   <td class="tCenter pad_4"><u>{switch_users_top.users.RATIO_RAW}</u>{switch_users_top.users.RATIO}</td>
  </tr>
<!-- END users -->
 </tbody>
 <tfoot>
  <tr id="pagination">
   <td class="catBottom tCenter pad_6 nav" colspan="7">
    <p style="float: left">{PAGE_NUMBER}</p>
    <p style="float: right">{PAGINATION}</p>
   </td>
  </tr><!--/pagination-->
 </tfoot>
</table>
<!-- END switch_users_top -->
<script type="text/javascript">
  _reload = function() {
		var str = decodeURIComponent(window.location.href);
		if(str.indexOf('name') + 1) {
			var new_url = trimStr(str.replace(/name=[А-Яа-яёЁA-Za-z]+/gi, 'name='+trimStr($('#select-name option:selected').text())));
			window.location.href = new_url;
		} else {
			var new_url = str+'&name='+trimStr($('#select-name option:selected').text());
			window.location.href = new_url;
		}
	}
	trimStr = function(s) {
	  s = s.replace( /^\s+/gi, '');
	  return s.replace( /\s+$/gi, '');
	}
</script>
