I am designing a forum in ASP and really liked the way vBullettin have allowed postings in this forum to expand and contract - looks very cool....

I understand this is done using c/side javascript,
So I was wondering how they did it?

I have looked at the code, even tried it but to no avail am I missing something?

Here is my code:

g_TopicIDh = g_TopicID & "h"
g_TopicIDe = g_TopicID & "e"

Response.Write "<div id=" & g_TopicIDh & " style=""display:none"">"
Response.Write "<table valign='top' width='100%' cellpadding='2' cellspacing='0' bgcolor='#EBF1F7' border='1' bordercolor='#ffffff'>"
Response.Write "<tr><td class='lefttablecol'><img src='images/plus.gif' border=0 alt='Expand posting' onclick=""contract(" & g_TopicIDe & ");expand(" & g_TopicIDh & ");""> Not showing</td></tr>" & vbcrlf
Response.Write "</table>" & vbcrlf
Response.Write "</div>" & vbcrlf
Response.Write "<div id=" & g_TopicIDe & " style=""display:show"">" & vbcrlf
Response.Write "<table valign='top' width='100%' cellpadding='2' cellspacing='0' bgcolor='#EBF1F7' border='1' bordercolor='#ffffff'>" & vbcrlf
Response.Write "<tr><td width='150' class='lefttablecol'><img src='images/minus.gif' border=0 alt='Minimise posting' onclick=""contract(" & g_TopicIDh & ");expand(" & g_TopicIDe & ");""> <font size='1'>" & g_Update & "</font></td>" & vbcrlf
Response.Write "<td class='lefttablecol'>"
%>
<!--#include file="includes/topiclinks.inc"-->
<%
Response.Write "</td></tr>" & vbcrlf

response.write "</table>"
response.write "</div>"


Any ideas?