(function() { (function($, window, document) { var plugin, defaults, pluginname; pluginname = "slidesjs"; defaults = { width: 940, height: 528, start: 1, navigation: { active: true, effect: "slide" }, pagination: { active: true, effect: "slide" }, play: { active: false, effect: "slide", interval: 5000, auto: false, swap: true, pauseonhover: false, restartdelay: 2500 }, effect: { slide: { speed: 500 }, fade: { speed: 300, crossfade: true } }, callback: { loaded: function() {}, start: function() {}, complete: function() {} } }; plugin = (function() { function plugin(element, options) { this.element = element; this.options = $.extend(true, {}, defaults, options); this._defaults = defaults; this._name = pluginname; this.init(); } return plugin; })(); plugin.prototype.init = function() { var $element, nextbutton, pagination, playbutton, prevbutton, stopbutton, _this = this; $element = $(this.element); this.data = $.data(this); $.data(this, "animating", false); $.data(this, "total", $element.children().not(".slidesjs-navigation", $element).length); $.data(this, "current", this.options.start - 1); $.data(this, "vendorprefix", this._getvendorprefix()); if (typeof touchevent !== "undefined") { $.data(this, "touch", true); this.options.effect.slide.speed = this.options.effect.slide.speed / 2; } $element.css({ overflow: "hidden" }); $element.slidescontainer = $element.children().not(".slidesjs-navigation", $element).wrapall("