/*  File: compare.js        */
/*  By:   Jeremy Tredway    */
/*  Ver:  2008-03-03        */

/********************************
  the following routines require 
    jquery.js
*********************************/


$(function() {

	// initialize table columns
	$('.cp_table').each(function() {
		var table = $(this);
		table.find('th').each(function(column) {
			var scope = $(this).attr('headers');
			table.find('tr').each(function() {
				$(this).find('td:eq('+column+')').addClass(scope);
			});
		});
	});

});