<script language="javascript" type="text/javascript">
<!--
var AJAX_PAGER_VALUE = '{$grid.AJAX_PAGER_VALUE}';
var active_row = 'pn{$grid.active_row}';

{if $grid.AJAX_BOX_ACTIVE}
ajax_show_tab({$grid.active_row});
{/if}

//-->
</script>
<form id="{$grid.pager_grid_formid}" name="{$grid.pager_grid_formid}" method="post" action="{$AJAX_PAGER_VALUE}">
<input type="hidden" value="" name="action" />
<input type="hidden" value="" name="action_parameter" />
<table class="pagergrid" cellspacing="0">
<tr class="pagernavigationheadingrow">

{assign var="grid_cols" value="0"}
{foreach from=$grid.header_items item=col}
	{assign var="grid_cols" value="`$grid_cols+1`"}
	<td class="pagernavigationheadingcontent">{$col}</td>
{/foreach}
</tr>
{foreach from=$grid.content_rows item=row}

<tr id="pn{$row.id}" 
	class="{if $row.selected and $grid.AJAX_BOX_ACTIVE and $grid.ROW_CLICK_ACTION}pagernavigationrow_selected{else}pagernavigationrow{/if}" 
	onMouseOver="pager_row_onmouseover('pn{$row.id}','pagernavigationrow_over',{if $grid.AJAX_BOX_ACTIVE}true{else}false{/if});" 
	onMouseOut="pager_row_onmouseout('pn{$row.id}','pagernavigationrow',{if $grid.AJAX_BOX_ACTIVE}true{else}false{/if});"
	{if $grid.AJAX_BOX_ACTIVE} 
	onclick="pager_row_click('pn{$row.id}','pagernavigationrow_selected','{$row.link}','pagernavigationrow',{$row.id});"
	{else}
		{if $grid.ROW_CLICK_ACTION}
			onclick="pager_row_nobox_click('pn{$row.id}','pagernavigationrow_selected','pagernavigationrow',{$row.id});"
		{/if}
	{/if}
>
	{foreach from=$row.row item=col key=nr}
		{if $col.visible}
		<td class="pagernavigationcontent">{if $nr == 0}<nobr>{/if}{$col.value}{if $nr == 0}</nobr>{/if}</td>
		{/if}
	{/foreach}
</tr>
{/foreach}
{if $list_actions}
<tr>
	<td colspan="{$grid_cols}" class="pagernavigationheadingcontent">
		{if $multiselect_field}
		<a href="javascript:checkbox_toggle('{$grid.pager_grid_formid}','{$multiselect_field}',true);">{$grid.select_all}</a>
		&nbsp;
		<a href="javascript:checkbox_toggle('{$grid.pager_grid_formid}','{$multiselect_field}',false);">{$grid.deselect_all}</a>
		<br />
		{/if}
		{$list_actions}
	</td>
</tr>
{/if}

</table>
</form>
