(function($) {
	$.fn.simpleTab = function(){
		var current_tab = null;
	
		current_tab = $('#'+this.prop('id') + ' .tab:first-child');
		  
		$('#'+this.prop('id') + ' .tab').click(function() {
			tabClick(this);
			return false;
		});


		function tabClick(target) {
		  var current_content = $(current_tab.prop('rel'));
		  //current_content.css('display', 'none');
		  current_tab.removeClass('active');
		
		  current_tab = $('#'+target.id);
		  current_tab.addClass('active');
		
		  current_content.fadeOut('slow', function() {
		    current_content = $(current_tab.prop('rel'));
		    //current_content.css('display', 'block');
		    current_content.fadeIn('slow', function() {});
		  });  
		}
	};
})(jQuery)
