Note that the js and css is not minified so it is readable. See tabs-adv.js for the tab creation code.
This TabPanel is built entirely with javascript and demonstrates: