<?php
echo <<<PPPRINT
</td>
<td width="10">
&nbsp;
</td>
<td align="center" valign="top" width="{$Globals['sidebar_width']}">
PPPRINT;

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

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

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

if ( $Globals['randompal'] == "yes" ) {
    echo "<div id=\"randompal\">";
    display_gallery("random", "", "", 1, 6, 1);
    echo "</div>";
}

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

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

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

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

echo<<<PPPRINT
</td>
</tr>
</table>
<br />
PPPRINT;
?>
