
(function($){
   $.fn.switcheroo = function(els){
      this.each(function(){
         var p = $(this);
         
         $(els||'li', p).click(function(e){
            $('.current', p).removeClass('current');
            $(this).addClass('current');
            e.preventDefault();
         });
      });
   }
}(jQuery));