/**
 * Sets/unsets the pointer and marker in browse mode
 *
 * @param   object   the table row
 * @param   string   the action calling this script (over, out or click)
 *
 * @return  boolean  whether pointer is set or not
 */
function markStandardLine (theRow, theAction)  {
	var theCells = null;

	//  the browser can't get the row -> exits
	if (typeof(theRow.style) == 'undefined') {
		return false;
	}

	// 2. Gets the current row and exits if the browser can't get it
	if (typeof(document.getElementsByTagName) != 'undefined')  {
		theCells = theRow.getElementsByTagName('td');
	} else if (typeof(theRow.cells) != 'undefined') {
		theCells = theRow.cells;
	}  else  {
		return false;
	}

	// 3. Sets the colors...
	var rowCellsCnt  = theCells.length;
	var domDetect = null;
	var newClass = 'formu';

	// 3.1 ... with DOM compatible browsers except Opera that does not return
	//  valid values with "getAttribute"
	if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
		domDetect = true;
	}  else  {
		return false;
	}

	// 4. Defines the new color
	if (theAction == 'over') {
		newClass = 'menuitemover';
	}  else  {
		newClass = 'menuitem';
	}

	 // 5.1 ... with DOM compatible browsers except Opera
	for (var c = 0; c < rowCellsCnt; c++)  {
		if (typeof(theCells[c].className) != 'undefined')  {
			theCells[c].className = newClass;
		}
	} 

	return true;
} 