/*
 * @description: This script will alternate background colors for table rows and table columns all you need to do is apply the class name to the table.
 * 
 * Apply the class "alternateColumns" for columns. Apply the class "alternateRows" for rows. The background colors and borders are specified in the CSS. Yes it is that easy. :)
 * 
 * 
 * @author: Jason Fernald
 * @date: Jan 29th, 2009
 * @version: 1.0
 * @requires: jQuery
 */

$(document).ready(function()
	{
	//for table columns
	$('.alternateColumns td:even').addClass('even');
	$('.alternateColumns td:odd').addClass('odd');
	  
	//for table rows
	$('.alternateRows tr:even').addClass('even');
	$('.alternateRows tr:odd').addClass('odd');
	
	//for bordered table rows
	$('.border tr:even').addClass('border');
	$('.border tr:odd').addClass('border');
	$('.border tr:last').removeClass('border');
});