/*! http://responsive-slides.viljamis.com v1.23 by @viljamis */ (function ($, window, i) { $.fn.responsiveSlides = function (options) { // Default settings var settings = $.extend({ "auto": true, // Boolean: Animate automatically, true or false "speed": 1000, // Integer: Speed of the transition, in milliseconds "timeout": 4000, // Integer: Time between slide transitions, in milliseconds "pager": false, // Boolean: Show pager, true or false "nav": false, // Boolean: Show navigation, true or false "prev": "Previous", // String: Text for the "previous" button "next": "Next", // String: Text for the "next" button "maxwidth": "none", // Integer: Max-width of the slideshow, in pixels "namespace": "rslides" // String: change the default namespace }, options); return this.each(function () { // Index for namespacing i++; var $this = $(this); var index = 0, $slide = $this.children(), length = $slide.size(), fadetime = parseFloat(settings.speed), // Namespacing namespace = settings.namespace, namespaceIdx = namespace + i, // Classes namespaceIdxClass = namespace + " " + namespaceIdx, navClass = namespace + "_nav " + namespaceIdx + "_nav", activeClass = namespace + "_here", visibleClass = namespaceIdx + "_on", slideClassPrefix = namespaceIdx + "_s", tabsClass = namespaceIdx + "_tabs", // Pager $pager = $("