Trying to add a Click function on image

Trying to add a Click function on image

    Hi, I'm a newbie and I'm trying to get this code to also have a click function on the image that would advance to the next image .. any advice would be appreciated. Thanks!
    1. $(function() {

    2.      $('#slideshow').cycle({
    3.             fx:  'fade',
    4.             timeout:  6000,
    5.             prev:  '#prev',
    6.             next:  '#next',
    7.             after:  onAfter
    8.    });

    9. function pagerFactory(idx, slide) {
    10.       var s = idx > 2 ? ' style="display:none"' : '';
    11.       return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
    12.     };
    13. });

    14. function onAfter(curr,next,opts) { 
    15.       var caption = '(' + (opts.currSlide + 1) + ' of ' + opts.slideCount + ')';
    16.       $('#caption').html(caption);
    17. }