!function(e,t,n){e.fn.responsiveSlides=function(a){var s=e.extend({auto:!0,speed:1e3,timeout:4e3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!1,prevText:"Previous",nextText:"Next",maxwidth:"",controls:"",namespace:"rslides",before:function(){},after:function(){}},a);return this.each(function(){n++;var o,i,r,c,l,f=e(this),u=0,d=f.children(),p=d.size(),v=parseFloat(s.speed),h=parseFloat(s.timeout),m=parseFloat(s.maxwidth),x=s.namespace,C=x+n,b=x+"_nav "+C+"_nav",w=x+"_here",_=C+"_on",g=C+"_s",I=e("<ul class='"+x+"_tabs "+C+"_tabs' />"),q={float:"left",position:"relative"},y={float:"none",position:"absolute"},T=function(t){s.before(),d.stop().fadeOut(v,function(){e(this).removeClass(_).css(y)}).eq(t).fadeIn(v,function(){e(this).addClass(_).css(q),s.after(),u=t})};if(s.random&&(d.sort(function(){return Math.round(Math.random())-.5}),f.empty().append(d)),d.each(function(e){this.id=g+e}),f.addClass(x+" "+C),a&&a.maxwidth&&f.css("max-width",m),d.hide().eq(0).addClass(_).css(q).show(),d.size()>1){if(h<v+100)return;if(s.pager){var z=[];d.each(function(e){var t=e+1;z+="<li><a href='#' class='"+g+t+"'>"+t+"</a></li>"}),I.append(z),l=I.find("a"),a.controls?e(s.controls).append(I):f.after(I),o=function(e){l.closest("li").removeClass(w).eq(e).addClass(w)}}if(s.auto&&(i=function(){c=setInterval(function(){d.stop(!0,!0);var e=u+1<p?u+1:0;s.pager&&o(e),T(e)},h)})(),r=function(){s.auto&&(clearInterval(c),i())},s.pause&&f.hover(function(){clearInterval(c)},function(){r()}),s.pager&&(l.bind("click",function(t){t.preventDefault(),s.pauseControls||r();var n=l.index(this);u===n||e("."+_+":animated").length||(o(n),T(n))}).eq(0).closest("li").addClass(w),s.pauseControls&&l.hover(function(){clearInterval(c)},function(){r()})),s.nav){var F="<a href='#' class='"+b+" prev'>"+s.prevText+"</a><a href='#' class='"+b+" next'>"+s.nextText+"</a>";a.controls?e(s.controls).append(F):f.after(F);var k=e("."+C+"_nav"),D=e("."+C+"_nav.prev");k.bind("click",function(t){if(t.preventDefault(),!e("."+_+":animated").length){var n=d.index(e("."+_)),a=n-1,i=n+1<p?u+1:0;T(e(this)[0]===D[0]?a:i),s.pager&&o(e(this)[0]===D[0]?a:i),s.pauseControls||r()}}),s.pauseControls&&k.hover(function(){clearInterval(c)},function(){r()})}}if(void 0===document.body.style.maxWidth&&a.maxwidth){var M=function(){f.css("width","100%"),f.width()>m&&f.css("width",m)};M(),e(t).bind("resize",function(){M()})}})}}(jQuery,this,0);