<tr>
			<td colspan="8" class="darkrow1">
				<table class='ipbtable' cellspacing="0">
					<tr>
						<td width="50%" class="nopad">
							<form action="{$this->ipsclass->base_url}" method="post" name="search">
								<input type="hidden" name="forums" value="{$data['id']}" />
								<input type="hidden" name="cat_forum" value="forum" />
								<input type="hidden" name="act" value="Search" />
								<input type="hidden" name="joinname" value="1" />
								<input type="hidden" name="CODE" value="01" />
								<input type="text" size="30" name="keywords" value="{$this->ipsclass->lang['enter_keywords']}" onfocus="this.value = '';" /> <input type="submit" value="{$this->ipsclass->lang['search_forum']}" class="button" />
							</form>
						</td>
<if="$this->ipsclass->member['is_mod'] == 1">
<td width="50%" align="right" nowrap="nowrap" class="nopad">
							<form name="modform" method="post" action="{$this->ipsclass->base_url}" onsubmit="return checkdelete();">
								<input type="hidden" name="act" value="mod" />
								<input type="hidden" name="CODE" value="topicchoice" />
								<input type="hidden" name="f" value="{$data['id']}" />
								<input type="hidden" name="auth_key" value="{$auth_key}" />
								<input type="hidden" name="modfilter" value="{$this->ipsclass->input['modfilter']}" />
								<input type="hidden" value="{$this->ipsclass->input['selectedtids']}" name="selectedtids" />
								<select name="tact">
									<option value="close">{$this->ipsclass->lang['cpt_close']}</option>
									<option value="open">{$this->ipsclass->lang['cpt_open']}</option>
									<option value="pin">{$this->ipsclass->lang['cpt_pin']}</option>
									<option value="unpin">{$this->ipsclass->lang['cpt_unpin']}</option>
									<option value="move">{$this->ipsclass->lang['cpt_move']}</option>
									<option value="merge">{$this->ipsclass->lang['cpt_merge']}</option>
									<option value="delete">{$this->ipsclass->lang['cpt_delete']}</option>
									<option value="approve">{$this->ipsclass->lang['cpt_approve']}</option>
									<option value="unapprove">{$this->ipsclass->lang['cpt_unapprove']}</option>
									<!--IBF.MMOD-->
								</select>&nbsp;
								<input type="submit" name="gobutton" value="{$this->ipsclass->lang['f_go']}" class="button" />
							</form>
						</td>
</if>
					</tr>
				</table>
			</td>
		</tr>
		<tr> 
			<td class="catend" colspan="8"><!-- no content --></td>
		</tr>
	</table>
</div>
<table class='ipbtable' cellspacing="0">
	<tr>
		<td style='padding-left:0px' width="50%" nowrap="nowrap">{$data['SHOW_PAGES']}</td>
		<td class='nopad' style='padding:5px 0px 5px 0px' align="right" width="50%"><a href="{$this->ipsclass->base_url}act=post&amp;do=new_post&amp;f={$data['id']}"><{A_POST}></a></td>
	</tr>
</table>
<!--IBF.FORUM_ACTIVE-->
<div class="activeusers">
	<div class="row2">
		<table class='ipbtable' cellspacing="0">
			<tr>
				<td width="5%" nowrap="nowrap">
					<{B_NEW}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_open_new']}</span>
					<br /><{B_NORM}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_open_no']}</span>
					<br /><{B_HOT}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_hot_new']}</span>
					<br /><{B_HOT_NN}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_hot_no']}</span>&nbsp;
				</td>
				<td width="5%" nowrap="nowrap">
					<{B_POLL}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_poll']}</span>
					<br /><{B_POLL_NN}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_poll_no']}</span>
					<br /><{B_LOCKED}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_locked']}</span>
					<br /><{B_MOVED}>&nbsp;&nbsp;<span class="desc">{$this->ipsclass->lang['pm_moved']}</span>
				</td>
				<td align="right" width="90%">
					{$data['FORUM_JUMP']}<br /><br />
					<form action="{$this->ipsclass->base_url}act=SF&amp;f={$data['id']}&amp;st={$this->ipsclass->input['st']}&amp;changefilters=1" method="post">
						<select name="sort_key">{$this->ipsclass->show['sort_by']}</select>
						<select name="sort_by">{$this->ipsclass->show['sort_order']}</select>
						<select name="prune_day">{$this->ipsclass->show['sort_prune']}</select>
						<select name="topicfilter">{$this->ipsclass->show['topic_filter']}</select>
						<input type="submit" value="{$this->ipsclass->lang['sort_submit']}" class="button" />
					<br /> <input type='checkbox' value='1' name='remember' class='checkbox' /> {$this->ipsclass->lang['remember_options']}
					</form>
				</td>
			</tr>
		</table>
	</div>
