Segmented (switch) Buttons

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