$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content
	$("ul.tabs li:last-child").css({'border-right':'none'})
	$("table.generic td:last-child").css({'border-right':'none'})
	$("table.data").attr('border', '0');
	$("table.data font").attr('color', '#333');
	$("table.data td:last-child").css({'border-right':'none'})
	$("table.data p").addClass('statstablep');
	
	$("table.data thead:first-child tr:first-child").addClass('grey1');
	
	
	//$("table.article-statstable").each function()
	//var $table = $(this);
	//$table.find("tr:first").addClass('grey1');
	
	//On Click Event
	$("ul.tabs li.active").parent().next().find('.tab_content').show();
	$("ul.tabs li").click(function() {
		$(this).parent().find('li').removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(this).parent().next().find(".tab_content").hide(); //Hide all tab content
		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});
	
});

