(function( $, undefined ) { /* * slider object. */ $.slider = function( options, element ) { this.$el = $( element ); this._init( options ); }; $.slider.defaults = { current : 0, // index of current slide bgincrement : 50, // increment the bg position (parallax effect) when sliding autoplay : false,// slideshow on / off interval : 4000 // time between transitions }; $.slider.prototype = { _init : function( options ) { this.options = $.extend( true, {}, $.slider.defaults, options ); this.$slides = this.$el.children('div.da-slide'); this.slidescount = this.$slides.length; this.current = this.options.current; if( this.current < 0 || this.current >= this.slidescount ) { this.current = 0; } this.$slides.eq( this.current ).addclass( 'da-slide-current' ); var $navigation = $( '