$.fn.selectReplace = function() {
  if (!($.browser.msie && $.browser.version < 7)) {
    return this.each(function() {
      var $this = $(this);

      $this.wrap('<span id="' + $this.attr('id') + '_wrapper" class="select-wrapper"></span>')
        .before('<span>' + $this.find('option[value=' + $this.val() + ']').html() + '</span>')
        .css("opacity", 0.01)
        .change(function() {
          $this.parent().find('span').html($this.find('option[value=' + $this.val() + ']').html());
        }
      );
    });
  }
};
