var Table = {
	
	rowColour: function(table) {
		$("tbody tr", table).each(function() {
			var currentRow = $(this);
			var index = $(".indigoListings tr").index(currentRow);
			if (index % 2) currentRow.css("background-color", "#FCFCFC");
		});
		
	},
	
	compareValues: function(index, a, b) {
		var valueA = a[index].toLowerCase( );
		var valueB = b[index].toLowerCase( );
		if (valueA < valueB) {return -1}
		if (valueA > valueB) {return 1}
		return 0;
	},
	
	sortable: function(table) {
		var tHead = $("thead", table);
		var tBody = $("tbody", table);
		//var handles = $()
	},

	
	init: function(table, options) {
		if (options.rowColour) Table.rowColour(table);
		if (options.sortable) Table.sortable(table);
	}
	
}
