$(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="#">Show Technical Table</a></p>');
	
	$("table[class!='dn']").prev().toggle(function() {
		i = $(this).find("a");
		
		i.text('Hide Technical Table');
		
		$(this).next().show();
		
		return false;
	}, function() {
		i = $(this).find("a");
		
		i.text('Show Technical Table');
		
		$(this).next().hide();
		
		return false;
	});
	
	$("table[alt=table]").hide().prevAll("h5").css("cursor", "pointer").click(function() {
		$(this).next().next("table").toggle();
		$(this).next().next().next("table").toggle();
		
		return false;
	});
	
	$("table[alt=table]").hide().prevAll("img").css("cursor", "pointer").click(function() {
		$(this).next("table").toggle();
		$(this).next().next("table").toggle();
		
		return false;
	});
});
