$(document).ready(function() {
	$tables = $('table.type_2');
	$n = $tables.size();
	
	for($i = 0; $i < $n; $i++) {
		$table = $tables.eq($i);
		$table.find('tr:even').attr('class','even');
		$table.find('tr:odd').attr('class','odd');
		$table.find('tr:eq(0)').attr('class','header');	
		$table.find('tr:eq(1)').attr('class','header');			
	}
	
	$tables = $('table.type_3');
	$n = $tables.size();
	
	for($i = 0; $i < $n; $i++) {
		$table = $tables.eq($i);
		$table.find('tr:even').attr('class','even');
		$table.find('tr:odd').attr('class','odd');
		$table.find('tr:eq(0)').attr('class','header');	
	}
});
