// SIDEMENU V3.2  - Display Routines //
// Compatible with IE & Mozilla/Netscape V4+ browsers
// (C)2004-2006, Jeremy Kays

// Display Menu Items //
if (sidemenu == 'body')
  { IcondirPrefix = ""; }
else
  { IcondirPrefix = "../"; }
document.write('<TABLE border=0 width=700 cellpadding="3" cellspacing="0">');
document.write('<TR>');
document.write('<TD width=10></TD>');
document.write('<TD valign="top">');
document.write('<TABLE border=0 width=148 cellpadding="5" cellspacing="0">');
var count=0;
var	dot="dot";
var menu_items = menu_id.length-1;
for (count=1; count<=menu_items; count++) {
	document.write('<tr id="'+menu_id[count]+'" class="menu" onmouseover="highlight(event,id)" onmouseout="highlight(event,id)" onclick="onclickBody(event,id)">');
	mx = menu_name[count].indexOf("<BR>");
	if (mx == -1) {
	  mx = menu_name[count].length;
	}
	switch(count) {
	  case 1: dot = "home"; break;
	  default: if (menu_name[count].substr(0,mx) == menu_name[count].substr(0,mx).toUpperCase()) {
	    dot = "menu" } else { dot = "dot"} break;
	}
	document.write('<td class="icon"><img src="'+IcondirPrefix+'gfx/'+dot+'.gif"></td>');
	document.write('<td width=100%>');
	document.write('<DIV class="hmtmenu">');
	document.write(menu_name[count]);
	document.write('</DIV>');
	document.write('</td>');
	document.write('</tr>');
}
document.write('</TABLE>');
document.write('</TD>');
document.write('</TR>');
document.write('</TABLE>');