﻿jQuery(window).load(function () {
    // nivoslider init
    jQuery('#slider').nivoSlider({
        effect: 'fold',
        slices: 15,
        boxCols: 7,
        boxRows: 4,
        animSpeed: 500,
        pauseTime: 5000,
        directionNav: true,
        directionNavHide: false,
        controlNav: true,
        captionOpacity: 1,
        afterLoad: function () {
            jQuery(".nivo-caption").animate({ top: "82" }, { easing: "easeOutBack", duration: 500 })
        },
        beforeChange: function () {
            jQuery(".nivo-caption").animate({ top: "-250" }, { easing: "easeInBack", duration: 500 })
        },
        afterChange: function () {
            jQuery(".nivo-caption").animate({ top: "82" }, { easing: "easeOutBack", duration: 500 })
        }
    });
});
