;
(function ($, window, document, undefined) {

    "use strict";

    var pluginName = "slider";
    var defaults = {
        delay: 1000,
        interval: 10000
    };

    function Plugin(element, options) {
        this.element = element;
        this.settings = $.extend({}, defaults, options);
        this.var = {
            timer: undefined,
            slide: 1,
            slides: 0
        };
        this._defaults = defaults;
        this._name = pluginName;
        this.init();
    }

    Plugin.prototype = {
        init: function () {
            var self = this;
            var $slider = $(this.element);
            var $position = $slider.find('.position');
            $slider.children('.slides').find('img').each(function (index, element) {
                self.var.slides++;
                if (self.var.slides == self.var.slide) {
                    $(element).addClass('active').css('opacity', '1');
                    $position.append('<div class="points active"></div>');
                } else {
                    $(element).css('opacity', '0');
                    $position.append('<div class="points"></div>');
                }
            });
            $position.find('.points').each(function (index) {
                $(this).click(function () {
                    self.show(index + 1);
                });
            });
            $slider.hover(function () {
                clearInterval(self.var.timer);
            }, function () {
                self.auto();
            });
            $slider.find('.prev > *').click(function () {
                self.prev();
            });
            $slider.find('.next > *').click(function () {
                self.next();
            });
            this.auto();
        },
        auto: function () {
            var self = this;
            this.var.timer = setInterval(function () {
                self.next();
            }, this.settings.interval);
        },
        next: function () {
            if (this.var.slide < this.var.slides) {
                this.show(this.var.slide + 1);
            } else {
                this.show(1);
            }
        },
        prev: function () {
            if (this.var.slide > 1) {
                this.show(this.var.slide - 1);
            } else {
                this.show(this.var.slides);
            }
        },
        show: function (slide) {
            $(this.element).find('.slides img:nth-child(' + this.var.slide + ')').stop().removeClass('active').animate({opacity: 0}, this.settings.delay);
            $(this.element).find('.position .points:nth-child(' + this.var.slide + ')').removeClass('active');
            $(this.element).find('.text span:nth-child(' + this.var.slide + ')').removeClass('active');
            this.var.slide = slide;
            $(this.element).find('.slides img:nth-child(' + this.var.slide + ')').stop().addClass('active').animate({opacity: 1}, this.settings.delay);
            $(this.element).find('.position .points:nth-child(' + this.var.slide + ')').addClass('active');
            $(this.element).find('.text span:nth-child(' + this.var.slide + ')').addClass('active');
            return this;
        }
    };

    $.fn[pluginName] = function (options) {
        this.each(function () {
            if (!$.data(this, "plugin_" + pluginName)) {
                $.data(this, "plugin_" + pluginName, new Plugin(this, options));
            }
        });
        return this;
    };

})(jQuery, window, document);

@@ -310,16 +310,17 @@
 this.var
+i
  = %7B%0A   
@@ -782,24 +782,25 @@
     self.var
+i
 .slides++;%0A 
@@ -822,24 +822,25 @@
 if (self.var
+i
 .slides == s
@@ -842,24 +842,25 @@
  == self.var
+i
 .slide) %7B%0A  
@@ -1440,24 +1440,25 @@
 val(self.var
+i
 .timer);%0A   
@@ -1847,16 +1847,17 @@
 this.var
+i
 .timer =
@@ -2011,24 +2011,25 @@
 if (this.var
+i
 .slide %3C thi
@@ -2025,32 +2025,33 @@
 slide %3C this.var
+i
 .slides) %7B%0A     
@@ -2071,32 +2071,33 @@
 is.show(this.var
+i
 .slide + 1);%0A   
@@ -2217,24 +2217,25 @@
 if (this.var
+i
 .slide %3E 1) 
@@ -2266,24 +2266,25 @@
 how(this.var
+i
 .slide - 1);
@@ -2335,24 +2335,25 @@
 how(this.var
+i
 .slides);%0A  
@@ -2468,32 +2468,33 @@
 ild(' + this.var
+i
 .slide + ')').st
@@ -2630,32 +2630,33 @@
 ild(' + this.var
+i
 .slide + ')').re
@@ -2735,32 +2735,33 @@
 ild(' + this.var
+i
 .slide + ')').re
@@ -2797,24 +2797,25 @@
     this.var
+i
 .slide = sli
@@ -2878,32 +2878,33 @@
 ild(' + this.var
+i
 .slide + ')').st
@@ -3037,32 +3037,33 @@
 ild(' + this.var
+i
 .slide + ')').ad
@@ -3147,16 +3147,17 @@
 this.var
+i
 .slide +

fix for ie8