// The methods from the Original Example
function initRowHighlightingOld()
{
	if (!document.getElementsByTagName){ return; }
	
	var tables = document.getElementsByTagName('table');
	
	for(var i = 0; i < tables.length; i++)
	{
		var table = tables[i];
		if(table.getAttribute('class') && table.getAttribute('class').indexOf('highlightTableOld') > -1)
		{
			//Make sure to use th tags for header row.
			attachRowMouseEventsOld(table.getElementsByTagName('tr'));
		}
	}
}
function attachRowMouseEventsOld(rows)
{
	for(var i = 0; i < rows.length; i++)
	{
		var row = rows[i];
		if(i%2 == 0)
		{
			row.onmouseover =	function() 
								{ 
									this.setAttribute('oldClass', this.className);
									this.className = 'highlight';
								}
			
			row.onmouseout =	function() 
								{ 
									this.className = this.getAttribute('oldClass');
								}
		}
		else
		{
			row.onmouseover =	function() 
								{ 
									this.setAttribute('oldClass', this.className);
									this.className = 'highlightAlt';
								}
			
			row.onmouseout =	function() 
								{ 
									this.className = this.getAttribute('oldClass');
								}
		}
	}
}
addLoadEvent(initRowHighlightingOld);
