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