Event.observe(window, 'load', SetupTable);

function SetupTable()
{
	var Table = $('Prices').getElementsByTagName('table')[0];
	if (!Table)
	{
		return false;
	}

	var Rows = Table.getElementsByTagName('tr');
	var RowCtr = 0;
	for (var i = 0; Row = Rows[i]; i++)
	{
		if (!(RowCtr % 2) && !Row.className)
		{
			Row.className = 'odd';
		}
		else if (Row.className)
		{
			RowCtr = 0;
		}
		RowCtr++;

		var Cells = Row.getElementsByTagName('td');

		if (Cells.length == 5)
		{
			Cells[1].className = 'ean';
			Cells[2].className = 'title';
			Cells[3].className = 'price';
			Cells[4].className = 'new';
		}
	}
}
