// Each instance of RaceRow represent one row in the racetrack
// and will just be used to add RaceCells to the RaceTrack

function RaceRow()
{
 this.init();
}

RaceRow.prototype.init = RaceRow_init;
RaceRow.prototype.insertRaceCell = RaceRow_insertRaceCell;
RaceRow.prototype.getRowLength = RaceRow_getRowLength;

function RaceRow_init()
{
	// any init goes here
}

function RaceRow_insertRaceCell()
{
	return applyInherit(this.insertCell(-1), new RaceCell());
}

function RaceRow_getRowLength()
{
	return this.getElementsByTagName("td").length;
}
