﻿(function(jQuery) {
    jQuery.fn.nccSlides = function(options) {

        var defaults = {
            slideDuration: 5000, 				//in ms, time between slides
            fadeDuration: 'slow', 				//in ms (or jQuery alias - e.g. slow, fast, etc) duration of fade 
            slidesClass: 'slideClass' 				//class of slides UL
        };

        var options = jQuery.extend(defaults, options);
        var pass = 0;

        return this.each(function() {
            this.hover(function() {
                $('.slideshow-top').animate({ top: '117px' });
                $('.slideshow-bottom').animate({ top: '376px' });
            }, function() {
                $('.slideshow-top').animate({ top: '52px' });
                $('.slideshow-bottom').animate({ top: '441px' });
            });
        });
    };
})(jQuery);