jQuery(document).ready(function() {
	//Add a click function to all list elements within ul#tab_links
	jQuery('ul#tab_links li').click(function() {
		
		//Remove the active class from all the list elements and hide all the tab contents
		jQuery('ul#tab_links li').removeClass('active');
		jQuery('div#tab_contents').children().hide();
		
		//Add the active class to the clicked element and show its contents
		jQuery(this).addClass('active');
		jQuery('div#' + jQuery(this).attr('id') + '_content').show();
		
		
	});
		
});
