jQuery.fn.extend({
  RadioButtonPresenter: function(properties) {
    return this.each(function() {
      if (properties != undefined) {
        this.__properties = properties;
      }

      changeEvent = function() {
        eqs = $('[name=' + this.name + ']');
        for (i = 0; i < eqs.length; i++) {
          ie = eqs.eq(i).get(0);
          o = $(ie.parentNode);
          o.publixeRegistrChange('checked', ie === this);
        }
      };

      $('input', this).change(changeEvent);
    });
  }
});
