$(document).ready(function() {
	$("table tr:nth-child(even)").addClass("even");
	
	/*$("table td").each(function() {
		var pattern = new RegExp("^[0-9.,-/]+$");
		
		if (pattern.test($(this).text())) {
			$(this).css("textAlign", "right");
		}
	});*/
	
	$("table tr").mouseover(function() {
		$(this).addClass("over");
	}).mouseout(function() {
		$(this).removeClass("over");
	});
	
	$("table[class!='dn']").hide().before('<p><a href="#">Mostrar Tabela Técnica</a></p>');
	
	$("table[class!='dn']").prev().toggle(function() {
		i = $(this).find("a");
		
		i.text('Esconder Tabela Técnica');
		
		$(this).next().show();
		
		return false;
	}, function() {
		i = $(this).find("a");
		
		i.text('Mostrar Tabela Técnica');
		
		$(this).next().hide();
		
		return false;
	});
});