Some extensions to the sprite handling and an additional functionality for buttons.

Added the ability to work against a multiple column sprite
Background image can now be derived from css,no need to assign in
javascript or data.
multi-state toggle button added
Example.html updated with usage for the button