var active = 'none';
var m_def = 'images/blue-ball.gif';
var m_flag = '';
function m_update(button,source)
	{if (button != active) document [button].src=source;}
function m_activate(button, source)
	{if (active != 'none') document [active].src=def; active = button; document [button].src=source;}
function menu(b_dest,b_title,j)
	{document.write("<tr><td><a href='"+b_dest+"' ");
	 document.write("onmouseover=\"m_update('b"+j+"','images/yellow-ball.gif')\" ");
	 document.write("onmouseout=\"m_update('b"+j+"','images/blue-ball.gif')\" ");
	 document.write("onclick=\"m_activate('b"+j+"','images/red-ball.gif')\" >");
	 document.write("<img src='images/blue-ball.gif' border=0 align=middle name='b"+j+"'> ");
	 document.write("<font size=2>"+b_title+" </a>"+m_flag+"</td></tr>"); m_flag="";}
function m_new(){m_flag="<font color=red size=1>New</font>";}

