$(document).ready(function(){
	$('.tabs .tab').hide(); // Hide all divs
	$('.tabs .tab:first').show(); // Show the first div
	$('.tabs ul.tabnav li:first').addClass('active'); // Set the class of the first link to active
	$('.tabs ul.tabnav li a').click(function(){ //When any link is clicked
	$('.tabs ul.tabnav li').removeClass('active'); // Remove active class from all links
	$(this).parent().addClass('active'); //Set clicked link class to active
	var currentTab = $(this).attr('href'); // Set variable currentTab to value of href attribute of clicked link
	$('.tabs .tab').hide(); // Hide all divs
	$(currentTab).show(); // Show div with id equal to variable currentTab
	return false;
	});
});