Button and toggling

Button and toggling

Hi all! I'm using jquery 1.4.2 and jquery-ui 1.8.2 and I need the following:
I got n buttons, implemented using checkboxes, when user push one, previously toggled one is reset, to have only one button toggled everytime. But, when user push the same button two times, I need button remains toggled, while now it's reset. I try to force state handling click event on object with class "ui-button", without good results. I tried buttonset too, but I did not find any option to configure to force single selection.
Any suggestion well appreciated, thanks