You want to use javascript? It wouldn't bee too hard, the worst bits would be getting the css right and generating the images. How far have you got on this project?