maxthecreator,
(function($){
jQuery.fn.lightTabs = function(options){
var createTabs = function(){
var tabs = this,
showPage = function(i){
blocks.hide()
.eq(i).show();
li.removeClass("active")
.eq(i).addClass("active");
},
li = $(">ul li", tabs).each(function(index, element){$(element).click(showPage.bind(null,index))}) ,
blocks = $(">.products", tabs);
showPage(0);
};
return this.each(createTabs);
};
})(jQuery);