		  $(document).ready(function(){
			
			$("a.tab").click(function () {
				
				
				// switch all tabs off
				$(".selected").removeClass("selected");
				
				// switch this tab on
				$(this).addClass("selected");
				
				// hide content
				$(".content").hide();
				
				// fade active content in
				var content_show = $(this).attr("title");
				$("#"+content_show).fadeIn('slow');
			  
			});
		
		  });
