/* Show Media Widget jQuery plugin/functions for tabs */ (function ($){ // methods var smw_methods = { // main main : function(settings){ var opts = $.extend( {}, settings); }, paginator : function (sel){ $region = this; $item = $(sel); $item.die('click').live('click', function (e){ $.get(this.href, function (r){ $region .fadeOut(function (){ $(this) .html(r) .fadeIn(); }); }); e.preventDefault(); }); } }; // expose methods to plugin space $.each(smw_methods, function (n){ // prefixing n = "SMW_"+n; if (!$.isFunction($.fn[n])){ $.fn[n] = this; } }); })(jQuery);