does anyone know if there is a way of turning an image with javascript?

so far I haven't used wysiwyg's, but I have a picture I want to rotate in a circular motion. As a single frame the picture is 6k, as a rotating .gif its about 32k, but flash can do it using only 7k. I would rather not have Flash do it as unless I do the whole site in flash I cannot use the layer elsewhere as it is to be transparente.