</div>
<script type="text/javascript">
<!--
  menu_build_menu(
  "forummenu-options",
  new Array(
<if="$this->ipsclass->member['is_mod'] == 1">
"~~NODIV~~<div class='popupmenu-category' align='center'>{$this->ipsclass->lang['moderator_options']}</div>",
			img_item + " <a href='{$this->ipsclass->base_url}showforum={$data['id']}&amp;modfilter=invisible_topics'>{$this->ipsclass->lang['mod_showallinvisible']}</a>",
			img_item + " <a href='{$this->ipsclass->base_url}showforum={$data['id']}&amp;modfilter=invisible_posts'>{$this->ipsclass->lang['mod_showallposts']}</a>",
			img_item + " <a href='{$this->ipsclass->base_url}act=mod&amp;CODE=resync&amp;f={$data['id']}&amp;auth_key={$this->ipsclass->md5_check}'>{$this->ipsclass->lang['mod_resync']}</a>",
			img_item + " <a href='#' onclick='forum_mod_pop({$data['id']});'>{$this->ipsclass->lang['mod_prune']}</a>",
			 "~~NODIV~~<div class='popupmenu-category' align='center'>{$this->ipsclass->lang['forum_options']}</div>",
</if>
  			 img_item + " <a href='{$this->ipsclass->base_url}act=Login&amp;CODE=04&amp;f={$data['id']}&amp;fromforum={$this->ipsclass->input['f']}'>{$this->ipsclass->lang['mark_as_read']}</a>",
  			 img_item + " <a href='{$this->ipsclass->base_url}act=Login&amp;CODE=04&amp;f={$data['id']}&amp;fromforum=0'>{$this->ipsclass->lang['mark_as_read2']}</a>",
  			 img_item + " <a href='{$this->ipsclass->base_url}act=usercp&amp;CODE=start_subs&amp;method=forum&amp;fid={$data['id']}'>{$this->ipsclass->lang['ft_title']}</a>"
		    ) );
//-->
 </script>
<br clear="all" />
<if="$this->ipsclass->member['is_mod']">
<br />
<a name='forumoptions'></a>
<div align="center" id='forumoptionsjs'>
	<a href="{$this->ipsclass->base_url}showforum={$data['id']}&amp;modfilter=invisible_topics">{$this->ipsclass->lang['mod_showallinvisible']}</a>
	&middot;
	<a href="{$this->ipsclass->base_url}showforum={$data['id']}&amp;modfilter=invisible_posts">{$this->ipsclass->lang['mod_showallposts']}</a>
	&middot;
	<a href="{$this->ipsclass->base_url}act=mod&amp;CODE=resync&amp;f={$data['id']}&amp;auth_key={$auth_key}">{$this->ipsclass->lang['mod_resync']}</a>
	&middot;
	<a href="javascript:PopUp('{$this->ipsclass->base_url}act=mod&amp;CODE=prune_start&amp;f={$data['id']}&amp;auth_key={$auth_key}', 'PRUNE', 600,500)">{$this->ipsclass->lang['mod_prune']}</a>
</div>
<script type='text/javascript'>
//<![CDATA[
 document.getElementById('forumoptionsjs').style.display = 'none';
//]]>
</script>
</if>
<script type='text/javascript'>
//<![CDATA[
 // INIT links for editing
 
 if ( use_enhanced_js && perm_can_edit )
 {
 	forum_init_topic_links();
 }
//]]>
</script>