i have edited the phpib2 center latest forum posts to match any theme you have the images are changing but i have no clue how to make the colors to change

anw heres the code hope this helps
Code:
<?php
if (eregi("block-$ThemeSel-Forum.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi, $sitename, $admin, $ThemeSel;
$HideViewReadOnly = 1;
$Last_New_Topics = 5;
$show = " <tr>
<td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"modules/Forums/templates/$ThemeSel/images/cellpic1.gif\">&</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>";
$Count_Topics = 0;
$Topic_Buffer = "";
$result = sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC", $dbi );
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result, $dbi ) )
{
$skip_display = 0;
if( $HideViewReadOnly == 1 )
{
$result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
}
if( $topic_moved_id != 0 )
{
// Shadow Topic !!
$skip_display = 1;
}
if( $skip_display == 0 )
{
$Count_Topics += 1;
$result2 = sql_query("SELECT uname, uid FROM ".$prefix."_users where uid='$topic_poster'", $dbi);
list($uname, $uid)=sql_fetch_row($result2, $dbi);
$avtor=$uname;
$sifra=$uid;
$result3 = sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%m/%d/%Y at %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
list($poster_id, $post_time)=sql_fetch_row($result3, $dbi);
$result4 = sql_query("SELECT uname, uid FROM ".$prefix."_users where uid='$poster_id'", $dbi);
list($uname, $uid)=sql_fetch_row($result4, $dbi);
$viewlast .=" <tr>
<td height=\"30\" nowrap bgcolor=\"#EAEFF6\" class=\"row1\"><img src=\"modules/Forums/templates/$ThemeSel/images/folder_new.gif\" border=\"0\" /></td>
<td width=\"100%\" bgcolor=\"#EAEFF6\" class=\"row1\">&<a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$topic_title</a></td>
<td align=\"center\" bgcolor=\"#DFE6EF\" class=\"row2\">$topic_replies</td>
<td align=\"center\" bgcolor=\"#EAEFF6\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
<td align=\"center\" bgcolor=\"#DFE6EF\" class=\"row2\">$topic_views</td>
<td align=\"center\" nowrap bgcolor=\"#C2CFDF\" class=\"row3\"><font size=\"-2\">&&$post_time&</font>
<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\">$uname</a>&<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"modules/Forums/templates/$ThemeSel/images/icon_minipost_new.gif\" border=\"0\" alt=\"Latest Post\"></a></td>
</tr>";
}
if( $Last_New_Topics == $Count_Topics ) { break 1; }
}
$content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
<tr>
<td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td bgcolor=\"#000000\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
<tr>
<th height=\"25\" colspan=\"2\" align=\"center\" nowrap background=\"modules/Forums/templates/$ThemeSel/images/cellpic3.gif\" class=\"thcornerl\"><font color=\"#DEEEF3\">Topics</font></th>
<th width=\"50\" align=\"center\" nowrap background=\"modules/Forums/templates/$ThemeSel/images/cellpic3.gif\" class=\"thtop\"><font color=\"#DEEEF3\">&Replies&</font></th>
<th width=\"100\" align=\"center\" nowrap background=\"modules/Forums/templates/$ThemeSel/images/cellpic3.gif\" class=\"thtop\"><font color=\"#DEEEF3\">&Author&</font></th>
<th width=\"50\" align=\"center\" nowrap background=\"modules/Forums/templates/$ThemeSel/images/cellpic3.gif\" class=\"thtop\"><font color=\"#DEEEF3\">&Views&</font></th>
<th align=\"center\" nowrap background=\"modules/Forums/templates/$ThemeSel/images/cellpic3.gif\" class=\"thcornerr\"><font color=\"#DEEEF3\">&Last Post&</font></th>
</tr>";
$content .= "$viewlast";
$content .= "$show";
?>