function tableRower(cl, classes)
	{
	// all tables with this class will be affected by this script
	tableClass = cl;

	// values of colors that should be used to highlight rows
	rowClassNames = classes;
	
	tables = document.getElementsByTagName("table");
	for (tableI = 0; tableI < tables.length; tableI++)
		{
		if (tables[tableI].className.indexOf(tableClass)!=-1)
			{
			rows = tables[tableI].getElementsByTagName("tr");
			classNumber = 0;
			for (row = 0; row < rows.length; row++)
				{
				if (rows[row].getElementsByTagName("th").length < 1)
					{
					rows[row].className = rowClassNames[classNumber];
					classNumber++;
					if (classNumber == rowClassNames.length) {classNumber = 0;}
					}
				}
			}
		}
	}

function tableHighlighter(cl, active)
	{
	// all tables with this class will be affected by this script
	tableClass = cl;

	// values of colors that should be used to highlight rows
	hlClass = active;
	
	tables = document.getElementsByTagName("table");
	for (tableI = 0; tableI < tables.length; tableI++)
		{
		if (tables[tableI].className.indexOf(tableClass)!=-1)
			{
			rows = tables[tableI].getElementsByTagName("tr");
			for (row = 0; row < rows.length; row++)
				{
				// if (rows[row].getElementsByTagName("th").length < 1)
					{
					addEvent(rows[row], "mouseover", tableHighlight);
					addEvent(rows[row], "mouseout", tableHighlight);
					}
				}
			}
		}
	}

function tableHighlight(e) {
	if (!e && window.event) e = window.event;
	if (!e.target) {actElm = e.srcElement.parentElement;}
	else {actElm = e.currentTarget;}
	if (e.type == "mouseover") {trCl = hlClass; actClass = actElm.className;}
	else {trCl = actClass;}
	actElm.className = trCl;
}