Segmented Buttons

The js is not minified so it is readable. See buttonsegment.js.