Just discovered a lovely little add-on to jQuery that allows rotation. You can grab it at http://code.google.com/p/jquery-rotate/
It’s simple to implement, just include the script in the head and once the page has loaded:
$('#image_to_rotate').rotateLeft();
Ta-da! 90° rotation counter-clockwise. You can also use rotateRight() for clockwise rotation or even specify the number of degrees
$('#image_to_rotate').rotateLeft(45);
The plug-in works using the DXImageTransform filter in IE and the Canvas element in other browsers. Unfortunately, it doesn’t work in Safari…