tabbar like firefox

Hi,
I would like to create dhtmlxtabbar like firefox (with image/button X to close the current tab) and add tabbar runtime.
any sample about this?
Thank you