$(document).ready(function(){

$('#featured').css("overflow","visible");


function onAfter(curr, next, opts) {
    var index = $(this).parent().children().index(this);
    $('#prev')[index == 0 ? 'hide' : 'show']();
    $('#next')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}

$('#picSet').cycle({ 
    fx:      'scrollHorz', 
    speed:    600, 
    prev:   '#leftArrow', 
    next:   '#rightArrow', 
    after:   onAfter, 
    timeout:  10000,
    cleartype: 0 
});
});
