/* SlidesJS 3.0.4 http://slidesjs.com (c) 2013 by Nathan Searles http://nathansearles.com Updated: June 26th, 2013 Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ (function(){(function(e,t,n){var r,i,s;s="slidesjs";i={width:940,height:528,start:1,dataKey:"",navigation:{active:true,effect:"slide"},pagination:{active:true,effect:"slide"},play:{active:false,effect:"slide",interval:5e3,auto:false,swap:true,pauseOnHover:false,restartDelay:2500},effect:{slide:{speed:500},fade:{speed:300,crossfade:true}},callback:{loaded:function(){},start:function(){},complete:function(){}}};r=function(){function t(t,n){this.element=t;this.options=e.extend(true,{},i,n);this._defaults=i;this._name=s;this.init()}return t}();r.prototype.init=function(){var n=this.options.dataKey;var r,i,s,o,u,a,f=this;r=e(this.element);this.data=e.data(this);e.data(this,"animating",false);e.data(this,"total",r.children().not(".slidesjs-navigation",r).length);e.data(this,"current",this.options.start-1);e.data(this,"vendorPrefix",this._getVendorPrefix());if(typeof TouchEvent!=="undefined"){e.data(this,"touch",true);this.options.effect.slide.speed=this.options.effect.slide.speed/2}r.css({overflow:"hidden"});r.slidesContainer=r.children().not(".slidesjs-navigation",r).wrapAll("
",r).parent().css({overflow:"hidden",position:"relative"});e(".slidesjs-container_"+n,r).wrapInner("
",r).children();e(".slidesjs-control_"+n,r).css({position:"relative",left:0});e(".slidesjs-control_"+n,r).children().addClass("slidesjs-slide").css({position:"absolute",top:0,left:0,width:"100%",zIndex:0,display:"none",webkitBackfaceVisibility:"hidden"});e.each(e(".slidesjs-control_"+n,r).children(),function(t){var n;n=e(this);return n.attr("slidesjs-index",t)});if(this.data.touch){e(".slidesjs-control_"+n,r).on("touchstart",function(e){return f._touchstart(e)});e(".slidesjs-control_"+n,r).on("touchmove",function(e){return f._touchmove(e)});e(".slidesjs-control_"+n,r).on("touchend",function(e){return f._touchend(e)})}r.fadeIn(0);this.update(n);if(this.data.touch){this._setuptouch(n)}e(".slidesjs-control_"+n,r).children(":eq("+this.data.current+")").eq(0).fadeIn(0,function(){return e(this).css({zIndex:10})});if(this.options.navigation.active){u=e("",{"class":"slidesjs-previous_"+n+" slidesjs-navigation",href:"#",title:"Previous",text:"Previous"}).appendTo(r);u.wrapAll("
",r);i=e("",{"class":"slidesjs-next_"+n+" slidesjs-navigation",href:"#",title:"Next",text:"Next"}).appendTo(r);i.wrapAll("
",r)}e(".slidesjs-next_"+n,r).click(function(e){e.preventDefault();f.stop(true,n);return f.next(f.options.navigation.effect,n)});e(".slidesjs-previous_"+n,r).click(function(e){e.preventDefault();f.stop(true,n);return f.previous(f.options.navigation.effect,n)});if(this.options.play.active){o=e("",{"class":"slidesjs-play_"+n+" slidesjs-navigation",href:"#",title:"Play",text:"Play"}).appendTo(r);o.wrapAll("
",r);a=e("",{"class":"slidesjs-stop_"+n+" slidesjs-navigation",href:"#",title:"Stop",text:"Stop"}).appendTo(r);a.wrapAll("
",r);e(".slidesjs-play_"+n,r).click(function(e){e.preventDefault();return f.play(true,n)});e(".slidesjs-stop_"+n,r).click(function(e){e.preventDefault();return f.stop(true,n)});if(this.options.play.swap){a.css({display:"none"})}}if(this.options.pagination.active){s=e("