<?php

echo<<<PPPRINT
<!-- BEGIN TEMPLATE: undercat.tmpl -->
<table cellpadding="0" cellspacing="0" border="0" width="{$Globals['tablewidth']}" align="center">
<tr>
<td valign="top" align="center" width="49%">
PPPRINT;

include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/commentspal.tmpl" );
echo "<br />";

if ( $Globals['topposterspal'] == "yes" ) {
    include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/topposterpal.tmpl" );
}

echo<<<PPPRINT
</td>
<td width="2%" valign="top">
&nbsp;
</td>
<td width="49%" valign="top">
PPPRINT;

if ( $Globals['randompal'] == "yes" ) {
    $pphold = $ppopen; $ppopen = $ppopenside;
    $pphold2 = $ppclose; $ppclose = $ppcloseside;

    echo "<div id=\"randompal\">";
    display_gallery("random", "", "", 2, 2, 1);
    echo "</div>";

    $ppopen = $pphold; $ppclose = $pphold2;
}

if ( $Globals['statspal'] == "yes" ) {
    include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/statspal.tmpl" );
}

if ( $Globals['ratingspal'] == "yes" ) {
    include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/topratedpal.tmpl" );
}

if ( $Globals['calpal'] == "yes" ) {
    include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/calpal.tmpl" );
}

echo<<<PPPRINT
</td>
</tr>
<tr>
<td colspan="3">
PPPRINT;

include( "{$Globals['PP_PATH']}/{$Globals['TMPL_PATH']}/onlinepal.tmpl" );

echo<<<PPPRINT
</td>
</tr>
</table>
<!-- END TEMPLATE: undercat.tmpl -->
PPPRINT;

?>