$(document).ready(function() {

	//Default Action
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("current").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
  $("ul.tabs li").click(function() {
   show_tab(this);
  });

});

function show_tab(element) {
	$("ul.tabs li").removeClass("current"); //Remove any "active" class
	$(element).addClass("current"); //Add "active" class to selected tab
	$(".tab_content").hide(); //Hide all tab content
	var activeTab = $(element).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
	$(activeTab).fadeIn(); //Fade in the active content
	return false;
};