Вопрос решён. Ответ:
<script>
    $(document).ready(function(){
		$(".tabs").lightTabs();
	});
    </script>
    <script>(function($){               
    jQuery.fn.lightTabs = function(options){
        var createTabs = function(){
            tabs = this;
            i = 0;
            showPage = function(tabs, i){
                $(tabs).children("div").children("div").hide();
                $(tabs).children("div").children("div").eq(i).show();
                $(tabs).children("ul").children("li").removeClass("active");
                $(tabs).children("ul").children("li").eq(i).addClass("active");
            }
            showPage(tabs, 0);              
            $(tabs).children("ul").children("li").each(function(index, element){
                $(element).attr("data-page", i);
                i++;                        
            });
            $(tabs).children("ul").children("li").click(function(){
                showPage($(this).parent().parent(), parseInt($(this).attr("data-page")));
            });             
        };      
        return this.each(createTabs);
    };  
})(jQuery);
    </script>