// JavaScript Document

/* call onload with table id(s) */
function TR_set_toggle()
{
	/* toggleRow method */
	var toggleRow = function()
	{
		this.style.display = ((this.style.display == '') ? 'none' : '');
		return false;
	}

	for (var oTable, a = 0; a < arguments.length; ++a)
	{
		oTable = document.getElementById(arguments[a]);
     		var r = 0, row, rows = oTable.rows;
     		while (row = rows.item(r++))
			row.toggle = toggleRow;
	}

	/* convenience function */
	self.toggleRow = function(row_id)
	{
		document.getElementById(row_id).toggle();
	}
}

onload = function()
{
	TR_set_toggle('foo');
	
}


function displayItem1(cmn)
{document.getElementById("MMtd" + cmn).style.color='#FFFFFF';

 }

function displayItem2(cmn)
{document.getElementById("MMtd" + cmn).style.color='#9AB6CB';

 }



function displaySubItem1(cmn)
{document.getElementById("SM" + cmn).style.color='#FFFFFF';

 }

function displaySubItem2(cmn)
{document.getElementById("SM" + cmn).style.color='#9AB6CB';

 }



function resetColor()
{
document.getElementById("MMtd1").style.color='#9AB6CB';
document.getElementById("MMtd2").style.color='#9AB6CB';
document.getElementById("MMtd3").style.color='#9AB6CB';
document.getElementById("MMtd4").style.color='#9AB6CB';
document.getElementById("SM3").style.color='#9AB6CB';
}


function highlight()
{
document.getElementById("MMtd2").style.color='#ffffff';
document.getElementById("SM3").style.color='#ffffff';
}