for using .rotate()
, you need to add jqueryrotate plugin. This can be also achieved using pure jQuery and CSS.
Try this:
$("a.shownav img").css({
"-webkit-transform": "rotate(180deg)",
"-moz-transform": "rotate(180deg)",
"transform": "rotate(180deg)" /* For modern browsers(CSS3) */
});