Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/local/templates/monolitsochi/js/ |
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/local/templates/monolitsochi/js/sly.min.js |
!function(e,t,a){"use strict";function n(t,h,p){function D(a){var n=0,i=ke.length;if(we.old=e.extend({},we),me=he?0:pe[fe.horizontal?"width":"height"](),Pe=be[fe.horizontal?"width":"height"](),ye=he?t:ge[fe.horizontal?"outerWidth":"outerHeight"](),ke.length=0,we.start=0,we.end=q(ye-me,0),Ye){n=xe.length,Te=ge.children(fe.itemSelector),xe.length=0;var r,s=c(ge,fe.horizontal?"paddingLeft":"paddingTop"),o=c(ge,fe.horizontal?"paddingRight":"paddingBottom"),l="border-box"===e(Te).css("boxSizing"),u="none"!==Te.css("float"),f=0,v=Te.length-1;ye=0,Te.each(function(t,a){var n=e(a),i=a.getBoundingClientRect(),l=A(fe.horizontal?i.width||i.right-i.left:i.height||i.bottom-i.top),d=c(n,fe.horizontal?"marginLeft":"marginTop"),h=c(n,fe.horizontal?"marginRight":"marginBottom");n.parents(".frame.props").length&&n.find("td").eq(0).length&&(l-=n.find("td").eq(0).outerWidth());var p=l+d+h,g=!d||!h,m={};m.el=a,m.size=g?l:p,m.half=m.size/2,m.start=ye+(g?d:0),m.center=m.start-A(me/2-m.size/2),m.end=m.start-me+m.size,t||(ye+=s),ye+=p,fe.horizontal||u||h&&d&&t>0&&(ye-=O(d,h)),t===v&&(m.end+=o,ye+=o,f=g?h:0),xe.push(m),r=m}),ge[0].style[fe.horizontal?"width":"height"]=(l?ye:ye-s-o)+"px",ye-=f,xe.length?(we.start=xe[0][Xe?"center":"start"],we.end=Xe?r.center:ye>me?r.end:we.start):we.start=we.end=0}if(we.center=A(we.end/2+we.start/2),W(),Ie.length&&Pe>0){if(fe.dynamicHandle){Ce=we.start===we.end?Pe:A(Pe*me/ye),Ce=d(Ce,fe.minHandleSize,Pe),Ie[0].style[fe.horizontal?"width":"height"]=Ce+"px";var h=e(be).closest(".wrapp_scrollbar");Ce!=Pe?(h.addClass("relative_block"),e(be).parent().animate({opacity:1},50),e(be).fadeIn(),h.find(".slider_navigation").fadeIn(),e(pe).addClass("border")):(h.removeClass("relative_block"),e(be).parent().animate({opacity:0},50),e(be).fadeOut(),h.find(".slider_navigation").fadeOut(),e(pe).removeClass("border"))}else Ce=Ie[fe.horizontal?"outerWidth":"outerHeight"]();ze.end=Pe-Ce,Ke||X()}if(!he&&me>0){var p=we.start,g="";if(Ye)e.each(xe,function(e,t){Xe?ke.push(t.center):t.start+t.size>p&&p<=we.end&&(p=t.start,ke.push(p),p+=me,p>we.end&&p<we.end+me&&ke.push(we.end))});else for(;p-me<we.end;)ke.push(p),p+=me;if(Se[0]&&i!==ke.length){for(var m=0;m<ke.length;m++)g+=fe.pageBuilder.call(ve,m);Be=Se.html(g).children(),Be.eq(Ae.activePage).addClass(fe.activeClass)}}if(Ae.slideeSize=ye,Ae.frameSize=me,Ae.sbSize=Pe,Ae.handleSize=Ce,Ye){a&&null!=fe.startAt&&(L(fe.startAt),ve[He?"toCenter":"toStart"](fe.startAt));var y=xe[Ae.activeItem];E(He&&y?y.center:d(we.dest,we.start,we.end))}else a?null!=fe.startAt&&E(fe.startAt,1):E(d(we.dest,we.start,we.end));ce("load")}function E(e,t,a){Je.init&&Je.slidee&&fe.elasticBounds?e>we.end?e=we.end+(e-we.end)/6:e<we.start&&(e=we.start+(e-we.start)/6):e=d(e,we.start,we.end),Ze.start=+new Date,Ze.time=0,Ze.from=we.cur,Ze.to=e,Ze.delta=e-we.cur,Ze.tweesing=Je.tweese||Je.init&&!Je.slidee,Ze.immediate=!Ze.tweesing&&(t||Je.init&&Je.slidee||!fe.speed),Je.tweese=0,e!==we.dest&&(we.dest=e,ce("change"),Ke||N()),Q(),W(),_(),H()}function N(){if(ve.initialized){if(!Ke)return Ke=y(N),void(Je.released&&ce("moveStart"));Ze.immediate?we.cur=Ze.to:Ze.tweesing?(Ze.tweeseDelta=Ze.to-we.cur,we.cur+=Ze.tweeseDelta*(Je.released?fe.swingSpeed:fe.syncSpeed)):(Ze.time=O(+new Date-Ze.start,fe.speed),we.cur=Ze.from+Ze.delta*e.easing[fe.easing](Ze.time/fe.speed,Ze.time,0,1,fe.speed)),Ze.to===we.cur?(we.cur=Ze.to,Je.tweese=Ke=0):Ke=y(N),ce("move"),he||(f?ge[0].style[f]=v+(fe.horizontal?"translateX":"translateY")+"("+-we.cur+"px)":ge[0].style[fe.horizontal?"left":"top"]=-A(we.cur)+"px"),!Ke&&Je.released&&ce("moveEnd"),X()}}function X(){Ie.length&&(ze.cur=we.start===we.end?0:((Je.init&&!Je.slidee?we.dest:we.cur)-we.start)/(we.end-we.start)*ze.end,ze.cur=d(A(ze.cur),ze.start,ze.end),Qe.hPos!==ze.cur&&(Qe.hPos=ze.cur,f?Ie[0].style[f]=v+(fe.horizontal?"translateX":"translateY")+"("+ze.cur+"px)":Ie[0].style[fe.horizontal?"left":"top"]=ze.cur+"px"))}function H(){Be[0]&&Qe.page!==Ae.activePage&&(Qe.page=Ae.activePage,Be.removeClass(fe.activeClass).eq(Ae.activePage).addClass(fe.activeClass),ce("activePage",Qe.page))}function Y(){Ge.speed&&we.cur!==(Ge.speed>0?we.end:we.start)||ve.stop(),tt=Je.init?y(Y):0,Ge.now=+new Date,Ge.pos=we.cur+(Ge.now-Ge.lastTime)/1e3*Ge.speed,E(Je.init?Ge.pos:A(Ge.pos)),Je.init||we.cur!==we.dest||ce("moveEnd"),Ge.lastTime=Ge.now}function F(e,t,n){if("boolean"===i(t)&&(n=t,t=a),t===a)E(we[e],n);else{if(He&&"center"!==e)return;var r=ve.getPos(t);r&&E(r[e],n,!He)}}function M(e){return null!=e?l(e)?e>=0&&e<xe.length?e:-1:Te.index(e):-1}function j(e){return M(l(e)&&0>e?e+xe.length:e)}function L(e,t){var a=M(e);return!Ye||0>a?!1:((Qe.active!==a||t)&&(Te.eq(Ae.activeItem).removeClass(fe.activeClass),Te.eq(a).addClass(fe.activeClass),Qe.active=Ae.activeItem=a,_(),ce("active",a)),a)}function R(e){e=d(l(e)?e:we.dest,we.start,we.end);var t={},a=Xe?0:me/2;if(!he)for(var n=0,i=ke.length;i>n;n++){if(e>=we.end||n===ke.length-1){t.activePage=ke.length-1;break}if(e<=ke[n]+a){t.activePage=n;break}}if(Ye){for(var r=!1,s=!1,o=!1,c=0,u=xe.length;u>c;c++)if(r===!1&&e<=xe[c].start+xe[c].half&&(r=c),o===!1&&e<=xe[c].center+xe[c].half&&(o=c),c===u-1||e<=xe[c].end+xe[c].half){s=c;break}t.firstItem=l(r)?r:0,t.centerItem=l(o)?o:t.firstItem,t.lastItem=l(s)?s:t.centerItem}return t}function W(t){e.extend(Ae,R(t))}function _(){var e=we.dest<=we.start,t=we.dest>=we.end,a=(e?1:0)|(t?2:0);if(Qe.slideePosState!==a&&(Qe.slideePosState=a,_e.is("button,input")&&_e.prop("disabled",e),Ue.is("button,input")&&Ue.prop("disabled",t),_e.add(Le)[e?"addClass":"removeClass"](fe.disabledClass),Ue.add(je)[t?"addClass":"removeClass"](fe.disabledClass)),Qe.fwdbwdState!==a&&Je.released&&(Qe.fwdbwdState=a,Le.is("button,input")&&Le.prop("disabled",e),je.is("button,input")&&je.prop("disabled",t)),Ye&&null!=Ae.activeItem){var n=0===Ae.activeItem,i=Ae.activeItem>=xe.length-1,r=(n?1:0)|(i?2:0);Qe.itemsButtonState!==r&&(Qe.itemsButtonState=r,Re.is("button,input")&&Re.prop("disabled",n),We.is("button,input")&&We.prop("disabled",i),Re[n?"addClass":"removeClass"](fe.disabledClass),We[i?"addClass":"removeClass"](fe.disabledClass))}}function U(e,t,a){if(e=j(e),t=j(t),e>-1&&t>-1&&e!==t&&(!a||t!==e-1)&&(a||t!==e+1)){Te.eq(e)[a?"insertAfter":"insertBefore"](xe[t].el);var n=t>e?e:a?t:t-1,i=e>t?e:a?t+1:t,r=e>t;null!=Ae.activeItem&&(e===Ae.activeItem?Qe.active=Ae.activeItem=a?r?t+1:t:r?t:t-1:Ae.activeItem>n&&Ae.activeItem<i&&(Qe.active=Ae.activeItem+=r?1:-1)),D()}}function $(e,t){for(var a=0,n=$e[e].length;n>a;a++)if($e[e][a]===t)return a;return-1}function Q(){Je.released&&!ve.isPaused&&ve.resume()}function Z(e){return A(d(e,ze.start,ze.end)/ze.end*(we.end-we.start))+we.start}function G(){Je.history[0]=Je.history[1],Je.history[1]=Je.history[2],Je.history[2]=Je.history[3],Je.history[3]=Je.delta}function J(e){Je.released=0,Je.source=e,Je.slidee="slidee"===e}function K(t){var a="touchstart"===t.type,n=t.data.source,i="slidee"===n;Je.init||!a&&te(t.target)||("handle"!==n||fe.dragHandle&&ze.start!==ze.end)&&(!i||(a?fe.touchDragging:fe.mouseDragging&&t.which<2))&&(a||r(t),J(n),Je.init=0,Je.$source=e(t.target),Je.touch=a,Je.pointer=a?t.originalEvent.touches[0]:t,Je.initX=Je.pointer.pageX,Je.initY=Je.pointer.pageY,Je.initPos=i?we.cur:ze.cur,Je.start=+new Date,Je.time=0,Je.path=0,Je.delta=0,Je.locked=0,Je.history=[0,0,0,0],Je.pathToLock=i?a?30:10:0,w.on(a?P:I,V),ve.pause(1),(i?ge:Ie).addClass(fe.draggedClass),ce("moveStart"),i&&(Ve=setInterval(G,10)))}function V(e){if(Je.released="mouseup"===e.type||"touchend"===e.type,Je.pointer=Je.touch?e.originalEvent[Je.released?"changedTouches":"touches"][0]:e,Je.pathX=Je.pointer.pageX-Je.initX,Je.pathY=Je.pointer.pageY-Je.initY,Je.path=T(x(Je.pathX,2)+x(Je.pathY,2)),Je.delta=fe.horizontal?Je.pathX:Je.pathY,Je.released||!(Je.path<1)){if(!Je.init){if(Je.path<fe.dragThreshold)return Je.released?ee():a;if(!(fe.horizontal?k(Je.pathX)>k(Je.pathY):k(Je.pathX)<k(Je.pathY)))return ee();Je.init=1}r(e),!Je.locked&&Je.path>Je.pathToLock&&Je.slidee&&(Je.locked=1,Je.$source.on(C,s)),Je.released&&(ee(),fe.releaseSwing&&Je.slidee&&(Je.swing=(Je.delta-Je.history[0])/40*300,Je.delta+=Je.swing,Je.tweese=k(Je.swing)>10)),E(Je.slidee?A(Je.initPos-Je.delta):Z(Je.initPos+Je.delta))}}function ee(){clearInterval(Ve),Je.released=!0,w.off(Je.touch?P:I,V),(Je.slidee?ge:Ie).removeClass(fe.draggedClass),setTimeout(function(){Je.$source.off(C,s)}),we.cur===we.dest&&Je.init&&ce("moveEnd"),ve.resume(1),Je.init=0}function te(t){return~e.inArray(t.nodeName,S)||e(t).is(fe.interactive)}function ae(){ve.stop(),w.off("mouseup",ae)}function ne(e){switch(r(e),this){case je[0]:case Le[0]:ve.moveBy(je.is(this)?fe.moveBy:-fe.moveBy),w.on("mouseup",ae);break;case Re[0]:ve.prev();break;case We[0]:ve.next();break;case _e[0]:ve.prevPage();break;case Ue[0]:ve.nextPage()}}function ie(e){fe.clickBar&&e.target===be[0]&&(r(e),E(Z((fe.horizontal?e.pageX-be.offset().left:e.pageY-be.offset().top)-Ce/2)))}function re(e){if(fe.keyboardNavBy)switch(e.which){case fe.horizontal?37:38:r(e),ve["pages"===fe.keyboardNavBy?"prevPage":"prev"]();break;case fe.horizontal?39:40:r(e),ve["pages"===fe.keyboardNavBy?"nextPage":"next"]()}}function se(e){return te(this)?void(e.originalEvent[g+"ignore"]=!0):void(this.parentNode!==ge[0]||e.originalEvent[g+"ignore"]||ve.activate(this))}function oe(){this.parentNode===Se[0]&&ve.activatePage(Be.index(this))}function le(e){fe.pauseOnHover&&ve["mouseenter"===e.type?"pause":"resume"](2)}function ce(e,t){if($e[e]){for(ue=$e[e].length,B.length=0,de=0;ue>de;de++)B.push($e[e][de]);for(de=0;ue>de;de++)B[de].call(ve,e,t)}}if(!(this instanceof n))return new n(t,h,p);var de,ue,fe=e.extend({},n.defaults,h),ve=this,he=l(t),pe=e(t),ge=fe.slidee?e(fe.slidee).eq(0):pe.children().eq(0),me=0,ye=0,we={start:0,center:0,end:0,cur:0,dest:0},be=e(fe.scrollBar).eq(0),Ie=be.children().eq(0),Pe=0,Ce=0,ze={start:0,end:0,cur:0},Se=e(fe.pagesBar),Be=0,ke=[],Te=0,xe=[],Ae={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},qe=new u(pe[0]),Oe=new u(ge[0]),De=new u(be[0]),Ee=new u(Ie[0]),Ne="basic"===fe.itemNav,Xe="forceCentered"===fe.itemNav,He="centered"===fe.itemNav||Xe,Ye=!he&&(Ne||He||Xe),Fe=fe.scrollSource?e(fe.scrollSource):pe,Me=fe.dragSource?e(fe.dragSource):pe,je=e(fe.forward),Le=e(fe.backward),Re=e(fe.prev),We=e(fe.next),_e=e(fe.prevPage),Ue=e(fe.nextPage),$e={},Qe={},Ze={},Ge={},Je={released:1},Ke=0,Ve=0,et=0,tt=0;he||(t=pe[0]),ve.initialized=0,ve.frame=t,ve.slidee=ge[0],ve.pos=we,ve.rel=Ae,ve.items=xe,ve.pages=ke,ve.isPaused=0,ve.options=fe,ve.dragging=Je,ve.reload=function(){D()},ve.getPos=function(e){if(Ye){var t=M(e);return-1!==t?xe[t]:!1}var a=ge.find(e).eq(0);if(a[0]){var n=fe.horizontal?a.offset().left-ge.offset().left:a.offset().top-ge.offset().top,i=a[fe.horizontal?"outerWidth":"outerHeight"]();return{start:n,center:n-me/2+i/2,end:n-me+i,size:i}}return!1},ve.moveBy=function(e){Ge.speed=e,Ge.lastTime=+new Date,Ge.startPos=we.cur,J("button"),Je.init=1,ce("moveStart"),m(tt),Y()},ve.stop=function(){"button"===Je.source&&(Je.init=0,Je.released=1)},ve.prev=function(){ve.activate(null==Ae.activeItem?0:Ae.activeItem-1)},ve.next=function(){ve.activate(null==Ae.activeItem?0:Ae.activeItem+1)},ve.prevPage=function(){ve.activatePage(Ae.activePage-1)},ve.nextPage=function(){ve.activatePage(Ae.activePage+1)},ve.slideBy=function(e,t){e&&(Ye?ve[He?"toCenter":"toStart"](d((He?Ae.centerItem:Ae.firstItem)+fe.scrollBy*e,0,xe.length)):E(we.dest+e,t))},ve.slideTo=function(e,t){E(e,t)},ve.toStart=function(e,t){F("start",e,t)},ve.toEnd=function(e,t){F("end",e,t)},ve.toCenter=function(e,t){F("center",e,t)},ve.getIndex=M,ve.activate=function(e,t){var a=L(e);fe.smart&&a!==!1&&(He?ve.toCenter(a,t):a>=Ae.lastItem?ve.toStart(a,t):a<=Ae.firstItem?ve.toEnd(a,t):Q())},ve.activatePage=function(e,t){l(e)&&E(ke[d(e,0,ke.length-1)],t)},ve.resume=function(e){fe.cycleBy&&fe.cycleInterval&&("items"!==fe.cycleBy||xe[0]&&null!=Ae.activeItem)&&!(e<ve.isPaused)&&(ve.isPaused=0,et?et=clearTimeout(et):ce("resume"),et=setTimeout(function(){switch(ce("cycle"),fe.cycleBy){case"items":ve.activate(Ae.activeItem>=xe.length-1?0:Ae.activeItem+1);break;case"pages":ve.activatePage(Ae.activePage>=ke.length-1?0:Ae.activePage+1)}},fe.cycleInterval))},ve.pause=function(e){e<ve.isPaused||(ve.isPaused=e||100,et&&(et=clearTimeout(et),ce("pause")))},ve.toggle=function(){ve[et?"pause":"resume"]()},ve.set=function(t,a){e.isPlainObject(t)?e.extend(fe,t):fe.hasOwnProperty(t)&&(fe[t]=a)},ve.add=function(t,a){var n=e(t);Ye?(null==a||!xe[0]||a>=xe.length?n.appendTo(ge):xe.length&&n.insertBefore(xe[a].el),null!=Ae.activeItem&&a<=Ae.activeItem&&(Qe.active=Ae.activeItem+=n.length)):ge.append(n),D()},ve.remove=function(t){if(Ye){var a=j(t);if(a>-1){Te.eq(a).remove();var n=a===Ae.activeItem;null!=Ae.activeItem&&a<Ae.activeItem&&(Qe.active=--Ae.activeItem),D(),n&&(Qe.active=null,ve.activate(Ae.activeItem))}}else e(t).remove(),D()},ve.moveAfter=function(e,t){U(e,t,1)},ve.moveBefore=function(e,t){U(e,t)},ve.on=function(e,t){if("object"===i(e))for(var a in e)e.hasOwnProperty(a)&&ve.on(a,e[a]);else if("function"===i(t))for(var n=e.split(" "),r=0,s=n.length;s>r;r++)$e[n[r]]=$e[n[r]]||[],-1===$(n[r],t)&&$e[n[r]].push(t);else if("array"===i(t))for(var o=0,l=t.length;l>o;o++)ve.on(e,t[o])},ve.one=function(e,t){function a(){t.apply(ve,arguments),ve.off(e,a)}ve.on(e,a)},ve.off=function(e,t){if(t instanceof Array)for(var a=0,n=t.length;n>a;a++)ve.off(e,t[a]);else for(var i=e.split(" "),r=0,s=i.length;s>r;r++)if($e[i[r]]=$e[i[r]]||[],null==t)$e[i[r]].length=0;else{var o=$(i[r],t);-1!==o&&$e[i[r]].splice(o,1)}},ve.destroy=function(){return n.removeInstance(t),Fe.add(Ie).add(be).add(Se).add(je).add(Le).add(Re).add(We).add(_e).add(Ue).off("."+g),w.off("keydown",re),Re.add(We).add(_e).add(Ue).removeClass(fe.disabledClass),Te&&null!=Ae.activeItem&&Te.eq(Ae.activeItem).removeClass(fe.activeClass),Se.empty(),he||(pe.off("."+g),qe.restore(),Oe.restore(),De.restore(),Ee.restore(),e.removeData(t,g)),xe.length=ke.length=0,Qe={},ve.initialized=0,ve},ve.init=function(){if(!ve.initialized){if(n.getInstance(t))throw new Error("There is already a Sly instance on this element");n.storeInstance(t,ve),ve.on(p);var e=["overflow","position"],a=["position","webkitTransform","msTransform","transform","left","top","width","height"];qe.save.apply(qe,e),De.save.apply(De,e),Oe.save.apply(Oe,a),Ee.save.apply(Ee,a);var i=Ie;return he||(i=i.add(ge),pe.css("overflow","hidden"),f||"static"!==pe.css("position")||pe.css("position","relative")),f?v&&i.css(f,v):("static"===be.css("position")&&be.css("position","relative"),i.css({position:"absolute"})),fe.forward&&je.on(z,ne),fe.backward&&Le.on(z,ne),fe.prev&&Re.on(C,ne),fe.next&&We.on(C,ne),fe.prevPage&&_e.on(C,ne),fe.nextPage&&Ue.on(C,ne),be[0]&&be.on(C,ie),Ye&&fe.activateOn&&pe.on(fe.activateOn+"."+g,"*",se),Se[0]&&fe.activatePageOn&&Se.on(fe.activatePageOn+"."+g,"*",oe),Me.on(b,{source:"slidee"},K),Ie&&Ie.on(b,{source:"handle"},K),w.on("keydown",re),he||(pe.on("mouseenter."+g+" mouseleave."+g,le),pe.on("scroll."+g,o)),ve.initialized=1,D(!0),fe.cycleBy&&!he&&ve[fe.startPaused?"pause":"resume"](),ve}}}function i(e){return null==e?String(e):"object"==typeof e||"function"==typeof e?Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof e}function r(e,t){e.preventDefault(),t&&e.stopPropagation()}function s(t){r(t,1),e(this).off(t.type,s)}function o(){this.scrollLeft=0,this.scrollTop=0}function l(e){return!isNaN(parseFloat(e))&&isFinite(e)}function c(e,t){return 0|A(String(e.css(t)).replace(/[^\-0-9.]/g,""))}function d(e,t,a){return t>e?t:e>a?a:e}function u(e){var t={};return t.style={},t.save=function(){if(e&&e.nodeType){for(var a=0;a<arguments.length;a++)t.style[arguments[a]]=e.style[arguments[a]];return t}},t.restore=function(){if(e&&e.nodeType){for(var a in t.style)t.style.hasOwnProperty(a)&&(e.style[a]=t.style[a]);return t}},t}var f,v,h="sly",p="Sly",g=h,m=t.cancelAnimationFrame||t.cancelRequestAnimationFrame,y=t.requestAnimationFrame,w=e(document),b="touchstart."+g+" mousedown."+g,I="mousemove."+g+" mouseup."+g,P="touchmove."+g+" touchend."+g,C=((document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+g,"click."+g),z="mousedown."+g,S=["INPUT","SELECT","BUTTON","TEXTAREA"],B=[],k=Math.abs,T=Math.sqrt,x=Math.pow,A=Math.round,q=Math.max,O=Math.min;n.getInstance=function(t){return e.data(t,g)},n.storeInstance=function(t,a){return e.data(t,g,a)},n.removeInstance=function(t){return e.removeData(t,g)},function(e){function t(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),i=setTimeout(e,n);return a=t,i}y=e.requestAnimationFrame||e.webkitRequestAnimationFrame||t;var a=(new Date).getTime(),n=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;m=function(t){n.call(e,t)}}(window),function(){function e(e){for(var n=0,i=t.length;i>n;n++){var r=t[n]?t[n]+e.charAt(0).toUpperCase()+e.slice(1):e;if(null!=a.style[r])return r}}var t=["","Webkit","Moz","ms","O"],a=document.createElement("div");f=e("transform"),v=e("perspective")?"translateZ(0) ":""}(),t[p]=n,e.fn[h]=function(t,a){var r,s;return e.isPlainObject(t)||(("string"===i(t)||t===!1)&&(r=t===!1?"destroy":t,s=Array.prototype.slice.call(arguments,1)),t={}),this.each(function(e,i){var o=n.getInstance(i);o||r?o&&r&&o[r]&&o[r].apply(o,s):o=new n(i,t,a).init()})},n.defaults={slidee:null,horizontal:!1,itemNav:null,itemSelector:null,smart:!1,activateOn:null,activateMiddle:!1,scrollSource:null,scrollBy:0,scrollHijack:300,scrollTrap:!1,dragSource:null,mouseDragging:!1,touchDragging:!1,releaseSwing:!1,swingSpeed:.2,elasticBounds:!1,dragThreshold:3,interactive:null,scrollBar:null,dragHandle:!1,dynamicHandle:!1,minHandleSize:50,clickBar:!1,syncSpeed:.5,pagesBar:null,activatePageOn:null,pageBuilder:function(e){return"<li>"+(e+1)+"</li>"},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"}}(jQuery,window);