/*  

	activemenuclass = the class name to pull in the style to use
 */
function buildmenu(menuinfo, activemenu, activemenuclass)
{

    for (var i = 0; i < menuinfo.length; i++) {

		var html = '<a ';

		if (activemenu == menuinfo[i][0]) {
		    /* if this is the active menu, set the class */
		    html += 'class="' + activemenuclass + '" ';
		}

		html += 'id="' + menuinfo[i][0] + '" href="' + menuinfo[i][1] + '">';
		/* add the text of the menu */
		html += menuinfo[i][2] + '</a>';
		document.writeln(html);
    }
}

