/* Modernizr 2.6.2 (Custom Build) | MIT & BSD * Build: http://modernizr.com/download/#-backgroundsize-shiv-cssclasses-testprop-testallprops-domprefixes-load */ ;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.backgroundsize=function(){return D("backgroundSize")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f0){return}var ba=a9.originalEvent?a9.originalEvent:a9;var a8,a7=a?ba.touches[0]:ba;W=f;if(a){T=ba.touches.length}else{a9.preventDefault()}ac=0;aL=null;aF=null;Y=0;aX=0;aV=0;D=1;am=0;aM=af();J=X();O();if(!a||(T===aq.fingers||aq.fingers===h)||aT()){ae(0,a7);Q=ao();if(T==2){ae(1,ba.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}if(aq.swipeStatus||aq.pinchStatus){a8=L(ba,W)}}else{a8=false}if(a8===false){W=p;L(ba,W);return a8}else{ak(true)}}function aZ(ba){var bd=ba.originalEvent?ba.originalEvent:ba;if(W===g||W===p||ai()){return}var a9,a8=a?bd.touches[0]:bd;var bb=aD(a8);aY=ao();if(a){T=bd.touches.length}W=j;if(T==2){if(aX==0){ae(1,bd.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}else{aD(bd.touches[1]);aV=ap(aM[0].end,aM[1].end);aF=an(aM[0].end,aM[1].end)}D=a3(aX,aV);am=Math.abs(aX-aV)}if((T===aq.fingers||aq.fingers===h)||!a||aT()){aL=aH(bb.start,bb.end);ah(ba,aL);ac=aO(bb.start,bb.end);Y=aI();aE(aL,ac);if(aq.swipeStatus||aq.pinchStatus){a9=L(bd,W)}if(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave){var a7=true;if(aq.triggerOnTouchLeave){var bc=aU(this);a7=B(bb.end,bc)}if(!aq.triggerOnTouchEnd&&a7){W=ay(j)}else{if(aq.triggerOnTouchLeave&&!a7){W=ay(g)}}if(W==p||W==g){L(bd,W)}}}else{W=p;L(bd,W)}if(a9===false){W=p;L(bd,W)}}function I(a7){var a8=a7.originalEvent;if(a){if(a8.touches.length>0){C();return true}}if(ai()){T=aa}a7.preventDefault();aY=ao();Y=aI();if(a6()){W=p;L(a8,W)}else{if(aq.triggerOnTouchEnd||(aq.triggerOnTouchEnd==false&&W===j)){W=g;L(a8,W)}else{if(!aq.triggerOnTouchEnd&&a2()){W=g;aB(a8,W,x)}else{if(W===j){W=p;L(a8,W)}}}}ak(false)}function a5(){T=0;aY=0;Q=0;aX=0;aV=0;D=1;O();ak(false)}function H(a7){var a8=a7.originalEvent;if(aq.triggerOnTouchLeave){W=ay(g);L(a8,W)}}function aG(){aN.unbind(G,aJ);aN.unbind(az,a5);aN.unbind(au,aZ);aN.unbind(R,I);if(P){aN.unbind(P,H)}ak(false)}function ay(bb){var ba=bb;var a9=aw();var a8=aj();var a7=a6();if(!a9||a7){ba=p}else{if(a8&&bb==j&&(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave)){ba=g}else{if(!a8&&bb==g&&aq.triggerOnTouchLeave){ba=p}}}return ba}function L(a9,a7){var a8=undefined;if(F()||S()){a8=aB(a9,a7,k)}else{if((M()||aT())&&a8!==false){a8=aB(a9,a7,s)}}if(aC()&&a8!==false){a8=aB(a9,a7,i)}else{if(al()&&a8!==false){a8=aB(a9,a7,b)}else{if(ad()&&a8!==false){a8=aB(a9,a7,x)}}}if(a7===p){a5(a9)}if(a7===g){if(a){if(a9.touches.length==0){a5(a9)}}else{a5(a9)}}return a8}function aB(ba,a7,a9){var a8=undefined;if(a9==k){aN.trigger("swipeStatus",[a7,aL||null,ac||0,Y||0,T]);if(aq.swipeStatus){a8=aq.swipeStatus.call(aN,ba,a7,aL||null,ac||0,Y||0,T);if(a8===false){return false}}if(a7==g&&aR()){aN.trigger("swipe",[aL,ac,Y,T]);if(aq.swipe){a8=aq.swipe.call(aN,ba,aL,ac,Y,T);if(a8===false){return false}}switch(aL){case o:aN.trigger("swipeLeft",[aL,ac,Y,T]);if(aq.swipeLeft){a8=aq.swipeLeft.call(aN,ba,aL,ac,Y,T)}break;case n:aN.trigger("swipeRight",[aL,ac,Y,T]);if(aq.swipeRight){a8=aq.swipeRight.call(aN,ba,aL,ac,Y,T)}break;case d:aN.trigger("swipeUp",[aL,ac,Y,T]);if(aq.swipeUp){a8=aq.swipeUp.call(aN,ba,aL,ac,Y,T)}break;case v:aN.trigger("swipeDown",[aL,ac,Y,T]);if(aq.swipeDown){a8=aq.swipeDown.call(aN,ba,aL,ac,Y,T)}break}}}if(a9==s){aN.trigger("pinchStatus",[a7,aF||null,am||0,Y||0,T,D]);if(aq.pinchStatus){a8=aq.pinchStatus.call(aN,ba,a7,aF||null,am||0,Y||0,T,D);if(a8===false){return false}}if(a7==g&&a4()){switch(aF){case c:aN.trigger("pinchIn",[aF||null,am||0,Y||0,T,D]);if(aq.pinchIn){a8=aq.pinchIn.call(aN,ba,aF||null,am||0,Y||0,T,D)}break;case w:aN.trigger("pinchOut",[aF||null,am||0,Y||0,T,D]);if(aq.pinchOut){a8=aq.pinchOut.call(aN,ba,aF||null,am||0,Y||0,T,D)}break}}}if(a9==x){if(a7===p||a7===g){clearTimeout(aS);if(V()&&!E()){K=ao();aS=setTimeout(e.proxy(function(){K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}},this),aq.doubleTapThreshold)}else{K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}}}}else{if(a9==i){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("doubletap",[ba.target]);if(aq.doubleTap){a8=aq.doubleTap.call(aN,ba,ba.target)}}}else{if(a9==b){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("longtap",[ba.target]);if(aq.longTap){a8=aq.longTap.call(aN,ba,ba.target)}}}}}return a8}function aj(){var a7=true;if(aq.threshold!==null){a7=ac>=aq.threshold}return a7}function a6(){var a7=false;if(aq.cancelThreshold!==null&&aL!==null){a7=(aP(aL)-ac)>=aq.cancelThreshold}return a7}function ab(){if(aq.pinchThreshold!==null){return am>=aq.pinchThreshold}return true}function aw(){var a7;if(aq.maxTimeThreshold){if(Y>=aq.maxTimeThreshold){a7=false}else{a7=true}}else{a7=true}return a7}function ah(a7,a8){if(aq.allowPageScroll===l||aT()){a7.preventDefault()}else{var a9=aq.allowPageScroll===r;switch(a8){case o:if((aq.swipeLeft&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case n:if((aq.swipeRight&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case d:if((aq.swipeUp&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break;case v:if((aq.swipeDown&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break}}}function a4(){var a8=aK();var a7=U();var a9=ab();return a8&&a7&&a9}function aT(){return !!(aq.pinchStatus||aq.pinchIn||aq.pinchOut)}function M(){return !!(a4()&&aT())}function aR(){var ba=aw();var bc=aj();var a9=aK();var a7=U();var a8=a6();var bb=!a8&&a7&&a9&&bc&&ba;return bb}function S(){return !!(aq.swipe||aq.swipeStatus||aq.swipeLeft||aq.swipeRight||aq.swipeUp||aq.swipeDown)}function F(){return !!(aR()&&S())}function aK(){return((T===aq.fingers||aq.fingers===h)||!a)}function U(){return aM[0].end.x!==0}function a2(){return !!(aq.tap)}function V(){return !!(aq.doubleTap)}function aQ(){return !!(aq.longTap)}function N(){if(K==null){return false}var a7=ao();return(V()&&((a7-K)<=aq.doubleTapThreshold))}function E(){return N()}function at(){return((T===1||!a)&&(isNaN(ac)||ac===0))}function aW(){return((Y>aq.longTapThreshold)&&(ac=0)){return o}else{if((a9<=360)&&(a9>=315)){return o}else{if((a9>=135)&&(a9<=225)){return n}else{if((a9>45)&&(a9<135)){return v}else{return d}}}}}function ao(){var a7=new Date();return a7.getTime()}function aU(a7){a7=e(a7);var a9=a7.offset();var a8={left:a9.left,right:a9.left+a7.outerWidth(),top:a9.top,bottom:a9.top+a7.outerHeight()};return a8}function B(a7,a8){return(a7.x>a8.left&&a7.xa8.top&&a7.yp?++p:0:"prev"===i&&(p=p>0?--p:o-1);var e=t.eq(p);s.css("opacity",0),e.css("opacity",1),s.hasClass("slideimgActif")&&(s.removeClass("slideimg").removeClass("slideimgActif"),s.removeClass("slideimg").addClass("slideimgpasActif")),e.hasClass("slideimgpasActif")&&(e.removeClass("slideimg").removeClass("slideimgpasActif"),e.removeClass("slideimg").addClass("slideimgActif"))}function a(){m=!0,clearTimeout(c),c=setTimeout(function(){e("next"),a()},v)}function n(){m=!1,clearTimeout(c)}var c,l=$("#cbp-bislideshow"),t=l.children("li"),o=t.length,d=$("#cbp-bicontrols"),r={$navPrev:d.find("span.cbp-biprev"),$navNext:d.find("span.cbp-binext"),$navPlayPause:d.find("span.cbp-bipause")},p=0,m=!0,v=8500;return{init:i}}();(function(c,q){var m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";c.fn.imagesLoaded=function(f){function n(){var b=c(j),a=c(h);d&&(h.length?d.reject(e,b,a):d.resolve(e));c.isFunction(f)&&f.call(g,e,b,a)}function p(b){k(b.target,"error"===b.type)}function k(b,a){b.src===m||-1!==c.inArray(b,l)||(l.push(b),a?h.push(b):j.push(b),c.data(b,"imagesLoaded",{isBroken:a,src:b.src}),r&&d.notifyWith(c(b),[a,e,c(j),c(h)]),e.length===l.length&&(setTimeout(n),e.unbind(".imagesLoaded", p)))}var g=this,d=c.isFunction(c.Deferred)?c.Deferred():0,r=c.isFunction(d.notify),e=g.find("img").add(g.filter("img")),l=[],j=[],h=[];c.isPlainObject(f)&&c.each(f,function(b,a){if("callback"===b)f=a;else if(d)d[b](a)});e.length?e.bind("load.imagesLoaded error.imagesLoaded",p).each(function(b,a){var d=a.src,e=c.data(a,"imagesLoaded");if(e&&e.src===d)k(a,e.isBroken);else if(a.complete&&a.naturalWidth!==q)k(a,0===a.naturalWidth||0===a.naturalHeight);else if(a.readyState||a.complete)a.src=m,a.src=d}): n();return d?d.promise(g):g}})(jQuery);/*LiquidSlider*/ /* * Liquid Slider 2.3.5 * Copyright 2012 Kevin Batdorf * http://liquidslider.com * MIT license */ "function"!=typeof Object.create&&(Object.create=function(a){"use strict";function b(){}return b.prototype=a,new b}),function(a,b,c,d){"use strict";a.fn.liquidSlider=function(b){return this.each(function(){var c=Object.create(LiquidSlider);c.init(b,this),a.data(this,"liquidSlider",c)})},a.fn.liquidSlider.options={autoHeight:!0,minHeight:0,heightEaseDuration:1500,heightEaseFunction:"easeInOutExpo",slideEaseDuration:1500,slideEaseFunction:"easeInOutExpo",slideEaseFunctionFallback:"swing",animateIn:"bounceInRight",animateOut:"bounceOutRight",continuous:!0,fadeInDuration:500,fadeOutDuration:500,autoSlide:!1,autoSlideDirection:"right",autoSlideInterval:6e3,forceAutoSlide:!1,pauseOnHover:!1,dynamicArrows:!0,dynamicArrowsGraphical:!0,dynamicArrowLeftText:"« left",dynamicArrowRightText:"right »",hideSideArrows:!1,hideSideArrowsDuration:750,hoverArrows:!0,hoverArrowDuration:250,dynamicTabs:!0,dynamicTabsHtml:!0,includeTitle:!0,panelTitleSelector:".title",dynamicTabsAlign:"left",dynamicTabsPosition:"top",navElementTag:"div",firstPanelToLoad:1,hashLinking:!1,hashTitleSelector:".title",keyboardNavigation:!1,leftKey:39,rightKey:37,panelKeys:{1:49,2:50,3:51,4:52},responsive:!0,mobileNavigation:!0,mobileNavDefaultText:"Menu",mobileUIThreshold:0,hideArrowsWhenMobile:!0,hideArrowsThreshold:0,useCSSMaxWidth:3e3,preload:function(){var a=this;jQuery(b).bind("load",function(){a.finalize()})},onload:function(){},pretransition:function(){this.transition()},callback:function(){},preloader:!1,swipe:!0,swipeArgs:d}}(jQuery,window,document);var LiquidSlider={};LiquidSlider.init=function(a,b){var c=this;c.elem=b,c.$elem=jQuery(b),jQuery(".no-js").removeClass("no-js"),c.sliderId="#"+c.$elem.attr("id"),c.$sliderId=jQuery(c.sliderId),c.options=jQuery.extend({},jQuery.fn.liquidSlider.options,a),c.pSign=c.options.responsive?"%":"px",c.determineAnimationType(),c.options.responsive||(c.options.mobileNavigation=!1,c.options.hideArrowsWhenMobile=!1),"animate.css"===c.options.slideEaseFunction&&(c.useCSS?(c.options.continuous=!1,c.animateCSS=!0):c.options.slideEaseFunction=c.options.slideEaseFunctionFallback),c.build(),c.events(),!c.options.responsive&&c.options.dynamicArrows&&c.$sliderWrap.width(c.$sliderId.outerWidth(!0)+c.leftArrow.outerWidth(!0)+c.rightArrow.outerWidth(!0)),c.loaded=!0,c.options.preload.call(c)},LiquidSlider.build=function(){var a,b=this;"ls-wrapper"!==b.$sliderId.parent().attr("class")&&b.$sliderId.wrap('
'),b.$sliderWrap=jQuery(b.sliderId+"-wrapper"),b.options.preloader&&b.addPreloader(),jQuery(b.sliderId).children().addClass(b.$elem.attr("id")+"-panel panel"),b.panelClass=b.sliderId+" ."+b.$elem.attr("id")+"-panel:not(.clone)",b.$panelClass=jQuery(b.panelClass),b.$panelClass.wrapAll('
'),b.$panelClass.wrapInner('
'),b.panelContainer=b.$panelClass.parent(),b.$panelContainer=b.panelContainer,b.options.hashLinking&&b.buildHashTags(),"fade"===b.options.slideEaseFunction&&(b.$panelClass.addClass("fade"),b.options.continuous=!1,b.fade=!0),b.options.dynamicTabs?b.addNavigation():b.options.mobileNavigation=!1,b.options.dynamicArrows?b.addArrows():(b.options.hoverArrows=!1,b.options.hideSideArrows=!1,b.options.hideArrowsWhenMobile=!1),a=b.$leftArrow&&"absolute"===b.$leftArrow.css("position")?0:1,b.totalSliderWidth=b.$sliderId.outerWidth(!0)+jQuery(b.$leftArrow).outerWidth(!0)*a+jQuery(b.$rightArrow).outerWidth(!0)*a,jQuery(b.$sliderWrap).css("width",b.totalSliderWidth),b.options.dynamicTabs&&b.alignNavigation(),b.options.hideSideArrows&&(b.options.continuous=!1),b.options.continuous&&(b.$panelContainer.prepend(b.$panelContainer.children().last().clone().addClass("clone")),b.$panelContainer.append(b.$panelContainer.children().eq(1).clone().addClass("clone")));var c=b.options.continuous?2:0;b.panelCount=jQuery(b.panelClass).length,b.panelCountTotal=b.fade?1:b.panelCount+c,b.panelWidth=jQuery(b.panelClass).outerWidth(),b.totalWidth=b.panelCountTotal*b.panelWidth,jQuery(b.sliderId+" .panel-container").css("width",b.totalWidth),b.slideDistance=b.options.responsive?100:jQuery(b.sliderId).outerWidth(),b.useCSS&&b.options.responsive&&(b.totalWidth=100*b.panelCountTotal,b.slideDistance=100/b.panelCountTotal),b.options.responsive&&b.makeResponsive(),b.prepareTransition(b.getFirstPanel(),!0),b.updateClass()},LiquidSlider.determineAnimationType=function(){var a=this,b="animation",c="",d="Webkit Moz O ms Khtml".split(" "),e="",f=0;if(a.useCSS=!1,a.elem.style.animationName&&(a.useCSS=!0),a.useCSS===!1)for(f=0;fa.options.useCSSMaxWidth&&(a.useCSS=!1)},LiquidSlider.configureCSSTransitions=function(a,b){var c,d,e,f,g=this;g.easing={easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175,.885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"},e=g.easing[g.options.slideEaseFunction]||g.options.slideEaseFunction,f=g.easing[g.options.heightEaseFunction]||g.options.heightEaseFunction,g.useCSS&&(c="all "+(a||g.options.slideEaseDuration)+"ms "+e,d="all "+(b||g.options.heightEaseDuration)+"ms "+f,jQuery(g.panelContainer).css({"-webkit-transition":c,"-moz-transition":c,"-ms-transition":c,"-o-transition":c,transition:c}),g.options.autoHeight&&g.$sliderId.css({"-webkit-transition":d,"-moz-transition":d,"-ms-transition":d,"-o-transition":d,transition:d}))},LiquidSlider.transitionFade=function(){var a=this;jQuery(a.panelClass).eq(a.nextPanel).fadeTo(a.options.fadeInDuration,1).css("z-index",1),jQuery(a.panelClass).eq(a.prevPanel).fadeTo(a.options.fadeOutDuration,0).css("z-index",0),a.callback(a.options.callback,!0)},LiquidSlider.hover=function(){var a=this;a.$sliderWrap.hover(function(){a.options.hoverArrows&&a.hideShowArrows(a.options.fadeInDuration,!0,!0,!1),a.options.pauseOnHover&&clearTimeout(a.autoSlideTimeout)},function(){a.options.hoverArrows&&a.hideShowArrows(a.options.fadeOutnDuration,!0,!1,!0),a.options.pauseOnHover&&a.options.autoSlide&&a.startAutoSlide(!0)})},LiquidSlider.events=function(){var a=this;a.options.dynamicArrows&&a.registerArrows(),a.options.dynamicTabs&&a.registerNav(),a.options.swipe&&a.registerTouch(),a.options.keyboardNavigation&&a.registerKeyboard(),a.$sliderWrap.find("*").on("click",function(){a.options.forceAutoSlide?a.startAutoSlide(!0):a.options.autoSlide&&a.stopAutoSlide()}),a.hover()},LiquidSlider.setNextPanel=function(a){var b=this;a!==b.nextPanel&&(b.prevPanel=b.nextPanel,b.loaded&&("number"==typeof a?b.nextPanel=a:(b.nextPanel+=~~("right"===a)||-1,b.options.continuous||(b.nextPanel=b.nextPanel<0?b.panelCount-1:b.nextPanel%b.panelCount)),b.fade||b.animateCSS?b.prepareTransition(b.nextPanel):b.verifyPanel()))},LiquidSlider.getFirstPanel=function(){var a,b=this;return b.options.hashLinking&&(a=jQuery.inArray(b.convertRegex(window.location.hash),b.hashLinks),-1===a&&(a=0)),a?a:b.options.firstPanelToLoad-1},LiquidSlider.getFromPanel=function(a,b){var c=this;return c.convertRegex(c.$panelClass.find(a).eq(b).text())},LiquidSlider.convertRegex=function(a){return jQuery.trim(a).replace(/[^\w -]+/g,"").replace(/ +/g,"-").toLowerCase()},LiquidSlider.updateClass=function(a){var b=this;b.options.dynamicTabs&&jQuery(b.$sliderWrap).find("> .ls-nav .tab"+b.sanitizeNumber(b.nextPanel)).addClass("current").siblings().removeClass("current"),b.$panelClass.eq(b.sanitizeNumber(b.nextPanel)-1).addClass("currentPanel").siblings().removeClass("currentPanel"),b.$clones=jQuery(b.sliderId+" .clone"),!b.options.continuous||-1!==b.nextPanel&&b.nextPanel!==b.panelCount?b.$clones.removeClass("currentPanel"):b.$clones.addClass("currentPanel"),a&&($(".ls-current").removeClass("ls-current"),a.addClass("ls-current"))},LiquidSlider.sanitizeNumber=function(a){var b=this;switch(!0){case a>=b.panelCount:return 1;case-1>=a:return b.panelCount;default:return a+1}},LiquidSlider.finalize=function(){var a=this,b=a.options.autoHeight?a.getHeight():a.getHeighestPanel(a.nextPanel);a.options.autoHeight&&a.adjustHeight(!0,b),a.options.autoSlide&&a.autoSlide(),a.options.preloader&&a.removePreloader(),a.onload()},LiquidSlider.callback=function(a,b){var c=this;a&&c.loaded&&(c.useCSS&&"undefined"!=typeof b?jQuery(".panel-container").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){a.call(c)}):setTimeout(function(){a.call(c)},c.options.slideEaseDuration+50))},LiquidSlider.onload=function(){var a=this;a.options.onload.call(a)},LiquidSlider.prepareTransition=function(a,b,c,d){var e=this;e.nextPanel=a||0,c||e.pretransition(e.options.pretransition),e.noAnimation=b,e.noPosttransition=d,e.loaded?e.options.pretransition.call(e):e.transition()},LiquidSlider.pretransition=function(){var a=this;a.options.hashLinking&&a.updateHashTags(),a.options.mobileNavigation&&a.dropdownSelect.val("tab"+(a.nextPanel+1)),a.options.hideSideArrows&&a.hideShowArrows(),a.updateClass()},LiquidSlider.getTransitionMargin=function(){var a=this;return-(a.nextPanel*a.slideDistance)-a.slideDistance*~~a.options.continuous},LiquidSlider.transition=function(){var a=this,b=a.getTransitionMargin();if(a.animateCSS&&a.loaded)return a.transitionOutAnimateCSS(),!1;if(b+a.pSign!==a.panelContainer.css("margin-left")||-100!==b)switch(a.options.autoHeight&&!a.animateCSS&&a.adjustHeight(!0,a.getHeight()),!0){case a.fade:a.transitionFade();break;case a.animateCSS:a.transitionInAnimateCSS(b);break;case a.useCSS:a.transitionCSS(b,a.noAnimation);break;default:a.transitionjQuery(b,a.noAnimation)}a.noPosttransition||a.callback(a.options.callback)},LiquidSlider.transitionOutAnimateCSS=function(){var a=this;jQuery(a.panelClass).removeClass(a.options.animateIn+" animated"),jQuery(a.panelClass).eq(a.prevPanel).addClass("animated "+a.options.animateOut),a.callback(a.transitionInAnimateCSS,void 0)},LiquidSlider.transitionInAnimateCSS=function(){var a=this;a.options.autoHeight&&a.adjustHeight(!1,a.getHeight()),a.transitionCSS(a.getTransitionMargin(),!a.loaded),jQuery(a.panelClass).removeClass(a.options.animateOut+" animated"),jQuery(a.panelClass).eq(a.nextPanel).addClass("animated "+a.options.animateIn),a.callback(a.options.callback,void 0)},LiquidSlider.transitionCSS=function(a,b){var c=this;b&&c.configureCSSTransitions("0","0"),c.panelContainer.css({"-webkit-transform":"translate3d("+a+c.pSign+", 0, 0)","-moz-transform":"translate3d("+a+c.pSign+", 0, 0)","-ms-transform":"translate3d("+a+c.pSign+", 0, 0)","-o-transform":"translate3d("+a+c.pSign+", 0, 0)",transform:"translate3d("+a+c.pSign+", 0, 0)"}),b?c.callback(function(){c.configureCSSTransitions()}):c.configureCSSTransitions()},LiquidSlider.transitionjQuery=function(a,b){var c=this;b?c.panelContainer.css("margin-left",a+c.pSign):c.panelContainer.animate({"margin-left":a+c.pSign},{easing:jQuery.easing.hasOwnProperty(c.options.slideEaseFunction)?c.options.slideEaseFunction:c.options.slideEaseFunctionFallback,duration:c.options.slideEaseDuration,queue:!1})},LiquidSlider.getHeight=function(a){var b=this;return a=a||b.$panelClass.eq(b.sanitizeNumber(b.nextPanel)-1).outerHeight(!0),a=ac?a:c}),b.options.autoHeight?c:void 0},LiquidSlider.verifyPanel=function(){var a=this,b=!1;if(a.options.continuous)switch(!0){case a.nextPanel>a.panelCount:a.nextPanel=a.panelCount,a.setNextPanel(a.panelCount);break;case a.nextPanel<-1:a.nextPanel=-1,a.setNextPanel(-1);break;case b||a.nextPanel===a.panelCount||-1===a.nextPanel:a.prepareTransition(a.nextPanel),a.updateClass(),clearTimeout(c);var c=setTimeout(function(){a.nextPanel===a.panelCount?a.prepareTransition(0,!0,!0,!0):-1===a.nextPanel&&a.prepareTransition(a.panelCount-1,!0,!0,!0)},a.options.slideEaseDuration+50);break;default:b=!0,a.prepareTransition(a.nextPanel)}else a.nextPanel===a.panelCount?a.nextPanel=0:-1===a.nextPanel&&(a.nextPanel=a.panelCount-1),a.prepareTransition(a.nextPanel)},LiquidSlider.addNavigation=function(a){var b=this,c="<"+b.options.navElementTag+' class="ls-nav">
    ";if("bottom"===b.options.dynamicTabsPosition?b.$sliderId.after(c):b.$sliderId.before(c),b.options.mobileNavigation){var d=b.options.mobileNavDefaultText?'":null,e='
    ";b.navigation=jQuery(b.sliderId+"-nav-ul").before(e),b.dropdown=jQuery(b.sliderId+"-wrapper .ls-select-box"),b.dropdownSelect=jQuery(b.sliderId+"-nav-select"),jQuery.each(b.$elem.find(b.options.panelTitleSelector),function(a){jQuery(b.$sliderWrap).find(".ls-select-box select").append('")})}jQuery.each(b.$elem.find(b.options.panelTitleSelector),function(c){jQuery(b.$sliderWrap).find(".ls-nav ul").append('
  • '+b.getNavInsides(this)+"
  • "),b.options.includeTitle||jQuery(this).remove()})},LiquidSlider.getNavInsides=function(a){return this.options.dynamicTabsHtml?jQuery(a).html():jQuery(a).text()},LiquidSlider.alignNavigation=function(){var a=this,b=a.options.dynamicArrowsGraphical?"-arrow":"";"center"!==a.options.dynamicTabsAlign&&(a.options.responsive||jQuery(a.$sliderWrap).find(".ls-nav ul").css("margin-"+a.options.dynamicTabsAlign,jQuery(a.$sliderWrap).find(".ls-nav-"+a.options.dynamicTabsAlign+b).outerWidth(!0)+parseInt(a.$sliderId.css("margin-"+a.options.dynamicTabsAlign),10)),jQuery(a.$sliderWrap).find(".ls-nav ul").css("float",a.options.dynamicTabsAlign)),a.totalNavWidth=jQuery(a.$sliderWrap).find(".ls-nav ul").outerWidth(!0),"center"===a.options.dynamicTabsAlign&&(a.totalNavWidth=0,jQuery(a.$sliderWrap).find(".ls-nav li a").each(function(){a.totalNavWidth+=jQuery(this).outerWidth(!0)}),jQuery(a.$sliderWrap).find(".ls-nav ul").css("width",a.totalNavWidth+1))},LiquidSlider.registerNav=function(){var a=this;a.$sliderWrap.find("[class^=ls-nav] li").on("click",function(b){return b.preventDefault(),a.setNextPanel(parseInt(jQuery(this).attr("class").split("tab")[1],10)-1),!1})},LiquidSlider.addArrows=function(a){var b=this,c=b.options.dynamicArrowsGraphical?"-arrow ":" ";b.$sliderWrap.addClass("arrows"),b.options.dynamicArrowsGraphical&&(b.options.dynamicArrowLeftText="",b.options.dynamicArrowRightText=""),b.$sliderId.before('"),b.$sliderId.after('"),b.leftArrow=jQuery(b.sliderId+"-wrapper [class^=ls-nav-left]").css("visibility","hidden").addClass("ls-hidden"),b.rightArrow=jQuery(b.sliderId+"-wrapper [class^=ls-nav-right]").css("visibility","hidden").addClass("ls-hidden"),b.options.hoverArrows||b.hideShowArrows(void 0,!0,!0,!1)},LiquidSlider.hideShowArrows=function(a,b,c,d){var e=this,f="undefined"!=typeof a?a:e.options.fadeOutDuration,g="undefined"!=typeof a?a:e.options.fadeInDuration,h=b?"visible":"hidden";c||!d&&1!==e.sanitizeNumber(e.nextPanel)?(c||e.leftArrow.hasClass("ls-hidden"))&&e.leftArrow.stop().css("visibility","visible").fadeTo(g,1).removeClass("ls-hidden"):e.leftArrow.stop().fadeTo(f,0,function(){jQuery(this).css("visibility",h).addClass("ls-hidden")}),c||!d&&e.sanitizeNumber(e.nextPanel)!==e.panelCount?(c||e.rightArrow.hasClass("ls-hidden"))&&e.rightArrow.stop().css("visibility","visible").fadeTo(g,1).removeClass("ls-hidden"):e.rightArrow.stop().fadeTo(f,0,function(){jQuery(this).css("visibility",h).addClass("ls-hidden")})},LiquidSlider.registerArrows=function(){var a=this;jQuery(a.$sliderWrap.find("[class^=ls-nav-]")).on("click",function(b){b.preventDefault(),a.setNextPanel(jQuery(this).attr("class").split(" ")[0].split("-")[2])})},LiquidSlider.adjustHeight=function(a,b,c,d){var e=this;return a||e.useCSS?(a&&e.configureCSSTransitions("0","0"),e.$sliderId.height(b),void(a&&e.configureCSSTransitions())):void e.$sliderId.animate({height:b+"px"},{easing:jQuery.easing.hasOwnProperty(c||e.options.heightEaseFunction)?c||e.options.heightEaseFunction:e.options.slideEaseFunctionFallback,duration:d||e.options.heightEaseDuration,queue:!1})},LiquidSlider.autoSlide=function(){var a=this;a.options.autoSlideIntervala.options.heightEaseDuration?a.options.slideEaseDuration:a.options.heightEaseDuration),a.autoSlideTimeout=document.hasFocus()?setTimeout(function(){a.setNextPanel(a.options.autoSlideDirection),a.autoSlide()},a.options.autoSlideInterval):void 0,jQuery(window).on("focus",function(){a.startAutoSlide(!0)}),jQuery(window).on("blur",function(){a.stopAutoSlide()})},LiquidSlider.stopAutoSlide=function(){var a=this;a.options.autoSlide=!1,clearTimeout(a.autoSlideTimeout)},LiquidSlider.startAutoSlide=function(a){var b=this;b.options.autoSlide=!0,a||b.setNextPanel(b.options.autoSlideDirection),b.autoSlide(clearTimeout(b.autoSlideTimeout))},LiquidSlider.buildHashTags=function(){var a=this;a.hashLinks=[],jQuery(a.panelClass+" "+a.options.hashTitleSelector).each(function(){a.hashLinks.push(a.convertRegex($(this).text()))})},LiquidSlider.updateHashTags=function(){var a=this;window.location.hash=a.hashLinks[a.sanitizeNumber(a.nextPanel)-1]},LiquidSlider.registerKeyboard=function(){var a=this;jQuery(document).keydown(function(b){var c=b.keyCode||b.which;"textarea"!==b.target.type&&"textbox"!==b.target.type&&(a.options.forceAutoSlide||jQuery(this).trigger("click"),c===a.options.leftKey&&a.setNextPanel("right"),c===a.options.rightKey&&a.setNextPanel("left"),jQuery.each(a.options.panelKeys,function(b,d){c===d&&a.setNextPanel(b-1)}))})},LiquidSlider.addPreloader=function(){var a=this;jQuery(a.sliderId+"-wrapper").append('
    ')},LiquidSlider.removePreloader=function(){var a=this;jQuery(a.sliderId+"-wrapper .ls-preloader").fadeTo("slow",0,function(){jQuery(this).remove()})},LiquidSlider.makeResponsive=function(){var a=this;jQuery(a.sliderId+"-wrapper").addClass("ls-responsive").css({"max-width":jQuery(a.sliderId+" .panel:first-child").width(),width:"100%"}),jQuery(a.sliderId+" .panel-container").css("width",100*a.panelCountTotal+a.pSign),jQuery(a.sliderId+" .panel").css("width",100/a.panelCountTotal+a.pSign),jQuery(a.sliderId+" .panel").css("width",jQuery(a.sliderId+" .panel").outerWidth(!0)),a.options.hideArrowsWhenMobile&&(a.leftWrapperPadding=jQuery(a.sliderId+"-wrapper").css("padding-left"),a.rightWrapperPadding=a.$sliderWrap.css("padding-right")),a.responsiveEvents(),jQuery(window).bind("resize orientationchange",function(){a.responsiveEvents(),clearTimeout(a.resizingTimeout),a.resizingTimeout=setTimeout(function(){var b=a.options.autoHeight?a.getHeight():a.getHeighestPanel(a.nextPanel);a.adjustHeight(!1,b),jQuery(a.sliderId+" .panel").css("width",jQuery(a.sliderId+" .panel").outerWidth(!0))},500)})},LiquidSlider.responsiveEvents=function(){var a=this,b=a.options.hideArrowsThreshold||a.options.mobileUIThreshold||a.totalNavWidth+10;a.$sliderId.outerWidth()').appendTo(this.$slider);this.$slidesMask=$('
    ').appendTo(this.$slidesContainer);this.$slides=this.$slider.find('.sp-slides').appendTo(this.$slidesMask);this.$slider.find('.sp-slide').appendTo(this.$slides);var modules=$.SliderPro.modules;if(typeof modules!=='undefined'){for(var i=0;i=b.size?1:-1;});} this.selectedSlideIndex=this.settings.startSlide;if(this.settings.shuffle===true){var slides=this.$slides.find('.sp-slide'),shuffledSlides=[];slides.each(function(index){that.shuffledIndexes.push(index);});for(var k=this.shuffledIndexes.length-1;k>0;k--){var l=Math.floor(Math.random()*(k+1)),temp=this.shuffledIndexes[k];this.shuffledIndexes[k]=this.shuffledIndexes[l];this.shuffledIndexes[l]=temp;} $.each(this.shuffledIndexes,function(index,element){shuffledSlides.push(slides[element]);});this.$slides.empty().append(shuffledSlides);} $(window).on('resize.'+this.uniqueId+'.'+NS,function(){var newWindowWidth=$(window).width(),newWindowHeight=$(window).height();if(that.allowResize===false||(that.previousWindowWidth===newWindowWidth&&that.previousWindowHeight===newWindowHeight)){return;} that.previousWindowWidth=newWindowWidth;that.previousWindowHeight=newWindowHeight;that.allowResize=false;setTimeout(function(){that.resize();that.allowResize=true;},200);});this.on('update.'+NS,function(){that.previousSlideWidth=0;that.resize();});this.update();this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).addClass('sp-selected');this.trigger({type:'init'});if($.isFunction(this.settings.init)){this.settings.init.call(this,{type:'init'});}},update:function(){var that=this;if(this.settings.orientation==='horizontal'){this.$slider.removeClass('sp-vertical').addClass('sp-horizontal');this.$slider.css({'height':'','max-height':''});this.$slides.find('.sp-slide').css('top','');}else if(this.settings.orientation==='vertical'){this.$slider.removeClass('sp-horizontal').addClass('sp-vertical');this.$slides.find('.sp-slide').css('left','');} this.positionProperty=this.settings.orientation==='horizontal'?'left':'top';this.gotoSlide=this.originalGotoSlide;for(var i=this.slides.length-1;i>=0;i--){if(this.$slider.find('.sp-slide[data-index="'+i+'"]').length===0){var slide=this.slides[i];slide.destroy();this.slides.splice(i,1);}} this.slidesOrder.length=0;this.$slider.find('.sp-slide').each(function(index){var $slide=$(this);if(typeof $slide.attr('data-init')==='undefined'){that._createSlide(index,$slide);}else{that.slides[index].setIndex(index);} that.slidesOrder.push(index);});this.middleSlidePosition=parseInt((that.slidesOrder.length-1)/2,10);if(this.settings.loop===true){this._updateSlidesOrder();} this.trigger({type:'update'});if($.isFunction(this.settings.update)){this.settings.update.call(this,{type:'update'});}},_createSlide:function(index,element){var that=this,slide=new SliderProSlide($(element),index,this.settings);this.slides.splice(index,0,slide);},_updateSlidesOrder:function(){var slicedItems,i,distance=$.inArray(this.selectedSlideIndex,this.slidesOrder)-this.middleSlidePosition;if(distance<0){slicedItems=this.slidesOrder.splice(distance,Math.abs(distance));for(i=slicedItems.length-1;i>=0;i--){this.slidesOrder.unshift(slicedItems[i]);}}else if(distance>0){slicedItems=this.slidesOrder.splice(0,distance);for(i=0;i<=slicedItems.length-1;i++){this.slidesOrder.push(slicedItems[i]);}}},_updateSlidesPosition:function(){var selectedSlidePixelPosition=parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10);for(var slideIndex=0;slideIndex0){if($(window).width()>this.breakpoints[this.breakpoints.length-1].size&&this.currentBreakpoint!==-1){this.currentBreakpoint=-1;this._setProperties(this.originalSettings,false);}else{for(var i=0,n=this.breakpoints.length;ithis.$slider.parent().width()||this.$slider.width()!==this.$slidesMask.width()){this.previousSlideWidth=this.slideWidth;this.previousSlideHeight=this.slideHeight;}else{return;} this.slideSize=this.settings.orientation==='horizontal'?this.slideWidth:this.slideHeight;this.visibleSlidesSize=this.slideSize;this.visibleOffset=0;$.each(this.slides,function(index,element){element.setSize(that.slideWidth,that.slideHeight);});this.$slidesMask.css({'width':this.slideWidth,'height':this.slideHeight});if(this.settings.autoHeight===true){setTimeout(function(){that._resizeHeight();},1);}else{this.$slidesMask.css(this.vendorPrefix+'transition','');} if(this.settings.visibleSize!=='auto'){if(this.settings.orientation==='horizontal'){if(this.settings.forceSize==='fullWidth'||this.settings.forceSize==='fullWindow'){this.$slider.css('margin',0);this.$slider.css({'width':$(window).width(),'max-width':'','marginLeft':-this.$slider.offset().left});}else{this.$slider.css({'width':this.settings.visibleSize,'max-width':'100%','marginLeft':0});} this.$slidesMask.css('width',this.$slider.width());this.visibleSlidesSize=this.$slidesMask.width();this.visibleOffset=Math.round((this.$slider.width()-this.slideWidth)/2);}else{if(this.settings.forceSize==='fullWindow'){this.$slider.css({'height':$(window).height(),'max-height':''});}else{this.$slider.css({'height':this.settings.visibleSize,'max-height':'100%'});} this.$slidesMask.css('height',this.$slider.height());this.visibleSlidesSize=this.$slidesMask.height();this.visibleOffset=Math.round((this.$slider.height()-this.slideHeight)/2);}} this._resetSlidesPosition();this.trigger({type:'sliderResize'});if($.isFunction(this.settings.sliderResize)){this.settings.sliderResize.call(this,{type:'sliderResize'});}},_resizeHeight:function(){var that=this,selectedSlide=this.getSlideAt(this.selectedSlideIndex),size=selectedSlide.getSize();selectedSlide.off('imagesLoaded.'+NS);selectedSlide.on('imagesLoaded.'+NS,function(event){if(event.index===that.selectedSlideIndex){var size=selectedSlide.getSize();that._resizeHeightTo(size.height);}});if(size!=='loading'){this._resizeHeightTo(size.height);}},gotoSlide:function(index){if(index===this.selectedSlideIndex||typeof this.slides[index]==='undefined'){return;} var that=this;this.previousSlideIndex=this.selectedSlideIndex;this.selectedSlideIndex=index;this.$slides.find('.sp-selected').removeClass('sp-selected');this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).addClass('sp-selected');if(this.settings.loop===true){this._updateSlidesOrder();this._updateSlidesPosition();} if(this.settings.autoHeight===true){this._resizeHeight();} var newSlidesPosition=-parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10)+this.visibleOffset;this._moveTo(newSlidesPosition,false,function(){if(that.settings.loop===true){that._resetSlidesPosition();} that.trigger({type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex});if($.isFunction(that.settings.gotoSlideComplete)){that.settings.gotoSlideComplete.call(that,{type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex});}});this.trigger({type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex});if($.isFunction(this.settings.gotoSlide)){this.settings.gotoSlide.call(this,{type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex});}},nextSlide:function(){var index=(this.selectedSlideIndex>=this.getTotalSlides()-1)?0:(this.selectedSlideIndex+1);this.gotoSlide(index);},previousSlide:function(){var index=this.selectedSlideIndex<=0?(this.getTotalSlides()-1):(this.selectedSlideIndex-1);this.gotoSlide(index);},_moveTo:function(position,instant,callback){var that=this,css={};if(position===this.slidesPosition){return;} this.slidesPosition=position;if((this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d')&&this.isIE===false){var transition,left=this.settings.orientation==='horizontal'?position:0,top=this.settings.orientation==='horizontal'?0:position;if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)';}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)';} if(typeof instant!=='undefined'&&instant===true){transition='';}else{this.$slides.addClass('sp-animated');transition=this.vendorPrefix+'transform '+this.settings.slideAnimationDuration/1000+'s';this.$slides.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return;} that.$slides.off(that.transitionEvent);that.$slides.removeClass('sp-animated');if(typeof callback==='function'){callback();}});} css[this.vendorPrefix+'transition']=transition;this.$slides.css(css);}else{css['margin-'+this.positionProperty]=position;if(typeof instant!=='undefined'&&instant===true){this.$slides.css(css);}else{this.$slides.addClass('sp-animated');this.$slides.animate(css,this.settings.slideAnimationDuration,function(){that.$slides.removeClass('sp-animated');if(typeof callback==='function'){callback();}});}}},_stopMovement:function(){var css={};if((this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d')&&this.isIE===false){var matrixString=this.$slides.css(this.vendorPrefix+'transform'),matrixType=matrixString.indexOf('matrix3d')!==-1?'matrix3d':'matrix',matrixArray=matrixString.replace(matrixType,'').match(/-?[0-9\.]+/g),left=matrixType==='matrix3d'?parseInt(matrixArray[12],10):parseInt(matrixArray[4],10),top=matrixType==='matrix3d'?parseInt(matrixArray[13],10):parseInt(matrixArray[5],10);if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)';}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)';} css[this.vendorPrefix+'transition']='';this.$slides.css(css);this.$slides.off(this.transitionEvent);this.slidesPosition=this.settings.orientation==='horizontal'?left:top;}else{this.$slides.stop();this.slidesPosition=parseInt(this.$slides.css('margin-'+this.positionProperty),10);} this.$slides.removeClass('sp-animated');},_resizeHeightTo:function(height){var that=this,css={'height':height};if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){css[this.vendorPrefix+'transition']='height '+this.settings.heightAnimationDuration/1000+'s';this.$slidesMask.off(this.transitionEvent);this.$slidesMask.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return;} that.$slidesMask.off(that.transitionEvent);that.trigger({type:'resizeHeightComplete'});if($.isFunction(that.settings.resizeHeightComplete)){that.settings.resizeHeightComplete.call(that,{type:'resizeHeightComplete'});}});this.$slidesMask.css(css);}else{this.$slidesMask.stop().animate(css,this.settings.heightAnimationDuration,function(event){that.trigger({type:'resizeHeightComplete'});if($.isFunction(that.settings.resizeHeightComplete)){that.settings.resizeHeightComplete.call(that,{type:'resizeHeightComplete'});}});}},destroy:function(){this.$slider.removeData('sliderPro');this.$slider.removeAttr('style');this.$slides.removeAttr('style');this.off('update.'+NS);$(window).off('resize.'+this.uniqueId+'.'+NS);var modules=$.SliderPro.modules;if(typeof modules!=='undefined'){for(var i=0;i').prependTo(this.$slide);if(this.$mainImage.parent('a').length!==0){this.$mainImage.parent('a').appendTo(this.$imageContainer);}else{this.$mainImage.appendTo(this.$imageContainer);}} this.hasImages=this.$slide.find('img').length!==0?true:false;},setSize:function(width,height){var that=this;this.width=width;this.height=this.settings.autoHeight===true?'auto':height;this.$slide.css({'width':this.width,'height':this.height});if(this.hasMainImage===true){this.$imageContainer.css({'width':this.width,'height':this.height});if(typeof this.$mainImage.attr('data-src')==='undefined'){this.resizeMainImage();}}},getSize:function(){var that=this,size;if(this.hasImages===true&&this.areImagesLoaded===false&&typeof this.$slide.attr('data-loading')==='undefined'){this.$slide.attr('data-loading',true);var status=SliderProUtils.checkImagesComplete(this.$slide,function(){that.areImagesLoaded=true;that.$slide.removeAttr('data-loading');that.trigger({type:'imagesLoaded.'+NS,index:that.index});});if(status==='complete'){size=this.calculateSize();return{'width':size.width,'height':size.height};}else{return'loading';}}else{size=this.calculateSize();return{'width':size.width,'height':size.height};}},calculateSize:function(){var width=this.$slide.width(),height=this.$slide.height();this.$slide.children().each(function(index,element){var child=$(element);if(child.is(':hidden')===true){return;} var rect=element.getBoundingClientRect(),bottom=child.position().top+(rect.bottom-rect.top),right=child.position().left+(rect.right-rect.left);if(bottom>height){height=bottom;} if(right>width){width=right;}});return{width:width,height:height};},resizeMainImage:function(isNewImage){var that=this;if(isNewImage===true){this.isMainImageLoaded=false;this.isMainImageLoading=false;} if(this.isMainImageLoaded===false&&this.isMainImageLoading===false){this.isMainImageLoading=true;SliderProUtils.checkImagesComplete(this.$mainImage,function(){that.isMainImageLoaded=true;that.isMainImageLoading=false;that.resizeMainImage();that.trigger({type:'imagesLoaded.'+NS,index:that.index});});return;} if(this.settings.autoHeight===true){this.$mainImage.css({width:'100%',height:'auto','marginLeft':'','marginTop':''});}else{if(this.settings.imageScaleMode==='cover'){if(this.$mainImage.width()/this.$mainImage.height()<=this.width/this.height){this.$mainImage.css({width:'100%',height:'auto'});}else{this.$mainImage.css({width:'auto',height:'100%'});}}else if(this.settings.imageScaleMode==='contain'){if(this.$mainImage.width()/this.$mainImage.height()>=this.width/this.height){this.$mainImage.css({width:'100%',height:'auto'});}else{this.$mainImage.css({width:'auto',height:'100%'});}}else if(this.settings.imageScaleMode==='exact'){this.$mainImage.css({width:'100%',height:'100%'});} if(this.settings.centerImage===true){this.$mainImage.css({'marginLeft':(this.$imageContainer.width()-this.$mainImage.width())*0.5,'marginTop':(this.$imageContainer.height()-this.$mainImage.height())*0.5});}}},destroy:function(){this.$slide.removeAttr('style');this.$slide.removeAttr('data-init');this.$slide.removeAttr('data-index');this.$slide.removeAttr('data-loaded');if(this.hasMainImage===true){this.$slide.find('.sp-image').removeAttr('style').appendTo(this.$slide);this.$slide.find('.sp-image-container').remove();}},getIndex:function(){return this.index;},setIndex:function(index){this.index=index;this.$slide.attr('data-index',this.index);},on:function(type,callback){return this.$slide.on(type,callback);},off:function(type){return this.$slide.off(type);},trigger:function(data){return this.$slide.triggerHandler(data);}};window.SliderPro=SliderPro;window.SliderProSlide=SliderProSlide;$.fn.sliderPro=function(options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof $(this).data('sliderPro')==='undefined'){var newInstance=new SliderPro(this,options);$(this).data('sliderPro',newInstance);}else if(typeof options!=='undefined'){var currentInstance=$(this).data('sliderPro');if(typeof currentInstance[options]==='function'){currentInstance[options].apply(currentInstance,args);}else if(typeof currentInstance.settings[options]!=='undefined'){var obj={};obj[options]=args[0];currentInstance._setProperties(obj);}else if(typeof options==='object'){currentInstance._setProperties(options);}else{$.error(options+' does not exist in sliderPro.');}}});};var SliderProUtils={supportedAnimation:null,vendorPrefix:null,transitionEvent:null,isIE:null,getSupportedAnimation:function(){if(this.supportedAnimation!==null){return this.supportedAnimation;} var element=document.body||document.documentElement,elementStyle=element.style,isCSSTransitions=typeof elementStyle.transition!=='undefined'||typeof elementStyle.WebkitTransition!=='undefined'||typeof elementStyle.MozTransition!=='undefined'||typeof elementStyle.OTransition!=='undefined';if(isCSSTransitions===true){var div=document.createElement('div');if(typeof div.style.WebkitPerspective!=='undefined'||typeof div.style.perspective!=='undefined'){this.supportedAnimation='css-3d';} if(this.supportedAnimation==='css-3d'&&typeof div.styleWebkitPerspective!=='undefined'){var style=document.createElement('style');style.textContent='@media (transform-3d),(-webkit-transform-3d){#test-3d{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0;}}';document.getElementsByTagName('head')[0].appendChild(style);div.id='test-3d';document.body.appendChild(div);if(!(div.offsetLeft===9&&div.offsetHeight===5)){this.supportedAnimation=null;} style.parentNode.removeChild(style);div.parentNode.removeChild(div);} if(this.supportedAnimation===null&&(typeof div.style['-webkit-transform']!=='undefined'||typeof div.style.transform!=='undefined')){this.supportedAnimation='css-2d';}}else{this.supportedAnimation='javascript';} return this.supportedAnimation;},getVendorPrefix:function(){if(this.vendorPrefix!==null){return this.vendorPrefix;} var div=document.createElement('div'),prefixes=['Webkit','Moz','ms','O'];if('transform'in div.style){this.vendorPrefix='';return this.vendorPrefix;} for(var i=0;i').insertAfter(this.$slidesContainer);} if(this.$thumbnails===null){if(this.$slider.find('.sp-thumbnails').length!==0){this.$thumbnails=this.$slider.find('.sp-thumbnails').appendTo(this.$thumbnailsContainer);if(this.settings.shuffle===true){var thumbnails=this.$thumbnails.find('.sp-thumbnail'),shuffledThumbnails=[];$.each(this.shuffledIndexes,function(index,element){var $thumbnail=$(thumbnails[element]);if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a');} shuffledThumbnails.push($thumbnail);});this.$thumbnails.empty().append(shuffledThumbnails);}}else{this.$thumbnails=$('
    ').appendTo(this.$thumbnailsContainer);}} this.$slides.find('.sp-thumbnail').each(function(index){var $thumbnail=$(this),thumbnailIndex=$thumbnail.parents('.sp-slide').index(),lastThumbnailIndex=that.$thumbnails.find('.sp-thumbnail').length-1;if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a');} if(thumbnailIndex>lastThumbnailIndex){$thumbnail.appendTo(that.$thumbnails);}else{$thumbnail.insertBefore(that.$thumbnails.find('.sp-thumbnail').eq(thumbnailIndex));}});for(var i=this.thumbnails.length-1;i>=0;i--){if(this.$thumbnails.find('.sp-thumbnail[data-index="'+i+'"]').length===0){var thumbnail=this.thumbnails[i];thumbnail.destroy();this.thumbnails.splice(i,1);}} this.$thumbnails.find('.sp-thumbnail').each(function(index){var $thumbnail=$(this);if(typeof $thumbnail.attr('data-init')==='undefined'){that._createThumbnail($thumbnail,index);}else{that.thumbnails[index].setIndex(index);}});this.$thumbnailsContainer.removeClass('sp-top-thumbnails sp-bottom-thumbnails sp-left-thumbnails sp-right-thumbnails');if(this.settings.thumbnailsPosition==='top'){this.$thumbnailsContainer.addClass('sp-top-thumbnails');this.thumbnailsOrientation='horizontal';}else if(this.settings.thumbnailsPosition==='bottom'){this.$thumbnailsContainer.addClass('sp-bottom-thumbnails');this.thumbnailsOrientation='horizontal';}else if(this.settings.thumbnailsPosition==='left'){this.$thumbnailsContainer.addClass('sp-left-thumbnails');this.thumbnailsOrientation='vertical';}else if(this.settings.thumbnailsPosition==='right'){this.$thumbnailsContainer.addClass('sp-right-thumbnails');this.thumbnailsOrientation='vertical';} if(this.settings.thumbnailPointer===true){this.$thumbnailsContainer.addClass('sp-has-pointer');}else{this.$thumbnailsContainer.removeClass('sp-has-pointer');} this.selectedThumbnailIndex=this.selectedSlideIndex;this.$thumbnails.find('.sp-thumbnail-container').eq(this.selectedThumbnailIndex).addClass('sp-selected-thumbnail');this.thumbnailsSize=0;$.each(this.thumbnails,function(index,thumbnail){thumbnail.setSize(that.settings.thumbnailWidth,that.settings.thumbnailHeight);that.thumbnailsSize+=that.thumbnailsOrientation==='horizontal'?thumbnail.getSize().width:thumbnail.getSize().height;});if(this.thumbnailsOrientation==='horizontal'){this.$thumbnails.css({'width':this.thumbnailsSize,'height':this.settings.thumbnailHeight});this.$thumbnailsContainer.css('height','');this.thumbnailsPositionProperty='left';}else{this.$thumbnails.css({'width':this.settings.thumbnailWidth,'height':this.thumbnailsSize});this.$thumbnailsContainer.css('width','');this.thumbnailsPositionProperty='top';} this.trigger({type:'thumbnailsUpdate'});if($.isFunction(this.settings.thumbnailsUpdate)){this.settings.thumbnailsUpdate.call(this,{type:'thumbnailsUpdate'});}},_createThumbnail:function(element,index){var that=this,thumbnail=new Thumbnail(element,this.$thumbnails,index);thumbnail.on('thumbnailClick.'+NS,function(event){that.gotoSlide(event.index);});this.thumbnails.splice(index,0,thumbnail);},_thumbnailsOnResize:function(){if(this.isThumbnailScroller===false){return;} var that=this,newThumbnailsPosition;if(this.thumbnailsOrientation==='horizontal'){this.thumbnailsContainerSize=Math.min(this.$slidesMask.width(),this.thumbnailsSize);this.$thumbnailsContainer.css('width',this.thumbnailsContainerSize);if(this.settings.forceSize==='fullWindow'){this.$slidesMask.css('height',this.$slidesMask.height()-this.$thumbnailsContainer.outerHeight(true));this.slideHeight=this.$slidesMask.height();$.each(this.slides,function(index,element){element.setSize(that.slideWidth,that.slideHeight);});}}else if(this.thumbnailsOrientation==='vertical'){if(this.$slidesMask.width()+this.$thumbnailsContainer.outerWidth(true)>this.$slider.parent().width()){if(this.settings.forceSize==='fullWidth'||this.settings.forceSize==='fullWindow'){this.$slider.css('max-width',$(window).width()-this.$thumbnailsContainer.outerWidth(true));}else{this.$slider.css('max-width',this.$slider.parent().width()-this.$thumbnailsContainer.outerWidth(true));} this.$slidesMask.css('width',this.$slider.width());if(this.settings.orientation==='horizontal'){this.visibleOffset=Math.round((this.$slider.width()-this.slideSize)/2);this.visibleSlidesSize=this.$slidesMask.width();}else if(this.settings.orientation==='vertical'){this.slideWidth=this.$slider.width();$.each(this.slides,function(index,element){element.setSize(that.slideWidth,that.slideHeight);});} this._resetSlidesPosition();} this.thumbnailsContainerSize=Math.min(this.$slidesMask.height(),this.thumbnailsSize);this.$thumbnailsContainer.css('height',this.thumbnailsContainerSize);} if(this.thumbnailsSize<=this.thumbnailsContainerSize||this.$thumbnails.find('.sp-selected-thumbnail').length===0){newThumbnailsPosition=0;}else{newThumbnailsPosition=Math.max(-this.thumbnails[this.selectedThumbnailIndex].getPosition()[this.thumbnailsPositionProperty],this.thumbnailsContainerSize-this.thumbnailsSize);} if(this.settings.thumbnailsPosition==='top'){this.$slider.css({'paddingTop':this.$thumbnailsContainer.outerHeight(true),'paddingLeft':'','paddingRight':''});}else if(this.settings.thumbnailsPosition==='bottom'){this.$slider.css({'paddingTop':'','paddingLeft':'','paddingRight':''});}else if(this.settings.thumbnailsPosition==='left'){this.$slider.css({'paddingTop':'','paddingLeft':this.$thumbnailsContainer.outerWidth(true),'paddingRight':''});}else if(this.settings.thumbnailsPosition==='right'){this.$slider.css({'paddingTop':'','paddingLeft':'','paddingRight':this.$thumbnailsContainer.outerWidth(true)});} this._moveThumbnailsTo(newThumbnailsPosition,true);},_gotoThumbnail:function(index){if(this.isThumbnailScroller===false||typeof this.thumbnails[index]==='undefined'){return;} var previousIndex=this.selectedThumbnailIndex,newThumbnailsPosition=this.thumbnailsPosition;this.selectedThumbnailIndex=index;this.$thumbnails.find('.sp-selected-thumbnail').removeClass('sp-selected-thumbnail');this.$thumbnails.find('.sp-thumbnail-container').eq(this.selectedThumbnailIndex).addClass('sp-selected-thumbnail');if(this.selectedThumbnailIndex>=previousIndex){var nextThumbnailIndex=this.selectedThumbnailIndex===this.thumbnails.length-1?this.selectedThumbnailIndex:this.selectedThumbnailIndex+1,nextThumbnail=this.thumbnails[nextThumbnailIndex],nextThumbnailPosition=this.thumbnailsOrientation==='horizontal'?nextThumbnail.getPosition().right:nextThumbnail.getPosition().bottom,thumbnailsRightPosition=-this.thumbnailsPosition+this.thumbnailsContainerSize;if(nextThumbnailPosition>thumbnailsRightPosition){newThumbnailsPosition=this.thumbnailsPosition-(nextThumbnailPosition-thumbnailsRightPosition);}}else if(this.selectedThumbnailIndex').appendTo(this.$thumbnails);if(this.$thumbnail.parent('a').length!==0){this.$thumbnail.parent('a').appendTo(this.$thumbnailContainer);}else{this.$thumbnail.appendTo(this.$thumbnailContainer);} this.$thumbnailContainer.on('click.'+NS,function(){that.trigger({type:'thumbnailClick.'+NS,index:that.index});});},setSize:function(width,height){this.width=width;this.height=height;this.$thumbnailContainer.css({'width':this.width,'height':this.height});if(this.$thumbnail.is('img')&&typeof this.$thumbnail.attr('data-src')==='undefined'){this.resizeImage();}},getSize:function(){return{width:this.$thumbnailContainer.outerWidth(true),height:this.$thumbnailContainer.outerHeight(true)};},getPosition:function(){return{left:this.$thumbnailContainer.position().left+parseInt(this.$thumbnailContainer.css('marginLeft'),10),right:this.$thumbnailContainer.position().left+parseInt(this.$thumbnailContainer.css('marginLeft'),10)+this.$thumbnailContainer.outerWidth(),top:this.$thumbnailContainer.position().top+parseInt(this.$thumbnailContainer.css('marginTop'),10),bottom:this.$thumbnailContainer.position().top+parseInt(this.$thumbnailContainer.css('marginTop'),10)+this.$thumbnailContainer.outerHeight()};},setIndex:function(index){this.index=index;this.$thumbnail.attr('data-index',this.index);},resizeImage:function(){var that=this;if(this.isImageLoaded===false){SliderProUtils.checkImagesComplete(this.$thumbnailContainer,function(){that.isImageLoaded=true;that.resizeImage();});return;} this.$thumbnail=this.$thumbnailContainer.find('.sp-thumbnail');var imageWidth=this.$thumbnail.width(),imageHeight=this.$thumbnail.height();if(imageWidth/imageHeight<=this.width/this.height){this.$thumbnail.css({width:'100%',height:'auto'});}else{this.$thumbnail.css({width:'auto',height:'100%'});} this.$thumbnail.css({'marginLeft':(this.$thumbnailContainer.width()-this.$thumbnail.width())*0.5,'marginTop':(this.$thumbnailContainer.height()-this.$thumbnail.height())*0.5});},destroy:function(){this.$thumbnailContainer.off('click.'+NS);this.$thumbnail.removeAttr('data-init');this.$thumbnail.removeAttr('data-index');if(this.$thumbnail.parent('a').length!==0){this.$thumbnail.parent('a').insertBefore(this.$thumbnailContainer);}else{this.$thumbnail.insertBefore(this.$thumbnailContainer);} this.$thumbnailContainer.remove();},on:function(type,callback){return this.$thumbnailContainer.on(type,callback);},off:function(type){return this.$thumbnailContainer.off(type);},trigger:function(data){return this.$thumbnailContainer.triggerHandler(data);}};$.SliderPro.addModule('Thumbnails',Thumbnails);})(window,jQuery);;(function(window,$){"use strict";var NS='ConditionalImages.'+$.SliderPro.namespace;var ConditionalImages={previousImageSize:null,currentImageSize:null,isRetinaScreen:false,initConditionalImages:function(){this.currentImageSize=this.previousImageSize='default';this.isRetinaScreen=(typeof this._isRetina!=='undefined')&&(this._isRetina()===true);this.on('update.'+NS,$.proxy(this._conditionalImagesOnUpdate,this));this.on('sliderResize.'+NS,$.proxy(this._conditionalImagesOnResize,this));},_conditionalImagesOnUpdate:function(){$.each(this.slides,function(index,element){var $slide=element.$slide;$slide.find('img:not([ data-default ])').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-default',$image.attr('data-src'));}else{$image.attr('data-default',$image.attr('src'));}});});},_conditionalImagesOnResize:function(){if(this.slideWidth<=this.settings.smallSize){this.currentImageSize='small';}else if(this.slideWidth<=this.settings.mediumSize){this.currentImageSize='medium';}else if(this.slideWidth<=this.settings.largeSize){this.currentImageSize='large';}else{this.currentImageSize='default';} if(this.previousImageSize!==this.currentImageSize){var that=this;$.each(this.slides,function(index,element){var $slide=element.$slide;$slide.find('img').each(function(){var $image=$(this),imageSource='';if(that.isRetinaScreen===true&&typeof $image.attr('data-retina'+that.currentImageSize)!=='undefined'){imageSource=$image.attr('data-retina'+that.currentImageSize);if(typeof $image.attr('data-retina')!=='undefined'&&$image.attr('data-retina')!==imageSource){$image.attr('data-retina',imageSource);}}else if((that.isRetinaScreen===false||that.isRetinaScreen===true&&typeof $image.attr('data-retina')==='undefined')&&typeof $image.attr('data-'+that.currentImageSize)!=='undefined'){imageSource=$image.attr('data-'+that.currentImageSize);if(typeof $image.attr('data-src')!=='undefined'&&$image.attr('data-src')!==imageSource){$image.attr('data-src',imageSource);}} if(imageSource!==''){if(typeof $image.attr('data-src')==='undefined'&&$image.attr('src')!==imageSource){that._loadConditionalImage($image,imageSource,function(newImage){if(newImage.hasClass('sp-image')){element.$mainImage=newImage;element.resizeMainImage(true);}});}}});});this.previousImageSize=this.currentImageSize;}},_loadConditionalImage:function(image,source,callback){var newImage=$(new Image());newImage.attr('class',image.attr('class'));newImage.attr('style',image.attr('style'));$.each(image.data(),function(name,value){newImage.attr('data-'+name,value);});if(typeof image.attr('width')!=='undefined'){newImage.attr('width',image.attr('width'));} if(typeof image.attr('height')!=='undefined'){newImage.attr('height',image.attr('height'));} if(typeof image.attr('alt')!=='undefined'){newImage.attr('alt',image.attr('alt'));} if(typeof image.attr('title')!=='undefined'){newImage.attr('title',image.attr('title'));} newImage.attr('src',source);newImage.insertAfter(image);image.remove();image=null;if(typeof callback==='function'){callback(newImage);}},destroyConditionalImages:function(){this.off('update.'+NS);this.off('sliderResize.'+NS);},conditionalImagesDefaults:{smallSize:480,mediumSize:768,largeSize:1024}};$.SliderPro.addModule('ConditionalImages',ConditionalImages);})(window,jQuery);;(function(window,$){"use strict";var NS='Retina.'+$.SliderPro.namespace;var Retina={initRetina:function(){var that=this;if(this._isRetina()===false){return;} this.on('update.'+NS,$.proxy(this._checkRetinaImages,this));if(this.$slider.find('.sp-thumbnail').length!==0){this.on('update.Thumbnails.'+NS,$.proxy(this._checkRetinaThumbnailImages,this));}},_isRetina:function(){if(window.devicePixelRatio>=2){return true;} if(window.matchMedia&&(window.matchMedia("(-webkit-min-device-pixel-ratio: 2),(min-resolution: 2dppx)").matches)){return true;} return false;},_checkRetinaImages:function(){var that=this;$.each(this.slides,function(index,element){var $slide=element.$slide;if(typeof $slide.attr('data-retina-loaded')==='undefined'){$slide.attr('data-retina-loaded',true);$slide.find('img[data-retina]').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-src',$image.attr('data-retina'));}else{that._loadRetinaImage($image,function(newImage){if(newImage.hasClass('sp-image')){element.$mainImage=newImage;element.resizeMainImage(true);}});}});}});},_checkRetinaThumbnailImages:function(){var that=this;$.each(this.thumbnails,function(index,element){var $thumbnail=element.$thumbnailContainer;if(typeof $thumbnail.attr('data-retina-loaded')==='undefined'){$thumbnail.attr('data-retina-loaded',true);$thumbnail.find('img[data-retina]').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-src',$image.attr('data-retina'));}else{that._loadRetinaImage($image,function(newImage){if(newImage.hasClass('sp-thumbnail')){element.resizeImage();}});}});}});},_loadRetinaImage:function(image,callback){var retinaFound=false,newImagePath='';if(typeof image.attr('data-retina')!=='undefined'){retinaFound=true;newImagePath=image.attr('data-retina');} if(typeof image.attr('data-src')!=='undefined'){if(retinaFound===false){newImagePath=image.attr('data-src');} image.removeAttr('data-src');} if(newImagePath===''){return;} var newImage=$(new Image());newImage.attr('class',image.attr('class'));newImage.attr('style',image.attr('style'));$.each(image.data(),function(name,value){newImage.attr('data-'+name,value);});if(typeof image.attr('width')!=='undefined'){newImage.attr('width',image.attr('width'));} if(typeof image.attr('height')!=='undefined'){newImage.attr('height',image.attr('height'));} if(typeof image.attr('alt')!=='undefined'){newImage.attr('alt',image.attr('alt'));} if(typeof image.attr('title')!=='undefined'){newImage.attr('title',image.attr('title'));} newImage.insertAfter(image);image.remove();image=null;newImage.attr('src',newImagePath);if(typeof callback==='function'){callback(newImage);}},destroyRetina:function(){this.off('update.'+NS);this.off('update.Thumbnails.'+NS);}};$.SliderPro.addModule('Retina',Retina);})(window,jQuery);;(function(window,$){"use strict";var NS='LazyLoading.'+$.SliderPro.namespace;var LazyLoading={allowLazyLoadingCheck:true,initLazyLoading:function(){var that=this;this.on('sliderResize.'+NS,$.proxy(this._lazyLoadingOnResize,this));this.on('gotoSlide.'+NS,$.proxy(this._checkAndLoadVisibleImages,this));this.on('thumbnailsUpdate.'+NS+' '+'thumbnailsMoveComplete.'+NS,$.proxy(this._checkAndLoadVisibleThumbnailImages,this));},_lazyLoadingOnResize:function(){var that=this;if(this.allowLazyLoadingCheck===false){return;} this.allowLazyLoadingCheck=false;this._checkAndLoadVisibleImages();if(this.$slider.find('.sp-thumbnail').length!==0){this._checkAndLoadVisibleThumbnailImages();} setTimeout(function(){that.allowLazyLoadingCheck=true;},500);},_checkAndLoadVisibleImages:function(){if(this.$slider.find('.sp-slide:not([ data-loaded ])').length===0){return;} var that=this,referencePosition=this.settings.loop===true?this.middleSlidePosition:this.selectedSlideIndex,visibleOnSides=Math.ceil((this.visibleSlidesSize-this.slideSize)/2/this.slideSize),from=referencePosition-visibleOnSides-1>0?referencePosition-visibleOnSides-1:0,to=referencePosition+visibleOnSides+1=1){return;} var that=this,eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;if(typeof event.originalEvent.touches==='undefined'){event.preventDefault();} $(event.target).parents('.sp-slide').find('a').one('click.'+NS,function(event){event.preventDefault();});this.touchStartPoint.x=eventObject.pageX||eventObject.clientX;this.touchStartPoint.y=eventObject.pageY||eventObject.clientY;this.touchStartPosition=this.slidesPosition;this.touchDistance.x=this.touchDistance.y=0;if(this.$slides.hasClass('sp-animated')){this.isTouchMoving=true;this._stopMovement();this.touchStartPosition=this.slidesPosition;} this.$slidesMask.on(this.touchSwipeEvents.moveEvent,$.proxy(this._onTouchMove,this));$(document).on(this.touchSwipeEvents.endEvent,$.proxy(this._onTouchEnd,this));this.$slidesMask.removeClass('sp-grab').addClass('sp-grabbing');this.$slider.addClass('sp-swiping');},_onTouchMove:function(event){var eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;this.isTouchMoving=true;this.touchEndPoint.x=eventObject.pageX||eventObject.clientX;this.touchEndPoint.y=eventObject.pageY||eventObject.clientY;this.touchDistance.x=this.touchEndPoint.x-this.touchStartPoint.x;this.touchDistance.y=this.touchEndPoint.y-this.touchStartPoint.y;var distance=this.settings.orientation==='horizontal'?this.touchDistance.x:this.touchDistance.y,oppositeDistance=this.settings.orientation==='horizontal'?this.touchDistance.y:this.touchDistance.x;if(Math.abs(distance)>Math.abs(oppositeDistance)){event.preventDefault();}else{return;} if(this.settings.loop===false){if((this.slidesPosition>this.touchStartPosition&&this.selectedSlideIndex===0)||(this.slidesPosition0?1:-1);var nextSlideIndex=this.slidesOrder[$.inArray(this.selectedSlideIndex,this.slidesOrder)-slideArrayDistance];if(this.settings.loop===true){this.gotoSlide(nextSlideIndex);}else{if(typeof nextSlideIndex!=='undefined'){this.gotoSlide(nextSlideIndex);}else{this._moveTo(oldSlidesPosition);}}}},destroyTouchSwipe:function(){this.$slidesMask.off(this.touchSwipeEvents.startEvent);this.$slidesMask.off(this.touchSwipeEvents.moveEvent);this.$slidesMask.off('dragstart.'+NS);$(document).off(this.touchSwipeEvents.endEvent);this.$slidesMask.removeClass('sp-grab');},touchSwipeDefaults:{touchSwipe:true,touchSwipeThreshold:50}};$.SliderPro.addModule('TouchSwipe',TouchSwipe);})(window,jQuery);;(function(window,$){"use strict";var NS='Caption.'+$.SliderPro.namespace;var Caption={$captionContainer:null,captionContent:'',initCaption:function(){this.on('update.'+NS,$.proxy(this._captionOnUpdate,this));this.on('gotoSlide.'+NS,$.proxy(this._updateCaptionContent,this));},_captionOnUpdate:function(){this.$captionContainer=this.$slider.find('.sp-caption-container');if(this.$slider.find('.sp-caption').length&&this.$captionContainer.length===0){this.$captionContainer=$('
    ').appendTo(this.$slider);this._updateCaptionContent();} this.$slides.find('.sp-caption').each(function(){$(this).css('display','none');});},_updateCaptionContent:function(){var that=this,newCaptionField=this.$slider.find('.sp-slide').eq(this.selectedSlideIndex).find('.sp-caption'),newCaptionContent=newCaptionField.length!==0?newCaptionField.html():'';if(this.settings.fadeCaption===true){if(this.captionContent!==''){if(parseFloat(this.$captionContainer.css('opacity'),10)===0){this.$captionContainer.css(this.vendorPrefix+'transition','');this.$captionContainer.css('opacity',1);} this._fadeCaptionTo(0,function(){that.captionContent=newCaptionContent;if(newCaptionContent!==''){that.$captionContainer.html(that.captionContent);that._fadeCaptionTo(1);}else{that.$captionContainer.empty();}});}else{this.captionContent=newCaptionContent;this.$captionContainer.html(this.captionContent);this.$captionContainer.css('opacity',0);this._fadeCaptionTo(1);}}else{this.captionContent=newCaptionContent;this.$captionContainer.html(this.captionContent);}},_fadeCaptionTo:function(opacity,callback){var that=this;if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){setTimeout(function(){var css={'opacity':opacity};css[that.vendorPrefix+'transition']='opacity '+that.settings.captionFadeDuration/1000+'s';that.$captionContainer.css(css);},1);this.$captionContainer.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return;} that.$captionContainer.off(that.transitionEvent);that.$captionContainer.css(that.vendorPrefix+'transition','');if(typeof callback==='function'){callback();}});}else{this.$captionContainer.stop().animate({'opacity':opacity},this.settings.captionFadeDuration,function(){if(typeof callback==='function'){callback();}});}},destroyCaption:function(){this.off('update.'+NS);this.off('gotoSlide.'+NS);this.$captionContainer.remove();this.$slider.find('.sp-caption').each(function(){$(this).css('display','');});},captionDefaults:{fadeCaption:true,captionFadeDuration:500}};$.SliderPro.addModule('Caption',Caption);})(window,jQuery);;(function(window,$){"use strict";var NS='DeepLinking.'+$.SliderPro.namespace;var DeepLinking={initDeepLinking:function(){var that=this;this.on('init.'+NS,function(){that._gotoHash(window.location.hash);});this.on('gotoSlide.'+NS,function(event){if(that.settings.updateHash===true){var slideId=that.$slider.find('.sp-slide').eq(event.index).attr('id');if(typeof slideId==='undefined'){slideId=event.index;} window.location.hash=that.$slider.attr('id')+'/'+slideId;}});$(window).on('hashchange.'+this.uniqueId+'.'+NS,function(){that._gotoHash(window.location.hash);});},_parseHash:function(hash){if(hash!==''){hash=hash.substring(1);var values=hash.split('/'),slideId=values.pop(),sliderId=hash.slice(0,-slideId.toString().length-1);if(this.$slider.attr('id')===sliderId){return{'sliderID':sliderId,'slideId':slideId};}} return false;},_gotoHash:function(hash){var result=this._parseHash(hash);if(result===false){return;} var slideId=result.slideId,slideIdNumber=parseInt(slideId,10);if(isNaN(slideIdNumber)){var slideIndex=this.$slider.find('.sp-slide#'+slideId).index();if(slideIndex!==-1&&slideIndex!==this.selectedSlideIndex){this.gotoSlide(slideIndex);}}else if(slideIdNumber!==this.selectedSlideIndex){this.gotoSlide(slideIdNumber);}},destroyDeepLinking:function(){this.off('init.'+NS);this.off('gotoSlide.'+NS);$(window).off('hashchange.'+this.uniqueId+'.'+NS);},deepLinkingDefaults:{updateHash:false}};$.SliderPro.addModule('DeepLinking',DeepLinking);})(window,jQuery);;(function(window,$){"use strict";var NS='Autoplay.'+$.SliderPro.namespace;var Autoplay={autoplayTimer:null,isTimerRunning:false,isTimerPaused:false,initAutoplay:function(){this.on('update.'+NS,$.proxy(this._autoplayOnUpdate,this));},_autoplayOnUpdate:function(event){if(this.settings.autoplay===true){this.on('gotoSlide.'+NS,$.proxy(this._autoplayOnGotoSlide,this));this.on('mouseenter.'+NS,$.proxy(this._autoplayOnMouseEnter,this));this.on('mouseleave.'+NS,$.proxy(this._autoplayOnMouseLeave,this));this.startAutoplay();}else{this.off('gotoSlide.'+NS);this.off('mouseenter.'+NS);this.off('mouseleave.'+NS);this.stopAutoplay();}},_autoplayOnGotoSlide:function(event){if(this.isTimerRunning===true){this.stopAutoplay();} if(this.isTimerPaused===false){this.startAutoplay();}},_autoplayOnMouseEnter:function(event){if(this.isTimerRunning&&(this.settings.autoplayOnHover==='pause'||this.settings.autoplayOnHover==='stop')){this.stopAutoplay();this.isTimerPaused=true;}},_autoplayOnMouseLeave:function(event){if(this.settings.autoplay===true&&this.isTimerRunning===false&&this.settings.autoplayOnHover!=='stop'){this.startAutoplay();this.isTimerPaused=false;}},startAutoplay:function(){var that=this;this.isTimerRunning=true;this.autoplayTimer=setTimeout(function(){if(that.settings.autoplayDirection==='normal'){that.nextSlide();}else if(that.settings.autoplayDirection==='backwards'){that.previousSlide();}},this.settings.autoplayDelay);},stopAutoplay:function(){this.isTimerRunning=false;this.isTimerPaused=false;clearTimeout(this.autoplayTimer);},destroyAutoplay:function(){clearTimeout(this.autoplayTimer);this.off('update.'+NS);this.off('gotoSlide.'+NS);this.off('mouseenter.'+NS);this.off('mouseleave.'+NS);},autoplayDefaults:{autoplay:true,autoplayDelay:5000,autoplayDirection:'normal',autoplayOnHover:'pause'}};$.SliderPro.addModule('Autoplay',Autoplay);})(window,jQuery);;(function(window,$){"use strict";var NS='Keyboard.'+$.SliderPro.namespace;var Keyboard={initKeyboard:function(){var that=this,hasFocus=false;if(this.settings.keyboard===false){return;} this.$slider.on('focus.'+NS,function(){hasFocus=true;});this.$slider.on('blur.'+NS,function(){hasFocus=false;});$(document).on('keydown.'+this.uniqueId+'.'+NS,function(event){if(that.settings.keyboardOnlyOnFocus===true&&hasFocus===false){return;} if(event.which===37){that.previousSlide();}else if(event.which===39){that.nextSlide();}else if(event.which===13){that.$slider.find('.sp-slide').eq(that.selectedSlideIndex).find('.sp-image-container a')[0].click();}});},destroyKeyboard:function(){this.$slider.off('focus.'+NS);this.$slider.off('blur.'+NS);$(document).off('keydown.'+this.uniqueId+'.'+NS);},keyboardDefaults:{keyboard:true,keyboardOnlyOnFocus:false}};$.SliderPro.addModule('Keyboard',Keyboard);})(window,jQuery);;(function(window,$){"use strict";var NS='FullScreen.'+$.SliderPro.namespace;var FullScreen={isFullScreen:false,$fullScreenButton:null,sizeBeforeFullScreen:{},initFullScreen:function(){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)){return;} this.on('update.'+NS,$.proxy(this._fullScreenOnUpdate,this));},_fullScreenOnUpdate:function(){if(this.settings.fullScreen===true&&this.$fullScreenButton===null){this._addFullScreen();}else if(this.settings.fullScreen===false&&this.$fullScreenButton!==null){this._removeFullScreen();} if(this.settings.fullScreen===true){if(this.settings.fadeFullScreen===true){this.$fullScreenButton.addClass('sp-fade-full-screen');}else if(this.settings.fadeFullScreen===false){this.$fullScreenButton.removeClass('sp-fade-full-screen');}}},_addFullScreen:function(){this.$fullScreenButton=$('
    ').appendTo(this.$slider);this.$fullScreenButton.on('click.'+NS,$.proxy(this._onFullScreenButtonClick,this));document.addEventListener('fullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('mozfullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('webkitfullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('MSFullscreenChange',$.proxy(this._onFullScreenChange,this));},_removeFullScreen:function(){if(this.$fullScreenButton!==null){this.$fullScreenButton.off('click.'+NS);this.$fullScreenButton.remove();this.$fullScreenButton=null;document.removeEventListener('fullscreenchange',this._onFullScreenChange);document.removeEventListener('mozfullscreenchange',this._onFullScreenChange);document.removeEventListener('webkitfullscreenchange',this._onFullScreenChange);document.removeEventListener('MSFullscreenChange',this._onFullScreenChange);}},_onFullScreenButtonClick:function(){if(this.isFullScreen===false){if(this.instance.requestFullScreen){this.instance.requestFullScreen();}else if(this.instance.mozRequestFullScreen){this.instance.mozRequestFullScreen();}else if(this.instance.webkitRequestFullScreen){this.instance.webkitRequestFullScreen();}else if(this.instance.msRequestFullscreen){this.instance.msRequestFullscreen();}}else{if(document.exitFullScreen){document.exitFullScreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen();}else if(document.msExitFullscreen){document.msExitFullscreen();}}},_onFullScreenChange:function(){this.isFullScreen=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement?true:false;if(this.isFullScreen===true){this.sizeBeforeFullScreen={forceSize:this.settings.forceSize,autoHeight:this.settings.autoHeight};this.$slider.addClass('sp-full-screen');this.settings.forceSize='fullWindow';this.settings.autoHeight=false;}else{this.$slider.css('margin','');this.$slider.removeClass('sp-full-screen');this.settings.forceSize=this.sizeBeforeFullScreen.forceSize;this.settings.autoHeight=this.sizeBeforeFullScreen.autoHeight;} this.resize();},destroyFullScreen:function(){this.off('update.'+NS);this._removeFullScreen();},fullScreenDefaults:{fullScreen:false,fadeFullScreen:true}};$.SliderPro.addModule('FullScreen',FullScreen);})(window,jQuery);;(function(window,$){"use strict";var NS='Buttons.'+$.SliderPro.namespace;var Buttons={$buttons:null,initButtons:function(){this.on('update.'+NS,$.proxy(this._buttonsOnUpdate,this));},_buttonsOnUpdate:function(){this.$buttons=this.$slider.find('.sp-buttons');if(this.settings.buttons===true&&this.getTotalSlides()>1&&this.$buttons.length===0){this._createButtons();}else if(this.settings.buttons===true&&this.getTotalSlides()!==this.$buttons.find('.sp-button').length&&this.$buttons.length!==0){this._adjustButtons();}else if(this.settings.buttons===false||(this.getTotalSlides()<=1&&this.$buttons.length!==0)){this._removeButtons();}},_createButtons:function(){var that=this;this.$buttons=$('
    ').appendTo(this.$slider);for(var i=0;i').appendTo(this.$buttons);} this.$buttons.on('click.'+NS,'.sp-button',function(){that.gotoSlide($(this).index());});this.$buttons.find('.sp-button').eq(this.selectedSlideIndex).addClass('sp-selected-button');this.on('gotoSlide.'+NS,function(event){that.$buttons.find('.sp-selected-button').removeClass('sp-selected-button');that.$buttons.find('.sp-button').eq(event.index).addClass('sp-selected-button');});this.$slider.addClass('sp-has-buttons');},_adjustButtons:function(){this.$buttons.empty();for(var i=0;i').appendTo(this.$buttons);} this.$buttons.find('.sp-selected-button').removeClass('sp-selected-button');this.$buttons.find('.sp-button').eq(this.selectedSlideIndex).addClass('sp-selected-button');},_removeButtons:function(){this.$buttons.off('click.'+NS,'.sp-button');this.off('gotoSlide.'+NS);this.$buttons.remove();this.$slider.removeClass('sp-has-buttons');},destroyButtons:function(){this._removeButtons();this.off('update.'+NS);},buttonsDefaults:{buttons:true}};$.SliderPro.addModule('Buttons',Buttons);})(window,jQuery);;(function(window,$){"use strict";var NS='Arrows.'+$.SliderPro.namespace;var Arrows={$arrows:null,$previousArrow:null,$nextArrow:null,initArrows:function(){this.on('update.'+NS,$.proxy(this._arrowsOnUpdate,this));this.on('gotoSlide.'+NS,$.proxy(this._checkArrowsVisibility,this));},_arrowsOnUpdate:function(){var that=this;if(this.settings.arrows===true&&this.$arrows===null){this.$arrows=$('
    ').appendTo(this.$slidesContainer);this.$previousArrow=$('
    ').appendTo(this.$arrows);this.$nextArrow=$('
    ').appendTo(this.$arrows);this.$previousArrow.on('click.'+NS,function(){that.previousSlide();});this.$nextArrow.on('click.'+NS,function(){that.nextSlide();});this._checkArrowsVisibility();}else if(this.settings.arrows===false&&this.$arrows!==null){this._removeArrows();} if(this.settings.arrows===true){if(this.settings.fadeArrows===true){this.$arrows.addClass('sp-fade-arrows');}else if(this.settings.fadeArrows===false){this.$arrows.removeClass('sp-fade-arrows');}}},_checkArrowsVisibility:function(){if(this.settings.arrows===false||this.settings.loop===true){return;} if(this.selectedSlideIndex===0){this.$previousArrow.css('display','none');}else{this.$previousArrow.css('display','block');} if(this.selectedSlideIndex===this.getTotalSlides()-1){this.$nextArrow.css('display','none');}else{this.$nextArrow.css('display','block');}},_removeArrows:function(){if(this.$arrows!==null){this.$previousArrow.off('click.'+NS);this.$nextArrow.off('click.'+NS);this.$arrows.remove();this.$arrows=null;}},destroyArrows:function(){this._removeArrows();this.off('update.'+NS);this.off('gotoSlide.'+NS);},arrowsDefaults:{arrows:false,fadeArrows:true}};$.SliderPro.addModule('Arrows',Arrows);})(window,jQuery);;(function(window,$){"use strict";var NS='ThumbnailTouchSwipe.'+$.SliderPro.namespace;var ThumbnailTouchSwipe={thumbnailTouchStartPoint:{x:0,y:0},thumbnailTouchEndPoint:{x:0,y:0},thumbnailTouchDistance:{x:0,y:0},thumbnailTouchStartPosition:0,isThumbnailTouchMoving:false,isThumbnailTouchSwipe:false,thumbnailTouchSwipeEvents:{startEvent:'',moveEvent:'',endEvent:''},initThumbnailTouchSwipe:function(){this.on('update.'+NS,$.proxy(this._thumbnailTouchSwipeOnUpdate,this));},_thumbnailTouchSwipeOnUpdate:function(){if(this.isThumbnailScroller===false){return;} if(this.settings.thumbnailTouchSwipe===true&&this.isThumbnailTouchSwipe===false){this.isThumbnailTouchSwipe=true;this.thumbnailTouchSwipeEvents.startEvent='touchstart'+'.'+NS+' mousedown'+'.'+NS;this.thumbnailTouchSwipeEvents.moveEvent='touchmove'+'.'+NS+' mousemove'+'.'+NS;this.thumbnailTouchSwipeEvents.endEvent='touchend'+'.'+this.uniqueId+'.'+NS+' mouseup'+'.'+this.uniqueId+'.'+NS;this.$thumbnails.on(this.thumbnailTouchSwipeEvents.startEvent,$.proxy(this._onThumbnailTouchStart,this));this.$thumbnails.on('dragstart.'+NS,function(event){event.preventDefault();});this.$thumbnails.addClass('sp-grab');} $.each(this.thumbnails,function(index,thumbnail){thumbnail.off('thumbnailClick');});},_onThumbnailTouchStart:function(event){if($(event.target).closest('.sp-selectable').length>=1){return;} var that=this,eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;if(typeof event.originalEvent.touches==='undefined'){event.preventDefault();} $(event.target).parents('.sp-thumbnail-container').find('a').one('click.'+NS,function(event){event.preventDefault();});this.thumbnailTouchStartPoint.x=eventObject.pageX||eventObject.clientX;this.thumbnailTouchStartPoint.y=eventObject.pageY||eventObject.clientY;this.thumbnailTouchStartPosition=this.thumbnailsPosition;this.thumbnailTouchDistance.x=this.thumbnailTouchDistance.y=0;if(this.$thumbnails.hasClass('sp-animated')){this.isThumbnailTouchMoving=true;this._stopThumbnailsMovement();this.thumbnailTouchStartPosition=this.thumbnailsPosition;} this.$thumbnails.on(this.thumbnailTouchSwipeEvents.moveEvent,$.proxy(this._onThumbnailTouchMove,this));$(document).on(this.thumbnailTouchSwipeEvents.endEvent,$.proxy(this._onThumbnailTouchEnd,this));this.$thumbnails.removeClass('sp-grab').addClass('sp-grabbing');this.$thumbnailsContainer.addClass('sp-swiping');},_onThumbnailTouchMove:function(event){var eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;this.isThumbnailTouchMoving=true;this.thumbnailTouchEndPoint.x=eventObject.pageX||eventObject.clientX;this.thumbnailTouchEndPoint.y=eventObject.pageY||eventObject.clientY;this.thumbnailTouchDistance.x=this.thumbnailTouchEndPoint.x-this.thumbnailTouchStartPoint.x;this.thumbnailTouchDistance.y=this.thumbnailTouchEndPoint.y-this.thumbnailTouchStartPoint.y;var distance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.x:this.thumbnailTouchDistance.y,oppositeDistance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.y:this.thumbnailTouchDistance.x;if(Math.abs(distance)>Math.abs(oppositeDistance)){event.preventDefault();}else{return;} if(this.thumbnailsPosition>=0){var infOffset=-this.thumbnailTouchStartPosition;distance=infOffset+(distance-infOffset)*0.2;}else if(this.thumbnailsPosition<=-this.thumbnailsSize+this.thumbnailsContainerSize){var supOffset=this.thumbnailsSize-this.thumbnailsContainerSize+this.thumbnailTouchStartPosition;distance=-supOffset+(distance+supOffset)*0.2;} this._moveThumbnailsTo(this.thumbnailTouchStartPosition+distance,true);},_onThumbnailTouchEnd:function(event){var that=this,thumbnailTouchDistance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.x:this.thumbnailTouchDistance.y;this.$thumbnails.off(this.thumbnailTouchSwipeEvents.moveEvent);$(document).off(this.thumbnailTouchSwipeEvents.endEvent);this.$thumbnails.removeClass('sp-grabbing').addClass('sp-grab');if(this.isThumbnailTouchMoving===false||this.isThumbnailTouchMoving===true&&Math.abs(this.thumbnailTouchDistance.x)<10&&Math.abs(this.thumbnailTouchDistance.y)<10){var targetThumbnail=$(event.target).hasClass('sp-thumbnail-container')?$(event.target):$(event.target).parents('.sp-thumbnail-container'),index=targetThumbnail.index();if($(event.target).parents('a').length!==0){$(event.target).parents('a').off('click.'+NS);this.$thumbnailsContainer.removeClass('sp-swiping');}else if(index!==this.selectedThumbnailIndex&&index!==-1){this.gotoSlide(index);} return;} this.isThumbnailTouchMoving=false;$(event.target).parents('.sp-thumbnail').one('click',function(event){event.preventDefault();});setTimeout(function(){that.$thumbnailsContainer.removeClass('sp-swiping');},1);if(this.thumbnailsPosition>0){this._moveThumbnailsTo(0);}else if(this.thumbnailsPosition').appendTo(this.$thumbnailsContainer);this.$previousThumbnailArrow=$('
    ').appendTo(this.$thumbnailArrows);this.$nextThumbnailArrow=$('
    ').appendTo(this.$thumbnailArrows);this.$previousThumbnailArrow.on('click.'+NS,function(){var previousPosition=Math.min(0,that.thumbnailsPosition+that.thumbnailsContainerSize);that._moveThumbnailsTo(previousPosition);});this.$nextThumbnailArrow.on('click.'+NS,function(){var nextPosition=Math.max(that.thumbnailsContainerSize-that.thumbnailsSize,that.thumbnailsPosition-that.thumbnailsContainerSize);that._moveThumbnailsTo(nextPosition);});}else if(this.settings.thumbnailArrows===false&&this.$thumbnailArrows!==null){this._removeThumbnailArrows();} if(this.settings.thumbnailArrows===true){if(this.settings.fadeThumbnailArrows===true){this.$thumbnailArrows.addClass('sp-fade-thumbnail-arrows');}else if(this.settings.fadeThumbnailArrows===false){this.$thumbnailArrows.removeClass('sp-fade-thumbnail-arrows');} this._checkThumbnailArrowsVisibility();}},_checkThumbnailArrowsVisibility:function(){if(this.thumbnailsPosition===0){this.$previousThumbnailArrow.css('display','none');}else{this.$previousThumbnailArrow.css('display','block');} if(this.thumbnailsPosition===this.thumbnailsContainerSize-this.thumbnailsSize){this.$nextThumbnailArrow.css('display','none');}else{this.$nextThumbnailArrow.css('display','block');}},_removeThumbnailArrows:function(){if(this.$thumbnailArrows!==null){this.$previousThumbnailArrow.off('click.'+NS);this.$nextThumbnailArrow.off('click.'+NS);this.$thumbnailArrows.remove();this.$thumbnailArrows=null;}},destroyThumbnailArrows:function(){this._removeThumbnailArrows();this.off('update.'+NS);this.off('sliderResize.'+NS);this.off('thumbnailsMoveComplete.'+NS);},thumbnailArrowsDefaults:{thumbnailArrows:false,fadeThumbnailArrows:true}};$.SliderPro.addModule('ThumbnailArrows',ThumbnailArrows);})(window,jQuery);;(function(window,$){"use strict";var NS='Video.'+$.SliderPro.namespace;var Video={initVideo:function(){this.on('update.'+NS,$.proxy(this._videoOnUpdate,this));this.on('gotoSlideComplete.'+NS,$.proxy(this._videoOnGotoSlideComplete,this));},_videoOnUpdate:function(){var that=this;this.$slider.find('.sp-video').not('a, [data-video-init]').each(function(){var video=$(this);that._initVideo(video);});this.$slider.find('a.sp-video').not('[data-video-preinit]').each(function(){var video=$(this);that._preinitVideo(video);});},_initVideo:function(video){var that=this;video.attr('data-video-init',true).videoController();video.on('videoPlay.'+NS,function(){if(that.settings.playVideoAction==='stopAutoplay'&&typeof that.stopAutoplay!=='undefined'){that.stopAutoplay();that.settings.autoplay=false;} var eventObject={type:'videoPlay',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoPlay)){that.settings.videoPlay.call(that,eventObject);}});video.on('videoPause.'+NS,function(){if(that.settings.pauseVideoAction==='startAutoplay'&&typeof that.startAutoplay!=='undefined'){that.startAutoplay();that.settings.autoplay=true;} var eventObject={type:'videoPause',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoPause)){that.settings.videoPause.call(that,eventObject);}});video.on('videoEnded.'+NS,function(){if(that.settings.endVideoAction==='startAutoplay'&&typeof that.startAutoplay!=='undefined'){that.startAutoplay();that.settings.autoplay=true;}else if(that.settings.endVideoAction==='nextSlide'){that.nextSlide();}else if(that.settings.endVideoAction==='replayVideo'){video.videoController('replay');} var eventObject={type:'videoEnd',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoEnd)){that.settings.videoEnd.call(that,eventObject);}});},_preinitVideo:function(video){var that=this;video.attr('data-video-preinit',true);video.on('click.'+NS,function(event){if(that.$slider.hasClass('sp-swiping')){return;} event.preventDefault();var href=video.attr('href'),iframe,provider,regExp,match,id,src,videoAttributes,videoWidth=video.children('img').attr('width'),videoHeight=video.children('img').attr('height');if(href.indexOf('youtube')!==-1||href.indexOf('youtu.be')!==-1){provider='youtube';}else if(href.indexOf('vimeo')!==-1){provider='vimeo';} regExp=provider==='youtube'?/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/:/http:\/\/(www\.)?vimeo.com\/(\d+)/;match=href.match(regExp);id=match[2];src=provider==='youtube'?'http://www.youtube.com/embed/'+id+'?enablejsapi=1&wmode=opaque':'http://player.vimeo.com/video/'+id+'?api=1';videoAttributes=href.split('?')[1];if(typeof videoAttributes!=='undefined'){videoAttributes=videoAttributes.split('&');$.each(videoAttributes,function(index,value){if(value.indexOf(id)===-1){src+='&'+value;}});} iframe=$('').attr({'src':src,'width':videoWidth,'height':videoHeight,'class':video.attr('class'),'frameborder':0}).insertBefore(video);that._initVideo(iframe);iframe.videoController('play');video.css('display','none');});},_videoOnGotoSlideComplete:function(event){var previousVideo=this.$slides.find('.sp-slide').eq(event.previousIndex).find('.sp-video[data-video-init]');if(event.previousIndex!==-1&&previousVideo.length!==0){if(this.settings.leaveVideoAction==='stopVideo'){previousVideo.videoController('stop');}else if(this.settings.leaveVideoAction==='pauseVideo'){previousVideo.videoController('pause');}else if(this.settings.leaveVideoAction==='removeVideo'){if(previousVideo.siblings('a.sp-video').length!==0){previousVideo.siblings('a.sp-video').css('display','');previousVideo.videoController('destroy');previousVideo.remove();}else{previousVideo.videoController('stop');}}} if(this.settings.reachVideoAction==='playVideo'){var loadedVideo=this.$slides.find('.sp-slide').eq(event.index).find('.sp-video[data-video-init]'),unloadedVideo=this.$slides.find('.sp-slide').eq(event.index).find('.sp-video[data-video-preinit]');if(loadedVideo.length!==0){loadedVideo.videoController('play');}else if(unloadedVideo.length!==0){unloadedVideo.trigger('click.'+NS);}}},destroyVideo:function(){this.$slider.find('.sp-video[ data-video-preinit ]').each(function(){var video=$(this);video.removeAttr('data-video-preinit');video.off('click.'+NS);});this.$slider.find('.sp-video[ data-video-init ]').each(function(){var video=$(this);video.removeAttr('data-video-init');video.off('Video');video.videoController('destroy');});this.off('update.'+NS);this.off('gotoSlideComplete.'+NS);},videoDefaults:{reachVideoAction:'none',leaveVideoAction:'pauseVideo',playVideoAction:'stopAutoplay',pauseVideoAction:'none',endVideoAction:'none',videoPlay:function(){},videoPause:function(){},videoEnd:function(){}}};$.SliderPro.addModule('Video',Video);})(window,jQuery);;(function($){"use strict";var isIOS=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?true:false;var VideoController=function(instance,options){this.$video=$(instance);this.options=options;this.settings={};this.player=null;this._init();};VideoController.prototype={_init:function(){this.settings=$.extend({},this.defaults,this.options);var that=this,players=$.VideoController.players,videoID=this.$video.attr('id');for(var name in players){if(typeof players[name]!=='undefined'&&players[name].isType(this.$video)){this.player=new players[name](this.$video);break;}} if(this.player===null){return;} var events=['ready','start','play','pause','ended'];$.each(events,function(index,element){var event='video'+element.charAt(0).toUpperCase()+element.slice(1);that.player.on(element,function(){that.trigger({type:event,video:videoID});if($.isFunction(that.settings[event])){that.settings[event].call(that,{type:event,video:videoID});}});});},play:function(){if(isIOS===true&&this.player.isStarted()===false||this.player.getState()==='playing'){return;} this.player.play();},stop:function(){if(isIOS===true&&this.player.isStarted()===false||this.player.getState()==='stopped'){return;} this.player.stop();},pause:function(){if(isIOS===true&&this.player.isStarted()===false||this.player.getState()==='paused'){return;} this.player.pause();},replay:function(){if(isIOS===true&&this.player.isStarted()===false){return;} this.player.replay();},on:function(type,callback){return this.$video.on(type,callback);},off:function(type){return this.$video.off(type);},trigger:function(data){return this.$video.triggerHandler(data);},destroy:function(){if(this.player.isStarted()===true){this.stop();} this.player.off('ready');this.player.off('start');this.player.off('play');this.player.off('pause');this.player.off('ended');this.$video.removeData('videoController');},defaults:{videoReady:function(){},videoStart:function(){},videoPlay:function(){},videoPause:function(){},videoEnded:function(){}}};$.VideoController={players:{},addPlayer:function(name,player){this.players[name]=player;}};$.fn.videoController=function(options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof $(this).data('videoController')==='undefined'){var newInstance=new VideoController(this,options);$(this).data('videoController',newInstance);}else if(typeof options!=='undefined'){var currentInstance=$(this).data('videoController');if(typeof currentInstance[options]==='function'){currentInstance[options].apply(currentInstance,args);}else{$.error(options+' does not exist in videoController.');}}});};var Video=function(video){this.$video=video;this.player=null;this.ready=false;this.started=false;this.state='';this.events=$({});this._init();};Video.prototype={_init:function(){},play:function(){},pause:function(){},stop:function(){},replay:function(){},isType:function(){},isReady:function(){return this.ready;},isStarted:function(){return this.started;},getState:function(){return this.state;},on:function(type,callback){return this.events.on(type,callback);},off:function(type){return this.events.off(type);},trigger:function(data){return this.events.triggerHandler(data);}};var YoutubeVideoHelper={youtubeAPIAdded:false,youtubeVideos:[]};var YoutubeVideo=function(video){this.init=false;var youtubeAPILoaded=window.YT&&window.YT.Player;if(typeof youtubeAPILoaded!=='undefined'){Video.call(this,video);}else{YoutubeVideoHelper.youtubeVideos.push({'video':video,'scope':this});if(YoutubeVideoHelper.youtubeAPIAdded===false){YoutubeVideoHelper.youtubeAPIAdded=true;var tag=document.createElement('script');tag.src="http://www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);window.onYouTubePlayerAPIReady=function(){$.each(YoutubeVideoHelper.youtubeVideos,function(index,element){Video.call(element.scope,element.video);});};}}};YoutubeVideo.prototype=new Video();YoutubeVideo.prototype.constructor=YoutubeVideo;$.VideoController.addPlayer('YoutubeVideo',YoutubeVideo);YoutubeVideo.isType=function(video){if(video.is('iframe')){var src=video.attr('src');if(src.indexOf('youtube.com')!==-1||src.indexOf('youtu.be')!==-1){return true;}} return false;};YoutubeVideo.prototype._init=function(){this.init=true;this._setup();};YoutubeVideo.prototype._setup=function(){var that=this;this.player=new YT.Player(this.$video[0],{events:{'onReady':function(){that.trigger({type:'ready'});that.ready=true;},'onStateChange':function(event){switch(event.data){case YT.PlayerState.PLAYING:if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});break;case YT.PlayerState.PAUSED:that.state='paused';that.trigger({type:'pause'});break;case YT.PlayerState.ENDED:that.state='ended';that.trigger({type:'ended'});break;}}}});};YoutubeVideo.prototype.play=function(){var that=this;if(this.ready===true){this.player.playVideo();}else{var timer=setInterval(function(){if(that.ready===true){clearInterval(timer);that.player.playVideo();}},100);}};YoutubeVideo.prototype.pause=function(){if(isIOS===true){this.stop();}else{this.player.pauseVideo();}};YoutubeVideo.prototype.stop=function(){this.player.seekTo(1);this.player.stopVideo();this.state='stopped';};YoutubeVideo.prototype.replay=function(){this.player.seekTo(1);this.player.playVideo();};YoutubeVideo.prototype.on=function(type,callback){var that=this;if(this.init===true){Video.prototype.on.call(this,type,callback);}else{var timer=setInterval(function(){if(that.init===true){clearInterval(timer);Video.prototype.on.call(that,type,callback);}},100);}};var VimeoVideoHelper={vimeoAPIAdded:false,vimeoVideos:[]};var VimeoVideo=function(video){this.init=false;if(typeof window.Froogaloop!=='undefined'){Video.call(this,video);}else{VimeoVideoHelper.vimeoVideos.push({'video':video,'scope':this});if(VimeoVideoHelper.vimeoAPIAdded===false){VimeoVideoHelper.vimeoAPIAdded=true;var tag=document.createElement('script');tag.src="http://a.vimeocdn.com/js/froogaloop2.min.js";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);var checkVimeoAPITimer=setInterval(function(){if(typeof window.Froogaloop!=='undefined'){clearInterval(checkVimeoAPITimer);$.each(VimeoVideoHelper.vimeoVideos,function(index,element){Video.call(element.scope,element.video);});}},100);}}};VimeoVideo.prototype=new Video();VimeoVideo.prototype.constructor=VimeoVideo;$.VideoController.addPlayer('VimeoVideo',VimeoVideo);VimeoVideo.isType=function(video){if(video.is('iframe')){var src=video.attr('src');if(src.indexOf('vimeo.com')!==-1){return true;}} return false;};VimeoVideo.prototype._init=function(){this.init=true;this._setup();};VimeoVideo.prototype._setup=function(){var that=this;this.player=$f(this.$video[0]);this.player.addEvent('ready',function(){that.ready=true;that.trigger({type:'ready'});that.player.addEvent('play',function(){if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});});that.player.addEvent('pause',function(){that.state='paused';that.trigger({type:'pause'});});that.player.addEvent('finish',function(){that.state='ended';that.trigger({type:'ended'});});});};VimeoVideo.prototype.play=function(){var that=this;if(this.ready===true){this.player.api('play');}else{var timer=setInterval(function(){if(that.ready===true){clearInterval(timer);that.player.api('play');}},100);}};VimeoVideo.prototype.pause=function(){this.player.api('pause');};VimeoVideo.prototype.stop=function(){this.player.api('seekTo',0);this.player.api('pause');this.state='stopped';};VimeoVideo.prototype.replay=function(){this.player.api('seekTo',0);this.player.api('play');};VimeoVideo.prototype.on=function(type,callback){var that=this;if(this.init===true){Video.prototype.on.call(this,type,callback);}else{var timer=setInterval(function(){if(that.init===true){clearInterval(timer);Video.prototype.on.call(that,type,callback);}},100);}};var HTML5Video=function(video){Video.call(this,video);};HTML5Video.prototype=new Video();HTML5Video.prototype.constructor=HTML5Video;$.VideoController.addPlayer('HTML5Video',HTML5Video);HTML5Video.isType=function(video){if(video.is('video')&&video.hasClass('video-js')===false&&video.hasClass('sublime')===false){return true;} return false;};HTML5Video.prototype._init=function(){var that=this;this.player=this.$video[0];this.ready=true;this.player.addEventListener('play',function(){if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});});this.player.addEventListener('pause',function(){that.state='paused';that.trigger({type:'pause'});});this.player.addEventListener('ended',function(){that.state='ended';that.trigger({type:'ended'});});};HTML5Video.prototype.play=function(){this.player.play();};HTML5Video.prototype.pause=function(){this.player.pause();};HTML5Video.prototype.stop=function(){this.player.currentTime=0;this.player.pause();this.state='stopped';};HTML5Video.prototype.replay=function(){this.player.currentTime=0;this.player.play();};var VideoJSVideo=function(video){Video.call(this,video);};VideoJSVideo.prototype=new Video();VideoJSVideo.prototype.constructor=VideoJSVideo;$.VideoController.addPlayer('VideoJSVideo',VideoJSVideo);VideoJSVideo.isType=function(video){if((typeof video.attr('data-videojs-id')!=='undefined'||video.hasClass('video-js'))&&typeof videojs!=='undefined'){return true;} return false;};VideoJSVideo.prototype._init=function(){var that=this,videoID=this.$video.hasClass('video-js')?this.$video.attr('id'):this.$video.attr('data-videojs-id');this.player=videojs(videoID);this.player.ready(function(){that.ready=true;that.trigger({type:'ready'});that.player.on('play',function(){if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});});that.player.on('pause',function(){that.state='paused';that.trigger({type:'pause'});});that.player.on('ended',function(){that.state='ended';that.trigger({type:'ended'});});});};VideoJSVideo.prototype.play=function(){this.player.play();};VideoJSVideo.prototype.pause=function(){this.player.pause();};VideoJSVideo.prototype.stop=function(){this.player.currentTime(0);this.player.pause();this.state='stopped';};VideoJSVideo.prototype.replay=function(){this.player.currentTime(0);this.player.play();};var SublimeVideo=function(video){Video.call(this,video);};SublimeVideo.prototype=new Video();SublimeVideo.prototype.constructor=SublimeVideo;$.VideoController.addPlayer('SublimeVideo',SublimeVideo);SublimeVideo.isType=function(video){if(video.hasClass('sublime')&&typeof sublime!=='undefined'){return true;} return false;};SublimeVideo.prototype._init=function(){var that=this;sublime.ready(function(){that.player=sublime.player(that.$video.attr('id'));that.ready=true;that.trigger({type:'ready'});that.player.on('play',function(){if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});});that.player.on('pause',function(){that.state='paused';that.trigger({type:'pause'});});that.player.on('stop',function(){that.state='stopped';that.trigger({type:'stop'});});that.player.on('end',function(){that.state='ended';that.trigger({type:'ended'});});});};SublimeVideo.prototype.play=function(){this.player.play();};SublimeVideo.prototype.pause=function(){this.player.pause();};SublimeVideo.prototype.stop=function(){this.player.stop();};SublimeVideo.prototype.replay=function(){this.player.stop();this.player.play();};var JWPlayerVideo=function(video){Video.call(this,video);};JWPlayerVideo.prototype=new Video();JWPlayerVideo.prototype.constructor=JWPlayerVideo;$.VideoController.addPlayer('JWPlayerVideo',JWPlayerVideo);JWPlayerVideo.isType=function(video){if((typeof video.attr('data-jwplayer-id')!=='undefined'||video.hasClass('jwplayer')||video.find("object[data*='jwplayer']").length!==0)&&typeof jwplayer!=='undefined'){return true;} return false;};JWPlayerVideo.prototype._init=function(){var that=this,videoID;if(this.$video.hasClass('jwplayer')){videoID=this.$video.attr('id');}else if(typeof this.$video.attr('data-jwplayer-id')!=='undefined'){videoID=this.$video.attr('data-jwplayer-id');}else if(this.$video.find("object[data*='jwplayer']").length!==0){videoID=this.$video.find('object').attr('id');} this.player=jwplayer(videoID);this.player.onReady(function(){that.ready=true;that.trigger({type:'ready'});that.player.onPlay(function(){if(that.started===false){that.started=true;that.trigger({type:'start'});} that.state='playing';that.trigger({type:'play'});});that.player.onPause(function(){that.state='paused';that.trigger({type:'pause'});});that.player.onComplete(function(){that.state='ended';that.trigger({type:'ended'});});});};JWPlayerVideo.prototype.play=function(){this.player.play(true);};JWPlayerVideo.prototype.pause=function(){this.player.pause(true);};JWPlayerVideo.prototype.stop=function(){this.player.stop();this.state='stopped';};JWPlayerVideo.prototype.replay=function(){this.player.seek(0);this.player.play(true);};})(jQuery); DatePickerControl.defaultFormat="DD/MM/YYYY";DatePickerControl.submitFormat="";DatePickerControl.offsetY=1;DatePickerControl.offsetX=0;DatePickerControl.todayText="hoy";DatePickerControl.buttonTitle="Abrir calendario...";DatePickerControl.buttonPosition="in";DatePickerControl.buttonOffsetX=0;DatePickerControl.buttonOffsetY=0;DatePickerControl.closeOnTodayBtn=true;DatePickerControl.defaultTodaySel=true;DatePickerControl.autoShow=false;DatePickerControl.firstWeekDay=0;DatePickerControl.weekend=[0,6];DatePickerControl.weekNumber=false;DatePickerControl.Months=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];DatePickerControl.Days=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"];DatePickerControl.useTrickyBG=false;if(navigator.userAgent.indexOf("MSIE")>1){DatePickerControl.useTrickyBG=true;DatePickerControl.offsetY=0;DatePickerControl.offsetX=-1;DatePickerControl.buttonOffsetX=-4;DatePickerControl.buttonOffsetY=-2;if(document.getElementsByTagName("html")[0].getAttribute("xmlns")!=null){DatePickerControl.offsetY=16;DatePickerControl.offsetX=10;DatePickerControl.buttonOffsetX=8;DatePickerControl.buttonOffsetY=14}}DatePickerControl.editIdPrefix="DPC_";DatePickerControl.displayed=false;DatePickerControl.HIDE_TIMEOUT=200;DatePickerControl.hideTimeout=null;DatePickerControl.buttonIdPrefix="CALBUTTON";DatePickerControl.dayIdPrefix="CALDAY";DatePickerControl.currentDay=1;DatePickerControl.originalValue="";DatePickerControl.calFrameId="calendarframe";DatePickerControl.submitByKey=false;DatePickerControl.dayOfWeek=0;DatePickerControl.firstFocused=false;DatePickerControl.hideCauseBlur=false;DatePickerControl.onSubmitAsigned=false;DatePickerControl.minDate=null;DatePickerControl.maxDate=null;DatePickerControl.DOMonth=[31,28,31,30,31,30,31,31,30,31,30,31];DatePickerControl.lDOMonth=[31,29,31,30,31,30,31,31,30,31,30,31];function DatePickerControl(){}DatePickerControl.init=function(){if(!document.getElementById("CalendarPickerControl")){this.setGlobalParams();this.calBG=null;if(this.useTrickyBG){this.calBG=document.createElement("iframe");this.calBG.id="CalendarPickerControlBG";this.calBG.style.zIndex="49999";this.calBG.style.position="absolute";this.calBG.style.display="none";this.calBG.style.border="0px solid transparent";document.body.appendChild(this.calBG)}this.calContainer=document.createElement("div");this.calContainer.id="CalendarPickerControl";this.calContainer.style.zIndex="50000";this.calContainer.style.position="absolute";this.calContainer.style.display="none";document.body.appendChild(this.calContainer);if(this.calContainer.addEventListener){this.calContainer.addEventListener("click",DPC_onContainerClick,false);window.addEventListener("resize",DPC_onWindowResize,false)}else{if(this.calContainer.attachEvent){this.calContainer.attachEvent("onclick",DPC_onContainerClick);window.attachEvent("onresize",DPC_onWindowResize)}}}var a=document.getElementsByTagName("input");var d=a.length;for(i=0;i6)?0:parseInt(obj.value)}obj=document.getElementById("DPC_WEEKEND_DAYS");if(obj){eval("this.weekend = "+obj.value)}obj=document.getElementById("DPC_AUTO_SHOW");if(obj){this.autoShow=obj.value=="true"}obj=document.getElementById("DPC_DEFAULT_TODAY");if(obj){this.defaultTodaySel=obj.value=="true"}obj=document.getElementById("DPC_CALENDAR_OFFSET_X");if(obj){this.offsetX=parseInt(obj.value)}obj=document.getElementById("DPC_CALENDAR_OFFSET_Y");if(obj){this.offsetY=parseInt(obj.value)}obj=document.getElementById("DPC_TODAY_TEXT");if(obj){this.todayText=obj.value}obj=document.getElementById("DPC_BUTTON_TITLE");if(obj){this.buttonTitle=obj.value}obj=document.getElementById("DPC_BUTTON_POSITION");if(obj){this.buttonPosition=obj.value}obj=document.getElementById("DPC_BUTTON_OFFSET_X");if(obj){this.buttonOffsetX=parseInt(obj.value)}obj=document.getElementById("DPC_BUTTON_OFFSET_Y");if(obj){this.buttonOffsetY=parseInt(obj.value)}obj=document.getElementById("DPC_WEEK_NUMBER");if(obj){this.weekNumber=obj.value=="true"}obj=document.getElementById("DPC_MONTH_NAMES");if(obj){eval("this.Months = "+obj.value)}obj=document.getElementById("DPC_DAY_NAMES");if(obj){eval("this.Days = "+obj.value)}};function DPC_autoInit(){DatePickerControl.init()}if(window.addEventListener){window.addEventListener("load",DPC_autoInit,false)}else{if(window.attachEvent){window.attachEvent("onload",DPC_autoInit)}}DatePickerControl.createButton=function(l,a){var b=this.buttonIdPrefix+l.id;if(document.getElementById(b)){return false}var c="";if(a){var f=l.id.split("_");var o=f[f.length-1];if((o.indexOf("-")>0||o.indexOf("/")>0||o.indexOf(".")>0)&&o.indexOf("YY")>=0&&o.indexOf("D")>=0&&o.indexOf("M")>=0){c=o}else{c=this.defaultFormat}}else{c=l.getAttribute("datepicker_format");if(!c){c=this.defaultFormat}}l.setAttribute("datepicker_format",c);l.setAttribute("maxlength",c.length);l.setMinDate=function(p){this.setAttribute("datepicker_min",p)};l.setMaxDate=function(p){this.setAttribute("datepicker_max",p)};var e=document.createElement("img");e.id=b;e.title=this.buttonTitle;e.setAttribute("datepicker_inputid",l.id);e.setAttribute("datepicker_format",c);if(e.addEventListener){e.addEventListener("click",DPC_onButtonClick,false)}else{if(e.attachEvent){e.attachEvent("onclick",DPC_onButtonClick)}}e.className="calendarbutton";e.style.position="relative";e.style.cursor="pointer";e.style.verticalAlign="middle";e.style.height=l.offsetHeight;e.src="https://cdn.loupignada.com/uploads/basecamp/theme2015/calendar_icon.png";if(this.buttonPosition=="in"){}var d=l.parentNode;var h=document.createElement("nobr");var g=document.createElement("span");g.innerHTML=" ";var n=null;if(l.nextSibling){n=l.nextSibling}d.removeChild(l);h.appendChild(l);h.appendChild(g);h.appendChild(e);h.appendChild(g.cloneNode(true));if(n){d.insertBefore(h,n)}else{d.appendChild(h)}return true};DatePickerControl.show=function(){if(!this.displayed){var a=this.inputControl;if(a==null){return}if(a.disabled){return}var d=getObject.getSize("offsetTop",a);var c=getObject.getSize("offsetLeft",a);var b=document.getElementById(this.calFrameId);this.calContainer.style.top=d+a.offsetHeight+this.offsetY+"px";this.calContainer.style.left=c+this.offsetX+"px";this.calContainer.style.display="none";this.calContainer.style.visibility="visible";this.calContainer.style.display="block";this.calContainer.style.height=b.offsetHeight;if(this.calBG){this.calBG.style.top=this.calContainer.style.top;this.calBG.style.left=this.calContainer.style.left;this.calBG.style.display="none";this.calBG.style.visibility="visible";this.calBG.style.display="block";this.calBG.style.width=this.calContainer.offsetWidth;if(b){this.calBG.style.height=b.offsetHeight}}this.displayed=true;a.focus()}};DatePickerControl.hide=function(){if(this.displayed){this.calContainer.style.visibility="hidden";this.calContainer.style.left=-1000;this.calContainer.style.top=-1000;if(this.calBG){this.calBG.style.visibility="hidden";this.calBG.style.left=-1000;this.calBG.style.top=-1000}this.inputControl.value=this.originalValue;this.displayed=false}};DatePickerControl.getMonthName=function(a){return this.Months[a]};DatePickerControl.getDaysOfMonth=function(b,a){if(this.isLeapYear(a)){return this.lDOMonth[b]}else{return this.DOMonth[b]}};DatePickerControl.calcMonthYear=function(b,a,d){var c=new Array();if(d==-1){if(b==0){c[0]=11;c[1]=parseInt(a)-1}else{c[0]=parseInt(b)-1;c[1]=parseInt(a)}}else{if(d==1){if(b==11){c[0]=0;c[1]=parseInt(a)+1}else{c[0]=parseInt(b)+1;c[1]=parseInt(a)}}}return c};DatePickerControl.getAllCode=function(){var a="";a+="";a+=this.getHeaderCode();a+=this.getDaysHeaderCode();a+=this.getDaysCode();a+="
    ";return a};DatePickerControl.getHeaderCode=function(){var d=this.calcMonthYear(this.month,this.year,-1);var g=d[0];var l=d[1];var f=this.calcMonthYear(this.month,this.year,1);var h=f[0];var a=f[1];var c=new Date();var b="";var e=this.weekNumber?8:7;b+="";b+=this.monthName+"  ";b+="«";b+=" "+this.year+" ";b+="»";b+="";b+="";b+="";b+="";b+="";b+="";b+="";b+="";return b};DatePickerControl.getDaysHeaderCode=function(){var a="";a=a+"";if(this.weekNumber){a+=" "}for(i=this.firstWeekDay;i"+this.Days[i%7]+""}a=a+"";return a};DatePickerControl.getDaysCode=function(){var f=new Date();f.setDate(1);f.setMonth(this.month);f.setFullYear(this.year);var h=f.getDay();var l=1;var d=this.getDaysOfMonth(this.month,this.year);var e=0;var c="";this.dayOfWeek=h;var g=this.month==0?11:this.month-1;var b=this.prevm==11?this.year-1:this.year;prevmontdays=this.getDaysOfMonth(g,b);h=(h==0&&this.firstWeekDay)?7:h;if(this.weekNumber){var a=this.getWeekNumber(this.year,this.month,1)}c+="";if(this.weekNumber){c+=""+a+""}for(i=this.firstWeekDay;i"+(prevmontdays-h+i+1)+""}for(j=h-this.firstWeekDay;j<7;j++){if(this.isInRange(l)){classname=this.getDayClass(l,j);c+=""+l+""}else{c+=""+l+""}l++}c=c+"";for(k=2;k<7;k++){c=c+"";if(this.weekNumber){a++;if(a>=53){a=1}c+=""+a+""}for(j=0;j<7;j++){if(this.isInRange(l)){classname=this.getDayClass(l,j);c+=""+l+""}else{c+=""+l+""}l++;if(l>d){e=1;break}}if(j==6){c+=""}if(e==1){break}}for(m=1;m<(7-j);m++){c+=""+m+""}return c};DatePickerControl.getDayClass=function(a,f){var g=new Date();var d=g.getDate();var c=g.getMonth();var b=g.getFullYear();if(a==d&&this.month==c&&this.year==b){return"today"}else{var e=(7+f+this.firstWeekDay)%7;for(i=0;i=0||f.indexOf("-")>=0||f.indexOf(".")>=0){return g}var c=f.split("@");if(c.length!=3){return g}for(i=0;i<3;i++){c[i]=parseFloat(c[i]);if(isNaN(c[i])){return g}}g.setDate(1);if(e.substring(0,1).toUpperCase()=="D"){g.setFullYear(this.yearTwo2Four(c[2]));g.setMonth(c[1]-1);g.setDate(c[0])}else{if(e.substring(0,1).toUpperCase()=="Y"){g.setFullYear(this.yearTwo2Four(c[0]));g.setMonth(c[1]-1);g.setDate(c[2])}else{if(e.substring(0,1).toUpperCase()=="M"){g.setFullYear(this.yearTwo2Four(c[2]));g.setMonth(c[0]-1);g.setDate(c[1])}}}return g};DatePickerControl.yearTwo2Four=function(a){if(a<99){if(a>=30){a+=1900}else{a+=2000}}return a};DatePickerControl.writeDate=function(a){var b=this.formatData(a);this.inputControl.value=b;this.originalValue=b;this.hide();if(DatePickerControl.onSelect){DatePickerControl.onSelect(this.inputControl.id)}this.firstFocused=true;this.inputControl.focus()};DatePickerControl.writeCurrentDate=function(){var a=this.formatData(this.currentDay);this.inputControl.value=a};DatePickerControl.build=function(a,g){var f=this.month;var e=this.year;var d=document.getElementById(this.calFrameId);if(a==null){var b=new Date();this.month=b.getMonth();this.year=b.getFullYear()}else{this.month=a;this.year=g}if(!this.isInRange(null)){this.month=f;this.year=e}if(!this.isInRange(this.currentDay)){if(this.minDate&&this.currentDaythis.maxDate.getDate()){this.currentDay=this.maxDate.getDate()}}this.monthName=this.Months[this.month];var c=this.getAllCode();writeLayer(this.calContainer.id,null,c);if(this.calContainer&&d){this.calContainer.style.height=d.offsetHeight}this.firstFocused=true;this.inputControl.focus();this.selectDay(this.currentDay)};DatePickerControl.buildPrev=function(){if(!this.displayed){return}var b=this.calcMonthYear(this.month,this.year,-1);var c=b[0];var a=b[1];this.build(c,a)};DatePickerControl.buildNext=function(){if(!this.displayed){return}var b=this.calcMonthYear(this.month,this.year,1);var c=b[0];var a=b[1];this.build(c,a)};DatePickerControl.selectToday=function(){var b=new Date();var a=b.getDate();if(!this.isInRange(a)){return}if(this.closeOnTodayBtn){this.currentDay=a;this.writeDate(this.currentDay)}else{this.selectDay(a)}};DatePickerControl.selectDay=function(c){if(!this.displayed){return}if(!this.isInRange(c)){return}var e=this.currentDay;var a=this.getDaysOfMonth(this.month,this.year);if(c>a){return}var b=document.getElementById(this.dayIdPrefix+c);var d=document.getElementById(this.dayIdPrefix+this.currentDay);if(d){d.className=d.getAttribute("class_orig")}if(b){b.className="current";this.currentDay=c;this.writeCurrentDate()}};DatePickerControl.selectPrevDay=function(c){if(!this.displayed){return}var d=this.currentDay;var a=this.getDaysOfMonth(this.month,this.year);var b=d-c;if(b<=0){if(c==7){d=(d+this.dayOfWeek)+28-this.dayOfWeek;d--;b=d>a?d-7:d}else{b=a}}this.selectDay(b)};DatePickerControl.selectNextDay=function(d){if(!this.displayed){return}var c=this.currentDay;var a=this.getDaysOfMonth(this.month,this.year);var b=c+d;if(b>a){if(d==7){c=((c+this.dayOfWeek)%7)-this.dayOfWeek;b=c<0?c+7:c;b++}else{b=1}}this.selectDay(b)};DatePickerControl.showForEdit=function(b){if(this.displayed){return}if(b==null){return}if(b.disabled){return}this.inputControl=b;this.originalValue=b.value;this.setupRange();var d=this.inputControl.getAttribute("datepicker_format");if(d==null){d=this.defaultFormat}this.format=d;if(this.validate(b.value,d)){var a=this.getDateFromControl();this.currentDate=a;this.build(a.getMonth(),a.getFullYear());this.currentDay=a.getDate()}else{b.value="";this.originalValue="";this.currentDate=null;if(this.defaultTodaySel){this.currentDay=new Date().getDate()}else{this.currentDay=1}this.build(null,null)}var c=document.getElementById(this.dayIdPrefix+this.currentDay);if(c){c.className="current"}this.writeCurrentDate();this.show()};DatePickerControl.isInRange=function(b){if(!this.minDate&&!this.maxDate){return true}if(b){var f=new Date();f.setFullYear(this.year);f.setMonth(this.month);f.setDate(b);if(this.minDate){if(this.compareDates(f,this.minDate)<0){return false}}if(this.maxDate){if(this.compareDates(f,this.maxDate)>0){return false}}}else{var e=parseInt(this.year.toString()+(this.month<10?"0"+this.month.toString():this.month.toString()));var a;if(this.minDate){a=this.minDate.getMonth();var d=parseInt(this.minDate.getFullYear().toString()+(a<10?"0"+a.toString():a.toString()));if(ec){return false}}}return true};DatePickerControl.setupRange=function(){var d=this.inputControl;var e=d.getAttribute("datepicker_format");var c=d.getAttribute("datepicker_min");this.minDate=c?this.getDateFromString(c,e):null;var a=d.getAttribute("datepicker_max");this.maxDate=a?this.getDateFromString(a,e):null;if(this.maxDate&&this.minDate){if(this.maxDate.getTime()1)?"/":((f.indexOf("-")>1)?"-":".");var c=f.split(g);if(p.substring(0,1).toUpperCase()=="D"){n=parseFloat(c[0]);e=parseFloat(c[1]);o=parseFloat(c[2])}else{if(p.substring(0,1).toUpperCase()=="Y"){n=parseFloat(c[2]);e=parseFloat(c[1]);o=parseFloat(c[0])}else{if(p.substring(0,1).toUpperCase()=="M"){n=parseFloat(c[1]);e=parseFloat(c[0]);o=parseFloat(c[2])}}}if(e<1||e>12){return false}if(n>this.getDaysOfMonth(e-1,o)){return false}this.month=e;this.year=o;var h=this.isInRange(n);this.month=l;this.year=b;return h};DatePickerControl.isLeapYear=function(a){if((a%4)==0){if((a%100)==0&&(a%400)!=0){return false}return true}return false};function DPC_onButtonClick(a){DatePickerControl.onButtonClick(a)}DatePickerControl.onButtonClick=function(c){if(!this.displayed){if(c==null){c=window.event}var b=(c.srcElement)?c.srcElement:c.originalTarget;var a=document.getElementById(b.getAttribute("datepicker_inputid"));this.showForEdit(a)}else{this.hide()}};function DPC_onContainerClick(a){DatePickerControl.onContainerClick(a)}DatePickerControl.onContainerClick=function(a){if(a==null){a=window.event}if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=null}this.inputControl.focus();return false};function DPC_onEditControlKeyUp(a){DatePickerControl.onEditControlKeyUp(a)}DatePickerControl.onEditControlKeyUp=function(c){if(c==null){c=window.event}var b=c.srcElement?c.srcElement:c.originalTarget;var a=c.charCode?c.charCode:c.which?c.which:c.keyCode;switch(a){case 37:this.selectPrevDay(1);break;case 38:this.selectPrevDay(7);break;case 39:this.selectNextDay(1);break;case 40:if(!this.displayed){this.showForEdit(b)}else{this.selectNextDay(7);break}break;case 27:this.hide();break;case 33:if((c.modifiers&Event.SHIFT_MASK)||(c.shiftKey)){this.build(this.month,parseInt(this.year)-1)}else{this.buildPrev()}break;case 34:if((c.modifiers&Event.SHIFT_MASK)||(c.shiftKey)){this.build(this.month,parseInt(this.year)+1)}else{this.buildNext()}break;case 13:if(this.displayed&&this.currentDay>0&&this.submitByKey){this.writeDate(this.currentDay)}break}return false};function DPC_onEditControlKeyDown(a){DatePickerControl.onEditControlKeyDown(a)}DatePickerControl.onEditControlKeyDown=function(c){if(c==null){c=window.event}var b=c.srcElement?c.srcElement:c.originalTarget;var a=c.charCode?c.charCode:c.which?c.which:c.keyCode;if(a>=65&&a<=90){if(c.stopPropagation){c.stopPropagation()}if(c.preventDefault){c.preventDefault()}c.returnValue=false;c.cancelBubble=true;return false}switch(a){case 13:this.submitByKey=true;break;case 9:case 32:if(this.displayed&&this.currentDay>0){this.writeDate(this.currentDay)}break}};function DPC_onEditControlKeyPress(a){DatePickerControl.onEditControlKeyPress(a)}DatePickerControl.onEditControlKeyPress=function(c){if(c==null){c=window.event}var b=c.srcElement?c.srcElement:c.originalTarget;var a=c.charCode?c.charCode:c.which?c.which:c.keyCode;if(!((a<32)||(a>44&&a<58))){if(c.stopPropagation){c.stopPropagation()}if(c.preventDefault){c.preventDefault()}c.returnValue=false;c.cancelBubble=true;return false}};function DPC_onEditControlBlur(a){DatePickerControl.onEditControlBlur(a)}DatePickerControl.onEditControlBlur=function(a){if(a==null){a=window.event}if(!this.hideTimeout){this.hideTimeout=setTimeout("DatePickerControl.hide()",this.HIDE_TIMEOUT)}this.firstFocused=false;this.hideCauseBlur=true};function DPC_onEditControlChange(a){DatePickerControl.onEditControlChange(a)}DatePickerControl.onEditControlChange=function(b){if(b==null){b=window.event}var a=(b.srcElement)?b.srcElement:b.originalTarget;if(a.value==""){return}var c=a.getAttribute("datepicker_format");if(!this.validate(a.value,c)){setTimeout("e = document.getElementById('"+a.id+"'); e.value=''; e.focus()",10)}};function DPC_onEditControlFocus(a){DatePickerControl.onEditControlFocus(a)}DatePickerControl.onEditControlFocus=function(b){if(b==null){b=window.event}var a=(b.srcElement)?b.srcElement:b.originalTarget;this.inputControl=a;this.originalValue=a.value;this.setupRange();if((!this.displayed||this.hideCauseBlur)&&this.autoShow&&!this.firstFocused){clearTimeout(this.hideTimeout);this.hideTimeout=null;this.firstFocused=true;if(this.hideCauseBlur){this.hideCauseBlur=false;this.hide()}this.showForEdit(a)}else{if(this.inputControl&&this.inputControl.id!=a.id){this.hide()}else{if(this.hideTimeout){clearTimeout(this.hideTimeout);this.hideTimeout=null}}}};function DPC_onFormSubmit(a){DatePickerControl.onFormSubmit(a)}DatePickerControl.onFormSubmit=function(a){if(this.submitByKey){this.submitByKey=false;if(this.displayed&&this.currentDay>0){this.writeDate(this.currentDay);if(a==null){a=window.event}var b=(a.srcElement)?a.srcElement:a.originalTarget;if(a.stopPropagation){a.stopPropagation()}if(a.preventDefault){a.preventDefault()}a.returnValue=false;a.cancelBubble=true;return false}}this.reformatOnSubmit()};DatePickerControl.reformatOnSubmit=function(){if(this.submitFormat==""){return true}var a=document.getElementsByTagName("input");var e=a.length;var c;for(c=0;c=0){b=b.replace("YYYY",h.getFullYear())}else{b=b.replace("YY",h.getFullYear())}f.value=b}}}return true};function DPC_formSubmit(){var a=DatePickerControl.reformatOnSubmit();if(this.submitOrig){a=this.submitOrig()}return a}function DPC_onWindowResize(a){DatePickerControl.onWindowResize(a)}DatePickerControl.onWindowResize=function(a){this.relocate()};DatePickerControl.relocateButtons=function(){return;var e=document.getElementsByTagName("div");for(key in e){if(e[key].id&&e[key].id.indexOf(this.buttonIdPrefix)==0){var c=e[key];if(c.style.display=="none"){continue}var a=document.getElementById(c.getAttribute("datepicker_inputid"));if(a.style.display=="none"||a.offsetTop==0){continue}var b=getObject.getSize("offsetTop",a);var d=getObject.getSize("offsetLeft",a);c.style.top=(b+Math.floor((a.offsetHeight-c.offsetHeight)/2)+this.buttonOffsetY)+"px";var f=Math.floor((a.offsetHeight-c.offsetHeight)/2);if(this.buttonPosition=="in"){c.style.left=(d+a.offsetWidth-c.offsetWidth-f+this.buttonOffsetX)+"px"}else{c.style.left=(d+a.offsetWidth+f+this.buttonOffsetX)+"px"}}}};DatePickerControl.relocate=function(){if(this.displayed){var a=this.inputControl;if(a==null){return}var c=getObject.getSize("offsetTop",a);var b=getObject.getSize("offsetLeft",a);this.calContainer.style.top=c+a.offsetHeight+this.offsetY+"px";this.calContainer.style.left=b+this.offsetX+"px";if(this.calBG){this.calBG.style.top=this.calContainer.style.top;this.calBG.style.left=this.calContainer.style.left}}};DatePickerControl.getWeekNumber=function(h,f,n){var g=new Date(h,f,n);var c=new Date(h,0,1);var e=7+1-c.getDay();if(e==8){e=1}var b=((Date.UTC(y2k(h),g.getMonth(),g.getDate(),0,0,0)-Date.UTC(y2k(h),0,1,0,0,0))/1000/60/60/24)+1;var d=Math.floor((b-e+7)/7);if(d==0){h--;var a=new Date(h,0,1);var l=7+1-a.getDay();if(l==2||l==8){d=53}else{d=52}}return d};function y2k(a){return(a<1000)?a+1900:a}function getObject(a){if(bw.dom){this.hElement=document.getElementById(a);this.hStyle=this.hElement.style}else{if(bw.ns4){this.hElement=document.layers[a];this.hStyle=this.hElement}else{if(bw.ie){this.hElement=document.all[a];this.hStyle=this.hElement.style}}}}getObject.getSize=function(sParam,hLayer){nPos=0;while((hLayer.tagName)&&!(/(body|html)/i.test(hLayer.tagName))){nPos+=eval("hLayer."+sParam);if(sParam=="offsetTop"){if(hLayer.clientTop){nPos+=hLayer.clientTop}}if(sParam=="offsetLeft"){if(hLayer.clientLeft){nPos+=hLayer.clientLeft}}hLayer=hLayer.offsetParent}return nPos};function writeLayer(ID,parentID,sText){if(document.layers){var oLayer;if(parentID){oLayer=eval("document."+parentID+".document."+ID+".document")}else{oLayer=document.layers[ID].document}oLayer.open();oLayer.write(sText);oLayer.close()}else{if(document.all){document.all[ID].innerHTML=sText}else{document.getElementById(ID).innerHTML=sText}}};(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("
    ")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('

    The requested content cannot be loaded.
    Please try again later.

    ');F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)||c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick=false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case"html":m.html(e.content);F();break;case"inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('
    ').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel",function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case"image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case"swf":e.scrolling="no";C='';P="";b.each(e.swf,function(x,H){C+='';P+=" "+x+'="'+H+'"'});C+='";m.html(C);F();break;case"ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win=="function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case"iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('
    ');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor,opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length?d.titlePosition=="float"?'
    '+s+'
    ':'
    '+s+"
    ":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case"inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding});y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case"over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case"float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height==i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents());f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode==37||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto");s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('').appendTo(j);f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c);j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type=="image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"),10)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)};b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k=0,C=a.length;ko.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+1)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h=true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1;b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5-d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('
    '),t=b('
    '),u=b('
    '),f=b('
    '));D=b('
    ').append('
    ').appendTo(f);D.append(j=b('
    '),E=b(''),n=b('
    '),z=b(''),A=b(''));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()});b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('').prependTo(D)}}};b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery); !function(){if(!window.hasCookieConsent){window.hasCookieConsent=!0;var e="cookieconsent_options",t="update_cookieconsent_options",n="cookieconsent_dismissed",i="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/";if(!(document.cookie.indexOf(n)>-1||window.navigator&&window.navigator.CookiesOK)){"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var o,s={isArray:function(e){var t=Object.prototype.toString.call(e);return"[object Array]"==t},isObject:function(e){return"[object Object]"==Object.prototype.toString.call(e)},each:function(e,t,n,i){if(s.isObject(e)&&!i)for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e);else for(var r=0,a=e.length;a>r;r++)t.call(n,e[r],r,e)},merge:function(e,t){e&&s.each(t,function(t,n){s.isObject(t)&&s.isObject(e[n])?s.merge(e[n],t):e[n]=t})},bind:function(e,t){return function(){return e.apply(t,arguments)}},queryObject:function(e,t){var n,i=0,o=e;for(t=t.split(".");(n=t[i++])&&o.hasOwnProperty(n)&&(o=o[n]);)if(i===t.length)return o;return null},setCookie:function(e,t,n,i,o){n=n||365;var s=new Date;s.setDate(s.getDate()+n);var r=[e+"="+t,"expires="+s.toUTCString(),"path="+o||"/"];i&&r.push("domain="+i),document.cookie=r.join(";")},addEventListener:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)}},r=function(){var e="data-cc-event",t="data-cc-if",n=function(e,t,i){return s.isArray(t)?s.each(t,function(t){n(e,t,i)}):void(e.addEventListener?e.addEventListener(t,i):e.attachEvent("on"+t,i))},i=function(e,t){return e.replace(/\{\{(.*?)\}\}/g,function(e,n){for(var i,o,r=n.split("||");o=r.shift();){if(o=o.trim(),'"'===o[0])return o.slice(1,o.length-1);if(i=s.queryObject(t,o))return i}return""})},o=function(e){var t=document.createElement("div");return t.innerHTML=e,t.children[0]},r=function(e,t,n){var i=e.parentNode.querySelectorAll("["+t+"]");s.each(i,function(e){var i=e.getAttribute(t);n(e,i)},window,!0)},a=function(t,i){r(t,e,function(e,t){var o=t.split(":"),r=s.queryObject(i,o[1]);n(e,o[0],s.bind(r,i))})},c=function(e,n){r(e,t,function(e,t){var i=s.queryObject(n,t);i||e.parentNode.removeChild(e)})};return{build:function(e,t){s.isArray(e)&&(e=e.join("")),e=i(e,t);var n=o(e);return a(n,t),c(n,t),n}}}(),a={options:{message:"This website uses cookies to ensure you get the best experience on our website. ",dismiss:"Got it!",learnMore:"More info",link:null,target:"_self",container:null,theme:"light-floating",domain:null,path:"/",expiryDays:365,markup:['"]},init:function(){var t=window[e];t&&this.setOptions(t),this.setContainer(),this.options.theme?this.loadTheme(this.render):this.render()},setOptionsOnTheFly:function(e){this.setOptions(e),this.render()},setOptions:function(e){s.merge(this.options,e)},setContainer:function(){this.options.container?this.container=document.querySelector(this.options.container):this.container=document.body,this.containerClasses="",navigator.appVersion.indexOf("MSIE 8")>-1&&(this.containerClasses+=" cc_ie8")},loadTheme:function(e){var t=this.options.theme;-1===t.indexOf(".css")&&(t=i+t+".css");var n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href=t;var o=!1;n.onload=s.bind(function(){!o&&e&&(e.call(this),o=!0)},this),document.getElementsByTagName("head")[0].appendChild(n)},render:function(){this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),delete this.element),this.element=r.build(this.options.markup,this),this.container.firstChild?this.container.insertBefore(this.element,this.container.firstChild):this.container.appendChild(this.element)},dismiss:function(e){e.preventDefault&&e.preventDefault(),e.returnValue=!1,this.setDismissedCookie(),this.container.removeChild(this.element)},setDismissedCookie:function(){s.setCookie(n,"yes",this.options.expiryDays,this.options.domain,this.options.path)}},c=!1;(o=function(){c||"complete"!=document.readyState||(a.init(),c=!0,window[t]=s.bind(a.setOptionsOnTheFly,a))})(),s.addEventListener(document,"readystatechange",o)}}}();$(document).ready(function(){if(document.body.clientWidth>=800){$(".nav-global").accessibleDropDown()}});$.fn.accessibleDropDown=function(){var e=$(this);$("li",e).mouseover(function(){$(this).addClass("hover-access")}).mouseout(function(){$(this).removeClass("hover-access")});$("a",e).focus(function(){$(this).parents("li").addClass("hover-access")}).blur(function(){$(this).parents("li").removeClass("hover-access")})} var getViewportWidth=function(){var vpw,w=window,wk=(!(window.webkitConvertPointFromNodeToPage==null));if(wk||!(typeof(window.innerWidth)=='number')){vpw=document.documentElement.clientWidth;}else{vpw=w.innerWidth;}return vpw;};var ww=getViewportWidth();$(document).ready(function(){$(".nav li a").each(function(){if($(this).next().length>0){$(this).addClass("parent")}});$(".toggleMenu").click(function(e){e.preventDefault();$(this).toggleClass("active");$(".nav").toggle()});adjustMenu()});$(window).bind("resize orientationchange",function(){ww=getViewportWidth();adjustMenu()});var adjustMenu=function(){if(ww<801){if(!$(".toggleMenu").hasClass("active")){$(".nav").hide()}else{$(".nav").show()}$(".nav li").unbind("mouseenter mouseleave");$("#primary-nav .ico-menu-down").unbind("click").bind("click",function(e){e.preventDefault();$(this).parent("li").toggleClass("hover")})}else if(ww>=801){$(".nav li").removeClass("hover");$(".nav li a").unbind("click");$(".nav li").unbind("mouseenter mouseleave").bind("mouseenter mouseleave",function(){$(this).toggleClass("hover")})}} $(document).ready(function(){var e=navigator.userAgent,t=e.match(/iPad/i)?"touchstart":"click";if($("html").hasClass("touch")){$("#menu a.menuparent").bind(t,function(e){e.preventDefault();if(!$(this).data("custom-even")){$(this).data("custom-even",true);return false}else{$(this).data("custom-even",false);document.location.href=$(this).attr("href")}});$("#menu ul.unli a").click(function(){return true})}}) $(window).load(function(){ dateplug(); $('.expand-one').click(function(){ $('.collapse-one').slideToggle('slow'); }); }); $(document).ready(function(){ $( '#example5' ).sliderPro({ width: 670, height: 500, duration : 5200, orientation: 'vertical', loop: false, arrows: false, buttons: false, autoplay : true, thumbnailsPosition: 'right', thumbnailPointer: true, thumbnailWidth: 290, breakpoints: { 800: { thumbnailsPosition: 'bottom', thumbnailWidth: 270, thumbnailHeight: 100 }, 500: { thumbnailsPosition: 'bottom', thumbnailWidth: 120, thumbnailHeight: 50 } } }); $('#contents-sidebar').before( $('#header') ); $('#contents-sidebar').before( $('#menu') ); $('#header').addClass("newclass"); $('.newclass').css("display" , "block"); $('#sidebar').addClass("sidebarcharge"); $('.sidebarcharge').css("display" , "block"); $('#preloader').fadeOut("fast"); $('.container-col').css("margin-top" , "auto"); $('#menu').removeClass('menuload'); $("a.group").fancybox({ 'speedIn': 300, 'speedOut': 300, 'overlayColor': '#000', 'overlayOpacity': 0.7, 'cyclic': true }); $(window).scroll(function(){ navigator.userAgent.match(/(iPod|iPhone|iPad)/)||(595<=$(window).scrollTop()?($(".regular").addClass("sticky"),$(".sticky").css("top","0"),$(".sticky").css("opacity","1")):$(".regular").removeClass("sticky")) }); $("#back-top").hide(); $(function () { $(window).scroll(function () { if ($(this).scrollTop() > 500) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); $('#back-top').click(function () { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); }); $(function(){ $("#slider-id,#slider2-id").liquidSlider({ dynamicArrows:!0, autoSlide:true, hoverArrows:false, dynamicTabs:!1 }) }); }); $(function() { cbpBGSlideshow.init(); interval = 155000; }); function LZ(n) { return (n > 9 ? n : '0' + n); } function dateplug() { var d = new Date(); document.getElementById('DPC_arrivalDate').value = LZ(d.getDate()) + "/"+ LZ(d.getMonth()+1) +"/"+ d.getFullYear(); var df = new Date(); df.setDate(df.getDate() + 7); if (document.getElementById('DPC_departureDate')) document.getElementById('DPC_departureDate').value = LZ(df.getDate()) + "/"+ LZ(df.getMonth()+1) +"/"+ df.getFullYear(); } function dateupd() { day = document.getElementById('DPC_arrivalDate').value.substring(0,2); month = document.getElementById('DPC_arrivalDate').value.substring(3,5); year = document.getElementById('DPC_arrivalDate').value.substring(6,10); var d = new Date(); d.setDate(day); d.setMonth(month-1); d.setFullYear(year); var dt = d; dt.setDate(d.getDate() + 7); if (document.getElementById('DPC_departureDate')) document.getElementById('DPC_departureDate').value = LZ(dt.getDate()) + "/"+ LZ(dt.getMonth()+1) +"/"+ dt.getFullYear(); } function datedep() { day = document.getElementById('DPC_departureDate').value.substring(0,2); month = document.getElementById('DPC_departureDate').value.substring(3,5); year = document.getElementById('DPC_departureDate').value.substring(6,10); var d = new Date(); d.setDate(day); d.setMonth(month-1); d.setFullYear(year); var dt = d; }