s += '<td height=18 width=9 valign=top style="cursor:default"><img border=0 src="images\\toc-top-left.gif"></td>';
s += '<td height=18 style="cursor:default; background: white url(images\\toc-top.gif) repeat-x top left" class=textTitle>' + text + '</td>';
s += '<td style="cursor:default; padding-left:10; background: white url(images\\toc-top.gif) repeat-x top left" align=right><img border=0 src="images\\arrow-up.gif"></td>';
s += '<td height=18 width=9 valign=top style="cursor:default"><img border=0 src="images\\toc-top-right.gif"></td></tr>';
s += '<tr><td width=9 style="cursor:default; background: white url(images\\toc-left.gif) repeat-y top left"></td>';
s += '<td colspan=2 style="background: white url(images\\toc-center.gif) repeat top left">' + BuildMenu() + '</td>';
s += '<td width=9 style="cursor:default; background: white url(images\\toc-right.gif) repeat-y top left"></td></tr>';
s += '<tr><td width=9 valign=bottom style="cursor:default"><img border=0 src="images\\toc-bottom-left.gif"></td>';
s += '<td colspan=2 style="background: white url(images\\toc-bottom.gif) repeat-x bottom left"></td>';
s += '<td width=9 valign=bottom><img border=0 src="images\\toc-bottom-right.gif"></td></tr>';
s += '</table>';
element.innerHTML = s;
}
function BuildMenu()
{
var s = '<table border=0 cellpadding=2 cellspacing=0>', aList, i;
aList = menutext.split(';');
for (i = 0; i < aList.length; i++)
{
s += '<tr><td><A href=X onclick="return ' + element.uniqueID + '.clickItem(' + i + ');" class=tocText>' + aList[i] + '</a></td></tr>';