Your HTML is wrong - just looking at the first few lines you have various table tags in the wrong order:
Code:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="122" class="header"><table width="1024" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img border="0" src="cb/cb/logo.jpg" width="1024" height="125" alt="$vboptions[bbtitle]" class="logo"/></a></td>
</tr>
</table>
You have two opening <tr>'s and only 1 closing </tr>, also maybe missing closing </td>'s... not sure what you were trying to do but the basic structure of a table is:
Code:
<table>
<tr>
<td>
</td>
</tr>
</table>