!function(a,b,c){a.fn.responsiveSlides=function(d){var e=a.extend({auto:!0,speed:500,timeout:4e3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:a.noop,after:a.noop},d);return this.each(function(){c++;var f,g,h,i,j,k,l=a(this),m=0,n=l.children(),o=n.size(),p=parseFloat(e.speed),q=parseFloat(e.timeout),r=parseFloat(e.maxwidth),s=e.namespace,t=s+c,u=s+"_nav "+t+"_nav",v=s+"_here",w=t+"_on",x=t+"_s",y=a("<ul class='"+s+"_tabs "+t+"_tabs' />"),z={"float":"left",position:"relative",opacity:1,zIndex:2},A={"float":"none",position:"absolute",opacity:0,zIndex:1},B=function(){var a=document.body||document.documentElement,b=a.style,c="transition";if("string"==typeof b[c])return!0;f=["Moz","Webkit","Khtml","O","ms"],c=c.charAt(0).toUpperCase()+c.substr(1);var d;for(d=0;d<f.length;d++)if("string"==typeof b[f[d]+c])return!0;return!1}(),C=function(b){e.before(b),B?(n.removeClass(w).css(A).eq(b).addClass(w).css(z),m=b,setTimeout(function(){e.after(b)},p)):n.stop().fadeOut(p,function(){a(this).removeClass(w).css(A).css("opacity",1)}).eq(b).fadeIn(p,function(){a(this).addClass(w).css(z),e.after(b),m=b})};if(e.random&&(n.sort(function(){return Math.round(Math.random())-.5}),l.empty().append(n)),n.each(function(a){this.id=x+a}),l.addClass(s+" "+t),d&&d.maxwidth&&l.css("max-width",r),n.hide().css(A).eq(0).addClass(w).css(z).show(),B&&n.show().css({"-webkit-transition":"opacity "+p+"ms ease-in-out","-moz-transition":"opacity "+p+"ms ease-in-out","-o-transition":"opacity "+p+"ms ease-in-out",transition:"opacity "+p+"ms ease-in-out"}),n.size()>1){if(p+100>q)return;if(e.pager&&!e.manualControls){var D=[];n.each(function(a){var b=a+1;D+="<li><a href='#' class='"+x+b+"'>"+b+"</a></li>"}),y.append(D),d.navContainer?a(e.navContainer).append(y):l.after(y)}if(e.manualControls&&(y=a(e.manualControls),y.addClass(s+"_tabs "+t+"_tabs")),(e.pager||e.manualControls)&&y.find("li").each(function(b){a(this).addClass(x+(b+1))}),(e.pager||e.manualControls)&&(k=y.find("a"),g=function(a){k.closest("li").removeClass(v).eq(a).addClass(v)}),e.auto&&(h=function(){j=setInterval(function(){n.stop(!0,!0);var a=o>m+1?m+1:0;(e.pager||e.manualControls)&&g(a),C(a)},q)})(),i=function(){e.auto&&(clearInterval(j),h())},e.pause&&l.hover(function(){clearInterval(j)},function(){i()}),(e.pager||e.manualControls)&&(k.bind("click",function(b){b.preventDefault(),e.pauseControls||i();var c=k.index(this);m===c||a("."+w).queue("fx").length||(g(c),C(c))}).eq(0).closest("li").addClass(v),e.pauseControls&&k.hover(function(){clearInterval(j)},function(){i()})),e.nav){var E="<a href='#' class='"+u+" prev'>"+e.prevText+"</a><a href='#' class='"+u+" next'>"+e.nextText+"</a>";d.navContainer?a(e.navContainer).append(E):l.after(E);var F=a("."+t+"_nav"),G=F.filter(".prev");F.bind("click",function(b){b.preventDefault();var c=a("."+w);if(!c.queue("fx").length){var d=n.index(c),f=d-1,h=o>d+1?m+1:0;C(a(this)[0]===G[0]?f:h),(e.pager||e.manualControls)&&g(a(this)[0]===G[0]?f:h),e.pauseControls||i()}}),e.pauseControls&&F.hover(function(){clearInterval(j)},function(){i()})}}if("undefined"==typeof document.body.style.maxWidth&&d.maxwidth){var H=function(){l.css("width","100%"),l.width()>r&&l.css("width",r)};H(),a(b).bind("resize",function(){H()})}})}}(jQuery,this,0);