First you have to use the slice tool to slice up the image into blocks - every button is a block, every image is a block alone and so on.
Second: Go to file - Save for web and devices. If you want you can optimize for minimum size of the images making the buttons and such as gifs with 32, or...