onclick event -> stop cycling through images?

onclick event -> stop cycling through images?


Hi All,
I have a slide show, with navigation tabs that automatically cycles
through a handful of images; I'd like to know how to stop the cycling
when an onclick event occurs on one of the navigation tabs. Here is
the instantiation:
    $(document).ready(function(){
        $("#sws_featured > ul").tabs({fx:{opacity: "toggle"}}).tabs
("rotate", 5000, true);
    });
I tried adding this code right below (and also inside) the code above
but to no avail:
$("#sws_featured > ul a").click(function(){
$("#sws_featured > ul").tabs({fx:{opacity: "toggle"}}).tabs
("rotate", 0, false);
});
Must not be accessing the objects correctly... Any ideas?
Thanks