$(document).ready(function() {
    
   $('#slideshow').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
    pager:  '#thumbnails ul', 
     
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) {
        return '<li><a href="#"><img src="' + slide.src + '" height="68" /></a></li>';
    } 
});
   
   var $slideshowWidth = $('#slideshow').width();
   $('#thumbnails ul, #thumbnails, .jThumbnailScroller').width($slideshowWidth);
   

    $("#tS2").thumbnailScroller({
        scrollerType:"clickButtons",
        scrollerOrientation:"horizontal",
        scrollSpeed:2,
        scrollEasing:"easeOutCirc",
        scrollEasingAmount:600,
        acceleration:4,
        scrollSpeed:800,
        noScrollCenterSpace:10,
        autoScrolling:0,
        autoScrollingSpeed:2000,
        autoScrollingEasing:"easeInOutQuad",
        autoScrollingDelay:500
    });

});
