diff --git a/README.textile b/README.md
similarity index 96%
rename from README.textile
rename to README.md
index e61e4e9..950d82f 100644
--- a/README.textile
+++ b/README.md
@@ -32,6 +32,10 @@ These examples are also included in the download.
h2. Changelog
+* 1.2.1
+** New: Added support for jQuery 3.2.1.
+** Fixed: bug with deprecated methods: .bind(), .load(), .size(), and other fixes
+
* 1.2.0
** New: Added support for jQuery 1.9.x. Dropped support for jQuery versions below 1.7.
diff --git a/examples/Carousel/js/slides.min.jquery.js b/examples/Carousel/js/slides.min.jquery.js
index d9c9484..f540ca1 100755
--- a/examples/Carousel/js/slides.min.jquery.js
+++ b/examples/Carousel/js/slides.min.jquery.js
@@ -2,8 +2,9 @@
* Slides, A Slideshow Plugin for jQuery
* Intructions: http://slidesjs.com
* By: Nathan Searles, http://nathansearles.com
-* Version: 1.2.0
-* Updated: February 5th, 2013
+* Version: 1.2.1
+* Updated: December 10th, 2017
+* Updated by: Igor Ostapchuk , http://github.com/antydemant
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,4 +18,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-(function(a){a.fn.slides=function(b){return b=a.extend({},a.fn.slides.option,b),this.each(function(){function w(g,h,i){if(!p&&o){switch(p=!0,b.animationStart(n+1),g){case"next":l=n,k=n+1,k=e===k?0:k,r=2*f,g=2*-f,n=k;break;case"prev":l=n,k=n-1,k=-1===k?e-1:k,r=0,g=0,n=k;break;case"pagination":k=parseInt(i,10),l=a("."+b.paginationClass+" li."+b.currentClass+" a",c).attr("href").match("[^#/]+$"),k>l?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('
');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;il?(r=2*f,g=2*-f):(r=0,g=0),n=k}"fade"===h?b.crossfade?d.children(":eq("+k+")",c).css({zIndex:10}).fadeIn(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+l+")",c).css({display:"none",zIndex:0}),d.children(":eq("+k+")",c).css({zIndex:0}),b.animationComplete(k+1),p=!1)}):d.children(":eq("+l+")",c).fadeOut(b.fadeSpeed,b.fadeEasing,function(){b.autoHeight?d.animate({height:d.children(":eq("+k+")",c).outerHeight()},b.autoHeightSpeed,function(){d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing)}):d.children(":eq("+k+")",c).fadeIn(b.fadeSpeed,b.fadeEasing,function(){}),b.animationComplete(k+1),p=!1}):(d.children(":eq("+k+")").css({left:r,display:"block"}),b.autoHeight?d.animate({left:g,height:d.children(":eq("+k+")").outerHeight()},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1}):d.animate({left:g},b.slideSpeed,b.slideEasing,function(){d.css({left:-f}),d.children(":eq("+k+")").css({left:f,zIndex:5}),d.children(":eq("+l+")").css({left:f,display:"none",zIndex:0}),b.animationComplete(k+1),p=!1})),b.pagination&&(a("."+b.paginationClass+" li."+b.currentClass,c).removeClass(b.currentClass),a("."+b.paginationClass+" li:eq("+k+")",c).addClass(b.currentClass))}}function x(){clearInterval(c.data("interval"))}function y(){b.pause?(clearTimeout(c.data("pause")),clearInterval(c.data("interval")),u=setTimeout(function(){clearTimeout(c.data("pause")),v=setInterval(function(){w("next",i)},b.play),c.data("interval",v)},b.pause),c.data("pause",u)):x()}a("."+b.container,a(this)).children().wrapAll('');var o,p,q,r,t,u,v,c=a(this),d=a(".slides_control",c),e=d.children().size(),f=d.children().outerWidth(),g=d.children().outerHeight(),h=b.start-1,i=0>b.effect.indexOf(",")?b.effect:b.effect.replace(" ","").split(",")[0],j=0>b.effect.indexOf(",")?i:b.effect.replace(" ","").split(",")[1],k=0,l=0,m=0,n=0;if(2>e)return a("."+b.container,a(this)).fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()}),a("."+b.next+", ."+b.prev).fadeOut(0),!1;if(!(2>e)){if(0>h&&(h=0),h>e&&(h=e-1),b.start&&(n=h),b.randomize&&d.randomize(),a("."+b.container,c).css({overflow:"hidden",position:"relative"}),d.children().css({position:"absolute",top:0,left:d.children().outerWidth(),zIndex:0,display:"none"}),d.css({position:"relative",width:3*f,height:g,left:-f}),a("."+b.container,c).css({display:"block"}),b.autoHeight&&(d.children().css({height:"auto"}),d.animate({height:d.children(":eq("+h+")").outerHeight()},b.autoHeightSpeed)),b.preload&&d.find("img:eq("+h+")").length){a("."+b.container,c).css({background:"url("+b.preloadImage+") no-repeat 50% 50%"});var z=d.find("img:eq("+h+")").attr("src")+"?"+(new Date).getTime();t="slides_control"!=a("img",c).parent().attr("class")?d.children(":eq(0)")[0].tagName.toLowerCase():d.find("img:eq("+h+")"),d.find("img:eq("+h+")").attr("src",z).load(function(){d.find(t+":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){a(this).css({zIndex:5}),a("."+b.container,c).css({background:""}),o=!0,b.slidesLoaded()})})}else d.children(":eq("+h+")").fadeIn(b.fadeSpeed,b.fadeEasing,function(){o=!0,b.slidesLoaded()});b.bigTarget&&(d.children().css({cursor:"pointer"}),d.children().on("click",function(){return w("next",i),!1})),b.hoverPause&&b.play&&(d.bind("mouseover",function(){x()}),d.bind("mouseleave",function(){y()})),b.generateNextPrev&&(a("."+b.container,c).after('Prev'),a("."+b.prev,c).after('Next')),a("."+b.next,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("next",i)}),a("."+b.prev,c).on("click",function(a){a.preventDefault(),b.play&&y(),w("prev",i)}),b.generatePagination?(b.prependPagination?c.prepend(""):c.append(""),d.children().each(function(){a("."+b.paginationClass,c).append(''+(m+1)+""),m++})):a("."+b.paginationClass+" li a",c).each(function(){a(this).attr("href","#"+m),m++}),a("."+b.paginationClass+" li:eq("+h+")",c).addClass(b.currentClass),a("."+b.paginationClass+" li a",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$"),n!=q&&w("pagination",j,q),!1}),a("a.link",c).on("click",function(){return b.play&&y(),q=a(this).attr("href").match("[^#/]+$")-1,n!=q&&w("pagination",j,q),!1}),b.play&&(v=setInterval(function(){w("next",i)},b.play),c.data("interval",v))}})},a.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},a.fn.randomize=function(b){function c(){return Math.round(Math.random())-.5}return a(this).each(function(){var d=a(this),e=d.children(),f=e.length;if(f>1){e.hide();var g=[];for(i=0;f>i;i++)g[g.length]=i;g=g.sort(c),a.each(g,function(a,c){var f=e.eq(c),g=f.clone(!0);g.show().appendTo(d),void 0!==b&&b(f,g),f.remove()})}})}})(jQuery);
+!function(e){e.fn.slides=function(n){return n=e.extend({},e.fn.slides.option,n),this.each(function(){function a(a,i,t){if(!r&&s){switch(r=!0,n.animationStart(S+1),a){case"next":I=S,l=2*g,a=2*-g,S=C=u===(C=S+1)?0:C;break;case"prev":I=S,l=0,a=0,S=C=-1===(C=S-1)?u-1:C;break;case"pagination":C=parseInt(t,10),I=e("."+n.paginationClass+" li."+n.currentClass+" a",p).attr("href").match("[^#/]+$"),C>I?(l=2*g,a=2*-g):(l=0,a=0),S=C}"fade"===i?n.crossfade?h.children(":eq("+C+")",p).css({zIndex:10}).fadeIn(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+I+")",p).css({display:"none",zIndex:0}),h.children(":eq("+C+")",p).css({zIndex:0}),n.animationComplete(C+1),r=!1)}):h.children(":eq("+I+")",p).fadeOut(n.fadeSpeed,n.fadeEasing,function(){n.autoHeight?h.animate({height:h.children(":eq("+C+")",p).outerHeight()},n.autoHeightSpeed,function(){h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing)}):h.children(":eq("+C+")",p).fadeIn(n.fadeSpeed,n.fadeEasing,function(){}),n.animationComplete(C+1),r=!1}):(h.children(":eq("+C+")").css({left:l,display:"block"}),n.autoHeight?h.animate({left:a,height:h.children(":eq("+C+")").outerHeight()},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1}):h.animate({left:a},n.slideSpeed,n.slideEasing,function(){h.css({left:-g}),h.children(":eq("+C+")").css({left:g,zIndex:5}),h.children(":eq("+I+")").css({left:g,display:"none",zIndex:0}),n.animationComplete(C+1),r=!1})),n.pagination&&(e("."+n.paginationClass+" li."+n.currentClass,p).removeClass(n.currentClass),e("."+n.paginationClass+" li:eq("+C+")",p).addClass(n.currentClass))}}function i(){clearInterval(p.data("interval"))}function t(){n.pause?(clearTimeout(p.data("pause")),clearInterval(p.data("interval")),c=setTimeout(function(){clearTimeout(p.data("pause")),f=setInterval(function(){a("next",q)},n.play),p.data("interval",f)},n.pause),p.data("pause",c)):i()}e("."+n.container,e(this)).children().wrapAll('');var s,r,o,l,d,c,f,p=e(this),h=e(".slides_control",p),u=h.children().length,g=h.children().outerWidth(),m=h.children().outerHeight(),v=n.start-1,q=n.effect.indexOf(",")<0?n.effect:n.effect.replace(" ","").split(",")[0],x=n.effect.indexOf(",")<0?q:n.effect.replace(" ","").split(",")[1],C=0,I=0,y=0,S=0;if(u<2)return e("."+n.container,e(this)).fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()}),e("."+n.next+", ."+n.prev).fadeOut(0),!1;if(!(u<2)){if(v<0&&(v=0),v>u&&(v=u-1),n.start&&(S=v),n.randomize&&h.randomize(),e("."+n.container,p).css({overflow:"hidden",position:"relative"}),h.children().css({position:"absolute",top:0,left:h.children().outerWidth(),zIndex:0,display:"none"}),h.css({position:"relative",width:3*g,height:m,left:-g}),e("."+n.container,p).css({display:"block"}),n.autoHeight&&(h.children().css({height:"auto"}),h.animate({height:h.children(":eq("+v+")").outerHeight()},n.autoHeightSpeed)),n.preload&&h.find("img:eq("+v+")").length){e("."+n.container,p).css({background:"url("+n.preloadImage+") no-repeat 50% 50%"});var z=h.find("img:eq("+v+")").attr("src")+"?"+(new Date).getTime();d="slides_control"!=e("img",p).parent().attr("class")?h.children(":eq(0)")[0].tagName.toLowerCase():h.find("img:eq("+v+")")[0].tagName.toLowerCase(),h.find("img:eq("+v+")").attr("src",z).on("load",function(){h.find(d+":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){e(this).css({zIndex:5}),e("."+n.container,p).css({background:""}),s=!0,n.slidesLoaded()})})}else h.children(":eq("+v+")").fadeIn(n.fadeSpeed,n.fadeEasing,function(){s=!0,n.slidesLoaded()});n.bigTarget&&(h.children().css({cursor:"pointer"}),h.children().on("click",function(){return a("next",q),!1})),n.hoverPause&&n.play&&(h.on("mouseover",function(){i()}),h.on("mouseleave",function(){t()})),n.generateNextPrev&&(e("."+n.container,p).after('Prev'),e("."+n.prev,p).after('Next')),e("."+n.next,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("next",q)}),e("."+n.prev,p).on("click",function(e){e.preventDefault(),n.play&&t(),a("prev",q)}),n.generatePagination?(n.prependPagination?p.prepend(""):p.append(""),h.children().each(function(){e("."+n.paginationClass,p).append(''+(y+1)+""),y++})):e("."+n.paginationClass+" li a",p).each(function(){e(this).attr("href","#"+y),y++}),e("."+n.paginationClass+" li:eq("+v+")",p).addClass(n.currentClass),e("."+n.paginationClass+" li a",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$"),S!=o&&a("pagination",x,o),!1}),e("a.link",p).on("click",function(){return n.play&&t(),o=e(this).attr("href").match("[^#/]+$")-1,S!=o&&a("pagination",x,o),!1}),n.play&&(f=setInterval(function(){a("next",q)},n.play),p.data("interval",f))}})},e.fn.slides.option={preload:!1,preloadImage:"/img/loading.gif",container:"slides_container",generateNextPrev:!1,next:"next",prev:"prev",pagination:!0,generatePagination:!0,prependPagination:!1,paginationClass:"pagination",currentClass:"current",fadeSpeed:350,fadeEasing:"",slideSpeed:350,slideEasing:"",start:1,effect:"slide",crossfade:!1,randomize:!1,play:0,pause:0,hoverPause:!1,autoHeight:!1,autoHeightSpeed:350,bigTarget:!1,animationStart:function(){},animationComplete:function(){},slidesLoaded:function(){}},e.fn.randomize=function(n){function a(){return Math.round(Math.random())-.5}return e(this).each(function(){var t=e(this),s=t.children(),r=s.length;if(r>1){s.hide();var o=[];for(i=0;i