jQuery.fn.extend({contentTab: function(){
		var el = this;
		var num_index = 0;
		
		jQuery(".contentTabContent", this).hide();
		jQuery(".contentTabHeader li", this).first().addClass("tabSelected");
		jQuery(".contentTabContent", this).first().show();
		
		jQuery(".contentTabHeader li", this).each(function(){
			jQuery.data(this, "index", num_index);
			num_index ++;
		});
		
		num_index = 0;
		
		jQuery(".something").each(function(){
			jQuery.data(this, "index", num_index);
			num_index ++;
		});
		
		jQuery(".contentTabHeader li", this).live("click", function(){
				jQuery(".contentTabContent", el).hide();
				jQuery(".contentTabHeader li", el).removeClass("tabSelected");
				jQuery(this).addClass("tabSelected");
				jQuery(".contentTabContent").eq(jQuery.data(this,"index")).show();				
			});
		
		jQuery(".something", this).live("click",function() {
			
			var that = this;
			
			jQuery(".contentTabContent", el).hide();
			jQuery(".contentTabHeader li", el).removeClass("tabSelected");
			jQuery(".contentTabHeader li", el).each(function() { 
				if(jQuery.data(this,"index") == jQuery.data(that,"index")) {
					jQuery(this).addClass("tabSelected");
				}
				
				//jQuery.data(this,"index")).addClass("tabSelected");
			});
			jQuery(".contentTabContent").eq(jQuery.data(this,"index")).show();			
		});
		
	}});

