javascript ...alternate version 2
The most sophisticated of the three. All the javascript is in the .js file, and the list of buttons is generated automatically.
To add more background buttons all you'd need to is put 'em in the html, create the images (with names that match the button id's), and the javascript would just do it.