// start tabify extesion ________________________________________________________________*/

jQuery.fn.tabify = function() {
	var $ = jQuery;

	$(this).wrap("<div class='tabs_container'></div>")
	
	$(this).find('a').each(function(){
		
		// hide content anchors
		var href = $(this).attr("href");
		$(href).hide();
					
	})
	.click(function(e){
		$(this).parent().parent().find("a").each(function(){
			$(this).parent("li").removeClass("selected");
			$($(this).attr("href")).hide();
		});
		$(this).parent("li").addClass("selected");
		$($(this).attr("href")).show();
		
		e.preventDefault();
	});
	
	// initialize tabs
	$(this).find('a:first').parent("li").addClass("selected");

	// show div correspondinding to first tab
	$($(this).find("a:first").attr("href")).show();
	
	return this;
}
// end tabify extension