text: (function(e,t,i){var n={},r=!0,s={},o={speed:800,timeout:5e3,autoScroll:!1,pauseOnHover:!1,effect:"scrollVert3d",perspective:1e3};e.jqBoxSlider=n,n.init=function(e){var i=t.extend({},o,e),r=n.slideAnimator(i.effect);return this.each(function(){var e=t(this),n=e.children(),s=t.extend({},i);e.data("bssettings",s),s.slideAnimator=r,s.slideAnimator.initialize(e,n,s),a(e,s),s.autoScroll&&(s.autointv=setInterval(function(){u(e)},s.timeout+s.speed),s.pauseOnHover&&e.on("hover",d))})},n.playPause=function(){return this.each(function(){d.call(t(this))})},n.showSlide=function(e){return e=parseInt(e,10),this.each(function(){var i=t(this);f(i),u(i,e)})},n.next=function(){return this.each(function(){var e=t(this);u(e)})},n.prev=function(){return this.each(function(){var e=t(this);u(e,null,!0)})},n.registerAnimator=function(e,i){t.each(e.split(","),function(e,t){s[t]=i}),i._cacheOriginalCSS=h,"function"==typeof i.configure&&i.configure(r,v)},n.slideAnimator=function(e){if("object"==typeof s[e])return s[e];throw Error("The slide animator for the "+e+" effect has not been registered")},n.option=function(e,r){return r===i?(this.data("bssettings")||{})[e]:this.each(function(){var s=t(this),o=s.data("bssettings")||{};return o[e]=r,f(s,o),"effect"===e?(o.slideAnimator.destroy(s,o),o.slideAnimator=n.slideAnimator(r),o._slideFilter=null,o.bsfaceindex=0,o.slideAnimator.initialize(s,s.children(),o),i):("function"==typeof o.slideAnimator.reset&&o.slideAnimator.reset(s,o),i)})},n.destroy=function(){return this.each(function(){var e=t(this),i=e.data()||{},n=i.bssettings;n&&"object"==typeof n.slideAnimator&&(n.autointv&&clearInterval(n.autointv),n.slideAnimator.destroy(e,n))})};var a=function(e,i){var n=t();null!=i.next&&(n=n.add(t(i.next).on("click",{reverse:!1},c))),null!=i.prev&&(n=n.add(t(i.prev).on("click",{reverse:!0},c))),null!=i.pause&&(n=n.add(t(i.pause).on("click",l))),n.data("bsbox",e)},c=function(e){var n=t(this).data("bsbox");f(n),u(n,i,e.data.reverse),e.preventDefault()},l=function(e){var i=t(this),n=i.data("bsbox");d.call(n),i.toggleClass("paused"),e.preventDefault()},d=function(e,i,n){var r,s=t(this);n||(n=s.data("bssettings")),r=null!=n.autointv,"function"==typeof n.onplaypause&&n.onplaypause.call(s,r?"pause":"play"),(!r&&!i||(n.autointv=clearInterval(n.autointv),i))&&(n.autointv=setInterval(function(){u(s)},n.timeout+n.speed))},u=function(e,i,n){var r,s,o,a,c=e.data("bssettings"),l=e.children();null!=c._slideFilter&&(l="function"==typeof c._slideFilter?l.filter(function(e){return c._slideFilter.call(l,e,c)}):l.filter(c.slideFilter)),r=c.bsfaceindex||0,s=p(r,l.length,n,i),e.hasClass("jbs-in-motion")||-1===s||(o=l.eq(r),a=l.eq(s),e.addClass("jbs-in-motion"),"function"==typeof c.onbefore&&c.onbefore.call(e,o,a,r,s),t.extend(c,c.slideAnimator.transition(t.extend({$box:e,$slides:l,$currSlide:o,$nextSlide:a,reverse:n,currIndex:r,nextIndex:s},c))),setTimeout(function(){e.removeClass("jbs-in-motion"),"function"==typeof c.onafter&&c.onafter.call(e,o,a,r,s)},c.speed),c.bsfaceindex=s)},f=function(e,t){t||(t=e.data("bssettings")||{}),t.autoScroll&&d.call(e,i,!0,t)},p=function(e,t,i,n){var r=n;return null==r&&(r=i?0>e-1?t-1:e-1:t>e+1?e+1:0),r===e||r>=t||0>r?-1:r},h=function(e,i,n,r){var s=["position","top","left","display","overflow","width","height"].concat(r||[]);n.origCSS||(n.origCSS={}),n.origCSS[i]||(n.origCSS[i]={}),t.each(s,function(t,r){n.origCSS[i][r]=e.css(r)})},v=function(){var e=document.body.style,t="";return"webkitTransition"in e&&(t="-webkit-"),"MozTransition"in e&&(t="-moz-"),r="webkitPerspective"in e||"MozPerspective"in e||"perspective"in e,t}();t.fn.boxSlider=function(e){return"string"==typeof e&&"function"==typeof n[e]?n[e].apply(this,Array.prototype.slice.call(arguments,1)):n.init.apply(this,arguments)}})(window,jQuery||Zepto),function(e){e.jqBoxSlider.registerAnimator("",function(){var e={};return e.configure=function(){},e.initialize=function(){},e.reset=function(){},e.transition=function(){},e.destroy=function(){},e}())}(window,jQuery||Zepto),function(e,t){e.jqBoxSlider.registerAnimator("blindDown,blindLeft",function(){var e={};e.initialize=function(e,r,s){var o,a=t(document.createElement("div")),c=n(r.eq(0)),l=0;for(s.blindCount||(s.blindCount=10),s.blindSpeed=s.speed,s.blindintv=s.speed/s.blindCount,s.speed+=s.blindintv*s.blindCount,s.blindSize=e.width()/s.blindCount,this._cacheOriginalCSS(e,"box",s),this._cacheOriginalCSS(r,"slides",s);s.blindCount>l;++l)o=l*s.blindSize,t(document.createElement("div")).css({position:"absolute",top:"0px",left:o+"px",width:s.blindSize+"px",height:"100%",backgroundImage:"url("+c+")",backgroundPosition:-o+"px 0px"}).appendTo(a);e.css("position","relative"),e.css({height:r.css("height"),overflow:"hidden"}),r.css({zIndex:1,position:"absolute",top:0,left:0}),a.css({position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",zIndex:2}).appendTo(e),s.$blinds=a,s._slideFilter=i},e.transition=function(e){var i=(e.$box.height(),e.$blinds.children());e.$slides.hide(),e.$nextSlide.show(),i.each(function(i,n){(function(){var s=e.blindintv*i,o=t(n);setTimeout(function(){o.animate(r(e),e.blindSpeed)},s)})()}),setTimeout(function(){i.css(s(e))},e.speed)},e.destroy=function(e,t){t.$blinds.remove(),e.css(t.origCSS.box),e.children().css(t.origCSS.slides),t.speed=t.blindSpeed,delete t.blindCount,delete t.blindSpeed,delete t.blindintv,delete t.$blinds,delete t.blindSize};var i=function(e,t){return this.get(e)!==t.$blinds.get(0)},n=function(e){return e.attr("src")||e.find("img").attr("src")},r=function(e){switch(e.effect){case"blindDown":return{top:"100%"};case"blindLeft":return{width:"0px"}}},s=function(e){var t={backgroundImage:"url("+n(e.$nextSlide)+")"};switch(e.effect){case"blindDown":t.top="0px";break;case"blindLeft":t.width=e.blindSize}return t};return e}())}(window,jQuery||Zepto),function(e,t){e.jqBoxSlider.registerAnimator("carousel3d",function(){var e={},i="";return e.configure=function(e,t){i=t},e.initialize=function(e,n,r){e.css(i+"transform-style","preserve-3d").css(i+"perspective",r.perspective||1e3).css({position:"absolute",top:"0px",left:"0px",width:n.width(),height:n.height()}).parent().css({overflow:"visible",position:"relative"}),n.css({position:"absolute",top:"0px",left:"0px"}),n.each(function(n,r){var s=t(r);s.css(i+"transform","translate3d("+(0===n?0:e.width()/2+50*n)+"px, 0px, "+(0===n?0:.5*-e.height())+"px) rotate3d(0,1,0,"+(0===n?0:-75+5*n)+"deg)")})},e}())}(window,jQuery||Zepto),function(e){e.jqBoxSlider.registerAnimator("fade",function(){var e={};return e.initialize=function(t,i,n){e._cacheOriginalCSS(t,"box",n),e._cacheOriginalCSS(i,"slides",n),-1!=="static inherit".indexOf(t.css("position"))&&t.css("position","relative"),t.css({height:i.eq(0).height(),overflow:"hidden"}),i.css({position:"absolute",top:0,left:0}).filter(":gt(0)").hide()},e.transition=function(e){e.$nextSlide.fadeIn(e.speed),e.$currSlide.fadeOut(e.speed)},e.destroy=function(e,t){e.children().css(t.origCSS.slides),e.css(t.origCSS.box)},e}())}(window,jQuery||Zepto),function(e,t){e.jqBoxSlider.registerAnimator("scrollVert3d,scrollHorz3d",function(){var e={},i=!1,n="";e.configure=function(e,t){i=e,n=t},e.initialize=function(r,s,o){var a=r.parent(),c=a.innerWidth(),l=a.innerHeight(),d={position:"absolute",top:0,left:0};e._cacheOriginalCSS(r,"box",o,[n+"transform",n+"transition",n+"transform-style"]),e._cacheOriginalCSS(s,"slides",o,[n+"transform"]),e._cacheOriginalCSS(a,"viewport",o,[n+"perspective"]),s.css(d),r.css(t.extend(d,{width:c,height:l})),-1!=="static inherit".indexOf(a.css("position"))&&a.css("position","relative"),i?(o.translateZ="scrollVert3d"===o.effect?l/2:c/2,o.bsangle=0,a.css(n+"perspective",o.perspective),a.css("overflow","visible"),r.css(n+"transform-style","preserve-3d"),r.css(n+"transform","translate3d(0, 0, -"+o.translateZ+"px)"),s.eq(0).css(n+"transform","rotate3d(0, 1, 0, 0deg) translate3d(0, 0, "+o.translateZ+"px)"),setTimeout(function(){e.reset(r,o)},10)):s.filter(":gt(0)").hide()},e.reset=function(e,t){var i=t.speed/1e3+"s";e.css(n+"transition",n+"transform "+i)},e.transition=function(e){var t=e.bsangle+(e.reverse?90:-90),s="scrollVert3d"===e.effect;return i?(0===t&&(t=e.reverse?360:-360),e.$currSlide.css("z-index",1),e.$slides.filter(function(t){return e.currIndex!==t}).css(n+"transform","none").css("display","none"),e.$nextSlide.css(n+"transform",r(t,s)+" translate3d(0, 0,"+e.translateZ+"px)").css({display:"block",zIndex:2}),e.$box.css(n+"transform","translate3d(0, 0, -"+e.translateZ+"px) rotate3d("+(s?"1, 0, 0, ":"0, 1, 0, ")+t+"deg)"),360===Math.abs(t)&&(e.$box.css(n+"transform","translate3d(0, 0, -"+e.translateZ+"px)"),t=0),{bsangle:t}):(e.$slides.filter(function(t){return e.currIndex!==t}).hide(),e.$currSlide.fadeOut(e.speed),e.$nextSlide.fadeIn(e.speed),undefined)},e.destroy=function(e,t){var i=e.children(),n=e.parent();t.origCSS&&(e.css(t.origCSS.box),i.css(t.origCSS.slides),n.css(t.origCSS.viewport),delete t.bsangle,delete t.translateZ)};var r=function(e,t){switch(e){case 360:case-360:return"rotate3d(0, 1, 0, 0deg)";case 90:case-270:return"rotate3d("+(t?"1, 0, 0,":"0, 1, 0,")+" -90deg)";case 180:case-180:return"rotate3d("+(t?"1, 0, 0,":"0, 1, 0,")+" 180deg)";case 270:case-90:return"rotate3d("+(t?"1, 0, 0,":"0, 1, 0,")+" 90deg)"}};return e}())}(window,jQuery||Zepto),function(e,t){e.jqBoxSlider.registerAnimator("scrollVert,scrollHorz",function(){var e={};e.initialize=function(t,i,n){var r=t.width(),s=i.eq(0).height();e._cacheOriginalCSS(t,"box",n),e._cacheOriginalCSS(i,"slides",n),-1!=="static inherit".indexOf(t.css("position"))&&t.css("position","relative"),t.css({height:s,overflow:"hidden"}),i.css({position:"absolute",top:0,left:0,width:r,height:s}).filter(":gt(0)").hide()},e.transition=function(e){var n=i(e.$box,"scrollVert"===e.effect,e.reverse);e.$nextSlide.css(t.extend(n.next,{display:"block"})).animate(n.anim,e.speed),e.$currSlide.animate(n.curr,e.speed)},e.destroy=function(e,t){e.children().css(t.origCSS.slides),e.css(t.origCSS.box)};var i=function(e,t,i){var n={curr:{},next:{}};return t?(n.next.top=(i?e.height():-e.height())+"px",n.curr.top=-parseInt(n.next.top,10)+"px",n.anim={top:"0px"}):(n.next.left=(i?-e.width():e.width())+"px",n.curr.left=-parseInt(n.next.left,10)+"px",n.anim={left:"0px"}),n};return e}())}(window,jQuery||Zepto),function(e,t){e.jqBoxSlider.registerAnimator("tile3d,tile",function(){var e={},i=!0,n="";e.configure=function(e,t){i=e,n=t},e.initialize=function(e,n,o){for(var a=o.tileRows||5,c=e.height()/a,l=Math.ceil(e.width()/c),d=r(n.eq(0)),u=t(document.createElement("div")),f=0,p=0,h=0,v=0;a>h;++h)for(p=h*c,v=0;l>v;++v)f=v*c,u.append(s({fromTop:p,fromLeft:v*c,imgURL:d,side:c,supports3d:i&&"tile3d"===o.effect}));-1==="absolute, relative".indexOf(e.css("position"))&&e.css("position","relative"),this._cacheOriginalCSS(e,"box",o),u.css({position:"absolute",top:0,left:0}),n.hide(),e.append(u),o.tileGrid={x:l,y:a},o.$tileWrapper=u,o._slideFilter=function(e,t){return this.get(e)!==t.$tileWrapper.get(0)}},e.transition=function(e){var t,s=e.$tileWrapper.find(".bs-tile"),o=e.rowOffset||100,a=(e.speed-o*(e.tileGrid.y-1))/e.tileGrid.x,c=r(e.$nextSlide),l=e.nextFace||"back",d=".bs-tile-face-"+l,u={},f=0;for("back"===l?(u.nextFace="front",t=180):(u.nextFace="back",t=0),s.find(d).css("background-image","url("+c+")");e.tileGrid.y>f;++f)(function(){var r=rowStart=f*e.tileGrid.x,c=rowStart+e.tileGrid.x,l=f*o,p=0;setTimeout(function(){for(;c>r;++r)(function(){var o=p*a,c=s.eq(r);setTimeout(function(){i&&"tile3d"===e.effect?c.css(n+"transform","rotate3d(0,1,0,"+t+"deg)"):c.find(".bs-tile-face-"+u.nextFace).fadeOut(100,function(){c.find(d).fadeIn(300)})},o)})(),p+=1},l)})();return u},e.destroy=function(e,t){t.$tileWrapper.remove(),e.children().show(),t.origCSS&&(e.css(t.origCSS.box),delete t.tileRows,delete t.rowOffset,delete t.tileGrid,delete t.$tileWrapper,delete t._slideFilter)};var r=function(e){return e.attr("src")||e.find("img").attr("src")},s=function(e){var i=t(document.createElement("div")),r=t(document.createElement("div")),s=t(document.createElement("div")),o=t(document.createElement("div"));return i.css({position:"absolute",top:e.fromTop,left:e.fromLeft,width:e.side,height:e.side}),r.addClass("bs-tile").css({width:e.side,height:e.side}).appendTo(i),o.addClass("bs-tile-face-back"),s.addClass("bs-tile-face-front").css("backgroundImage","url("+e.imgURL+")").add(o).css({width:e.side,height:e.side,backgroundPosition:-e.fromLeft+"px "+-e.fromTop+"px",position:"absolute",top:0,left:0}).appendTo(r),e.supports3d?(i.css(n+"perspective",400),r.css(n+"transform-style","preserve-3d").css(n+"transition",n+"transform .4s"),s.add(o).css(n+"backface-visibility","hidden"),o.css(n+"transform","rotateY(180deg)")):o.css("display","none"),i};return e}())}(window,jQuery||Zepto);