//(function( jQuery ){
//plugin buttonset vertical
jQuery.fn.buttonsetv = function() {
  jQuery(':radio, :checkbox', this).wrap('<div style="margin: 1px"/>');
  jQuery(this).buttonset();
  jQuery('label:first', this).removeClass('ui-corner-left').addClass('ui-corner-top');
  jQuery('label:last', this).removeClass('ui-corner-right').addClass('ui-corner-bottom');
  mw = 0; // max witdh
  jQuery('label', this).each(function(index){
     w = jQuery(this).width();
     if (w > mw) mw = w; 
  })
  jQuery('label', this).each(function(index){
    jQuery(this).width(mw);
  })
};
//})( jQuery );
