// JavaScript Document

<!--

/*--------------------------------------------------------------*/
/*--------------- ALTERNATE TABLE ROW COLORS -------------------*/
/*--------------------------------------------------------------*/
function alternate(id)
{
	if(document.getElementById){						//check that browser has capabilities
		
		var table = document.getElementById(id);		//get just the selected table not all of them
		var rows = table.getElementsByTagName("tr");	//get all table rows
				//alert(rows.length); // FOR TESTING
				//var columns = rows[1].getElementsByTagName("td");
				//alert(columns.length);
		for(i = 0; i < rows.length; i++){				//alternate styles	 => Start at 0 to include header		
			//manipulate rows	
			if(i % 2 == 0){					// %, the modulo operator, gives us the remainder in division.
				//rows[i].className = "topbordergreen";
				var column = rows[i].getElementsByTagName("td");
				column[0].className = "bold topbordergreen";		// For the left column
				//column[1].className = "topbordergreen";		// For the right column
				
			} else {
				//rows[i].className = "whiteRow";
				var column = rows[i].getElementsByTagName("td");
				column[0].className = "bold topbordergreen";		// For the left column
				//column[1].className = "topbordergreen";		// For the right column
			}
			
		} // End FOR
	} // FI
} // End Function

alternate('features_table');

/*-----------------*/

//-->
