﻿
$(document).ready(function () {
  
    $('#slider').nivoSlider({
        // Specify sets like: 'fold,fade,sliceDown'
        effect: 'fade',
        // For slice animations
        slices: 10,
        // For box animations
        boxCols: 8,
        // For box animations
        boxRows: 4,
        // Slide transition speed
        animSpeed: 400, 
        // How long each slide will show
        pauseTime: 6000, 
        // Set starting Slide (0 index)
        startSlide: 0, 
        // Next & Prev navigation
        directionNav: false, 
        // Only show on hover
        directionNavHide: false, 
        // 1,2,3... navigation
        controlNav: true, 
        // Use thumbnails for Control Nav
        controlNavThumbs: false, 
        // Use image rel for thumbs
        controlNavThumbsFromRel: false, 
        // Replace this with...
        controlNavThumbsSearch: '.jpg', 
        // ...this in thumb Image src
        controlNavThumbsReplace: '_thumb.jpg', 
        // Use left & right arrows
        keyboardNav: true, 
        // Stop animation while hovering
        pauseOnHover: true, 
        // Force manual transitions
        manualAdvance: false, 
        // Universal caption opacity
        captionOpacity: 0.8, 
        // Prev directionNav text
        prevText: 'Prev', 
        // Next directionNav text
        nextText: 'Next', 
        // Triggers before a slide transition
        beforeChange: function () { }, 
        // Triggers after a slide transition
        afterChange: function () { }, 
        // Triggers after all slides have been shown
        slideshowEnd: function () { }, 
        // Triggers when last slide is shown
        lastSlide: function () { }, 
        // Triggers when slider has loaded
        afterLoad: function () { } 
    });

});
