$('#slideshow').cycle({ 
   fx:    'fade', 
    speed:  500,
    timeout:0,
     pager:  '#bb', 
    pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#bb li:eq(' + idx + ') a'; 
    } 
});

