	  $(document).ready(function(){
		
		// When a link is clicked
		$("a.tab").click(function () {

			// switch all tabs off
			$("li").removeClass("on");
			
			// switch this tab on
			$(this).parent().addClass("on");
			
			// slide all content up
			$(".content").hide();
			
			// slide this content up
			var content_show = $(this).attr("title");
			$("#"+content_show).show();
		  
		});
	
	  });
