1!function(t){var e=function(){var e={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},i=function(){var e=/iPhone|iPad|iPod/i.test(navigator.userAgent);return e&&t(window).load(function(){t("body").children().on("click",t.noop)}),e}(),n=function(){var t=document.documentElement.style;return"behavior"in t&&"fill"in t&&/iemobile/i.test(navigator.userAgent)}(),o=function(t,i){var n=e.menuClass;i.cssArrows&&(n+=" "+e.menuArrowClass),t.toggleClass(n)},s=function(i,n){return i.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+e.bcClass).filter(function(){return t(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)},r=function(t){t.children("a").toggleClass(e.anchorClass)},a=function(t){var e=t.css("ms-touch-action");e="pan-y"===e?"auto":"pan-y",t.css("ms-touch-action",e)},l=function(e,o){var s="li:has("+o.popUpSelector+")";t.fn.hoverIntent&&!o.disableHI?e.hoverIntent(u,d,s):e.on("mouseenter.superfish",s,u).on("mouseleave.superfish",s,d);var r="MSPointerDown.superfish";i||(r+=" touchend.superfish"),n&&(r+=" mousedown.superfish"),e.on("focusin.superfish","li",u).on("focusout.superfish","li",d).on(r,"a",o,c)},c=function(e){var i=t(this),n=i.siblings(e.data.popUpSelector);n.length>0&&n.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===e.type?i.trigger("focus"):t.proxy(u,i.parent("li"))())},u=function(){var e=t(this),i=h(e);clearTimeout(i.sfTimer),e.siblings().superfish("hide").end().superfish("show")},d=function(){var e=t(this),n=h(e);i?t.proxy(p,e,n)():(clearTimeout(n.sfTimer),n.sfTimer=setTimeout(t.proxy(p,e,n),n.delay))},p=function(e){e.retainPath=t.inArray(this[0],e.$path)>-1,this.superfish("hide"),this.parents("."+e.hoverClass).length||(e.onIdle.call(f(this)),e.$path.length&&t.proxy(u,e.$path)())},f=function(t){return t.closest("."+e.menuClass)},h=function(t){return f(t).data("sf-options")};return{hide:function(e){if(this.length){var i=this,n=h(i);if(!n)return this;var o=n.retainPath===!0?n.$path:"",s=i.find("li."+n.hoverClass).add(this).not(o).removeClass(n.hoverClass).children(n.popUpSelector),r=n.speedOut;e&&(s.show(),r=0),n.retainPath=!1,n.onBeforeHide.call(s),s.stop(!0,!0).animate(n.animationOut,r,function(){var e=t(this);n.onHide.call(e)})}return this},show:function(){var t=h(this);if(!t)return this;var e=this.addClass(t.hoverClass),i=e.children(t.popUpSelector);return t.onBeforeShow.call(i),i.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(i)}),this},destroy:function(){return this.each(function(){var i,n=t(this),s=n.data("sf-options");return s?(i=n.find(s.popUpSelector).parent("li"),clearTimeout(s.sfTimer),o(n,s),r(i),a(n),n.off(".superfish").off(".hoverIntent"),i.children(s.popUpSelector).attr("style",function(t,e){return e.replace(/display[^;]+;?/g,"")}),s.$path.removeClass(s.hoverClass+" "+e.bcClass).addClass(s.pathClass),n.find("."+s.hoverClass).removeClass(s.hoverClass),s.onDestroy.call(n),void n.removeData("sf-options")):!1})},init:function(i){return this.each(function(){var n=t(this);if(n.data("sf-options"))return!1;var c=t.extend({},t.fn.superfish.defaults,i),u=n.find(c.popUpSelector).parent("li");c.$path=s(n,c),n.data("sf-options",c),o(n,c),r(u),a(n),l(n,c),u.not("."+e.bcClass).superfish("hide",!0),c.onInit.call(this)})}}}();t.fn.superfish=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?t.error("Method "+i+" does not exist on jQuery.fn.superfish"):e.init.apply(this,arguments)},t.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:t.noop,onBeforeShow:t.noop,onShow:t.noop,onBeforeHide:t.noop,onHide:t.noop,onIdle:t.noop,onDestroy:t.noop},t.fn.extend({hideSuperfishUl:e.hide,showSuperfishUl:e.show})}(jQuery),function(t){t.fn.supersubs=function(e){var i=t.extend({},t.fn.supersubs.defaults,e);return this.each(function(){var e=t(this),n=t.meta?t.extend({},i,e.data()):i;$ULs=e.find("ul").show();var o=t('<li id="menu-fontsize">—</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(e)[0].clientWidth;t("#menu-fontsize").remove(),$ULs.each(function(){var e=t(this),i=e.children(),s=i.
1children("a"),r=i.css("white-space","nowrap").css("float");e.add(i).add(s).css({"float":"none",width:"auto"});var a=e[0].clientWidth/o;a+=n.extraWidth,a>n.maxWidth?a=n.maxWidth:a<n.minWidth&&(a=n.minWidth),a+="em",e.css("width",a),i.css({"float":r,width:"100%","white-space":"normal"}).each(function(){var e=t(this).children("ul"),i=void 0!==e.css("left")?"left":"right";e.css(i,"100%")})}).hide()})},t.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}}(jQuery),function(t){t.fn.hoverIntent=function(e,i,n){var o={interval:100,sensitivity:7,timeout:0};o="object"==typeof e?t.extend(o,e):t.isFunction(i)?t.extend(o,{over:e,out:i,selector:n}):t.extend(o,{over:e,out:e,selector:i});var s,r,a,l,c=function(t){s=t.pageX,r=t.pageY},u=function(e,i){return i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(a-s)+Math.abs(l-r)<o.sensitivity?(t(i).off("mousemove.hoverIntent",c),i.hoverIntent_s=1,o.over.apply(i,[e])):(a=s,l=r,i.hoverIntent_t=setTimeout(function(){u(e,i)},o.interval),void 0)},d=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,o.out.apply(e,[t])},p=function(e){var i=jQuery.extend({},e),n=this;n.hoverIntent_t&&(n.hoverIntent_t=clearTimeout(n.hoverIntent_t)),"mouseenter"==e.type?(a=i.pageX,l=i.pageY,t(n).on("mousemove.hoverIntent",c),1!=n.hoverIntent_s&&(n.hoverIntent_t=setTimeout(function(){u(i,n)},o.interval))):(t(n).off("mousemove.hoverIntent",c),1==n.hoverIntent_s&&(n.hoverIntent_t=setTimeout(function(){d(i,n)},o.timeout)))};return this.on({"mouseenter.hoverIntent":p,"mouseleave.hoverIntent":p},o.selector)}}(jQuery),function(t){var e={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",shrink:!1},i=t(window),n=t(document),o=[],s=i.height(),r=function(){var e=i.scrollTop(),r=n.height(),a=r-s,l=e>a?a-e:0;if(t("body").hasClass("shrink-fixed-header"))var c=!0;for(var u=0;u<o.length;u++){var d=o[u],p=d.stickyWrapper.offset().top,f=d.stickyWrapper.offset().top+d.stickyWrapper.outerHeight();if(c)var h=f-d.topSpacing-l;else var h=p-d.topSpacing-l;if(h>=e)null!==d.currentTop&&(d.stickyElement.css("position","").css("top",""),d.stickyElement.parent().removeClass(d.className),d.currentTop=null);else{var m=r-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-l;0>m?m+=d.topSpacing:m=d.topSpacing,d.currentTop!=m&&(c&&d.stickyElement.hide().fadeIn(500),d.stickyElement.css("position","fixed").css("top",m),"undefined"!=typeof d.getWidthFrom&&d.stickyElement.css("width",t(d.getWidthFrom).width()),d.stickyElement.parent().addClass(d.className),d.currentTop=m)}}},a=function(){s=i.height()},l={init:function(i){var n=t.extend(e,i);return this.each(function(){var e=t(this),i=e.attr("id"),s=t("<div></div>").attr("id",i+"-sticky-wrapper").addClass(n.wrapperClassName);e.wrapAll(s),n.center&&e.parent().css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"==e.css("float")&&e.css({"float":"none"}).parent().css({"float":"right"});var r=e.parent();r.css("height",e.outerHeight()),o.push({topSpacing:n.topSpacing,bottomSpacing:n.bottomSpacing,stickyElement:e,currentTop:null,stickyWrapper:r,className:n.className,getWidthFrom:n.getWidthFrom,sticky:n.sticky})})},update:r,unstick:function(){return this.each(function(){var e=t(this);removeIdx=-1;for(var i=0;i<o.length;i++)o[i].stickyElement.get(0)==e.get(0)&&(removeIdx=i);-1!=removeIdx&&(o.splice(removeIdx,1),e.unwrap(),e.removeAttr("style"))})}};window.addEventListener?(window.addEventListener("scroll",r,!1),window.addEventListener("resize",a,!1)):window.attachEvent&&(window.attachEvent("onscroll",r),window.attachEvent("onresize",a)),t.fn.sticky=function(e){return l[e]?l[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.sticky"):l.init.apply(this,arguments)},t.fn.unstick=function(e){return l[e]?l[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.sticky"):l.unstick.apply(this,arguments)},t(function(){setTimeout(r,0)})}(jQuery),function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function i(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}function n(e,i){this.$element=t(e),this.options=i,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var o,s=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),r=n[0].offsetWidth,a=n[0].offsetHeight,l=e(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":o={top:s.top+s.height+this.options.offset,left:s.left+s.width/2-r/2};break;case"s":o={top:s.top-a-this.options.offset,left:s.left+s.width/2-r/2};break;case"e":o={top:s.top+s.height/2-a/2,left:s.left-r-this.options.offset};break;case"w":o={top:s.top+s.height/2-a/2,left:s.left+s.width+this.options.offset}}2==l.length&&(o.left="w"==l.charAt(1)?s.left+s.width/2-15:s.left+s.width/2-r+15),n.css(o).addClass("tipsy-"+l),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&n.addClass(e(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,i=this.options;this.fixTitle();var t,i=this.options;return"string"==typeof i.title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),t=(""+t).replace(/(^\s*|\s*$)/,""),t||i.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){function i(i){var o=t.data(i,"tipsy");return o||(o=new n(i,t.fn.tipsy.elementOptions(i,e)),t.data(i,"tipsy",o)),o}function o(){var t=i(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},e.delayIn))}function s(){var t=i(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},e.delayOut)}if(e===!0)return this.data("tipsy");if("string"==typeof e){var r=this.data("tipsy");return r&&r[e](),this}if(e=t.extend({},t.fn.tipsy.defaults,e),e.live||this.each(function(){i(this)}),"manual"!=e.trigger){var a=e.live?"live":"bind",l="hover"==e.trigger?"mouseenter":"focus",c="hover"==e.trigger?"mouseleave":"blur";this[a](l,o)[a](c,s)}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.revalidate=function(){t(".tipsy").each(function(){var e=t.data(this,"tipsy-pointee");e&&i(e)||t(this).remove()})},t.fn.tipsy.elementOptions=function(e,i){return t.metadata?t.extend({},i,t(e).metadata()):i},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,i){return function(){var n={ns:i[0],ew:i.length>1?i[1]:!1},o=t(document).scrollTop()+e,s=t(document).scrollLeft()+e,r=t(this);return r.offset().top<o&&(n.ns="n"),r.offset().left<s&&(n.ew="w"),t(window).width()+t(document).scrollLeft()-r.offset().left<e&&(n.ew="e"),t(window).height()+t(document).scrollTop()-r.offset().top<e&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery),function(){var t=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){return"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(i){return e(i,t)}
1):e(t.jQuery,t)}(this,function(i,n){var o,s,r,a,l,c,u,d,p,f,h,m,g,v,b,y;return o=i(n),d=t.call(n,"ontouchstart")>=0,a={horizontal:{},vertical:{}},l=1,u={},c="waypoints-context-id",h="resize.waypoints",m="scroll.waypoints",g=1,v="waypoints-waypoint-ids",b="waypoint",y="waypoints",s=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+l++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},t.data(c,this.id),u[this.id]=this,t.bind(m,function(){var t;return e.didScroll||d?void 0:(e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},n.setTimeout(t,i[y].settings.scrollThrottle))}),t.bind(h,function(){var t;return e.didResize?void 0:(e.didResize=!0,t=function(){return i[y]("refresh"),e.didResize=!1},n.setTimeout(t,i[y].settings.resizeThrottle))})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!d||t.vertical.oldScroll&&t.vertical.newScroll||i[y]("refresh"),i.each(t,function(t,n){var o,s,r;return r=[],s=n.newScroll>n.oldScroll,o=s?n.forward:n.backward,i.each(e.waypoints[t],function(t,e){var i,o;return n.oldScroll<(i=e.offset)&&i<=n.newScroll?r.push(e):n.newScroll<(o=e.offset)&&o<=n.oldScroll?r.push(e):void 0}),r.sort(function(t,e){return t.offset-e.offset}),s||r.reverse(),i.each(r,function(t,e){return e.options.continuous||t===r.length-1?e.trigger([o]):void 0})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,n,o=this;return n=i.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:n?0:e.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:e.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?i[y]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},i.each(t,function(t,e){return i.each(o.waypoints[t],function(t,n){var o,s,r,a,l;return o=n.options.offset,r=n.offset,s=i.isWindow(n.element)?0:n.$element.offset()[e.offsetProp],i.isFunction(o)?o=o.apply(n.element):"string"==typeof o&&(o=parseFloat(o),n.options.offset.indexOf("%")>-1&&(o=Math.ceil(e.contextDimension*o/100))),n.offset=s-e.contextOffset+e.contextScroll-o,n.options.onlyOnScroll&&null!=r||!n.enabled?void 0:null!==r&&r<(a=e.oldScroll)&&a<=n.offset?n.trigger([e.backward]):null!==r&&r>(l=e.oldScroll)&&l>=n.offset?n.trigger([e.forward]):null===r&&e.oldScroll>=n.offset?n.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){return i.isEmptyObject(this.waypoints.horizontal)&&i.isEmptyObject(this.waypoints.vertical)?(this.$element.unbind([h,m].join(" ")),delete u[this.id]):void 0},t}(),r=function(){function t(t,e,n){var o,s;n=i.extend({},i.fn[b].defaults,n),"bottom-in-view"===n.offset&&(n.offset=function(){var t;return t=i[y]("viewportHeight"),i.isWindow(e.element)||(t=e.$element.height()),t-i(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=n.horizontal?"horizontal":"vertical",this.callback=n.handler,this.context=e,this.enabled=n.enabled,this.id="waypoints"+g++,this.offset=null,this.options=n,e.waypoints[this.axis][this.id]=this,a[this.axis][this.id]=this,o=null!=(s=t.data(v))?s:[],o.push(this.id),t.data(v,o)}return t.prototype.trigger=function(t){return this.enabled?(null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete a[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,n;return(n=i(t).data(v))?(e=i.extend({},a.horizontal,a.vertical),i.map(n,function(t){return e[t]})):[]},t}(),f={init:function(t,e){var n;return null==e&&(e={}),null==(n=e.handler)&&(e.handler=t),this.each(function(){var t,n,o,a;return t=i(this),o=null!=(a=e.context)?a:i.fn[b].defaults.context,i.isWindow(o)||(o=t.closest(o)),o=i(o),n=u[o.data(c)],n||(n=new s(o)),new r(t,n,e)}),i[y]("refresh"),this},disable:function(){return f._invoke(this,"disable")},enable:function(){return f._invoke(this,"enable")},destroy:function(){return f._invoke(this,"destroy")},prev:function(t,e){return f._traverse.call(this,t,e,function(t,e,
1i){return e>0?t.push(i[e-1]):void 0})},next:function(t,e){return f._traverse.call(this,t,e,function(t,e,i){return e<i.length-1?t.push(i[e+1]):void 0})},_traverse:function(t,e,o){var s,r;return null==t&&(t="vertical"),null==e&&(e=n),r=p.aggregate(e),s=[],this.each(function(){var e;return e=i.inArray(this,r[t]),o(s,e,r[t])}),this.pushStack(s)},_invoke:function(t,e){return t.each(function(){var t;return t=r.getWaypointsByElement(this),i.each(t,function(t,i){return i[e](),!0})}),this}},i.fn[b]=function(){var t,n;return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],f[n]?f[n].apply(this,t):i.isFunction(n)?f.init.apply(this,arguments):i.isPlainObject(n)?f.init.apply(this,[null,n]):i.error(n?"The "+n+" method does not exist in jQuery Waypoints.":"jQuery Waypoints needs a callback function or handler option.")},i.fn[b].defaults={context:n,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},p={refresh:function(){return i.each(u,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return null!=(t=n.innerHeight)?t:o.height()},aggregate:function(t){var e,n,o;return e=a,t&&(e=null!=(o=u[i(t).data(c)])?o.waypoints:void 0),e?(n={horizontal:[],vertical:[]},i.each(n,function(t,o){return i.each(e[t],function(t,e){return o.push(e)}),o.sort(function(t,e){return t.offset-e.offset}),n[t]=i.map(o,function(t){return t.element}),n[t]=i.unique(n[t])}),n):[]},above:function(t){return null==t&&(t=n),p._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){return null==t&&(t=n),p._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){return null==t&&(t=n),p._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=n),p._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return p._invoke("enable")},disable:function(){return p._invoke("disable")},destroy:function(){return p._invoke("destroy")},extendFn:function(t,e){return f[t]=e},_invoke:function(t){var e;return e=i.extend({},a.vertical,a.horizontal),i.each(e,function(e,i){return i[t](),!0})},_filter:function(t,e,n){var o,s;return(o=u[i(t).data(c)])?(s=[],i.each(o.waypoints[e],function(t,e){return n(o,e)?s.push(e):void 0}),s.sort(function(t,e){return t.offset-e.offset}),i.map(s,function(t){return t.element})):[]}},i[y]=function(){var t,i;return i=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],p[i]?p[i].apply(null,t):p.aggregate.call(null,i)},i[y].settings={resizeThrottle:100,scrollThrottle:30},o.load(function(){return i[y]("refresh")})})}.call(this),function(t){var e,i,n,o,s,r,a,l="Close",c="BeforeClose",u="AfterClose",d="BeforeAppend",p="MarkupParse",f="Open",h="Change",m="mfp",g="."+m,v="mfp-ready",b="mfp-removing",y="mfp-prevent-close",w=function(){},x=!!window.jQuery,_=t(window),C=function(t,i){e.ev.on(m+t+g,i)},S=function(e,i,n,o){var s=document.createElement("div");return s.className="mfp-"+e,n&&(s.innerHTML=n),o?i&&i.appendChild(s):(s=t(s),i&&s.appendTo(i)),s},A=function(i,n){e.ev.triggerHandler(m+i,n),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(n)?n:[n]))},I=function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).trigger("focus")},T=function(i){return i===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=i),e.currTemplate.closeBtn},k=function(){t.magnificPopup.instance||(e=new w,e.init(),t.magnificPopup.instance=e)},E=function(i){if(!t(i).hasClass(y)){var n=e.st.closeOnContentClick,o=e.st.closeOnBgClick;if(n&&o)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(n)return!0}else if(o&&t.contains(document,i))return!0;return!1}},O=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};w.prototype={constructor:w,init:function(){var i=navigator.appVersion;e.isIE7=-1!==i.indexOf("MSIE 7."),e.isIE8=-1!==i.indexOf("MSIE 8."),e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=O(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=t(document.body),o=t(document),e.popupsCache={}},open:function(i){var n;if(i.isObj===!1){e.items=i.items.toArray(),e.index=0;var s,a=i.items;for(n=0;a.length>n;n++)if(s=a[n],s.parsed&&(s=s.el[0]),s===i.el[0]){e.index=n;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(e.isOpen)return void e.updateItemHTML();
1e.types=[],r="",e.ev=i.mainEl&&i.mainEl.length?i.mainEl.eq(0):o,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=S("bg").on("click"+g,function(){e.close()}),e.wrap=S("wrap").attr("tabindex",-1).on("click"+g,function(t){E(t.target)&&e.close()}),e.container=S("container",e.wrap)),e.contentContainer=S("content"),e.st.preloader&&(e.preloader=S("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(n=0;l.length>n;n++){var c=l[n];c=c.charAt(0).toUpperCase()+c.slice(1),e["init"+c].call(e)}A("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(C(p,function(t,e,i,n){i.close_replaceWith=T(n.type)}),r+=" mfp-close-btn-in"):e.wrap.append(T())),e.st.alignTop&&(r+=" mfp-align-top"),e.wrap.css(e.fixedContentPos?{overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}:{top:_.scrollTop(),position:"absolute"}),(e.st.fixedBgPos===!1||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:"absolute"}),e.st.enableEscapeKey&&o.on("keyup"+g,function(t){27===t.keyCode&&e.close()}),_.on("resize"+g,function(){e.updateSize()}),e.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&e.wrap.addClass(r);var u=e.wH=_.height(),d={};if(e.fixedContentPos&&e._hasScrollBar(u)){var h=e._getScrollbarSize();h&&(d.paddingRight=h)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):d.overflow="hidden");var m=e.st.mainClass;e.isIE7&&(m+=" mfp-ie7"),m&&e._addClassToMFP(m),e.updateItemHTML(),A("BuildControls"),t("html").css(d),e.bgOverlay.add(e.wrap).prependTo(document.body),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP(v),I()):e.bgOverlay.addClass(v),o.on("focusin"+g,function(i){return i.target===e.wrap[0]||t.contains(e.wrap[0],i.target)?void 0:(I(),!1)})},16),e.isOpen=!0,e.updateSize(u),A(f)},close:function(){e.isOpen&&(A(c),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(b),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){A(l);var i=b+" "+v+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={paddingRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}o.off("keyup"+g+" focusin"+g),e.ev.off(g),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&e.currTemplate[e.currItem.type]!==!0||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e._lastFocusedEl&&t(e._lastFocusedEl).trigger("focus"),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,A(u)},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;e.wrap.css("height",n),e.wH=n}else e.wH=t||_.height();e.fixedContentPos||e.wrap.css("height",e.wH),A("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var n=i.type;if(A("BeforeChange",[e.currItem?e.currItem.type:"",n]),e.currItem=i,!e.currTemplate[n]){var o=e.st[n]?e.st[n].markup:!1;A("FirstMarkupParse",o),e.currTemplate[n]=o?t(o):!0}s&&s!==i.type&&e.container.removeClass("mfp-"+s+"-holder");var r=e["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,e.currTemplate[n]);e.appendContent(r,n),i.preloaded=!0,A(h,i),s=i.type,e.container.prepend(e.contentContainer),A("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&e.currTemplate[i]===!0?e.content.find(".mfp-close").length||e.content.append(T()):e.content=t:e.content="",A(d),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var n=e.items[i],o=n.type;if(n=n.tagName?{el:t(n)}:{data:n,src:n.src}
1,n.el){for(var s=e.types,r=0;s.length>r;r++)if(n.el.hasClass("mfp-"+s[r])){o=s[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||e.st.type||"inline",n.index=i,n.parsed=!0,e.items[i]=n,A("ElementParse",n),e.items[i]},addGroup:function(t,i){var n=function(n){n.mfpEl=this,e._openClick(n,t,i)};i||(i={});var o="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(o).on(o,n)):(i.isObj=!1,i.delegate?t.off(o).on(o,i.delegate,n):(i.items=t,t.off(o).on(o,n)))},_openClick:function(i,n,o){var s=void 0!==o.midClick?o.midClick:t.magnificPopup.defaults.midClick;if(s||2!==i.which&&!i.ctrlKey&&!i.metaKey){var r=void 0!==o.disableOn?o.disableOn:t.magnificPopup.defaults.disableOn;if(r)if(t.isFunction(r)){if(!r.call(e))return!0}else if(r>_.width())return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),o.el=t(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),e.open(o)}},updateStatus:function(t,n){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),n||"loading"!==t||(n=e.st.tLoading);var o={status:t,text:n};A("UpdateStatus",o),t=o.status,n=o.text,e.preloader.html(n),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),i=t}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||_.height())},_parseMarkup:function(e,i,n){var o;n.data&&(i=t.extend(n.data,i)),A(p,[e,i,n]),t.each(i,function(t,i){if(void 0===i||i===!1)return!0;if(o=t.split("_"),o.length>1){var n=e.find(g+"-"+o[0]);if(n.length>0){var s=o[1];"replaceWith"===s?n[0]!==i[0]&&n.replaceWith(i):"img"===s?n.is("img")?n.attr("src",i):n.replaceWith('<img src="'+i+'" class="'+n.attr("class")+'" />'):n.attr(o[1],i)}}else e.find(g+"-"+t).html(i)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.id="mfp-sbm",t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(t,e){return k(),t||(t={}),t.isObj=!0,t.index=e||0,this.instance.open(t)},close:function(){return t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},t.fn.magnificPopup=function(i){k();var n=t(this);if("string"==typeof i)if("open"===i){var o,s=x?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?o=s.items[r]:(o=n,s.delegate&&(o=o.find(s.delegate)),o=o.eq(r)),e._openClick({mfpEl:o},n,s)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else x?n.data("magnificPopup",i):n[0].magnificPopup=i,e.addGroup(n,i);return n};var P,L,B,z="inline",M=function(){B&&(L.after(B.addClass(P)).detach(),B=null)};t.magnificPopup.registerModule(z,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(z),C(l+"."+z,function(){M()})},getInline:function(i,n){if(M(),i.src){var o=e.st.inline,s=t(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(L||(P=o.hiddenClass,L=S(P),P="mfp-"+P),B=s.after(L).detach().removeClass(P)),e.updateStatus("ready")}else e.updateStatus("error",o.tNotFound),s=t("<div>");return i.inlineElement=s,s}return e.updateStatus("ready"),e._parseMarkup(n,{},i),n}}});var N,R="ajax",$=function(){N&&n.removeClass(N)};t.magnificPopup.registerModule(R,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(R),N=e.st.ajax.cursor,C(l+"."+R,function(){$(),e.req&&e.req.abort()})},getAjax:function(i){N&&n.addClass(N),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(n,o,s){var r={data:n,xhr:s};A("ParseAjax",r),e.appendContent(t(r.data),R),i.finished=!0,$(),I(),setTimeout(function(){e.wrap.addClass(v)},16),e.updateStatus("ready"),A("AjaxContentAdded")},error:function(){$(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var j,D=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;
1var n=e.st.image.titleSrc;if(n){if(t.isFunction(n))return n.call(e,i);if(i.el)return i.el.attr(n)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><div class="mfp-img"></div><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var t=e.st.image,i=".image";e.types.push("image"),C(f+i,function(){"image"===e.currItem.type&&t.cursor&&n.addClass(t.cursor)}),C(l+i,function(){t.cursor&&n.removeClass(t.cursor),_.off("resize"+g)}),C("Resize"+i,e.resizeImage),e.isLowIE&&C("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,j&&clearInterval(j),t.isCheckingImgSize=!1,A("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,n=t.img[0],o=function(s){j&&clearInterval(j),j=setInterval(function(){return n.naturalWidth>0?void e._onImageHasSize(t):(i>200&&clearInterval(j),i++,void(3===i?o(10):40===i?o(50):100===i&&o(500)))},s)};o(1)},getImage:function(i,n){var o=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,A("ImageLoadComplete")):(o++,200>o?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=n.find(".mfp-img");if(l.length){var c=new Image;c.className="mfp-img",i.img=t(c).on("load.mfploader",s).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),i.img[0].naturalWidth>0&&(i.hasSize=!0)}return e._parseMarkup(n,{title:D(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?(j&&clearInterval(j),i.loadError?(n.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),e.updateStatus("ready")),n):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),e.findImageSize(i)),n)}}});var W,H=function(){return void 0===W&&(W=void 0!==document.createElement("p").style.MozTransform),W};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t=e.st.zoom,i=".zoom";if(t.enabled&&e.supportsTransition){var n,o,s=t.duration,r=function(e){var i=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+t.duration/1e3+"s "+t.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return o["-webkit-"+s]=o["-moz-"+s]=o["-o-"+s]=o[s]=n,i.css(o),i},a=function(){e.content.css("visibility","visible")};C("BuildControls"+i,function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),image=e._getItemToZoom(),!image)return void a();o=r(image),o.css(e._getOffset()),e.wrap.append(o),n=setTimeout(function(){o.css(e._getOffset(!0)),n=setTimeout(function(){a(),setTimeout(function(){o.remove(),image=o=null,A("ZoomAnimationEnded")},16)},s)},16)}}),C(c+i,function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=s,!image){if(image=e._getItemToZoom(),!image)return;o=r(image)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout(function(){o.css(e._getOffset())},16)}}),C(l+i,function(){e._allowZoom()&&(a(),o&&o.remove())})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return e.currItem.hasSize?e.currItem.img:!1},_getOffset:function(i){var n;n=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var o=n.offset(),s=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=t(window).scrollTop()-s;var a={width:n.width(),height:(x?n.innerHeight():n[0].offsetHeight)-r-s};return H()?a["-moz-transform"]=a.transform="translate("+o.left+"px,"+o.top+"px)":(a.left=o.left,a.top=o.top),a}}});var F="iframe",q="//about:blank",Q=function(t){if(e.currTemplate[F]){var i=e.currTemplate[F].find("iframe");i.length&&(t||(i[0].src=q),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(F),C("BeforeChange",function(t,e,
1i){e!==i&&(e===F?Q():i===F&&Q(!0))}),C(l+"."+F,function(){Q()})},getIframe:function(i,n){var o=i.src,s=e.st.iframe;t.each(s.patterns,function(){return o.indexOf(this.index)>-1?(this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1):void 0});var r={};return s.srcAction&&(r[s.srcAction]=o),e._parseMarkup(n,r,i),e.updateStatus("ready"),n}}});var U=function(t){var i=e.items.length;return t>i-1?t-i:0>t?i+t:t},V=function(t,e,i){return t.replace("%curr%",e+1).replace("%total%",i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery",s=Boolean(t.fn.mfpFastClick);return e.direction=!0,i&&i.enabled?(r+=" mfp-gallery",C(f+n,function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",function(){return e.items.length>1?(e.next(),!1):void 0}),o.on("keydown"+n,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),C("UpdateStatus"+n,function(t,i){i.text&&(i.text=V(i.text,e.currItem.index,e.items.length))}),C(p+n,function(t,n,o,s){var r=e.items.length;o.counter=r>1?V(i.tCounter,s.index,r):""}),C("BuildControls"+n,function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var n=i.arrowMarkup,o=e.arrowLeft=t(n.replace("%title%",i.tPrev).replace("%dir%","left")).addClass(y),r=e.arrowRight=t(n.replace("%title%",i.tNext).replace("%dir%","right")).addClass(y),a=s?"mfpFastClick":"click";o[a](function(){e.prev()}),r[a](function(){e.next()}),e.isIE7&&(S("b",o[0],!1,!0),S("a",o[0],!1,!0),S("b",r[0],!1,!0),S("a",r[0],!1,!0)),e.container.append(o.add(r))}}),C(h+n,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),void C(l+n,function(){o.off(n),e.wrap.off("click"+n),e.arrowLeft&&s&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null})):!1},next:function(){e.direction=!0,e.index=U(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=U(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,n=Math.min(i[0],e.items.length),o=Math.min(i[1],e.items.length);for(t=1;(e.direction?o:n)>=t;t++)e._preloadItem(e.index+t);for(t=1;(e.direction?n:o)>=t;t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=U(i),!e.items[i].preloaded){var n=e.items[i];n.parsed||(n=e.parseEl(i)),A("LazyLoad",n),"image"===n.type&&(n.img=t('<img class="mfp-img" />').on("load.mfploader",function(){n.hasSize=!0}).on("error.mfploader",function(){n.hasSize=!0,n.loadError=!0,A("LazyLoadError",n)}).attr("src",n.src)),n.preloaded=!0}}}});var G="retina";t.magnificPopup.registerModule(G,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;i=isNaN(i)?i():i,i>1&&(C("ImageHasSize."+G,function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})}
1),C("ElementParse."+G,function(e,n){n.src=t.replaceSrc(n,i)}))}}}}),function(){var e=1e3,i="ontouchstart"in window,n=function(){_.off("touchmove"+s+" touchend"+s)},o="mfpFastClick",s="."+o;t.fn.mfpFastClick=function(o){return t(this).each(function(){var r,a=t(this);if(i){var l,c,u,d,p,f;a.on("touchstart"+s,function(t){d=!1,f=1,p=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],c=p.clientX,u=p.clientY,_.on("touchmove"+s,function(t){p=t.originalEvent?t.originalEvent.touches:t.touches,f=p.length,p=p[0],(Math.abs(p.clientX-c)>10||Math.abs(p.clientY-u)>10)&&(d=!0,n())}).on("touchend"+s,function(t){n(),d||f>1||(r=!0,t.preventDefault(),clearTimeout(l),l=setTimeout(function(){r=!1},e),o())})})}a.on("click"+s,function(){r||o()})})},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+s+" click"+s),i&&_.off("touchmove"+s+" touchend"+s)}}()}(window.jQuery||window.Zepto),function(t){function e(t){return"object"==typeof t?t:{top:t,left:t}}var i=t.scrollTo=function(e,i,n){t(window).scrollTo(e,i,n)};i.defaults={axis:"xy",duration:parseFloat(t.fn.jquery)>=1.3?0:1,limit:!0},i.window=function(){return t(window)._scrollable()},t.fn._scrollable=function(){return this.map(function(){var e=this,i=!e.nodeName||-1!=t.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"]);if(!i)return e;var n=(e.contentWindow||e).document||e.ownerDocument||e;return/webkit/i.test(navigator.userAgent)||"BackCompat"==n.compatMode?n.body:n.documentElement})},t.fn.scrollTo=function(n,o,s){return"object"==typeof o&&(s=o,o=0),"function"==typeof s&&(s={onAfter:s}),"max"==n&&(n=9e9),s=t.extend({},i.defaults,s),o=o||s.duration,s.queue=s.queue&&s.axis.length>1,s.queue&&(o/=2),s.offset=e(s.offset),s.over=e(s.over),this._scrollable().each(function(){function r(t){c.animate(d,o,s.easing,t&&function(){t.call(this,n,s)})}if(n){var a,l=this,c=t(l),u=n,d={},p=c.is("html,body");switch(typeof u){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(u)){u=e(u);break}if(u=t(u,this),!u.length)return;case"object":(u.is||u.style)&&(a=(u=t(u)).offset())}t.each(s.axis.split(""),function(t,e){var n="x"==e?"Left":"Top",o=n.toLowerCase(),f="scroll"+n,h=l[f],m=i.max(l,e);if(a)d[f]=a[o]+(p?0:h-c.offset()[o]),s.margin&&(d[f]-=parseInt(u.css("margin"+n))||0,d[f]-=parseInt(u.css("border"+n+"Width"))||0),d[f]+=s.offset[o]||0,s.over[o]&&(d[f]+=u["x"==e?"width":"height"]()*s.over[o]);else{var g=u[o];d[f]=g.slice&&"%"==g.slice(-1)?parseFloat(g)/100*m:g}s.limit&&/^\d+$/.test(d[f])&&(d[f]=d[f]<=0?0:Math.min(d[f],m)),!t&&s.queue&&(h!=d[f]&&r(s.onAfterFirst),delete d[f])}),r(s.onAfter)}}).end()},i.max=function(e,i){var n="x"==i?"Width":"Height",o="scroll"+n;if(!t(e).is("html,body"))return e[o]-t(e)[n.toLowerCase()]();var s="client"+n,r=e.ownerDocument.documentElement,a=e.ownerDocument.body;return Math.max(r[o],a[o])-Math.min(r[s],a[s])}}(jQuery),function(){"use strict";function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}var i=t.prototype;i.getListeners=function(t){var e,i,n=this._getEvents();if("object"==typeof t){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},i.flattenListeners=function(t){var e,i=[];for(e=0;t.length>e;e+=1)i.push(t[e].listener);return i},i.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},i.addListener=function(t,i){var n,o=this.getListenersAsObject(t),s="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(s?i:{listener:i,once:!1});return this},i.on=i.addListener,i.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},i.once=i.addOnceListener,i.defineEvent=function(t){return this.getListeners(t),this},i.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},i.removeListener=function(t,i){var n,o,s=this.getListenersAsObject(t);for(o in s)s.hasOwnProperty(o)&&(n=e(s[o],i),-1!==n&&s[o].splice(n,1));return this},i.off=i.removeListener,i.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},i.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)}
1,i.manipulateListeners=function(t,e,i){var n,o,s=t?this.removeListener:this.addListener,r=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)s.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?s.call(this,n,o):r.call(this,n,o));return this},i.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if("object"===i)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},i.emitEvent=function(t,e){var i,n,o,s,r=this.getListenersAsObject(t);for(o in r)if(r.hasOwnProperty(o))for(n=r[o].length;n--;)i=r[o][n],s=i.listener.apply(this,e||[]),(s===this._getOnceReturnValue()||i.once===!0)&&this.removeListener(t,r[o][n].listener);return this},i.trigger=i.emitEvent,i.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},i.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},"function"==typeof define&&define.amd?define(function(){return t}):"undefined"!=typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){"use strict";var e=document.documentElement,i=function(){};e.addEventListener?i=function(t,e,i){t.addEventListener(e,i,!1)}:e.attachEvent&&(i=function(e,i,n){e[i+n]=n.handleEvent?function(){var e=t.event;e.target=e.target||e.srcElement,n.handleEvent.call(n,e)}:function(){var i=t.event;i.target=i.target||i.srcElement,n.call(e,i)},e.attachEvent("on"+i,e[i+n])});var n=function(){};e.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:e.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:n};"function"==typeof define&&define.amd?define(o):t.eventie=o}(this),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===l.call(t)}function n(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,i){function o(t,i,r){if(!(this instanceof o))return new o(t,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=n(t),this.options=e({},this.options),"function"==typeof i?r=i:e(this.options,i),r&&this.on("always",r),this.getImages(),s&&(this.jqDeferred=new s.Deferred);var a=this;setTimeout(function(){a.check()})}function l(t){this.img=t}o.prototype=new t,o.prototype.options={},o.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var i=this.elements[t];"IMG"===i.nodeName&&this.addImage(i);for(var n=i.querySelectorAll("img"),o=0,s=n.length;s>o;o++){var r=n[o];this.addImage(r)}}},o.prototype.addImage=function(t){var e=new l(t);this.images.push(e)},o.prototype.check=function(){function t(t,o){return e.options.debug&&a&&r.log("confirm",t,o),e.progress(t),i++,i===n&&e.complete(),!0}var e=this,i=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var o=0;n>o;o++){var s=this.images[o];s.on("confirm",t),s.check()}},o.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify(e,t)})},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var i=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[i](e)}})},s&&(s.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(s(this))});var c={};return l.prototype=new t,l.prototype.check=function(){var t=c[this.img.src];if(t)return void this.useCached(t);if(c[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this.proxyImage=new Image;i.bind(e,"load",this),i.bind(e,"error",this),e.src=this.img.src},l.prototype.useCached=function(t){if(t.isConfirmed)this.confirm(t.isLoaded,"cached was confirmed");else{var e=this;t.on("confirm",function(t){return e.confirm(t.isLoaded,"cache emitted confirmed"),!0})}},l.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit
1("confirm",this,e)},l.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindProxyEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindProxyEvents()},l.prototype.unbindProxyEvents=function(){i.unbind(this.proxyImage,"load",this),i.unbind(this.proxyImage,"error",this)},o}var s=t.jQuery,r=t.console,a=void 0!==r,l=Object.prototype.toString;"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],o):t.imagesLoaded=o(t.EventEmitter,t.eventie)}(window),function(t,e){"use strict";var i,n=t.document,o=t.Modernizr,s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},r="Moz Webkit O Ms".split(" "),a=function(t){var e,i=n.documentElement.style;if("string"==typeof i[t])return t;t=s(t);for(var o=0,a=r.length;a>o;o++)if(e=r[o]+t,"string"==typeof i[e])return e},l=a("transform"),c=a("transitionProperty"),u={csstransforms:function(){return!!l},csstransforms3d:function(){var t=!!a("perspective");if(t){var i=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),n="@media ("+i.join("transform-3d),(")+"modernizr)",o=e("<style>"+n+"{#modernizr{height:3px}}</style>").appendTo("head"),s=e('<div id="modernizr" />').appendTo("html");t=3===s.height(),s.remove(),o.remove()}return t},csstransitions:function(){return!!c}};if(o)for(i in u)o.hasOwnProperty(i)||o.addTest(i,u[i]);else{o=t.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var d,p=" ";for(i in u)d=u[i](),o[i]=d,p+=" "+(d?"":"no-")+i;e("html").addClass(p)}if(o.csstransforms){var f=o.csstransforms3d?{translate:function(t){return"translate3d("+t[0]+"px, "+t[1]+"px, 0) "},scale:function(t){return"scale3d("+t+", "+t+", 1) "}}:{translate:function(t){return"translate("+t[0]+"px, "+t[1]+"px) "},scale:function(t){return"scale("+t+") "}},h=function(t,i,n){var o,s,r=e.data(t,"isoTransform")||{},a={},c={};a[i]=n,e.extend(r,a);for(o in r)s=r[o],c[o]=f[o](s);var u=c.translate||"",d=c.scale||"",p=u+d;e.data(t,"isoTransform",r),t.style[l]=p};e.cssNumber.scale=!0,e.cssHooks.scale={set:function(t,e){h(t,"scale",e)},get:function(t){var i=e.data(t,"isoTransform");return i&&i.scale?i.scale:1}},e.fx.step.scale=function(t){e.cssHooks.scale.set(t.elem,t.now+t.unit)},e.cssNumber.translate=!0,e.cssHooks.translate={set:function(t,e){h(t,"translate",e)},get:function(t){var i=e.data(t,"isoTransform");return i&&i.translate?i.translate:[0,0]}}}var m,g;o.csstransitions&&(m={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[c],g=a("transitionDuration"));var v,b=e.event,y=e.event.handle?"handle":"dispatch";b.special.smartresize={setup:function(){e(this).bind("resize",b.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",b.special.smartresize.handler)},handler:function(t,e){var i=this,n=arguments;t.type="smartresize",v&&clearTimeout(v),v=setTimeout(function(){b[y].apply(i,n)},"execAsap"===e?0:100)}},e.fn.smartresize=function(t){return t?this.bind("smartresize",t):this.trigger("smartresize",["execAsap"])},e.Isotope=function(t,i,n){this.element=e(i),this._create(t),this._init(n)};var w=["width","height"],x=e(t);e.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},e.Isotope.prototype={_create:function(t){this.options=e.extend({},e.Isotope.settings,t),this.styleQueue=[],this.elemCount=0;var i=this.element[0].style;this.originalStyle={};var n=w.slice(0);for(var o in this.options.containerStyle)n.push(o);for(var s=0,r=n.length;r>s;s++)o=n[s],this.originalStyle[o]=i[o]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var a={"original-order":function(t,e){return e.elemCount++,e.elemCount},random:function(){return Math.random()}};this.options.getSortData=e.extend(this.options.getSortData,a),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var l=this;setTimeout(function(){l.element.addClass(l.options.containerClass)},0),this.options.resizable&&x.bind("smartresize.isotope",function(){l.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(t){var e=this.options.itemSelector,i=e?t.filter(e).add(t.find(e)):t,n={position:"absolute"};return i=i.filter(function(t,e){return 1===e.nodeType}
1),this.usingTransforms&&(n.left=0,n.top=0),i.css(n).addClass(this.options.itemClass),this.updateSortData(i,!0),i},_init:function(t){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(t)},option:function(t){if(e.isPlainObject(t)){this.options=e.extend(!0,this.options,t);var i;for(var n in t)i="_update"+s(n),this[i]&&this[i]()}},_updateAnimationEngine:function(){var t,e=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");switch(e){case"css":case"none":t=!1;break;case"jquery":t=!0;break;default:t=!o.csstransitions}this.isUsingJQueryAnimation=t,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var t=this.usingTransforms=this.options.transformsEnabled&&o.csstransforms&&o.csstransitions&&!this.isUsingJQueryAnimation;t||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=t?this._translate:this._positionAbs},_filter:function(t){var e=""===this.options.filter?"*":this.options.filter;if(!e)return t;var i=this.options.hiddenClass,n="."+i,o=t.filter(n),s=o;if("*"!==e){s=o.filter(e);var r=t.not(n).not(e).addClass(i);this.styleQueue.push({$el:r,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:s,style:this.options.visibleStyle}),s.removeClass(i),t.filter(e)},updateSortData:function(t,i){var n,o,s=this,r=this.options.getSortData;t.each(function(){n=e(this),o={};for(var t in r)o[t]=i||"original-order"!==t?r[t](n,s):e.data(this,"isotope-sort-data")[t];e.data(this,"isotope-sort-data",o)})},_sort:function(){var t=this.options.sortBy,e=this._getSorter,i=this.options.sortAscending?1:-1,n=function(n,o){var s=e(n,t),r=e(o,t);return s===r&&"original-order"!==t&&(s=e(n,"original-order"),r=e(o,"original-order")),(s>r?1:r>s?-1:0)*i};this.$filteredAtoms.sort(n)},_getSorter:function(t,i){return e.data(t,"isotope-sort-data")[i]},_translate:function(t,e){return{translate:[t,e]}},_positionAbs:function(t,e){return{left:t,top:e}},_pushPosition:function(t,e,i){e=Math.round(e+this.offset.left),i=Math.round(i+this.offset.top);var n=this.getPositionStyles(e,i);this.styleQueue.push({$el:t,style:n}),this.options.itemPositionDataEnabled&&t.data("isotope-item-position",{x:e,y:i})},layout:function(t,e){var i=this.options.layoutMode;if(this["_"+i+"Layout"](t),this.options.resizesContainer){var n=this["_"+i+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:n})}this._processStyleQueue(t,e),this.isLaidOut=!0},_processStyleQueue:function(t,i){var n,s,r,a,l=this.isLaidOut&&this.isUsingJQueryAnimation?"animate":"css",c=this.options.animationOptions,u=this.options.onLayout;if(s=function(t,e){e.$el[l](e.style,c)},this._isInserting&&this.isUsingJQueryAnimation)s=function(t,e){n=e.$el.hasClass("no-transition")?"css":l,e.$el[n](e.style,c)};else if(i||u||c.complete){var d=!1,p=[i,u,c.complete],f=this;if(r=!0,a=function(){if(!d){for(var e,i=0,n=p.length;n>i;i++)e=p[i],"function"==typeof e&&e.call(f.element,t,f);d=!0}},this.isUsingJQueryAnimation&&"animate"===l)c.complete=a,r=!1;else if(o.csstransitions){for(var h,v=0,b=this.styleQueue[0],y=b&&b.$el;!y||!y.length;){if(h=this.styleQueue[v++],!h)return;y=h.$el}var w=parseFloat(getComputedStyle(y[0])[g]);w>0&&(s=function(t,e){e.$el[l](e.style,c).one(m,a)},r=!1)}}e.each(this.styleQueue,s),r&&a(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(t){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,t)},addItems:function(t,e){var i=this._getAtoms(t);this.$allAtoms=this.$allAtoms.add(i),e&&e(i)},insert:function(t,e){this.element.append(t);var i=this;this.addItems(t,function(t){var n=i._filter(t);i._addHideAppended(n),i._sort(),i.reLayout(),i._revealAppended(n,e)})},appended:function(t,e){var i=this;this.addItems(t,function(t){i._addHideAppended(t),i.layout(t),i._revealAppended(t,e)})},_addHideAppended:function(t){this.$filteredAtoms=this.$filteredAtoms.add(t),t.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:t,style:this.options.hiddenStyle})},_revealAppended:function(t,e){var i=this;setTimeout(function(){t.removeClass("no-transition"),i.styleQueue.push({$el:t,style:i.options.visibleStyle}),i._isInserting=!1,i._processStyleQueue(t,e)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(t,e){this.$allAtoms=this.$allAtoms.not(t),this.$filteredAtoms=this.$filteredAtoms.not(t);var i=this,n=function(){t.remove(),e&&e.call(i.element)};t.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:t,style:this.options.hiddenStyle}),this._sort(),this.reLayout(n)):n()},shuffle:function(t){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(t)},destroy:function(){var t=this.usingTransforms,e=this.options;this.$allAtoms.removeClass(e.hiddenClass+" "+e.itemClass).each(function(){var e=this.style;e.position="",e.top="",e.left="",e.opacity="",t&&(e[l]="")});var i=this.element[0].style;for(var n in this.originalStyle)i[n]=this.originalStyle[n];this.element.unbind(".isotope").undelegate("."+e.hiddenClass,"click").removeClass(e.containerClass).removeData("isotope"),x.unbind(".isotope")},_getSegments:function(t){var e,i=this.options.layoutMode,n=t?"rowHeight":"columnWidth",o=t?"height":"width",r=t?"rows":"cols",a=this.element[o](),l=this.options[i]&&this.options[i][n]||this.$filteredAtoms["outer"+s(o)](!0)||a;e=Math.floor(a/l),e=Math.max(e,1),this[i][r]=e,this[i][n]=l},_checkIfSegmentsChanged:function(t){var e=this.options.layoutMode,i=t?"rows":"cols",n=this[e][i];return this._getSegments(t),this[e][i]!==n},_masonryReset:function(){this.masonry={},this._getSegments();var t=this.masonry.cols;for(this.masonry.colYs=[];t--;)this.masonry.colYs.push(0)},_masonryLayout:function(t){var i=this,n=i.masonry;t.each(function(){var t=e(this),o=Math.ceil(t.outerWidth(!0)/n.columnWidth);if(o=Math.min(o,n.cols),1===o)i._masonryPlaceBrick(t,n.colYs);else{var s,r,a=n.cols+1-o,l=[];for(r=0;a>r;r++)s=n.colYs.slice(r,r+o),l[r]=Math.max.apply(Math,s);i._masonryPlaceBrick(t,l)}})},_masonryPlaceBrick:function(t,e){for(var i=Math.min.apply(Math,e),n=0,o=0,s=e.length;s>o;o++)if(e[o]===i){n=o;break}var r=this.masonry.columnWidth*n,a=i;this._pushPosition(t,r,a);var l=i+t.outerHeight(!0),c=this.masonry.cols+1-s;for(o=0;c>o;o++)this.masonry.colYs[n+o]=l},_masonryGetContainerSize:function(){var t=Math.max.apply(Math,this.masonry.colYs);return{height:t}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(t){var i=this,n=this.element.width(),o=this.fitRows;t.each(function(){var t=e(this),s=t.outerWidth(!0),r=t.outerHeight(!0);0!==o.x&&s+o.x>n&&(o.x=0,o.y=o.height),i._pushPosition(t,o.x,o.y),o.height=Math.max(o.y+r,o.height),o.x+=s})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(t){var i=this,n=this.cellsByRow;t.each(function(){var t=e(this),o=n.index%n.cols,s=Math.floor(n.index/n.cols),r=(o+.5)*n.columnWidth-t.outerWidth(!0)/2,a=(s+.5)*n.rowHeight-t.outerHeight(!0)/2;i._pushPosition(t,r,a),n.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(t){var i=this;t.each(function(){var t=e(this);i._pushPosition(t,0,i.straightDown.y),i.straightDown.y+=t.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var t=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];t--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(t){var i=this,n=i.masonryHorizontal;t.each(function(){var t=e(this),o=Math.ceil(t.outerHeight(!0)/n.rowHeight);if(o=Math.min(o,n.rows),1===o)i._masonryHorizontalPlaceBrick(t,n.rowXs);else{var s,r,a=n.rows+1-o,l=[];for(r=0;a>r;r++)s=n.rowXs.slice(r,r+o),l[r]=Math.max.apply(Math,s);i._masonryHorizontalPlaceBrick(t,l)}})},_masonryHorizontalPlaceBrick:function(t,e){for(var i=Math.min.apply(Math,e),n=0,o=0,s=e.length;s>o;o++)if(e[o]===i){n=o;break}var r=i,a=this.masonryHorizontal.rowHeight*n;this._pushPosition(t,r,a);var l=i+t.outerWidth(!0),c=this.masonryHorizontal.rows+1-s;for(o=0;c>o;o++)this.masonryHorizontal.rowXs[n+o]=l},_masonryHorizontalGetContainerSize:function(){var t=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:t}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(t){var i=this,n=this.element.height(),o=this.fitColumns;t.each(function(){var t=e(this),s=t.outerWidth(!0),r=t.outerHeight(!0);0!==o.y&&r+o.y>n&&(o.x=o.width,o.y=0),i._pushPosition(t,o.x,o.y),o.width=Math.max(o.x+s,o.width),o.y+=r})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(t){var i=this,n=this.cellsByColumn;t.each(function(){var t=e(this),o=Math.floor(n.index/n.rows),s=n.index%n.rows,r=(o+.5)*n.columnWidth-t.outerWidth(!0)/2,a=(s+.5)*n.rowHeight-t.outerHeight(!0)/2;i._pushPosition(t,r,a),n.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(t){var i=this;t.each(function(){var t=e(this);i._pushPosition(t,i.straightAcross.x,0),i.straightAcross.x+=t.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},e.fn.imagesLoaded=function(t){function i(){t.call(o,s)}function n(t){var o=t.target;o.src!==a&&-1===e.inArray(o,l)&&(l.push(o),--r<=0&&(setTimeout(i),s.unbind(".imagesLoaded",n)))}var o=this,s=o.find("img").add(o.filter("img")),r=s.length,a="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",l=[];return r||i(),s.bind("load.imagesLoaded error.imagesLoaded",n).each(function(){var t=this.src;this.src=a,this.src=t}),o};var _=function(e){t.console&&t.console.error(e)};e.fn.isotope=function(t,i){if("string"==typeof t){var n=Array.prototype.slice.call(arguments,1
1);this.each(function(){var i=e.data(this,"isotope");return i?e.isFunction(i[t])&&"_"!==t.charAt(0)?void i[t].apply(i,n):void _("no such method '"+t+"' for isotope instance"):void _("cannot call methods on isotope prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var n=e.data(this,"isotope");n?(n.option(t),n._init(i)):e.data(this,"isotope",new e.Isotope(t,this,i))});return this}}(window,jQuery),function(t){t.fn.extend({leanerModal:function(e){function i(e){t("#lean_overlay").fadeOut(),t(e).css({display:"none"})}var n={overlay:.5,closeButton:".modal_close"},o=t('<div id="lean_overlay"></div>');return t("#lean_overlay").length||t("body").append(o),e=t.extend(n,e),this.each(function(){var n=e;t(this).live("click",function(e){var o=n.id;t("#lean_overlay").live("click",function(){i(o)}),t(n.closeButton).live("click",function(){i(o)});var s=(t(o).outerHeight(),t(o).outerWidth());t("#lean_overlay").css({display:"block",opacity:0}),t("#lean_overlay").fadeTo(200,n.overlay),t(o).css({display:"block",position:"fixed",opacity:0,"z-index":11e3,left:"50%","margin-left":-(s/2)+"px"}),t(o).fadeTo(200,1),e.preventDefault()})})}})}(jQuery),function(t){t.fn.extend({customSelect:function(e){if("undefined"==typeof document.body.style.maxHeight)return this;var i={customClass:"customSelect",mapClass:!0,mapStyle:!0},e=t.extend(i,e),n=e.customClass,o=function(e,i){var n=e.find(":selected"),o=i.children(":first"),r=n.html()||" ";o.html(r),n.attr("disabled")?i.addClass(s("DisabledOption")):i.removeClass(s("DisabledOption")),setTimeout(function(){i.removeClass(s("Open")),t(document).off("mouseup.customSelect")},60)},s=function(t){return n+t};return this.each(function(){var i=t(this),r=t("<span />").addClass(s("Inner")),a=t("<span />");i.after(a.append(r)),a.addClass(n),e.mapClass&&a.addClass(i.attr("class")),e.mapStyle&&a.attr("style",i.attr("style")),i.addClass("hasCustomSelect").on("render.customSelect",function(){o(i,a),i.css("width","");var t=parseInt(i.outerWidth(),10)-(parseInt(a.outerWidth(),10)-parseInt(a.width(),10));a.css({display:"inline-block"});var e=a.outerHeight();i.attr("disabled")?a.addClass(s("Disabled")):a.removeClass(s("Disabled")),r.css({width:t,display:"inline-block"}),i.css({"-webkit-appearance":"menulist-button",width:a.outerWidth(),position:"absolute",opacity:0,height:e,fontSize:a.css("font-size")})}).on("change.customSelect",function(){a.addClass(s("Changed")),o(i,a)}).on("keyup.customSelect",function(t){a.hasClass(s("Open"))?(13==t.which||27==t.which)&&o(i,a):(i.trigger("blur.customSelect"),i.trigger("focus.customSelect"))}).on("mousedown.customSelect",function(){a.removeClass(s("Changed"))}).on("mouseup.customSelect",function(e){a.hasClass(s("Open"))||(t("."+s("Open")).not(a).length>0&&"undefined"!=typeof InstallTrigger?i.trigger("focus.customSelect"):(a.addClass(s("Open")),e.stopPropagation(),t(document).one("mouseup.customSelect",function(e){e.target!=i.get(0)&&t.inArray(e.target,i.find("*").get())<0?i.trigger("blur.customSelect"):o(i,a)})))}).on("focus.customSelect",function(){a.removeClass(s("Changed")).addClass(s("Focus"))}).on("blur.customSelect",function(){a.removeClass(s("Focus")+" "+s("Open"))}).on("mouseenter.customSelect",function(){a.addClass(s("Hover"))}).on("mouseleave.customSelect",function(){a.removeClass(s("Hover"))}).trigger("render.customSelect")})}})}(jQuery),function(t,e,i){"use strict";e.infinitescroll=function(t,i,n){this.element=e(n),this._create(t,i)||(this.failed=!0)},e.infinitescroll.defaults={loading:{finished:i,finishedMsg:"<em>Congratulations, you've reached the end of the internet.</em>",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2L
1RwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSH
1MzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2G
1iqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"<em>Loading the next set of posts...</em>",selector:null,speed:"fast",start:i},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:i,binder:e(t),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:i,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:i,path:i,prefill:!1,maxPage:i},e.infinitescroll.prototype={_binding:function(t){var e=this,n=e.options;return n.v="2.0b2.120520",n.behavior&&this["_binding_"+n.behavior]!==i?void this["_binding_"+n.behavior].call(this):"bind"!==t&&"unbind"!==t?(this._debug("Binding value "+t+" not valid"),!1):("unbind"===t?this.options.binder.unbind("smartscroll.infscr."+e.options.infid):this.options.binder[t]("smartscroll.infscr."+e.options.infid,function(){e.scroll()}),void this._debug("Binding",t))},_create:function(n,o){var s=e.extend(!0,{},e.infinitescroll.defaults,n);this.options=s;var r=e(t),a=this;if(!a._validate(n))return!1;var l=e(s.nextSelector).attr("href");if(!l)return this._debug("Navigation selector not found"),!1;s.path=s.path||this._determinepath(l),s.contentSelector=s.contentSelector||this.element,s.loading.selector=s.loading.selector||s.contentSelector,s.loading.msg=s.loading.msg||e('<div id="infscr-loading"><img alt="Loading..." src="'+s.loading.img+'" /><div>'+s.loading.msgText+"</div></div>"),(new Image).src=s.loading.img,s.pixelsFromNavToBottom===i&&(s.pixelsFromNavToBottom=e(document).height()-e(s.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+s.pixelsFromNavToBottom));var c=this;return s.loading.start=s.loading.start||function(){e(s.navSelector).hide(),s.loading.msg.appendTo(s.loading.selector).show(s.loading.speed,e.proxy(function(){this.beginAjax(s)}
1,c))},s.loading.finished=s.loading.finished||function(){s.state.isBeyondMaxPage||s.loading.msg.fadeOut(s.loading.speed)},s.callback=function(t,n,a){s.behavior&&t["_callback_"+s.behavior]!==i&&t["_callback_"+s.behavior].call(e(s.contentSelector)[0],n,a),o&&o.call(e(s.contentSelector)[0],n,s,a),s.prefill&&r.bind("resize.infinite-scroll",t._prefill)},n.debug&&(!Function.prototype.bind||"object"!=typeof console&&"function"!=typeof console||"object"!=typeof console.log||["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(t){console[t]=this.call(console[t],console)},Function.prototype.bind)),this._setup(),s.prefill&&this._prefill(),!0},_prefill:function(){function i(){return n.options.contentSelector.height()<=o.height()}var n=this,o=e(t);this._prefill=function(){i()&&n.scroll(),o.bind("resize.infinite-scroll",function(){i()&&(o.unbind("resize.infinite-scroll"),n.scroll())})},this._prefill()},_debug:function(){!0===this.options.debug&&("undefined"!=typeof console&&"function"==typeof console.log?console.log(1===Array.prototype.slice.call(arguments).length&&"string"==typeof Array.prototype.slice.call(arguments)[0]?Array.prototype.slice.call(arguments).toString():Array.prototype.slice.call(arguments)):Function.prototype.bind||"undefined"==typeof console||"object"!=typeof console.log||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(t){var e=this.options;if(e.behavior&&this["_determinepath_"+e.behavior]!==i)return this["_determinepath_"+e.behavior].call(this,t);if(e.pathParse)return this._debug("pathParse manual"),e.pathParse(t,this.options.state.currPage+1);if(t.match(/^(.*?)\b2\b(.*?$)/))t=t.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(t.match(/^(.*?)2(.*?$)/)){if(t.match(/^(.*?page=)2(\/.*|$)/))return t=t.match(/^(.*?page=)2(\/.*|$)/).slice(1);t=t.match(/^(.*?)2(.*?$)/).slice(1)}else{if(t.match(/^(.*?page=)1(\/.*|$)/))return t=t.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com."),e.state.isInvalidPage=!0}return this._debug("determinePath",t),t},_error:function(t){var e=this.options;return e.behavior&&this["_error_"+e.behavior]!==i?void this["_error_"+e.behavior].call(this,t):("destroy"!==t&&"end"!==t&&(t="unknown"),this._debug("Error",t),("end"===t||e.state.isBeyondMaxPage)&&this._showdonemsg(),e.state.isDone=!0,e.state.currPage=1,e.state.isPau
1sed=!1,e.state.isBeyondMaxPage=!1,void this._binding("unbind"))},_loadcallback:function(n,o,s){var r,a=this.options,l=this.options.callback,c=a.state.isDone?"done":a.appendCallback?"append":"no-append";if(a.behavior&&this["_loadcallback_"+a.behavior]!==i)return void this["_loadcallback_"+a.behavior].call(this,n,o);switch(c){case"done":return this._showdonemsg(),!1;case"no-append":"html"===a.dataType&&(o="<div>"+o+"</div>",o=e(o).find(a.itemSelector));break;case"append":var u=n.children();if(0===u.length)return this._error("end");for(r=document.createDocumentFragment();n[0].firstChild;)r.appendChild(n[0].firstChild);this._debug("contentSelector",e(a.contentSelector)[0]),e(a.contentSelector)[0].appendChild(r),o=u.get()}if(a.loading.finished.call(e(a.contentSelector)[0],a),a.animate){var d=e(t).scrollTop()+e(a.loading.msg).height()+a.extraScrollPx+"px";e("html,body").animate({scrollTop:d},800,function(){a.state.isDuringAjax=!1})}a.animate||(a.state.isDuringAjax=!1),l(this,o,s),a.prefill&&this._prefill()},_nearbottom:function(){var n=this.options,o=0+e(document).height()-n.binder.scrollTop()-e(t).height();return n.behavior&&this["_nearbottom_"+n.behavior]!==i?this["_nearbottom_"+n.behavior].call(this):(this._debug("math:",o,n.pixelsFromNavToBottom),o-n.bufferPx<n.pixelsFromNavToBottom)},_pausing:function(t){var e=this.options;if(e.behavior&&this["_pausing_"+e.behavior]!==i)return void this["_pausing_"+e.behavior].call(this,t);switch("pause"!==t&&"resume"!==t&&null!==t&&this._debug("Invalid argument. Toggling pause value instead"),t=!t||"pause"!==t&&"resume"!==t?"toggle":t){case"pause":e.state.isPau
1sed=!0;break;case"resume":e.state.isPaused=!1;break;case"toggle":e.state.isPaused=!e.state.isPaused}return this._debug("Paused",e.state.isPaused),!1},_setup:function(){var t=this.options;return t.behavior&&this["_setup_"+t.behavior]!==i?void this["_setup_"+t.behavior].call(this):(this._binding("bind"),!1)},_showdonemsg:function(){var t=this.options;return t.behavior&&this["_showdonemsg_"+t.behavior]!==i?void this["_showdonemsg_"+t.behavior].call(this):(t.loading.msg.find("img").hide().parent().find("div").html(t.loading.finishedMsg).animate({opacity:1},2e3,function(){e(this).parent().fadeOut(t.loading.speed)}),void t.errorCallback.call(e(t.contentSelector)[0],"done"))},_validate:function(t){for(var i in t)if(i.indexOf&&i.indexOf("Selector")>-1&&0===e(t[i]).length)return this._debug("Your "+i+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(t){var n,o,s,r,a=this,l=t.path;if(t.state.currPage++,t.maxPage!=i&&t.state.currPage>t.maxPage)return t.state.isBeyondMaxPage=!0,void this.destroy();switch(n=e(e(t.contentSelector).is("table, tbody")?"<tbody/>":"<div/>"),o="function"==typeof l?l(t.state.currPage):l.join(t.state.currPage),a._debug("heading into ajax",o),s="html"===t.dataType||"json"===t.dataType?t.dataType:"html+callback",t.appendCallback&&"html"===t.dataType&&(s+="+callback"),s){case"html+callback":a._debug("Using HTML via .load() method"),n.load(o+" "+t.itemSelector,i,function(t){a._loadcallback(n,t,o)});break;case"html":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),e.ajax({url:o,dataType:t.dataType,complete:function(t,e){r="undefined"!=typeof t.isResolved?t.isResolved():"success"===e||"notmodified"===e,r?a._loadcallback(n,t.responseText,o):a._error("end")}});break;case"json":a._debug("Using "+s.toUpperCase()+" via $.ajax() method"),e.ajax({dataType:"json",type:"GET",url:o,success:function(e,s,l){if(r="undefined"!=typeof l.isResolved?l.isResolved():"success"===s||"notmodified"===s,t.appendCallback)if(t.template!==i){var c=t.template(e);n.append(c),r?a._loadcallback(n,c):a._error("end")}else a._debug("template must be defined."),a._error("end");else r?a._loadcallback(n,e,o):a._error("end")},error:function(){a._debug("JSON ajax request failed."),a._error("end")}})}},retrieve:function(t){t=t||null;var n=this,o=n.options;return o.behavior&&this["retrieve_"+o.behavior]!==i?void this["retrieve_"+o.behavior].call(this,t):o.state.isDestroyed?(this._debug("Instance is destroyed"),!1):(o.state.isDuringAjax=!0,void o.loading.start.call(e(o.contentSelector)[0],o))},scroll:function(){var t=this.options,e=t.state;return t.behavior&&this["scroll_"+t.behavior]!==i?void this["scroll_"+t.behavior].call(this):void(e.isDuringAjax||e.isInvalidPage||e.isDone||e.isDestroyed||e.isPaused||this._nearbottom()&&this.retrieve())},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(t){e.isPlainObject(t)&&(this.options=e.extend(!0,this.options,t))}},e.fn.infinitescroll=function(t,i){var n=typeof t;switch(n){case"string":var o=Array.prototype.slice.call(arguments,1);this.each(function(){var i=e.data(this,"infinitescroll");return i&&e.isFunction(i[t])&&"_"!==t.charAt(0)?void i[t].apply(i,o):!1});break;case"object":this.each(function(){var n=e.data(this,"infinitescroll");n?n.update(t):(n=new e.infinitescroll(t,i,this),n.failed||e.data(this,"infinitescroll",n))})}return this};var n,o=e.event;o.special.smartscroll={setup:function(){e(this).bind("scroll",o.special.smartscroll.handler)},teardown:function(){e(this).unbind("scroll",o.special.smartscroll.handler)},handler:function(t,i){var o=this,s=arguments;t.type="smartscroll",n&&clearTimeout(n),n=setTimeout(function(){e(o).trigger("smartscroll",s)},"execAsap"===i?0:100)}},e.fn.smartscroll=function(t){return t?this.bind("smartscroll",t):this.trigger("smartscroll",["execAsap"])}}(window,jQuery),function(t){t.flexslider=function(e,i){var n=t(e),o=t.extend({},t.flexslider.defaults,i),s=o.namespace,r="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,a=r?"touchend":"click",l="vertical"===o.direction,c=o.reverse,u=0<o.itemWidth,d="fade"===o.animation,p=""!==o.asNavFor,f={};t.data(e,"flexslider",n),f={init:function(){n.animating=!1,n.currentSlide=o.startAt,n.animatingTo=n.currentSlide,n.atEnd=0===n.currentSlide||n.currentSlide===n.last,n.containerSelector=o.selector.substr(0,o.selector.search(" ")),n.slides=t(o.selector,n),n.container=t(n.containerSelector,n),n.count=n.slides.length,n.syncExists=0<t(o.sync).length,"slide"===o.animation&&(o.animation="swing"),n.prop=l?"top":"marginLeft",n.args={},n.manualPause=!1,n.transitions=!o.video&&!d&&o.useCSS&&function(){var t,e=document.createElement("div"),i=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(t in i)if(void 0!==e.style[i[t]])return n.pfx=i[t].replace("Perspective","").toLowerCase(),n.prop="-"+n.pfx+"-transform",!0;return!1}
1(),""!==o.controlsContainer&&(n.controlsContainer=0<t(o.controlsContainer).length&&t(o.controlsContainer)),""!==o.manualControls&&(n.manualControls=0<t(o.manualControls).length&&t(o.manualControls)),o.randomize&&(n.slides.sort(function(){return Math.round(Math.random())-.5}),n.container.empty().append(n.slides)),n.doMath(),p&&f.asNav.setup(),n.setup("init"),o.controlNav&&f.controlNav.setup(),o.directionNav&&f.directionNav.setup(),o.keyboard&&(1===t(n.containerSelector).length||o.multipleKeyboard)&&t(document).bind("keyup",function(t){t=t.keyCode,n.animating||39!==t&&37!==t||(t=39===t?n.getTarget("next"):37===t?n.getTarget("prev"):!1,n.flexAnimate(t,o.pauseOnAction))}),o.mousewheel&&n.bind("mousewheel",function(t,e){t.preventDefault();var i=n.getTarget(0>e?"next":"prev");n.flexAnimate(i,o.pauseOnAction)}),o.pausePlay&&f.pausePlay.setup(),o.slideshow&&(o.pauseOnHover&&n.hover(function(){n.pause()},function(){n.manualPause||n.play()}),0<o.initDelay?setTimeout(n.play,o.initDelay):n.play()),r&&o.touch&&f.touch(),(!d||d&&o.smoothHeight)&&t(window).bind("resize focus",f.resize),setTimeout(function(){o.start(n)},200)},asNav:{setup:function(){n.asNav=!0,n.animatingTo=Math.floor(n.currentSlide/n.move),n.currentItem=n.currentSlide,n.slides.removeClass(s+"active-slide").eq(n.currentItem).addClass(s+"active-slide"),n.slides.click(function(e){e.preventDefault();var e=t(this),i=e.index();!t(o.asNavFor).data("flexslider").animating&&!e.hasClass("active")&&(n.direction=n.currentItem<i?"next":"prev",n.flexAnimate(i,o.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){n.manualControls?f.controlNav.setupManual():f.controlNav.setupPaging()},setupPaging:function(){var e,i=1;if(n.controlNavScaffold=t('<ol class="'+s+"control-nav "+s+("thumbnails"===o.controlNav?"control-thumbs":"control-paging")+'"></ol>'),1<n.pagingCount)for(var l=0;l<n.pagingCount;l++)e="thumbnails"===o.controlNav?'<img src="'+n.slides.eq(l).attr("data-thumb")+'"/>':"<a>"+i+"</a>",n.controlNavScaffold.append("<li>"+e+"</li>"),i++;n.controlsContainer?t(n.controlsContainer).append(n.controlNavScaffold):n.append(n.controlNavScaffold),f.controlNav.set(),f.controlNav.active(),n.controlNavScaffold.delegate("a, img",a,function(e){e.preventDefault();var e=t(this),i=n.controlNav.index(e);e.hasClass(s+"active")||(n.direction=i>n.currentSlide?"next":"prev",n.flexAnimate(i,o.pauseOnAction))}),r&&n.controlNavScaffold.delegate("a","click touchstart",function(t){t.preventDefault()})},setupManual:function(){n.controlNav=n.manualControls,f.controlNav.active(),n.controlNav.live(a,function(e){e.preventDefault();var e=t(this),i=n.controlNav.index(e);e.hasClass(s+"active")||(n.direction=i>n.currentSlide?"next":"prev",n.flexAnimate(i,o.pauseOnAction))}),r&&n.controlNav.live("click touchstart",function(t){t.preventDefault()})},set:function(){n.controlNav=t("."+s+"control-nav li "+("thumbnails"===o.controlNav?"img":"a"),n.controlsContainer?n.controlsContainer:n)},active:function(){n.controlNav.removeClass(s+"active").eq(n.animatingTo).addClass(s+"active")},update:function(e,i){1<n.pagingCount&&"add"===e?n.controlNavScaffold.append(t("<li><a>"+n.count+"</a></li>")):1===n.pagingCount?n.controlNavScaffold.find("li").remove():n.
1controlNav.eq(i).closest("li").remove(),f.controlNav.set(),1<n.pagingCount&&n.pagingCount!==n.controlNav.length?n.update(i,e):f.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+s+'direction-nav"><li><a class="'+s+'prev" href="#">'+o.prevText+'</a></li><li><a class="'+s+'next" href="#">'+o.nextText+"</a></li></ul>");n.controlsContainer?(t(n.controlsContainer).append(e),n.directionNav=t("."+s+"direction-nav li a",n.controlsContainer)):(n.append(e),n.directionNav=t("."+s+"direction-nav li a",n)),f.directionNav.update(),n.directionNav.bind(a,function(e){e.preventDefault(),e=n.getTarget(t(this).hasClass(s+"next")?"next":"prev"),n.flexAnimate(e,o.pauseOnAction)}),r&&n.directionNav.bind("click touchstart",function(t){t.preventDefault()})},update:function(){var t=s+"disabled";o.animationLoop||(1===n.pagingCount?n.directionNav.addClass(t):0===n.animatingTo?n.directionNav.removeClass(t).filter("."+s+"prev").addClass(t):n.animatingTo===n.last?n.directionNav.removeClass(t).filter("."+s+"next").addClass(t):n.directionNav.removeClass(t))}},pausePlay:{setup:function(){var e=t('<div class="'+s+'pauseplay"><a></a></div>');n.controlsContainer?(n.controlsContainer.append(e),n.pausePlay=t("."+s+"pauseplay a",n.controlsContainer)):(n.append(e),n.pausePlay=t("."+s+"pauseplay a",n)),f.pausePlay.update(o.slideshow?s+"pause":s+"play"),n.pausePlay.bind(a,function(e){e.preventDefault(),t(this).hasClass(s+"pause")?(n.pause(),n.manualPause=!0):(n.play(),n.manualPause=!1)}),r&&n.pausePlay.bind("click touchstart",function(t){t.preventDefault()})},update:function(t){"play"===t?n.pausePlay.removeClass(s+"pause").addClass(s+"play").text(o.playText):n.pausePlay.removeClass(s+"play").addClass(s+"pause").text(o.pauseText)}},touch:function(){function t(t){f=l?s-t.touches[0].pageY:s-t.touches[0].pageX,m=l?Math.abs(f)<Math.abs(t.touches[0].pageX-r):Math.abs(f)<Math.abs(t.touches[0].pageY-r),(!m||500<Number(new Date)-h)&&(t.preventDefault(),!d&&n.transitions&&(o.animationLoop||(f/=0===n.currentSlide&&0>f||n.currentSlide===n.last&&f>0?Math.abs(f)/p+2:1),n.setProps(a+f,"setTouch")))}function i(){if(n.animatingTo===n.currentSlide&&!m&&null!==f){var l=c?-f:f,u=n.getTarget(l>0?"next":"prev");n.canAdvance(u)&&(550>Number(new Date)-h&&20<Math.abs(l)||Math.abs(l)>p/2)?n.flexAnimate(u,o.pauseOnAction):n.flexAnimate(n.currentSlide,o.pauseOnAction,!0)}e.removeEventListener("touchmove",t,!1),e.removeEventListener("touchend",i,!1),a=f=r=s=null}var s,r,a,p,f,h,m=!1;e.addEventListener("touchstart",function(d){n.animating?d.preventDefault():1===d.touches.length&&(n.pause(),p=l?n.h:n.w,h=Number(new Date),a=u&&c&&n.animatingTo===n.last?0:u&&c?n.limit-(n.itemW+o.itemMargin)*n.move*n.animatingTo:u&&n.currentSlide===n.last?n.limit:u?(n.itemW+o.itemMargin)*n.move*n.currentSlide:c?(n.last-n.currentSlide+n.cloneOffset)*p:(n.currentSlide+n.cloneOffset)*p,s=l?d.touches[0].pageY:d.touches[0].pageX,r=l?d.touches[0].pageX:d.touches[0].pageY,e.addEventListener("touchmove",t,!1),e.addEventListener("touchend",i,!1))},!1)},resize:function(){!n.animating&&n.is(":visible")&&(u||n.doMath(),d?f.smoothHeight():u?(n.slides.width(n.computedW),n.update(n.pagingCount),n.setProps()):l?(n.viewport.height(n.h),n.setProps(n.h,"setTotal")):(o.smoothHeight&&f.smoothHeight(),n.newSlides.width(n.computedW),n.setProps(n.computedW,"setTotal")))},smoothHeight:function(t){if(!l||d){var e=d?n:n.viewport;t?e.animate({height:n.slides.eq(n.animatingTo).height()},t):e.height(n.slides.eq(n.animatingTo).height())}},sync:function(e){var i=t(o.sync).data("flexslider"),s=n.animatingTo;switch(e){case"animate":i.flexAnimate(s,o.pauseOnAction,!1,!0);break;case"play":!i.playing&&!i.asNav&&i.play();break;case"pause":i.pause()}}},n.flexAnimate=function(e,i,r,a,h){if(!n.animating&&(n.canAdvance(e)||r)&&n.is(":visible")){if(p&&a){if(r=t(o.asNavFor).data("flexslider"),n.atEnd=0===e||e===n.count-1,r.flexAnimate(e,!0,!1,!0,h),n.direction=n.currentItem<e?"next":"prev",r.direction=n.direction,Math.ceil((e+1)/n.visible)-1===n.currentSlide||0===e)return n.currentItem=e,n.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),!1;n.currentItem=e,n.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),e=Math.floor(e/n.visible)}if(n.animating=!0,n.animatingTo=e,o.before(n),i&&n.pause(),n.syncExists&&!h&&f.sync("animate"),o.controlNav&&f.controlNav.active(),u||n.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),n.atEnd=0===e||e===n.last,o.directionNav&&f.directionNav.update(
1),e===n.last&&(o.end(n),o.animationLoop||n.pause()),d)n.slides.eq(n.currentSlide).fadeOut(o.animationSpeed,o.easing),n.slides.eq(e).fadeIn(o.animationSpeed,o.easing,n.wrapup);else{var m=l?n.slides.filter(":first").height():n.computedW;u?(e=o.itemWidth>n.w?2*o.itemMargin:o.itemMargin,e=(n.itemW+e)*n.move*n.animatingTo,e=e>n.limit&&1!==n.visible?n.limit:e):e=0===n.currentSlide&&e===n.count-1&&o.animationLoop&&"next"!==n.direction?c?(n.count+n.cloneOffset)*m:0:n.currentSlide===n.last&&0===e&&o.animationLoop&&"prev"!==n.direction?c?0:(n.count+1)*m:c?(n.count-1-e+n.cloneOffset)*m:(e+n.cloneOffset)*m,n.setProps(e,"",o.animationSpeed),n.transitions?(o.animationLoop&&n.atEnd||(n.animating=!1,n.currentSlide=n.animatingTo),n.container.unbind("webkitTransitionEnd transitionend"),n.container.bind("webkitTransitionEnd transitionend",function(){n.wrapup(m)})):n.container.animate(n.args,o.animationSpeed,o.easing,function(){n.wrapup(m)})}o.smoothHeight&&f.smoothHeight(o.animationSpeed)}},n.wrapup=function(t){!d&&!u&&(0===n.currentSlide&&n.animatingTo===n.last&&o.animationLoop?n.setProps(t,"jumpEnd"):n.currentSlide===n.last&&0===n.animatingTo&&o.animationLoop&&n.setProps(t,"jumpStart")),n.animating=!1,n.currentSlide=n.animatingTo,o.after(n)},n.animateSlides=function(){n.animating||n.flexAnimate(n.getTarget("next"))},n.pause=function(){clearInterval(n.animatedSlides),n.playing=!1,o.pausePlay&&f.pausePlay.update("play"),n.syncExists&&f.sync("pause")},n.play=function(){n.animatedSlides=setInterval(n.animateSlides,o.slideshowSpeed),n.playing=!0,o.pausePlay&&f.pausePlay.update("pause"),n.syncExists&&f.sync("play")},n.canAdvance=function(t){var e=p?n.pagingCount-1:n.last;return p&&0===n.currentItem&&t===n.pagingCount-1&&"next"!==n.direction?!1:t!==n.currentSlide||p?o.animationLoop?!0:n.atEnd&&0===n.currentSlide&&t===e&&"next"!==n.direction?!1:n.atEnd&&n.currentSlide===e&&0===t&&"next"===n.direction?!1:!0:!1},n.getTarget=function(t){return n.direction=t,"next"===t?n.currentSlide===n.last?0:n.currentSlide+1:0===n.currentSlide?n.last:n.currentSlide-1},n.setProps=function(t,e,i){var s=function(){var i=t?t:(n.itemW+o.itemMargin)*n.move*n.animatingTo;return-1*function(){if(u)return"setTouch"===e?t:c&&n.animatingTo===n.last?0:c?n.limit-(n.itemW+o.itemMargin)*n.move*n.animatingTo:n.animatingTo===n.last?n.limit:i;switch(e){case"setTotal":return c?(n.count-1-n.currentSlide+n.cloneOffset)*t:(n.currentSlide+n.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return c?t:n.count*t;case"jumpStart":return c?n.count*t:t;default:return t}}()+"px"}();n.transitions&&(s=l?"translate3d(0,"+s+",0)":"translate3d("+s+",0,0)",i=void 0!==i?i/1e3+"s":"0s",n.container.css("-"+n.pfx+"-transition-duration",i)),n.args[n.prop]=s,(n.transitions||void 0===i)&&n.container.css(n.args)},n.setup=function(e){if(d)n.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&n.slides.eq(n.currentSlide).fadeIn(o.animationSpeed,o.easing),o.smoothHeight&&f.smoothHeight();else{var i,r;"init"===e&&(n.viewport=t('<div class="flex-viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(n).append(n.container),n.cloneCount=0,n.cloneOffset=0,c&&(r=t.makeArray(n.slides).reverse(),n.slides=t(r),n.container.empty().append(n.slides))),o.animationLoop&&!u&&(n.cloneCount=2,n.cloneOffset=1,"init"!==e&&n.container.find(".clone").remove(),n.container.append(n.slides.first().clone().addClass("clone")).prepend(n.slides.last().clone().addClass("clone"))),n.newSlides=t(o.selector,n),i=c?n.count-1-n.currentSlide+n.cloneOffset:n.currentSlide+n.cloneOffset,l&&!u?(n.container.height(200*(n.count+n.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){n.newSlides.css({display:"block"}),n.doMath(),n.viewport.height(n.h),n.setProps(i*n.h,"init")},"init"===e?100:0)):(n.container.width(200*(n.count+n.cloneCount)+"%"),n.setProps(i*n.computedW,"init"),setTimeout(function(){n.doMath(),n.newSlides.css({width:n.computedW,"float":"left",display:"block"}),o.smoothHeight&&f.smoothHeight()},"init"===e?100:0))}u||n.slides.removeClass(s+"active-slide").eq(n.currentSlide).addClass(s+"active-slide")},n.doMath=function(){var t=n.slides.first(),e=o.itemMargin,i=o.minItems,s=o.maxItems;n.w=n.width(),n.h=t.height(),n.boxPadding=t.outerWidth()-t.width(),u?(n.itemT=o.itemWidth+e,n.minW=i?i*n.itemT:n.w,n.maxW=s?s*n.itemT:n.w,n.itemW=n.minW>n.w?(n.w-e*i)/i:n.maxW<n.w?(n.w-e*s)/s:o.itemWidth>n.w?n.w:o.itemWidth,n.visible=Math.floor(n.w/(n.itemW+e)),n.move=0<o.move&&o.move<n.visible?o.move:n.visible,n.pagingCount=Math.ceil((n.count-n.visible)/n.move+1),n.last=n.pagingCount-1,n.limit=1===n.pagingCount?0:o.itemWidth>n.w?(n.itemW+2*e)*n.count-n.w-e:(n.itemW+e)*n.count-n.w):(n.itemW=n.w,n.pagingCount=n.count,n.last=n.count-1),n.computedW=n.itemW-n.boxPadding},n.update=function(t,e){n.doMath(),u||(t<n.currentSlide?n.currentSlide+=1:t<=n.currentSlide&&0!==t&&(n.currentSlide-=1),n.animatingTo=n.currentSlide),o.controlNav&&!n.manualControls&&("add"===e&&!u||n.pagingCount>n.controlNav.length?f.controlNav.update("add"):("remove"===e&&!u||n.pagingCount<n.controlNav.length)&&(u&&n.currentSlide>n.last&&(n.currentSlide-=1,n.animatingTo-=1),f.controlNav.update("remove",n.last))),o.directionNav&&f.directionNav.update(
1)},n.addSlide=function(e,i){var s=t(e);n.count+=1,n.last=n.count-1,l&&c?void 0!==i?n.slides.eq(n.count-i).after(s):n.container.prepend(s):void 0!==i?n.slides.eq(i).before(s):n.container.append(s),n.update(i,"add"),n.slides=t(o.selector+":not(.clone)",n),n.setup(),o.added(n)},n.removeSlide=function(e){var i=isNaN(e)?n.slides.index(t(e)):e;n.count-=1,n.last=n.count-1,isNaN(e)?t(e,n.slides).remove():l&&c?n.slides.eq(n.last).remove():n.slides.eq(e).remove(),n.doMath(),n.update(i,"remove"),n.slides=t(o.selector+":not(.clone)",n),n.setup(),o.removed(n)},f.init()},t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}},t.fn.flexslider=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var i=t(this),n=i.find(e.selector?e.selector:".slides > li");1===n.length?(n.fadeIn(400),e.start&&e.start(i)):void 0===i.data("flexslider")&&new t.flexslider(this,e)});var i=t(this).data("flexslider");switch(e){case"play":i.play();break;case"pause":i.pause();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof e&&i.flexAnimate(e,!0)}}}(jQuery),!function(t){function e(){}function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var r=n.call(arguments,1),a=0,l=this.length;l>a;a++){var c=this[a],u=t.data(c,e);if(u)if(t.isFunction(u[o])&&"_"!==o.charAt(0)){var d=u[o].apply(u,r);if(void 0!==d)return d}else s("no such method '"+o+"' for "+e+" instance");else s("cannot call methods on "+e+" prior to initialization; attempted to call '"+o+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}if(t){var s="undefined"==typeof console?e:function(t){console.error(t)};return t.bridget=function(t,e){i(e),o(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],i):i(t.jQuery)}(window),function(t){function e(e){var i=t.event;return i.target=i.target||i.srcElement||e,i}var i=document.documentElement,n=function(){};i.addEventListener?n=function(t,e,i){t.addEventListener(e,i,!1)}:i.attachEvent&&(n=function(t,i,n){t[i+n]=n.handleEvent?function(){var i=e(t);n.handleEvent.call(n,i)}:function(){var i=e(t);n.call(t,i)},t.attachEvent("on"+i,t[i+n])});var o=function(){};i.removeEventListener?o=function(t,e,i){t.removeEventListener(e,i,!1)}:i.detachEvent&&(o=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var s={bind:n,unbind:o};"function"==typeof define&&define.amd?define("eventie/eventie",s):"object"==typeof exports?module.exports=s:t.eventie=s}(this),function(t){function e(t){"function"==typeof t&&(e.isReady?t():s.push(t))}function i(t){var i="readystatechange"===t.type&&"complete"!==o.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var n=0,r=s.length;r>n;n++){var a=s[n];a()}}}function n(n){return n.bind(o,"DOMContentLoaded",i),n.bind(o,"readystatechange",i),n.bind(t,"load",i),e}var o=t.document,s=[];e.isReady=!1,"function"==typeof define&&define.amd?(e.isReady="function"==typeof requirejs,define("doc-ready/doc-ready",["eventie/eventie"],n)):t.docReady=n(t.eventie)}(this),function(){function t(){}function e(t,e){for(var i=t.length;i--;)if(t[i].listener===e)return i;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,o=this,s=o.EventEmitter;n.getListeners=function(t){var e,i,n=this._getEvents();if(t instanceof RegExp){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,i=[];for(e=0;e<t.length;e+=1)i.push(t[e].listener);return i},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,i){var n,o=this.getListenersAsObject(t),s="object"==typeof i;for(n in o)o.hasOwnProperty(n)&&-1===e(o[n],i)&&o[n].push(s?i:{listener:i,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,i){var n,o,s=this.getListenersAsObject(t);for(o in s)s.hasOwnProperty(o)&&(n=e(s[o],i),-1!==n&&s[o].splice(n,1));return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)}
1,n.manipulateListeners=function(t,e,i){var n,o,s=t?this.removeListener:this.addListener,r=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=i.length;n--;)s.call(this,e,i[n]);else for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?s.call(this,n,o):r.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var i,n,o,s,r=this.getListenersAsObject(t);for(o in r)if(r.hasOwnProperty(o))for(n=r[o].length;n--;)i=r[o][n],i.once===!0&&this.removeListener(t,i.listener),s=i.listener.apply(this,e||[]),s===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return o.EventEmitter=s,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,s=i.length;s>o;o++)if(e=i[o]+t,"string"==typeof n[e])return e}}var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=r.length;i>e;e++){var n=r[e];t[n]=0}return t}function n(t){function n(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=s(t);if("none"===n.display)return i();var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var u=o.isBorderBox=!(!c||!n[c]||"border-box"!==n[c]),d=0,p=r.length;p>d;d++){var f=r[d],h=n[f];h=a(t,h);var m=parseFloat(h);o[f]=isNaN(m)?0:m}var g=o.paddingLeft+o.paddingRight,v=o.paddingTop+o.paddingBottom,b=o.marginLeft+o.marginRight,y=o.marginTop+o.marginBottom,w=o.borderLeftWidth+o.borderRightWidth,x=o.borderTopWidth+o.borderBottomWidth,_=u&&l,C=e(n.width);C!==!1&&(o.width=C+(_?0:g+w));var S=e(n.height);return S!==!1&&(o.height=S+(_?0:v+x)),o.innerWidth=o.width-(g+w),o.innerHeight=o.height-(v+x),o.outerWidth=o.width+b,o.outerHeight=o.height+y,o}}function a(t,e){if(o||-1===e.indexOf("%"))return e;var i=t.style,n=i.left,s=t.runtimeStyle,r=s&&s.left;return r&&(s.left=t.currentStyle.left),i.left=e,e=i.pixelLeft,i.left=n,r&&(s.left
1=r),e}var l,c=t("boxSizing");return function(){if(c){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[c]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=s(t);l=200===e(n.width),i.removeChild(t)}}(),n}var o=t.getComputedStyle,s=o?function(t){return o(t,null)}:function(t){return t.currentStyle},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],n):"object"==typeof exports?module.exports=n(require("get-style-property")):t.getSize=n(t.getStyleProperty)}(window),function(t,e){function i(t,e){return t[a](e)}function n(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function o(t,e){n(t);for(var i=t.parentNode.querySelectorAll(e),o=0,s=i.length;s>o;o++)if(i[o]===t)return!0;return!1}function s(t,e){return n(t),i(t,e)}var r,a=function(){if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0,n=t.length;n>i;i++){var o=t[i],s=o+"MatchesSelector";if(e[s])return s}}();if(a){var l=document.createElement("div"),c=i(l,"div");r=c?i:s}else r=o;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return r}):window.matchesSelector=r}(this,Element.prototype),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){for(var e in t)return!1;return e=null,!0}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function o(t,o,s){function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var l=s("transition"),c=s("transform"),u=l&&c,d=!!s("perspective"),p={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[l],f=["transform","transition","transitionDuration","transitionProperty"],h=function(){for(var t={},e=0,i=f.length;i>e;e++){var n=f[e],o=s(n);o&&o!==n&&(t[n]=o)}return t}();e(a.prototype,t.prototype),a.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},a.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},a.prototype.getSize=function(){this.size=o(this.element)},a.prototype.css=function(t){var e=this.element.style;for(var i in t){var n=h[i]||i;e[n]=t[i]}},a.prototype.getPosition=function(){var t=r(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),s=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,s=isNaN(s)?0:s;var a=this.layout.size;o-=i?a.paddingLeft:a.paddingRight,s-=n?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=s},a.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var m=d?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};a.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),s=parseInt(e,10),r=o===this.position.x&&s===this.position.y;if(this.setPosition(t,e),r&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,l=e-n,c={},u=this.layout.options;a=u.isOriginLeft?a:-a,l=u.isOriginTop?l:-l,c.transform=m(a,l),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},a.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},a.prototype.moveTo=u?a.prototype._transitionTo:a.prototype.goTo,a.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},a.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},a.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var g=c&&n(c)+",opacity";a.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:g,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(p,this,!1))},a.prototype.transition=a.prototype[l?"_transition":"_nonTransition"],a.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},a.prototype.onotransitionend=function(t){this.ontransitionend(t)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};a.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=v[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},a.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(p,this,!1),this.isTransitioning=!1},a.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var b={transitionProperty:"",transitionDuration:""};return a.prototype.removeTransitionStyles=function(){this.css(b)},a.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},a.prototype.remove=function(){if(!l||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()},a.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},a.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:{opacity:function(){this.isHidden&&this.css({display:"none"})}}})},a.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a}var s=t.getComputedStyle,r=s?function(t){return s(t,null)}:function(t){return t.currentStyle};"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property"],o):(t.Outlayer={},t.Outlayer.Item=o(t.EventEmitter,t.getSize,t.getStyleProperty))}(window),function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}function i(t){return"[object Array]"===d.call(t)}function n(t){var e=[];
1if(i(t))e=t;else if(t&&"number"==typeof t.length)for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}function o(t,e){var i=f(e,t);-1!==i&&e.splice(i,1)}function s(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}function r(i,r,d,f,h,m){function g(t,i){if("string"==typeof t&&(t=a.querySelector(t)),!t||!p(t))return void(l&&l.error("Bad "+this.constructor.namespace+" element: "+t));this.element=t,this.options=e({},this.constructor.defaults),this.option(i);var n=++v;this.element.outlayerGUID=n,b[n]=this,this._create(),this.options.isInitLayout&&this.layout()}var v=0,b={};return g.namespace="outlayer",g.Item=m,g.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(g.prototype,d.prototype),g.prototype.option=function(t){e(this.options,t)},g.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},g.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},g.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0,s=e.length;s>o;o++){var r=e[o],a=new i(r,this);n.push(a)}return n},g.prototype._filterFindItemElements=function(t){t=n(t);for(var e=this.options.itemSelector,i=[],o=0,s=t.length;s>o;o++){var r=t[o];if(p(r))if(e){h(r,e)&&i.push(r);for(var a=r.querySelectorAll(e),l=0,c=a.length;c>l;l++)i.push(a[l])}else i.push(r)}return i},g.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},g.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},g.prototype._init=g.prototype.layout,g.prototype._resetLayout=function(){this.getSize()},g.prototype.getSize=function(){this.size=f(this.element)},g.prototype._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):p(n)&&(i=n),this[t]=i?f(i)[e]:n):this[t]=0},g.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},g.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}return e},g.prototype._layoutItems=function(t,e){function i(){n.emitEvent("layoutComplete",[n,t])}var n=this;if(!t||!t.length)return void i();this._itemsOn(t,"layout",i);for(var o=[],s=0,r=t.length;r>s;s++){var a=t[s],l=this._getItemLayoutPosition(a);l.item=a,l.isInstant=e||a.isLayoutInstant,o.push(l)}this._processLayoutQueue(o)},g.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},g.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},g.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},g.prototype._postLayout=function(){this.resizeContainer()},g.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},g.prototype._getContainerSize=u,g.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},g.prototype._itemsOn=function(t,e,i){function n(){return o++,o===s&&i.call(r),!0}for(var o=0,s=t.length,r=this,a=0,l=t.length;l>a;a++){var c=t[a];c.on(e,n)}},g.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},g.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},g.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.
1concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},g.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,i=t.length;i>e;e++){var n=t[e];o(n,this.stamps),this.unignore(n)}},g.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n(t)):void 0},g.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},g.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},g.prototype._manageStamp=u,g.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=f(t),o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},g.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},g.prototype.bindResize=function(){this.isResizeBound||(i.bind(t,"resize",this),this.isResizeBound=!0)},g.prototype.unbindResize=function(){this.isResizeBound&&i.unbind(t,"resize",this),this.isResizeBound=!1},g.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},g.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},g.prototype.needsResizeLayout=function(){var t=f(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},g.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},g.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},g.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},g.prototype.reveal=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.reveal()}},g.prototype.hide=function(t){var e=t&&t.length;if(e)for(var i=0;e>i;i++){var n=t[i];n.hide()}},g.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},g.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],s=this.getItem(o);s&&e.push(s)}return e}},g.prototype.remove=function(t){t=n(t);var e=this.getItems(t);if(e&&e.length){this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,s=e.length;s>i;i++){var r=e[i];r.remove(),o(r,this.items)}}},g.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];n.destroy()}this.unbindResize(),delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},g.data=function(t){var e=t&&t.outlayerGUID;return e&&b[e]},g.create=function(t,i){function n(){g.apply(this,arguments)}return Object.create?n.prototype=Object.create(g.prototype):e(n.prototype,g.prototype),n.prototype.constructor=n,n.defaults=e({},g.defaults),e(n.defaults,i),n.prototype.settings={},n.namespace=t,n.data=g.data,n.Item=function(){m.apply(this,arguments)},n.Item.prototype=new m,r(function(){for(var e=s(t),i=a.querySelectorAll(".js-"+e),o="data-"+e+"-options",r=0,u=i.length;u>r;r++){var d,p=i[r],f=p.getAttribute(o);try{d=f&&JSON.parse(f)}catch(h){l&&l.error("Error parsing "+o+" on "+p.nodeName.toLowerCase()+(p.id?"#"+p.id:"")+": "+h);continue}var m=new n(p,d);c&&c.data(p,t,m)}}),c&&c.bridget&&c.bridget(t,n),n},g.Item=m,g}var a=t.document,l=t.console,c=t.jQuery,u=function(){},d=Object.prototype.toString,p="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},f=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)if(t[i]===e)return i;return-1};"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","doc-ready/doc-ready","eventEmitter/EventEmitter","get-size/get-size","matches-selector/matches-selector","./item"],r):t.Outlayer=r(t.eventie,t.docReady,t.EventEmitter,t.getSize,t.matchesSelector,t.Outlayer.Item)}(window),function(t){function e(t,e){var n=t.create("masonry");
1return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter,this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=e&&1>e?"round":"ceil",o=Math[n](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var s=this._getColGroup(o),r=Math.min.apply(Math,s),a=i(s,r),l={x:this.columnWidth*a,y:r},c=r+t.size.outerHeight,u=this.cols+1-s.length,d=0;u>d;d++)this.colYs[a+d]=c;return l},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,s=o+i.outerWidth,r=Math.floor(o/this.columnWidth);r=Math.max(0,r);var a=Math.floor(s/this.columnWidth);a-=s%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,c=r;a>=c;c++)this.colYs[c]=Math.max(l,this.colYs[c])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++){var o=t[i];if(o===e)return i}return-1};"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):t.Masonry=e(t.Outlayer,t.getSize)}(window),function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t(jQuery)}(function(t){function e(e){return!e||void 0!==e.allowPageScroll||void 0===e.swipe&&void 0===e.swipeStatus||(e.allowPageScroll=c),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e||(e={}),e=t.extend({},t.fn.swipe.defaults,e),this.each(function(){var n=t(this),o=n.data(T);o||(o=new i(this,e),n.data(T,o))})}function i(e,i){function k(e){if(!(ce()||t(e.target).closest(i.excludedElements,qe).length>0)){var n,o=e.originalEvent?e.originalEvent:e,s=S?o.touches[0]:o;return Qe=w,S?Ue=o.touches.length:e.preventDefault(),Me=0,Ne=null,He=null,Re=0,$e=0,je=0,De=1,We=0,Ve=he(),Fe=ve(),ae(),!S||Ue===i.fingers||i.fingers===b||F()?(de(0,s),Ge=Ie(),2==Ue&&(de(1,o.touches[1]),$e=je=we(Ve[0].start,Ve[1].start)),(i.swipeStatus||i.pinchStatus)&&(n=M(o,Qe))):n=!1,n===!1?(Qe=C,M(o,Qe),n):(i.hold&&(ti=setTimeout(t.proxy(function(){qe.trigger("hold",[o.target]),i.hold&&(n=i.hold.call(qe,o,o.target))},this),i.longTapThreshold)),ue(!0),null)}}function E(t){var e=t.originalEvent?t.originalEvent:t;if(Qe!==_&&Qe!==C&&!le()){var n,o=S?e.touches[0]:e,s=pe(o);if(Ye=Ie(),S&&(Ue=e.touches.length),i.hold&&clearTimeout(ti),Qe=x,2==Ue&&(0==$e?(de(1,e.touches[1]),$e=je=we(Ve[0].start,Ve[1].start)):(pe(e.touches[1]),je=we(Ve[0].end,Ve[1].end),He=_e(Ve[0].end,Ve[1].end)),De=xe($e,je),We=Math.abs($e-je)),Ue===i.fingers||i.fingers===b||!S||F()){if(Ne=Ae(s.start,s.end),W(t,Ne),Me=Ce(s.start,s.end),Re=ye(),me(Ne,Me),(i.swipeStatus||i.pinchStatus)&&(n=M(e,Qe)),!i.triggerOnTouchEnd||i.triggerOnTouchLeave){var r=!0;if(i.triggerOnTouchLeave){var a=Te(this);r=ke(s.end,a)}!i.triggerOnTouchEnd&&r?Qe=z(x):i.triggerOnTouchLeave&&!r&&(Qe=z(_)),(Qe==C||Qe==_)&&M(e,Qe)}}else Qe=C,M(e,Qe);n===!1&&(Qe=C,M(e,Qe))}}function O(t){var e=t.originalEvent;return S&&e.touches.length>0?(re(),!0):(le()&&(Ue=Xe),Ye=Ie(),Re=ye(),$()||!R()?(Qe=C,M(e,Qe)):i.triggerOnTouchEnd||0==i.triggerOnTouchEnd&&Qe===x?(t.preventDefault(),Qe=_,M(e,Qe)):!i.triggerOnTouchEnd&&K()?(Qe=_,N(e,Qe,f)):Qe===x&&(Qe=C,M(e,Qe)),ue(!1),null)}function P(){Ue=0,Ye=0,Ge=0,$e=0,je=0,De=1,ae(),ue(!1)}function L(t){var e=t.originalEvent;i.triggerOnTouchLeave&&(Qe=z(_),M(e,Qe))}function B(){qe.unbind(Oe,k),qe.unbind(ze,P),qe.unbind(Pe,E),qe.unbind(Le,O),Be&&qe.unbind(Be,L),ue(!1)}function z(t){var e=t,n=D(),o=R(),s=$();return!n||s?e=C:!o||t!=x||i.triggerOnTouchEnd&&!i.triggerOnTouchLeave?!o&&t==_&&i.triggerOnTouchLeave&&(e=C):e=_,e}function M(t,e){var i=void 0;return V()||U()?i=N(t,e,d):(q()||F())&&i!==!1&&(i=N(t,e,p)),oe()&&i!==!1?i=N(t,e,h):se()&&i!==!1?i=N(t,e,m):ne()&&i!==!1&&(i=N(t,e,f)),e===C&&P(t),e===_&&(S?0==t.touches.length&&P(t):P(t)),i}function N(e,c,u){var g=void 0;if(u==d){if(qe.trigger("swipeStatus",[c,Ne||null,Me||0,Re||0,Ue,Ve]),i.swipeStatus&&(g=i.swipeStatus.call(qe,e,c,Ne||null,Me||0,Re||0,Ue,Ve),g===!1))return!1;if(c==_&&Q()){if(qe.trigger("swipe",[Ne,Me,Re,Ue,Ve]),i.swipe&&(g=i.swipe.call(qe,e,Ne,Me,Re,Ue,Ve),g===!1))return!1;switch(Ne){case n:qe.trigger("swipeLeft",[Ne,Me,Re,Ue,Ve]),i.swipeLeft&&(g=i.swipeLeft.call(qe,e,Ne,Me,Re,Ue,Ve));break;case o:qe.trigger("swipeRight",[Ne,Me,Re,Ue,Ve]),i.swipeRight&&(g=i.swipeRight.call(qe,e,Ne,Me,Re,Ue,Ve));break;case s:qe.trigger("swipeUp",[Ne,Me,Re,Ue,Ve]),i.swipeUp&&(g=i.swipeUp.call(qe,e,Ne,Me,Re,Ue,Ve));break;case r:qe.trigger("swipeDown",[Ne,Me,Re,Ue,Ve]),i.swipeDown&&(g=i.swipeDown.call(qe,e,Ne,Me,Re,Ue,Ve))}}}if(u==p){if(qe.trigger("pinchStatus",[c,He||null,We||0,Re||0,Ue,De,Ve]),i.pinchStatus&&(g=i.pinchStatus.call(qe,e,c,He||null,We||0,Re||0,Ue,De,Ve),g===!1))return!1;if(c==_&&H())switch(He){case a:qe.trigger("pinchIn",[He||null,We||0,Re||0,Ue,De,Ve]),i.pinchIn&&(g=i.pinchIn.call(qe,e,He||null,We||0,Re||0,Ue,De,Ve));break;case l:qe.trigger("pinchOut",[He||null,We||0,Re||0,Ue,De,Ve]),i.pinchOut&&(g=i.pinchOut.call(qe,e,He||null,We||0,Re||0,Ue,De,Ve))}}return u==f?(c===C||c===_)&&(clearTimeout(Ze),clearTimeout(ti),X()&&!te()?(Je=Ie(),Ze=setTimeout(t.proxy(function(){Je=null,qe.trigger("tap",[e.target]),i.tap&&
1(g=i.tap.call(qe,e,e.target))},this),i.doubleTapThreshold)):(Je=null,qe.trigger("tap",[e.target]),i.tap&&(g=i.tap.call(qe,e,e.target)))):u==h?(c===C||c===_)&&(clearTimeout(Ze),Je=null,qe.trigger("doubletap",[e.target]),i.doubleTap&&(g=i.doubleTap.call(qe,e,e.target))):u==m&&(c===C||c===_)&&(clearTimeout(Ze),Je=null,qe.trigger("longtap",[e.target]),i.longTap&&(g=i.longTap.call(qe,e,e.target))),g}function R(){var t=!0;return null!==i.threshold&&(t=Me>=i.threshold),t}function $(){var t=!1;return null!==i.cancelThreshold&&null!==Ne&&(t=ge(Ne)-Me>=i.cancelThreshold),t}function j(){return null!==i.pinchThreshold?We>=i.pinchThreshold:!0}function D(){var t;return t=i.maxTimeThreshold&&Re>=i.maxTimeThreshold?!1:!0}function W(t,e){if(i.allowPageScroll===c||F())t.preventDefault();else{var a=i.allowPageScroll===u;switch(e){case n:(i.swipeLeft&&a||!a&&i.allowPageScroll!=g)&&t.preventDefault();break;case o:(i.swipeRight&&a||!a&&i.allowPageScroll!=g)&&t.preventDefault();break;case s:(i.swipeUp&&a||!a&&i.allowPageScroll!=v)&&t.preventDefault();break;case r:(i.swipeDown&&a||!a&&i.allowPageScroll!=v)&&t.preventDefault()}}}function H(){var t=G(),e=Y(),i=j();return t&&e&&i}function F(){return!!(i.pinchStatus||i.pinchIn||i.pinchOut)}function q(){return!(!H()||!F())}function Q(){var t=D(),e=R(),i=G(),n=Y(),o=$(),s=!o&&n&&i&&e&&t;return s}function U(){return!!(i.swipe||i.swipeStatus||i.swipeLeft||i.swipeRight||i.swipeUp||i.swipeDown)}function V(){return!(!Q()||!U())}function G(){return Ue===i.fingers||i.fingers===b||!S}function Y(){return 0!==Ve[0].end.x}function K(){return!!i.tap}function X(){return!!i.doubleTap}function J(){return!!i.longTap}function Z(){if(null==Je)return!1;var t=Ie();return X()&&t-Je<=i.doubleTapThreshold}function te(){return Z()}function ee(){return(1===Ue||!S)&&(isNaN(Me)||Me<i.threshold)}function ie(){return Re>i.longTapThreshold&&y>Me}function ne(){return!(!ee()||!K())}function oe(){return!(!Z()||!X())}function se(){return!(!ie()||!J())}function re(){Ke=Ie(),Xe=event.touches.length+1}function ae(){Ke=0,Xe=0}function le(){var t=!1;if(Ke){var e=Ie()-Ke;e<=i.fingerReleaseThreshold&&(t=!0)}return t}function ce(){return!(qe.data(T+"_intouch")!==!0)}function ue(t){t===!0?(qe.bind(Pe,E),qe.bind(Le,O),Be&&qe.bind(Be,L)):(qe.unbind(Pe,E,!1),qe.unbind(Le,O,!1),Be&&qe.unbind(Be,L,!1)),qe.data(T+"_intouch",t===!0)}function de(t,e){var i=void 0!==e.identifier?e.identifier:0;return Ve[t].identifier=i,Ve[t].start.x=Ve[t].end.x=e.pageX||e.clientX,Ve[t].start.y=Ve[t].end.y=e.pageY||e.clientY,Ve[t]}function pe(t){var e=void 0!==t.identifier?t.identifier:0,i=fe(e);return i.end.x=t.pageX||t.clientX,i.end.y=t.pageY||t.clientY,i}function fe(t){for(var e=0;e<Ve.length;e++)if(Ve[e].identifier==t)return Ve[e]}function he(){for(var t=[],e=0;5>=e;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}function me(t,e){e=Math.max(e,ge(t)),Fe[t].distance=e}function ge(t){return Fe[t]?Fe[t].distance:void 0}function ve(){var t={};return t[n]=be(n),t[o]=be(o),t[s]=be(s),t[r]=be(r),t}function be(t){return{direction:t,distance:0}}function ye(){return Ye-Ge}function we(t,e){var i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+n*n))}function xe(t,e){var i=e/t*1;return i.toFixed(2)}function _e(){return 1>De?l:a}function Ce(t,e){return Math.round(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)))}function Se(t,e){var i=t.x-e.x,n=e.y-t.y,o=Math.atan2(n,i),s=Math.round(180*o/Math.PI);return 0>s&&(s=360-Math.abs(s)),s}function Ae(t,e){var i=Se(t,e);return 45>=i&&i>=0?n:360>=i&&i>=315?n:i>=135&&225>=i?o:i>45&&135>i?r:s}function Ie(){var t=new Date;return t.getTime()}function Te(e){e=t(e);var i=e.offset(),n={left:i.left,right:i.left+e.outerWidth(),top:i.top,bottom:i.top+e.outerHeight()};return n}function ke(t,e){return t.x>e.left&&t.x<e.right&&t.y>e.top&&t.y<e.bottom}var Ee=S||I||!i.fallbackToMouseEvents,Oe=Ee?I?A?"MSPointerDown":"pointerdown":"touchstart":"mousedown",Pe=Ee?I?A?"MSPointerMove":"pointermove":"touchmove":"mousemove",Le=Ee?I?A?"MSPointerUp":"pointerup":"touchend":"mouseup",Be=Ee?null:"mouseleave",ze=I?A?"MSPointerCancel":"pointercancel":"touchcancel",Me=0,Ne=null,Re=0,$e=0,je=0,De=1,We=0,He=0,Fe=null,qe=t(e),Qe="start",
1Ue=0,Ve=null,Ge=0,Ye=0,Ke=0,Xe=0,Je=0,Ze=null,ti=null;try{qe.bind(Oe,k),qe.bind(ze,P)}catch(ei){t.error("events not supported "+Oe+","+ze+" on jQuery.swipe")}this.enable=function(){return qe.bind(Oe,k),qe.bind(ze,P),qe},this.disable=function(){return B(),qe},this.destroy=function(){return B(),qe.data(T,null),qe},this.option=function(e,n){if(void 0!==i[e]){if(void 0===n)return i[e];i[e]=n}else t.error("Option "+e+" does not exist on jQuery.swipe.options");return null}}var n="left",o="right",s="up",r="down",a="in",l="out",c="none",u="auto",d="swipe",p="pinch",f="tap",h="doubletap",m="longtap",g="horizontal",v="vertical",b="all",y=10,w="start",x="move",_="end",C="cancel",S="ontouchstart"in window,A=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,I=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,T="TouchSwipe",k={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"};t.fn.swipe=function(i){var n=t(this),o=n.data(T);if(o&&"string"==typeof i){if(o[i])return o[i].apply(this,Array.prototype.slice.call(arguments,1));t.error("Method "+i+" does not exist on jQuery.swipe")}else if(!(o||"object"!=typeof i&&i))return e.apply(this,arguments);return n},t.fn.swipe.defaults=k,t.fn.swipe.phases={PHASE_START:w,PHASE_MOVE:x,PHASE_END:_,PHASE_CANCEL:C},t.fn.swipe.directions={LEFT:n,RIGHT:o,UP:s,DOWN:r,IN:a,OUT:l},t.fn.swipe.pageScroll={NONE:c,HORIZONTAL:g,VERTICAL:v,AUTO:u},t.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:b}}),function(t){function e(t,e){return t.toFixed(e.decimals)}t.fn.countTo=function(e){return e=e||{},t(this).each(function(){function i(){u+=r,c++,n(u),"function"==typeof o.onUpdate&&o.onUpdate.call(a,u),c>=s&&(l.removeData("countTo"),clearInterval(d.interval),u=o.to,"function"==typeof o.onComplete&&o.onComplete.call(a,u))}function n(t){var e=o.formatter.call(a,t,o);l.html(e)}var o=t.extend({},t.fn.countTo.defaults,{from:t(this).data("from"),to:t(this).data("to"),speed:t(this).data("speed"),refreshInterval:t(this).data("refresh-interval"),decimals:t(this).data("decimals")},e),s=Math.ceil(o.speed/o.refreshInterval),r=(o.to-o.from)/s,a=this,l=t(this),c=0,u=o.from,d=l.data("countTo")||{};l.data("countTo",d),d.interval&&clearInterval(d.interval),d.interval=setInterval(i,o.refreshInterval),n(u)})},t.fn.countTo.defaults={from:0,to:0,speed:1e3,refreshInterval:100,decimals:0,formatter:e,onUpdate:null,onComplete:null}}(jQuery),function($){function sc_setScroll(t,e,i){return"transition"==i.transition&&"swing"==e&&(e="ease"),{anims:[],duration:t,orgDuration:t,easing:e,startTime:getTime()}}function sc_startScroll(t,e){for(var i=0,n=t.anims.length;n>i;i++){var o=t.anims[i];o&&o[0][e.transition](o[1],t.duration,t.easing,o[2])}}function sc_stopScroll(t,e){is_boolean(e)||(e=!0),is_object(t.pre)&&sc_stopScroll(t.pre,e);for(var i=0,n=t.anims.length;n>i;i++){var o=t.anims[i];o[0].stop(!0),e&&(o[0].css(o[1]),is_function(o[2])&&o[2]())}is_object(t.post)&&sc_stopScroll(t.post,e)}function sc_afterScroll(t,e,i){switch(e&&e.remove(),i.fx){case"fade":case"crossfade":case"cover-fade":case"uncover-fade":t.css("opacity",1),t.css("filter","")}}function sc_fireCallbacks(t,e,i,n,o){if(e[i]&&e[i].call(t,n),o[i].length)for(var s=0,r=o[i].length;r>s;s++)o[i][s].call(t,n);return[]}function sc_fireQueue(t,e,i){return e.length&&(t.trigger(cf_e(e[0][0],i),e[0][1]),e.shift()),e}function sc_hideHiddenItems(t){t.each(function(){var t=$(this);t.data("_cfs_isHidden",t.is(":hidden")).hide()})}function sc_showHiddenItems(t){t&&t.each(function(){var t=$(this);t.data("_cfs_isHidden")||t.show()})}function sc_clearTimers(t){return t.auto&&clearTimeout(t.auto),t.progress&&clearInterval(t.progress),t}function sc_mapCallbackArguments(t,e,i,n,o,s,r){return{width:r.width,height:r.height,items:{old:t,skipped:e,visible:i},scroll:{items:n,direction:o,duration:s}}}
vendor: 10,046 bytes, line 1
1function sc_getDuration(t,e,i,n){var o=t.duration;return"none"==t.fx?0:("auto"==o?o=e.scroll.duration/e.scroll.items*i:10>o&&(o=n/o),1>o?0:("fade"==t.fx&&(o/=2),Math.round(o)))}function nv_showNavi(t,e,i){var n=is_number(t.items.minimum)?t.items.minimum:t.items.visible+1;if("show"==e||"hide"==e)var o=e;else if(n>e){debug(i,"Not enough items ("+e+" total, "+n+" needed): Hiding navigation.");var o="hide"}else var o="show";var s="show"==o?"removeClass":"addClass",r=cf_c("hidden",i);t.auto.button&&t.auto.button[o]()[s](r),t.prev.button&&t.prev.button[o]()[s](r),t.next.button&&t.next.button[o]()[s](r),t.pagination.container&&t.pagination.container[o]()[s](r)}function nv_enableNavi(t,e,i){if(!t.circular&&!t.infinite){var n="removeClass"==e||"addClass"==e?e:!1,o=cf_c("disabled",i);if(t.auto.button&&n&&t.auto.button[n](o),t.prev.button){var s=n||0==e?"addClass":"removeClass";t.prev.button[s](o)}if(t.next.button){var s=n||e==t.items.visible?"addClass":"removeClass";t.next.button[s](o)}}}function go_getObject(t,e){return is_function(e)?e=e.call(t):is_undefined(e)&&(e={}),e}function go_getItemsObject(t,e){return e=go_getObject(t,e),is_number(e)?e={visible:e}:"variable"==e?e={visible:e,width:e,height:e}:is_object(e)||(e={}),e}function go_getScrollObject(t,e){return e=go_getObject(t,e),is_number(e)?e=50>=e?{items:e}:{duration:e}:is_string(e)?e={easing:e}:is_object(e)||(e={}),e}function go_getNaviObject(t,e){if(e=go_getObject(t,e),is_string(e)){var i=cf_getKeyCode(e);e=-1==i?$(e):i}return e}function go_getAutoObject(t,e){return e=go_getNaviObject(t,e),is_jquery(e)?e={button:e}:is_boolean(e)?e={play:e}:is_number(e)&&(e={timeoutDuration:e}),e.progress&&(is_string(e.progress)||is_jquery(e.progress))&&(e.progress={bar:e.progress}),e}function go_complementAutoObject(t,e){return is_function(e.button)&&(e.button=e.button.call(t)),is_string(e.button)&&(e.button=$(e.button)),is_boolean(e.play)||(e.play=!0),is_number(e.delay)||(e.delay=0),is_undefined(e.pauseOnEvent)&&(e.pauseOnEvent=!0),is_boolean(e.pauseOnResize)||(e.pauseOnResize=!0),is_number(e.timeoutDuration)||(e.timeoutDuration=10>e.duration?2500:5*e.duration),e.progress&&(is_function(e.progress.bar)&&(e.progress.bar=e.progress.bar.call(t)),is_string(e.progress.bar)&&(e.progress.bar=$(e.progress.bar)),e.progress.bar?(is_function(e.progress.updater)||(e.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(e.progress.interval)||(e.progress.interval=50)):e.progress=!1),e}function go_getPrevNextObject(t,e){return e=go_getNaviObject(t,e),is_jquery(e)?e={button:e}:is_number(e)&&(e={key:e}),e}function go_complementPrevNextObject(t,e){return is_function(e.button)&&(e.button=e.button.call(t)),is_string(e.button)&&(e.button=$(e.button)),is_string(e.key)&&(e.key=cf_getKeyCode(e.key)),e}function go_getPaginationObject(t,e){return e=go_getNaviObject(t,e),is_jquery(e)?e={container:e}:is_boolean(e)&&(e={keys:e}),e}function go_complementPaginationObject(t,e){return is_function(e.container)&&(e.container=e.container.call(t)),is_string(e.container)&&(e.container=$(e.container)),is_number(e.items)||(e.items=!1),is_boolean(e.keys)||(e.keys=!1),is_function(e.anchorBuilder)||is_false(e.anchorBuilder)||(e.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(e.deviation)||(e.deviation=0),e}function go_getSwipeObject(t,e){return is_function(e)&&(e=e.call(t)),is_undefined(e)&&(e={onTouch:!1}),is_true(e)?e={onTouch:e}:is_number(e)&&(e={items:e}),e}function go_complementSwipeObject(t,e){return is_boolean(e.onTouch)||(e.onTouch=!0),is_boolean(e.onMouse)||(e.onMouse=!1),is_object(e.options)||(e.options={}),is_boolean(e.options.triggerOnTouchEnd)||(e.options.triggerOnTouchEnd=!1),e}function go_getMousewheelObject(t,e){return is_function(e)&&(e=e.call(t)),is_true(e)?e={}:is_number(e)?e={items:e}:is_undefined(e)&&(e=!1),e}function go_complementMousewheelObject(t,e){return e}function gn_getItemIndex(t,e,i,n,o){if(is_string(t)&&(t=$(t,o)),is_object(t)&&(t=$(t,o)),is_jquery(t)?(t=o.children().index(t),is_boolean(i)||(i=!1)):is_boolean(i)||(i=!0),is_number(t)||(t=0),is_number(e)||(e=0),i&&(t+=n.first),t+=e,n.total>0){for(;t>=n.total;)t-=n.total;for(;0>t;)t+=n.total}return t}function gn_getVisibleItemsPrev(t,e,i){for(var n=0,o=0,s=i;s>=0;s--){var r=t.eq(s);if(n+=r.is(":visible")?r[e.d.outerWidth](!0):0,n>e.maxDimension)return o;0==s&&(s=t.length),o++}}function gn_getVisibleItemsPrevFilter(t,e,i){return gn_getItemsPrevFilter(t,e.items.filter,e.items.visibleConf.org,i)}function gn_getScrollItemsPrevFilter(t,e,i,n){return gn_getItemsPrevFilter(t,e.items.filter,n,i)}function gn_getItemsPrevFilter(t,e,i,n){for(var o=0,s=0,r=n,a=t.length;r>=0;r--){if(s++,s==a)return s;var l=t.eq(r);if(l.is(e)&&(o++,o==i))return s;0==r&&(r=a)}}function gn_getVisibleOrg(t,e){return e.items.visibleConf.org||t.children().slice(0,e.items.visible).filter(e.items.filter).length}function gn_getVisibleItemsNext(t,e,i){for(var n=0,o=0,s=i,r=t.length-1;r>=s;s++){var a=t.eq(s);if(n+=a.is(":visible")?a[e.d.outerWidth](!0):0,n>e.maxDimension)return o;if(o++,o==r+1)return o;s==r&&(s=-1)}}function gn_getVisibleItemsNextTestCircular(t,e,i,n){var o=gn_getVisibleItemsNext(t,e,i);return e.circular||i+o>n&&(o=n-i),o}function gn_getVisibleItemsNextFilter(t,e,i){return gn_getItemsNextFilter(t,e.items.filter,e.items.visibleConf.org,i,e.circular)}function gn_getScrollItemsNextFilter(t,e,i,n){return gn_getItemsNextFilter(t,e.items.filter,n+1,i,e.circular)-1}function gn_getItemsNextFilter(t,e,i,n){for(var o=0,s=0,r=n,a=t.length-1;a>=r;r++){if(s++,s>=a)return s;var l=t.eq(r);if(l.is(e)&&(o++,o==i))return s;r==a&&(r=-1)}}function gi_getCurrentItems(t,e){return t.slice(0,e.items.visible)}function gi_getOldItemsPrev(t,e,i){return t.slice(i,e.items.visibleConf.old+i)}function gi_getNewItemsPrev(t,e){return t.slice(0,e.items.visible)}function gi_getOldItemsNext(t,e){return t.slice(0,e.items.visibleConf.old)}function gi_getNewItemsNext(t,e,i){return t.slice(i,e.items.visible+i)}function sz_storeMargin(t,e,i){e.usePadding&&(is_string(i)||(i="_cfs_origCssMargin"),t.each(function(){var t=$(this),n=parseInt(t.css(e.d.marginRight),10);is_number(n)||(n=0),t.data(i,n)}))}function sz_resetMargin(t,e,i){if(e.usePadding){var n=is_boolean(i)?i:!1;is_number(i)||(i=0),sz_storeMargin(t,e,"_cfs_tempCssMargin"),t.each(function(){var t=$(this);t.css(e.d.marginRight,n?t.data("_cfs_tempCssMargin"):i+t.data("_cfs_origCssMargin"))})}}function sz_storeOrigCss(t){t.each(function(){var t=$(this);t.data("_cfs_origCss",t.attr("style")||"")})}function sz_restoreOrigCss(t){t.each(function(){var t=$(this);t.attr("style",t.data("_cfs_origCss")||"")})}function sz_setResponsiveSizes(t,e){var i=(t.items.visible,t.items[t.d.width]),n=t[t.d.height],o=is_percentage(n);e.each(function(){var e=$(this),s=i-ms_getPaddingBorderMargin(e,t,"Width");e[t.d.width](s),o&&e[t.d.height](ms_getPercentage(s,n))})}function sz_setSizes(t,e){var i=t.parent(),n=t.children(),o=gi_getCurrentItems(n,e),s=cf_mapWrapperSizes(ms_getSizes(o,e,!0),e,!1);if(i.css(s),e.usePadding){var r=e.padding,a=r[e.d[1]];e.align&&0>a&&(a=0);var l=o.last();l.css(e.d.marginRight,l.data("_cfs_origCssMargin")+a),t.css(e.d.top,r[e.d[0]]),t.css(e.d.left,r[e.d[3]])}return t.css(e.d.width,s[e.d.width]+2*ms_getTotalSize(n,e,"width")),t.css(e.d.height,ms_getLargestSize(n,e,"height")),s}function ms_getSizes(t,e,i){return[ms_getTotalSize(t,e,"width",i),ms_getLargestSize(t,e,"height",i)]}function ms_getLargestSize(t,e,i,n){return is_boolean(n)||(n=!1),is_number(e[e.d[i]])&&n?e[e.d[i]]:is_number(e.items[e.d[i]])?e.items[e.d[i]]:(i=i.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",ms_getTrueLargestSize(t,e,i))}function ms_getTrueLargestSize(t,e,i){for(var n=0,o=0,s=t.length;s>o;o++){var r=t.eq(o),a=r.is(":visible")?r[e.d[i]](!0):0;a>n&&(n=a)}return n}function ms_getTotalSize(t,e,i,n){if(is_boolean(n)||(n=!1),is_number(e[e.d[i]])&&n)return e[e.d[i]];if(is_number(e.items[e.d[i]]))return e.items[e.d[i]]*t.length;for(var o=i.toLowerCase().indexOf("width")>-1?"outerWidth":"outerHeight",s=0,r=0,a=t.length;a>r;r++){var l=t.eq(r);s+=l.is(":visible")?l[e.d[o]](!0):0}return s}function ms_getParentSize(t,e,i){var n=t.is(":visible");n&&t.hide();var o=t.parent()[e.d[i]]();return n&&t.show(),o}function ms_getMaxDimension(t,e){return is_number(t[t.d.width])?t[t.d.width]:e}function ms_hasVariableSizes(t,e,i){for(var n=!1,o=!1,s=0,r=t.length;r>s;s++){var a=t.eq(s),l=a.is(":visible")?a[e.d[i]](!0):0;n===!1?n=l:n!=l&&(o=!0),0==n&&(o=!0)}return o}function ms_getPaddingBorderMargin(t,e,i){return t[e.d["outer"+i]](!0)-t[e.d[i.toLowerCase()]]()}function ms_getPercentage(t,e){if(is_percentage(e)){if(e=parseInt(e.slice(0,-1),10),!is_number(e))return t;t*=e/100}return t}function cf_e(t,e,i,n,o){return is_boolean(i)||(i=!0),is_boolean(n)||(n=!0),is_boolean(o)||(o=!1),i&&(t=e.events.prefix+t),n&&(t=t+"."+e.events.namespace),n&&o&&(t+=e.serialNumber),t}function cf_c(t,e){return is_string(e.classnames[t])?e.classnames[t]:t}function cf_mapWrapperSizes(t,e,i){is_boolean(i)||(i=!0);var n=e.usePadding&&i?e.padding:[0,0,0,0],o={};return o[e.d.width]=t[0]+n[1]+n[3],o[e.d.height]=t[1]+n[0]+n[2],o}function cf_sortParams(t,e){for(var i=[],n=0,o=t.length;o>n;n++)for(var s=0,r=e.length;r>s;s++)if(e[s].indexOf(typeof t[n])>-1&&is_undefined(i[s])){i[s]=t[n];break}return i}function cf_getPadding(t){if(is_undefined(t))return[0,0,0,0];if(is_number(t))return[t,t,t,t];if(is_string(t)&&(t=t.split("px").join("").split("em").join("").split(" ")),!is_array(t))return[0,0,0,0];for(var e=0;4>e;e++)t[e]=parseInt(t[e],10);switch(t.length){case 0:return[0,0,0,0];case 1:return[t[0],t[0],t[0],t[0]];case 2:return[t[0],t[1],t[0],t[1]];case 3:return[t[0],t[1],t[2],t[1]];default:return[t[0],t[1],t[2],t[3]]}}function cf_getAlignPadding(t,e){var i=is_number(e[e.d.width])?Math.ceil(e[e.d.width]-ms_getTotalSize(t,e,"width")):0;switch(e.align){case"left":return[0,i];case"right":return[i,0];case"center":default:return[Math.ceil(i/2),Math.floor(i/2)]}}function cf_getDimensions(t){for(var e=[["width","innerWidth","outerWidth","height","innerHe
1ight","outerHeight","left","top","marginRight",0,1,2,3],["height","innerHeight","outerHeight","width","innerWidth","outerWidth","top","left","marginBottom",3,2,1,0]],i=e[0].length,n="right"==t.direction||"left"==t.direction?0:1,o={},s=0;i>s;s++)o[e[0][s]]=e[n][s];return o}function cf_getAdjust(t,e,i,n){var o=t;if(is_function(i))o=i.call(n,o);else if(is_string(i)){var s=i.split("+"),r=i.split("-");if(r.length>s.length)var a=!0,l=r[0],c=r[1];else var a=!1,l=s[0],c=s[1];switch(l){case"even":o=1==t%2?t-1:t;break;case"odd":o=0==t%2?t-1:t;break;default:o=t}c=parseInt(c,10),is_number(c)&&(a&&(c=-c),o+=c)}return(!is_number(o)||1>o)&&(o=1),o}function cf_getItemsAdjust(t,e,i,n){return cf_getItemAdjustMinMax(cf_getAdjust(t,e,i,n),e.items.visibleConf)}function cf_getItemAdjustMinMax(t,e){return is_number(e.min)&&e.min>t&&(t=e.min),is_number(e.max)&&t>e.max&&(t=e.max),1>t&&(t=1),t}function cf_getSynchArr(t){is_array(t)||(t=[[t]]),is_array(t[0])||(t=[t]);for(var e=0,i=t.length;i>e;e++)is_string(t[e][0])&&(t[e][0]=$(t[e][0])),is_boolean(t[e][1])||(t[e][1]=!0),is_boolean(t[e][2])||(t[e][2]=!0),is_number(t[e][3])||(t[e][3]=0);return t}function cf_getKeyCode(t){return"right"==t?39:"left"==t?37:"up"==t?38:"down"==t?40:-1}function cf_setCookie(t,e,i){if(t){var n=e.triggerHandler(cf_e("currentPosition",i));$.fn.carouFredSel.cookie.set(t,n)}}function cf_getCookie(t){var e=$.fn.carouFredSel.cookie.get(t);return""==e?0:e}function in_mapCss(t,e){for(var i={},n=0,o=e.length;o>n;n++)i[e[n]]=t.css(e[n]);return i}function in_complementItems(t,e,i,n){return is_object(t.visibleConf)||(t.visibleConf={}),is_object(t.sizesConf)||(t.sizesConf={}),0==t.start&&is_number(n)&&(t.start=n),is_object(t.visible)?(t.visibleConf.min=t.visible.min,t.visibleConf.max=t.visible.max,t.visible=!1):is_string(t.visible)?("variable"==t.visible?t.visibleConf.variable=!0:t.visibleConf.adjust=t.visible,t.visible=!1):is_function(t.visible)&&(t.visibleConf.adjust=t.visible,t.visible=!1),is_string(t.filter)||(t.filter=i.filter(":hidden").length>0?":visible":"*"),t[e.d.width]||(e.responsive?(debug(!0,"Set a "+e.d.width+" for the items!"),t[e.d.width]=ms_getTrueLargestSize(i,e,"outerWidth")):t[e.d.width]=ms_hasVariableSizes(i,e,"outerWidth")?"variable":i[e.d.outerWidth](!0)),t[e.d.height]||(t[e.d.height]=ms_hasVariableSizes(i,e,"outerHeight")?"variable":i[e.d.outerHeight](!0)),t.sizesConf.width=t.width,t.sizesConf.height=t.height,t}function in_complementVisibleItems(t,e){return"variable"==t.items[t.d.width]&&(t.items.visibleConf.variable=!0),t.items.visibleConf.variable||(is_number(t[t.d.width])?t.items.visible=Math.floor(t[t.d.width]/t.items[t.d.width]):(t.items.visible=Math.floor(e/t.items[t.d.width]),t[t.d.width]=t.items.visible*t.items[t.d.width],t.items.visibleConf.adjust||(t.align=!1)),("Infinity"==t.items.visible||1>t.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to "variable".'),t.items.visibleConf.variable=!0)),t}function in_complementPrimarySize(t,e,i){return"auto"==t&&(t=ms_getTrueLargestSize(i,e,"outerWidth")),t}function in_complementSecondarySize(t,e,i){return"auto"==t&&(t=ms_getTrueLargestSize(i,e,"outerHeight")),t||(t=e.items[e.d.height]),t}function in_getAlignPadding(t,e){var i=cf_getAlignPadding(gi_getCurrentItems(e,t),t);return t.padding[t.d[1]]=i[1],t.padding[t.d[3]]=i[0],t}function in_getResponsiveValues(t,e){var i=cf_getItemAdjustMinMax(Math.ceil(t[t.d.width]/t.items[t.d.width]),t.items.visibleConf);i>e.length&&(i=e.length);var n=Math.floor(t[t.d.width]/i);return t.items.visible=i,t.items[t.d.width]=n,t[t.d.width]=i*n,t}function bt_pauseOnHoverConfig(t){if(is_string(t))var e=t.indexOf("immediate")>-1?!0:!1,i=t.indexOf("resume")>-1?!0:!1;else var e=i=!1;return[e,i]}function bt_mousesheelNumber(t){return is_number(t)?t:null}function is_null(t){return null===t}function is_undefined(t){return is_null(t)||void 0===t||""===t||"undefined"===t}function is_array(t){return t instanceof Array}function is_jquery(t){return t instanceof jQuery}function is_object(t){return(t instanceof Object||"object"==typeof t)&&!is_null(t)&&!is_jquery(t)&&!is_array(t)&&!is_function(t)}function is_number(t){return(t instanceof Number||"number"==typeof t)&&!isNaN(t)}function is_string(t){return(t instanceof String||"string"==typeof t)&&!is_undefined(t)&&!is_true(t)&&!is_false(t)}function is_function(t){return t instanceof Function||"function"==typeof t}function is_boolean(t){return t instanceof Boolean||"boolean"==typeof t||is_true(t)||is_false(t)}function is_true(t){return t===!0||"true"===t}function is_false(t){return t===!1||"false"===t}function is_percentage(t){return is_string(t)&&"%"==t.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(t,e){debug(!0,t+" is DEPRECATED, support for it will be removed. Use "+e+" instead.")}function debug(t,e){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(t)){var i=" ("+t.selector+")";t=t.debug}else var i="";if(!t)return!1;e=is_string(e)?"carouFredSel"+i+": "+e:["carouFredSel"+i+":",e],window.console.log(e)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if
vendor: 36,654 bytes, line 1
1(0==this.length)return debug(!0,'No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data("_cfs_isCarousel")&&(starting_position=$cfs.triggerHandler("_cfs_triggerEvent","currentPosition"),$cfs.trigger("_cfs_triggerEvent",["destroy",!0]));var FN={};FN._init=function(t,e,i){t=go_getObject($tt0,t),t.items=go_getItemsObject($tt0,t.items),t.scroll=go_getScrollObject($tt0,t.scroll),t.auto=go_getAutoObject($tt0,t.auto),t.prev=go_getPrevNextObject($tt0,t.prev),t.next=go_getPrevNextObject($tt0,t.next),t.pagination=go_getPaginationObject($tt0,t.pagination),t.swipe=go_getSwipeObject($tt0,t.swipe),t.mousewheel=go_getMousewheelObject($tt0,t.mousewheel),e&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,t)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,t),opts.d=cf_getDimensions(opts),crsl.direction="up"==opts.direction||"left"==opts.direction?"next":"prev";var n=$cfs.children(),o=ms_getParentSize($wrp,opts,"width");if(is_true(opts.cookie)&&(opts.cookie="caroufredsel_cookie_"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,o),opts.items=in_complementItems(opts.items,opts,n,i),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,n),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,n),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]="100%")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(o,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,o)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&"*"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]="variable"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?"center":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(n,opts,0))),"*"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(n,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,n,o);else switch(opts.padding=cf_getPadding(opts.padding),"top"==opts.align?opts.align="left":"bottom"==opts.align&&(opts.align="right"),opts.align){case"center":case"left":case"right":"variable"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,n),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||"*"!=opts.items.filter?"visible":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated("auto.onPauseStart","auto.onTimeoutStart")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated("auto.onPausePause","auto.onTimeoutPause")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated("auto.onPauseEnd","auto.onTimeoutEnd")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated("auto.pauseDuration","auto.timeoutDuration"))},FN._build=function(){$cfs.data("_cfs_isCarousel",!0);var t=$cfs.children(),e=in_mapCss($cfs,["textAlign","float","position","top","right","bottom","left","zIndex","width","height","marginTop","marginRight","marginBottom","marginLeft"]),i="relative";switch(e.position){case"absolute":case"fixed":i=e.position}"parent"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(e),$wrp.css({overflow:"hidden",position:i}),sz_storeOrigCss($cfs),$cfs.data("_cfs_origCssZindex",e.zIndex),$cfs.css({textAlign:"left","float":"none",position:"absolute",top:0,right:"auto",bottom:"auto",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(t,opts),sz_storeOrigCss(t),opts.responsive&&sz_setResponsiveSizes(opts,t)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e("stop",conf),function(t,e){return t.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c("stopped",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e("pause",conf),e)),!0}),$cfs.bind(cf_e("finish",conf),function(t){return t.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e("pause",conf),function(t,e,i){if(t.stopPropagation(),tmrs=sc_clearTimers(tmrs),e&&crsl.isScrolling){scrl.isStopped=!0;var n=getTime()-scrl.startTime;scrl.duration-=n,scrl.pre&&(scrl.pre.duration-=n),scrl.post&&(scrl.post.duration-=n),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||i&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c("paused",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var o=opts.auto.timeoutDuration-tmrs.timePassed,s=100-Math.ceil(100*o/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,s,o)}return!0}),$cfs.bind(cf_e("play",conf),function(t,e,i,n){t.stopPropagation(),tmrs=sc_clearTimers(tmrs);var o=[e,i,n],s=["string","number","boolean"],r=cf_sortParams(o,s);if(e=r[0],i=r[1],n=r[2],"prev"!=e&&"next"!=e&&(e=crsl.direction),is_number(i)||(i=0),is_boolean(n)||(n=!1),n&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return t.stopImmediatePropagation(),debug(conf,"Carousel stopped: Not scrolling.");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c("stopped",conf)),opts.auto.button.removeClass(cf_c("paused",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var a=opts.auto.timeoutDuration+i;return dur2=a-tmrs.timePassed,perc=100-Math.ceil(100*dur2/a),opts.auto.progress&&(tmrs.progress=setInterval(function(){var t=getTime()-tmrs.startTime+tmrs.timePassed,e=Math.ceil(100*t/a);opts.auto.progress.updater.call(opts.auto.progress.bar[0],e)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e("play",conf),e):$cfs.trigger(cf_e(e,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e("resume",conf),function(t){return t.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e("play",conf)),!0}),$cfs.bind(cf_e("prev",conf)+" "+cf_e("next",conf),function(t,e,i,n,o){if(t.stopPropagation(),crsl.isStopped||$cfs.is(":hidden"))return t.stopImmediatePropagation(),debug(conf,"Carousel stopped or hidden: Not scrolling.");var s=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(s>itms.total)return t.stopImmediatePropagation(),debug(conf,"Not enough items ("+itms.total+" total, "+s+" needed): Not scrolling.");var r=[e,i,n,o],a=["object","number/string","function","boolean"],l=cf_sortParams(r,a);e=l[0],i=l[1],n=l[2],o=l[3];var c=t.type.slice(conf.events.prefix.length);if(is_object(e)||(e={}),is_function(n)&&(e.onAfter=n),is_boolean(o)&&(e.queue=o),e=$.extend(!0,{},opts[c],e),e.conditions&&!e.conditions.call($tt0,c))return t.stopImmediatePropagation(),debug(conf,'Callback "conditions" returned false.');if(!is_number(i)){if("*"!=opts.items.filter)i="visible";else for(var u=[i,e.items,opts[c].items],l=0,d=u.length;d>l;l++)if(is_number(u[l])||"page"==u[l]||"visible"==u[l]){i=u[l];break}switch(i){case"page":return t.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(c+"Page",conf),[e,n]);case"visible":opts.items.visibleConf.variable||"*"!=opts.items.filter||(i=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e("resume",conf)),$cfs.trigger(cf_e("queue",conf),[c,[e,i,n]]),t.stopImmediatePropagation(),debug(conf,"Carousel resumed scrolling.");if(e.duration>0&&crsl.isScrolling)return e.queue&&("last"==e.queue&&(queu=[]),("first"!=e.queue||0==queu.length)&&$cfs.trigger(cf_e("queue",conf),[c,[e,i,n]])),t.stopImmediatePropagation(),debug(conf,"Carousel currently scrolling.");if(tmrs.timePassed=0,$cfs.trigger(cf_e("slide_"+c,conf),[e,i]),opts.synchronise)for(var p=opts.synchronise,f=[e,i],h=0,d=p.length;d>h;h++){var m=c;p[h][2]||(m="prev"==m?"next":"prev"),p[h][1]||(f[0]=p[h][0].triggerHandler("_cfs_triggerEvent",["configuration",m])),f[1]=i+p[h][3],p[h][0].trigger("_cfs_triggerEvent",["slide_"+m,f])}return!0}),$cfs.bind(cf_e("slide_prev",conf),function(t,e,i){t.stopPropagation();var n=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e("next",conf),itms.total-1),t.stopImmediatePropagation();if(sz_resetMargin(n,opts),!is_number(i)){if(opts.items.visibleConf.variable)i=gn_getVisibleItemsPrev(n,opts,itms.total-1);else if("*"!=opts.items.filter){var o=is_number(e.items)?e.items:gn_getVisibleOrg($cfs,opts);i=gn_getScrollItemsPrevFilter(n,opts,itms.total-1,o)}else i=opts.items.visible;i=cf_getAdjust(i,opts,e.items,$tt0)}if(opts.circular||itms.total-i<itms.first&&(i=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){var s=cf_getItemsAdjust(gn_getVisibleItemsNext(n,opts,itms.total-i),opts,opts.items.visibleConf.adjust,$tt0);s>=opts.items.visible+i&&itms.total>i&&(i++,s=cf_getItemsAdjust(gn_getVisibleItemsNext(n,opts,itms.total-i),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=s}else if("*"!=opts.items.filter){var s=gn_getVisibleItemsNextFilter(n,opts,itms.total-i);opts.items.visible=cf_getItemsAdjust(s,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(n,opts,!0),0==i)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+i+" items backward."),itms.first+=i;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&e.onEnd&&e.onEnd.call($tt0,"prev"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-i,itms.total).prependTo($cfs),itms.total<opts.items.visible+i&&$cfs.children().slice(0,opts.items.visible+i-itms.total).clone(!0).appendTo($cfs);var n=$cfs.children(),r=gi_getOldItemsPrev(n,opts,i),a=gi_getNewItemsPrev(n,opts),l=n.eq(i-1),c=r.last(),u=a.last();sz_resetMargin(n,opts);var d=0,p=0;if(opts.align){var f=cf_getAlignPadding(a,opts);d=f[0],p=f[1]}var h=0>d?opts.padding[opts.d[3]]:0,m=!1,g=$();if(i>opts.items.visible&&(g=n.slice(opts.items.visibleConf.old,i),"directscroll"==e.fx)){var v=opts.items[opts.d.width];m=g,l=u,sc_hideHiddenItems(m),opts.items[opts.d.width]="variable"}var b=!1,y=ms_getTotalSize(n.slice(0,i),opts,"width"),w=cf_mapWrapperSizes(ms_getSizes(a,opts,!0),opts,!opts.usePadding),x=0,_={},C={},S={},A={},I={},T={},k={},E=sc_getDuration(e,opts,i,y);switch(e.fx){case"cover":case"cover-fade":x=ms_getTotalSize(n.slice(0,opts.items.visible),opts,"width")}m&&(opts.items[opts.d.width]=v),sz_resetMargin(n,opts,!0),p>=0&&sz_resetMargin(c,opts,opts.padding[opts.d[1]]),d>=0&&sz_resetMargin(l,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=p,opts.padding[opts.d[3]]=d),T[opts.d.left]=-(y-h),k[opts.d.left]=-(x-h),C[opts.d.left]=w[opts.d.width];var O=function(){},P=function(){},L=function(){},B=function(){},z=function(){},M=function(){},N=function(){},R=function(){},j=function(){},D=function(){},W=function(){};switch(e.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":b=$cfs.clone(!0).appendTo($wrp)}switch(e.fx){case"crossfade":case"uncover":case"uncover-fade":b.children().slice(0,i).remove(),b.children().slice(opts.items.visibleConf.old).remove();break;case"cover":case"cover-fade":b.children().slice(opts.items.visible).remove(),b.css(k)}if($cfs.css(T),scrl=sc_setScroll(E,e.easing,conf),_[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(O=function(){$wrp.css(w)},P=function(){scrl.anims.push([$wrp,w])}),opts.usePadding){switch(u.not(l).length&&(S[opts.d.marginRight]=l.data("_cfs_origCssMargin"),0>d?l.css(S):(N=function(){l.css(S)},R=function(){scrl.anims.push([l,S])})),e.fx){case"cover":case"cover-fade":b.children().eq(i-1).css(S)}u.not(c).length&&(A[opts.d.marginRight]=c.data("_cfs_origCssMargin"),L=function(){c.css(A)},B=function(){scrl.anims.push([c,A])}),p>=0&&(I[opts.d.marginRight]=u.data("_cfs_origCssMargin")+opts.padding[opts.d[1]],z=function(){u.css(I)},M=function(){scrl.anims.push([u,I])})}W=function(){$cfs.css(_)};var H=opts.items.visible+i-itms.total;D=function(){if(H>0&&($cfs.children().slice(itms.total).remove(),r=$($cfs.children().slice(itms.total-(opts.items.visible-H)).get().concat($cfs.children().slice(0,H).get()))),sc_showHiddenItems(m),opts.usePadding){var t=$cfs.children().eq(opts.items.visible+i-1);t.css(opts.d.marginRight,t.data("_cfs_origCssMargin"))}};var F=sc_mapCallbackArguments(r,g,a,i,"prev",E,w);switch(j=function(){sc_afterScroll($cfs,b,e),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,e,"onAfter",F,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,e,"onBefore",F,clbk),e.fx){case"none":$cfs.css(_),O(),L(),z(),N(),W(),D(),j();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){O(),L(),z(),N(),W(),D(),scrl=sc_setScroll(E,e.easing,conf),scrl.anims.push([$cfs,{opacity:1},j]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([b,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},j]),P(),L(),z(),N(),W(),D();break;case"cover":scrl.anims.push([b,_,function(){L(),z(),N(),W(),D(),j()}]),P();break;case"cover-fade":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([b,_,function(){L(),z(),N(),W(),D(),j()}]),P();break;case"uncover":scrl.anims.push([b,C,j]),P(),L(),z(),N(),W(),D();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([b,C,j]),P(),L(),z(),N(),W(),D();break;default:scrl.anims.push([$cfs,_,function(){D(),j()}]),P(),B(),M(),R()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,w]),!0}),$cfs.bind(cf_e("slide_next",conf),function(t,e,i){t.stopPropagation();var n=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e("prev",conf),itms.total-1),t.stopImmediatePropagation();if(sz_resetMargin(n,opts),!is_number(i)){if("*"!=opts.items.filter){var o=is_number(e.items)?e.items:gn_getVisibleOrg($cfs,opts);i=gn_getScrollItemsNextFilter(n,opts,0,o)}else i=opts.items.visible;i=cf_getAdjust(i,opts,e.items,$tt0)}var s=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var r=gn_getVisibleItemsNext(n,opts,i),o=gn_getVisibleItemsPrev(n,opts,s-1);else var r=opts.items.visible,o=opts.items.visible;i+r>s&&(i=s-o)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var r=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(n,opts,i,s),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-i>=r&&itms.total>i;)i++,r=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(n,opts,i,s),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=r}else if("*"!=opts.items.filter){var r=gn_getVisibleItemsNextFilter(n,opts,i);opts.items.visible=cf_getItemsAdjust(r,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(n,opts,!0),0==i)return t.stopImmediatePropagation(),debug(conf,"0 items to scroll: Not scrolling.");for(debug(conf,"Scrolling "+i+" items forward."),itms.first-=i;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&e.onEnd&&e.onEnd.call($tt0,"next"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+i&&$cfs.children().slice(0,opts.items.visible+i-itms.total).clone(!0).appendTo($cfs);var n=$cfs.children(),a=gi_getOldItemsNext(n,opts),l=gi_getNewItemsNext(n,opts,i),c=n.eq(i-1),u=a.last(),d=l.last();sz_resetMargin(n,opts);var p=0,f=0;if(opts.align){var h=cf_getAlignPadding(l,opts);p=h[0],f=h[1]}var m=!1,g=$();if(i>opts.items.visibleConf.old&&(g=n.slice(opts.items.visibleConf.old,i),"directscroll"==e.fx)){var v=opts.items[opts.d.width];m=g,c=u,sc_hideHiddenItems(m),opts.items[opts.d.width]="variable"}var b=!1,y=ms_getTotalSize(n.slice(0,i),opts,"width"),w=cf_mapWrapperSizes(ms_getSizes(l,opts,!0),opts,!opts.usePadding),x=0,_={},C={},S={},A={},I={},T=sc_getDuration(e,opts,i,y);switch(e.fx){case"uncover":case"uncover-fade":x=ms_getTotalSize(n.slice(0,opts.items.visibleConf.old),opts,"width")}m&&(opts.items[opts.d.width]=v),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(n,opts,!0),sz_resetMargin(u,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=f,opts.padding[opts.d[3]]=p),I[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var k=function(){},E=function(){},O=function(){},P=function(){},L=function(){},B=function(){},z=function(){},M=function(){},N=function(){};switch(e.fx){case"crossfade":case"cover":case"cover-fade":case"uncover":case"uncover-fade":b=$cfs.clone(!0).appendTo($wrp),b.children().slice(opts.items.visibleConf.old).remove()}switch(e.fx){case"crossfade":case"cover":case"cover-fade":$cfs.css("zIndex",1),b.css("zIndex",0)}if(scrl=sc_setScroll(T,e.easing,conf),_[opts.d.left]=-y,C[opts.d.left]=-x,0>p&&(_[opts.d.left]+=p),("variable"==opts[opts.d.width]||"variable"==opts[opts.d.height])&&(k=function(){$wrp.css(w)},E=function(){scrl.anims.push([$wrp,w])}),opts.usePadding){var R=d.data("_cfs_origCssMargin");f>=0&&(R+=opts.padding[opts.d[1]]),d.css(opts.d.marginRight,R),c.not(u).length&&(A[opts.d.marginRight]=u.data("_cfs_origCssMargin")),O=function(){u.css(A)},P=function(){scrl.anims.push([u,A])};var j=c.data("_cfs_origCssMargin");p>0&&(j+=opts.padding[opts.d[3]]),S[opts.d.marginRight]=j,L=function(){c.css(S)},B=function(){scrl.anims.push([c,S])}}N=function(){$cfs.css(I)};var D=opts.items.visible+i-itms.total;M=function(){D>0&&$cfs.children().slice(itms.total).remove();var t=$cfs.children().slice(0,i).appendTo($cfs).last();if(D>0&&(l=gi_getCurrentItems(n,opts)),sc_showHiddenItems(m),opts.usePadding){if(itms.total<opts.items.visible+i){var e=$cfs.children().eq(opts.items.visible-1);e.css(opts.d.marginRight,e.data("_cfs_origCssMargin")+opts.padding[opts.d[1]])}t.css(opts.d.marginRight,t.data("_cfs_origCssMargin"))}};var W=sc_mapCallbackArguments(a,g,l,i,"next",T,w);switch(z=function(){$cfs.css("zIndex",$cfs.data("_cfs_origCssZindex")),sc_afterScroll($cfs,b,e),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,e,"onAfter",W,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e("play",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,e,"onBefore",W,clbk),e.fx){case"none":$cfs.css(_),k(),O(),L(),N(),M(),z();break;case"fade":scrl.anims.push([$cfs,{opacity:0},function(){k(),O(),L(),N(),M(),scrl=sc_setScroll(T,e.easing,conf),scrl.anims.push([$cfs,{opacity:1},z]),sc_startScroll(scrl,conf)}]);break;case"crossfade":$cfs.css({opacity:0}),scrl.anims.push([b,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},z]),E(),O(),L(),N(),M();break;case"cover":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,I,z]),E(),O(),L(),M();break;case"cover-fade":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([b,{opacity:0}]),scrl.anims.push([$cfs,I,z]),E(),O(),L(),M();break;case"uncover":scrl.anims.push([b,C,z]),E(),O(),L(),N(),M();break;case"uncover-fade":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([b,C,z]),E(),O(),L(),N(),M();break;default:scrl.anims.push([$cfs,_,function(){N(),M(),z()}]),E(),P(),B()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e("updatePageStatus",conf),[!1,w]),!0}),$cfs.bind(cf_e("slideTo",conf),function(t,e,i,n,o,s,r){t.stopPropagation();var a=[e,i,n,o,s,r],l=["string/number/object","number","boolean","object","string","function"],c=cf_sortParams(a,l);return o=c[3],s=c[4],r=c[5],e=gn_getItemIndex(c[0],c[1],c[2],itms,$cfs),0==e?!1:(is_object(o)||(o=!1),"prev"!=s&&"next"!=s&&(s=opts.circular?itms.total/2>=e?"next":"prev":0==itms.first||itms.first>e?"next":"prev"),"prev"==s&&(e=itms.total-e),$cfs.trigger(cf_e(s,conf),[o,e,r]),!0)}),$cfs.bind(cf_e("prevPage",conf),function(t,e,i){t.stopPropagation();var n=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[n-1,e,"prev",i])}),$cfs.bind(cf_e("nextPage",conf),function(t,e,i){t.stopPropagation();var n=$cfs.triggerHandler(cf_e("currentPage",conf));return $cfs.triggerHandler(cf_e("slideToPage",conf),[n+1,e,"next",i])}),$cfs.bind(cf_e("slideToPage",conf),function(t,e,i,n,o){t.stopPropagation(),is_number(e)||(e=$cfs.triggerHandler(cf_e("currentPage",conf)));var s=opts.pagination.items||opts.items.visible,r=Math.ceil(itms.total/s)-1;return 0>e&&(e=r),e>r&&(e=0),$cfs.triggerHandler(cf_e("slideTo",conf),[e*s,0,!0,i,n,o])}),$cfs.bind(cf_e("jumpToStart",conf),function(t,e){if(t.stopPropagation(),e=e?gn_getItemIndex(e,0,!0,itms,$cfs):0,e+=itms.first,0!=e){if(itms.total>0)for(;e>itms.total;)e-=itms.total;$cfs.prepend($cfs.children().slice(e,itms.total))}return!0}),$cfs.bind(cf_e("synchronise",conf),function(t,e){if(t.stopPropagation(),e)e=cf_getSynchArr(e);else{if(!opts.synchronise)return debug(conf,"No carousel to synchronise.");e=opts.synchronise}for(var i=$cfs.triggerHandler(cf_e("currentPosition",conf)),n=!0,o=0,s=e.length;s>o;o++)e[o][0].triggerHandler(cf_e("slideTo",conf),[i,e[o][3],!0])||(n=!1);return n}),$cfs.bind(cf_e("queue",conf),function(t,e,i){return t.stopPropagation(),is_function(e)?e.call($tt0,queu):is_array(e)?queu=e:is_undefined(e)||queu.push([e,i]),queu}),$cfs.bind(cf_e("insertItem",conf),function(t,e,i,n,o){t.stopPropagation();var s=[e,i,n,o],r=["string/object","string/number/object","boolean","number"],a=cf_sortParams(s,r);if(e=a[0],i=a[1],n=a[2],o=a[3],is_object(e)&&!is_jquery(e)?e=$(e):is_string(e)&&(e=$(e)),!is_jquery(e)||0==e.length)return debug(conf,"Not a valid object.");is_undefined(i)&&(i="end"),sz_storeMargin(e,opts),sz_storeOrigCss(e);var l=i,c="before";"end"==i?n?(0==itms.first?(i=itms.total-1,c="after"):(i=itms.first,itms.first+=e.length),0>i&&(i=0)):(i=itms.total-1,c="after"):i=gn_getItemIndex(i,o,n,itms,$cfs);var u=$cfs.children().eq(i);return u.length?u[c](e):(debug(conf,"Correct insert-position not found! Appending item to the end."),$cfs.append(e)),"end"==l||n||itms.first>i&&(itms.first+=e.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e("updateSizes",conf)),$cfs.trigger(cf_e("linkAnchors",conf)),!0}),$cfs.bind(cf_e("removeItem",conf),function(t,e,i,n){t.stopPropagation();var o=[e,i,n],s=["string/number/object","boolean","number"],r=cf_sortParams(o,s);if(e=r[0],i=r[1],n=r[2],e instanceof $&&e.length>1)return a=$(),e.each(function(){var t=$cfs.trigger(cf_e("removeItem",conf),[$(this),i,n]);t&&(a=a.add(t))}),a;if(is_undefined(e)||"end"==e)a=$cfs.children().last();else{e=gn_getItemIndex(e,n,i,itms,$cfs);var a=$cfs.children().eq(e);a.length&&itms.first>e&&(itms.first-=a.length)}return a&&a.length&&(a.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e("updateSizes",conf))),a}),$cfs.bind(cf_e("onBefore",conf)+" "+cf_e("onAfter",conf),function(t,e){t.stopPropagation();var i=t.type.slice(conf.events.prefix.length);return is_array(e)&&(clbk[i]=e),is_function(e)&&clbk[i].push(e),clbk[i]}),$cfs.bind(cf_e("currentPosition",conf),function(t,e){if(t.stopPropagation(),0==itms.first)var i=0;else var i=itms.total-itms.first;return is_function(e)&&e.call($tt0,i),i}),$cfs.bind(cf_e("currentPage",conf),function(t,e){t.stopPropagation();var i,n=opts.pagination.items||opts.items.visible,o=Math.ceil(itms.total/n-1);return i=0==itms.first?0:itms.first<itms.total%n?0:itms.first!=n||opts.circular?Math.round((itms.total-itms.first)/n):o,0>i&&(i=0),i>o&&(i=o),is_function(e)&&e.call($tt0,i),i}),$cfs.bind(cf_e("currentVisible",conf),function(t,e){t.stopPropagation();var i=gi_getCurrentItems($cfs.children(),opts);return is_function(e)&&e.call($tt0,i),i}),$cfs.bind(cf_e("slice",conf),function(t,e,i,n){if(t.stopPropagation(),0==itms.total)return!1;var o=[e,i,n],s=["number","number","function"],r=cf_sortParams(o,s);if(e=is_number(r[0])?r[0]:0,i=is_number(r[1])?r[1]:itms.total,n=r[2],e+=itms.first,i+=itms.first,items.total>0){for(;e>itms.total;)e-=itms.total;for(;i>itms.total;)i-=itms.total;for(;0>e;)e+=itms.total;for(;0>i;)i+=itms.total}var a,l=$cfs.children();return a=i>e?l.slice(e,i):$(l.slice(e,itms.total).get().concat(l.slice(0,i).get())),is_function(n)&&n.call($tt0,a),a}),$cfs.bind(cf_e("isPaused",conf)+" "+cf_e("isStopped",conf)+" "+cf_e("isScrolling",conf),function(t,e){t.stopPropagation();var i=t.type.slice(conf.events.prefix.length),n=crsl[i];return is_function(e)&&e.call($tt0,n),n}),$cfs.bind(cf_e("configuration",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval("opts."+a);is_undefined(val)&&(val=""),b.call($tt0,val)}else{if(is_undefined(b))return eval("opts."+a);"boolean"!=typeof c&&(c=!0),eval("opts_orig."+a+" = b"),c!==!1?reInit=!0:eval("opts."+a+" = b")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e("updatePageStatus",conf),[!0,sz])}return opts}),$cfs.bind(cf_e("linkAnchors",conf),function(t,e,i){return t.stopPropagation(),is_undefined(e)?e=$("body"):is_string(e)&&(e=$(e)),is_jquery(e)&&0!=e.length?(is_string(i)||(i="a.caroufredsel"),e.find(i).each(function(){var t=this.hash||"";t.length>0&&-1!=$cfs.children().index($(t))&&$(this).unbind("click").click(function(e){e.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),t)})}),!0):debug(conf,"Not a valid object.")}),$cfs.bind(cf_e("updatePageStatus",conf),function(t,e){if(t.stopPropagation(),opts.pagination.container){var i=opts.pagination.items||opts.items.visible,n=Math.ceil(itms.total/i);e&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var t=0;n>t;t++){var e=$cfs.children().eq(gn_getItemIndex(t*i,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(e[0],t+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(t){$(this).bind(opts.pagination.event,function(e){e.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[t*i,-opts.pagination.deviation,!0,opts.pagination])})})}));var o=$cfs.triggerHandler(cf_e("currentPage",conf))+opts.pagination.deviation;return o>=n&&(o=0),0>o&&(o=n-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c("selected",conf)).eq(o).addClass(cf_c("selected",conf))}),!0}}),$cfs.bind(cf_e("updateSizes",conf),function(){var t=opts.items.visible,e=$cfs.children(),i=ms_getParentSize($wrp,opts,"width");if(itms.total=e.length,crsl.primarySizePercentage?(opts.maxDimension=i,opts[opts.d.width]=ms_getPercentage(i,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,i),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,e,i),t=opts.items.visible,sz_setResponsiveSizes(opts,e)):opts.items.visibleConf.variable?t=gn_getVisibleItemsNext(e,opts,0):"*"!=opts.items.filter&&(t=gn_getVisibleItemsNextFilter(e,opts,0)),!opts.circular&&0!=itms.first&&t>itms.first){if(opts.items.visibleConf.variable)var n=gn_getVisibleItemsPrev(e,opts,itms.first)-itms.first;else if("*"!=opts.items.filter)var n=gn_getVisibleItemsPrevFilter(e,opts,itms.first)-itms.first;else var n=opts.items.visible-itms.first;debug(conf,"Preventing non-circular: sliding "+n+" items backward."),$cfs.trigger(cf_e("prev",conf),n)}opts.items.visible=cf_getItemsAdjust(t,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,e);var o=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e("updatePageStatus",conf),[!0,o]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),o}),$cfs.bind(cf_e("destroy",conf),function(t,e){return t.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data("_cfs_isCarousel",!1),$cfs.trigger(cf_e("finish",conf)),e&&$cfs.trigger(cf_e("jumpToStart",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),"parent"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e("debug",conf),function(){return debug(conf,"Carousel width: "+opts.width),debug(conf,"Carousel height: "+opts.height),debug(conf,"Item widths: "+opts.items.width),debug(conf,"Item heights: "+opts.items.height),debug(conf,"Number of items visible: "+opts.items.visible),opts.auto.play&&debug(conf,"Number of items scrolled automatically: "+opts.auto.items),opts.prev.button&&debug(conf,"Number of items scrolled backward: "+opts.prev.items),opts.next.button&&debug(conf,"Number of items scrolled forward: "+opts.next.items),conf.debug}),$cfs.bind("_cfs_triggerEvent",function(t,e,i){return t.stopPropagation(),$cfs.triggerHandler(cf_e(e,conf),i)})},FN._unbind_events=function(){$cfs.unbind(cf_e("",conf)),$cfs.unbind(cf_e("",conf,!1)),$cfs.unbind("_cfs_triggerEvent")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var t=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(t){t.preventDefault();var e=!1,i=null;crsl.isPaused?e="play":opts.auto.pauseOnEvent&&(e="pause",i=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),e&&$cfs.trigger(cf_e(e,conf),i)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("prev",conf))}),opts.prev.pauseOnHover)){var t=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(t){t.preventDefault(),$cfs.trigger(cf_e("next",conf))}),opts.next.pauseOnHover)){var t=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var t=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e("mouseenter",conf,!1),function(){$cfs.trigger(cf_e("pause",conf),t)}).bind(cf_e("mouseleave",conf,!1),function(){$cfs.trigger(cf_e("resume",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;e==opts.next.key&&(t.preventDefault(),$cfs.trigger(cf_e("next",conf))),e==opts.prev.key&&(t.preventDefault(),$cfs.trigger(cf_e("prev",conf)))}),opts.pagination.keys&&$(document).bind(cf_e("keyup",conf,!1,!0,!0),function(t){var e=t.keyCode;e>=49&&58>e&&(e=(e-49)*opts.items.visible,itms.total>=e&&(t.preventDefault(),$cfs.trigger(cf_e("slideTo",conf),[e,0,!0,opts.pagination])))}),$.fn.swipe){var e="ontouchstart"in window;if(e&&opts.swipe.onTouch||!e&&opts.swipe.onMouse){var i=$.extend(!0,{},opts.prev,opts.swipe),n=$.extend(!0,{},opts.next,opts.swipe),o=function(){$cfs.trigger(cf_e("prev",conf),[i])},s=function(){$cfs.trigger(cf_e("next",conf),[n])};switch(opts.direction){case"up":case"down":opts.swipe.options.swipeUp=s,opts.swipe.options.swipeDown=o;break;default:opts.swipe.options.swipeLeft=s,opts.swipe.options.swipeRight=o}crsl.swipe&&$cfs.swipe("destroy"),$wrp.swipe(opts.swipe.options),$wrp.css("cursor","move"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var r=$.extend(!0,{},opts.prev,opts.mousewheel),a=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e("mousewheel",conf,!1)),$wrp.bind(cf_e("mousewheel",conf,!1),function(t,e){t.preventDefault(),e>0?$cfs.trigger(cf_e("prev",conf),[r]):$cfs.trigger(cf_e("next",conf),[a])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e("play",conf),opts.auto.delay),crsl.upDateOnWindowResize){var l=function(){$cfs.trigger(cf_e("finish",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e("play",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e("updateSizes",conf))},c=$(window),u=null;if($.debounce&&"debounce"==conf.onWindowResize)u=$.debounce(200,l);else if($.throttle&&"throttle"==conf.onWindowResize)u=$.throttle(300,l);else{var d=0,p=0;u=function(){var t=c.width(),e=c.height();(t!=d||e!=p)&&(l(),d=t,p=e)}}c.bind(cf_e("resize",conf,!1,!0,!0),u)}},FN._unbind_buttons=function(){var t=(cf_e("",conf),cf_e("",conf,!1));ns3=cf_e("",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(t),opts.auto.button&&opts.auto.button.unbind(t),opts.prev.button&&opts.prev.button.unbind(t),opts.next.button&&opts.next.button.unbind(t),opts.pagination.container&&(opts.pagination.container.unbind(t),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe("destroy"),$wrp.css("cursor","default"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,"hide",conf),nv_enableNavi(opts,"removeClass",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:"next",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:"",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp="parent"==conf.wrapper?$cfs.parent():$cfs.wrap("<"+conf.wrapper.element+' class="'+conf.wrapper.classname+'" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?"transition":"animate",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,1>s.length)continue}else"random"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e("slideTo",conf),[s,0,!0,{fx:"none"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e("updatePageStatus",conf),[!0,siz]),$cfs.trigger(cf_e("linkAnchors",conf)),conf.debug&&$cfs.trigger(cf_e("debug",conf)),$cfs}
1,$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:"left",items:{start:0},scroll:{easing:"swing",duration:500,pauseOnHover:!1,event:"click",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:"throttle",events:{prefix:"",namespace:"cfs"},wrapper:{element:"div",classname:"caroufredsel_wrapper"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(t){return'<a href="#"><span>'+t+"</span></a>"},$.fn.carouFredSel.progressbarUpdater=function(t){$(this).css("width",t+"%")},$.fn.carouFredSel.cookie={get:function(t){t+="=";for(var e=document.cookie.split(";"),i=0,n=e.length;n>i;i++){for(var o=e[i];" "==o.charAt(0);)o=o.slice(1);if(0==o.indexOf(t))return o.slice(t.length)}return 0},set:function(t,e,i){var n="";if(i){var o=new Date;o.setTime(o.getTime()+864e5*i),n="; expires="+o.toGMTString()}document.cookie=t+"="+e+n+"; path=/"},remove:function(t){$.fn.carouFredSel.cookie.set(t,"",-1)}},$.extend($.easing,{quadratic:function(t){var e=t*t;return t*(-e*t+4*e-6*t+4)},cubic:function(t){return t*(4*t*t-9*t+6)},elastic:function(t){var e=t*t;return t*(33*e*e-106*e*t+126*e-67*t+15)}}))}(jQuery),function(t){t.fn.appear=function(e,i){var n=t.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each(function(){var i=t(this);if(i.appeared=!1,!e)return void i.trigger("appear",n.data);var o=t(window),s=function(){if(!i.is(":visible"))return void(i.appeared=!1);var t=o.scrollLeft(),e=o.scrollTop(),s=i.offset(),r=s.left,a=s.top,l=n.accX,c=n.accY,u=i.height(),d=o.height(),p=i.width(),f=o.width();a+u+c>=e&&e+d+c>=a&&r+p+l>=t&&t+f+l>=r?i.appeared||i.trigger("appear",n.data):i.appeared=!1},r=function(){if(i.appeared=!0,n.one){o.unbind("scroll",s);var r=t.inArray(s,t.fn.appear.checks);r>=0&&t.fn.appear.checks.splice(r,1)}e.apply(this,arguments)};n.one?i.one("appear",n.data,r):i.bind("appear",n.data,r),o.scroll(s),t.fn.appear.checks.push(s),s()})},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,i){var n=t.fn[i];n&&(t.fn[i]=function(){var e=n.apply(this,arguments);return t.fn.appear.run(),e})})}(jQuery),function(t){var e=!1,i=!1,n={isUrl:function(t){var e=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return e.test(t)?!0:!1},loadContent:function(t,e){t.html(e)},addPrefix:function(t){var e=t.attr("id"),i=t.attr("class");"string"==typeof e&&""!==e&&t.attr("id",e.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-id-$1")),"string"==typeof i&&""!==i&&"sidr-inner"!==i&&t.attr("class",i.replace(/([A-Za-z0-9_.\-]+)/g,"sidr-class-$1")),t.removeAttr("style")},execute:function(n,s,r){"function"==typeof s?(r=s,s="sidr"):s||(s="sidr");var a,l,c,u=t("#"+s),d=t(u.data("body")),p=t("html"),f=u.outerWidth(!0),h=u.data("speed"),m=u.data("side"),g=u.data("displace"),v=u.data("onOpen"),b=u.data("onClose"),y="sidr"===s?"sidr-open":"sidr-open "+s+"-open";if("open"===n||"toggle"===n&&!u.is(":visible")){if(u.is(":visible")||e)return;if(i!==!1)return void o.close(i,function(){o.open(s)});e=!0,"left"===m?(a={left:f+"px"},l={left:"0px"}):(a={right:f+"px"},l={right:"0px"}),d.is("body")&&(c=p.scrollTop(),p.css("overflow-x","hidden").scrollTop(c)),g?d.addClass("sidr-animating").css({width:d.width(),position:"absolute"}).animate(a,h,function(){t(this).addClass(y)}):setTimeout(function(){t(this).addClass(y)},h),u.css("display","block").animate(l,h,function(){e=!1,i=s,"function"==typeof r&&r(s),d.removeClass("sidr-animating")}),v()}else{if(!u.is(":visible")||e)return;e=!0,"left"===m?(a={left:0},l={left:"-"+f+"px"}):(a={right:0},l={right:"-"+f+"px"}),d.is("body")&&(c=p.scrollTop(),p.removeAttr("style").scrollTop(c)),d.addClass("sidr-animating").animate(a,h).removeClass(y),u.animate(l,h,function(){u.removeAttr("style").hide(),d.removeAttr("style"),t("html").removeAttr("style"),e=!1,i=!1,"function"==typeof r&&r(s),d.removeClass("sidr-animating")}),b()}}},o={open:function(t,e){n.execute("open",t,e)},close:function(t,e){n.execute("close",t,e)},toggle:function(t,e){n.execute("toggle",t,e)},toogle:function(t,e){n.execute("toggle",t,e)}};t.sidr=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1
1)):"function"!=typeof e&&"string"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.sidr"):o.toggle.apply(this,arguments)},t.fn.sidr=function(e){var i=t.extend({name:"sidr",speed:200,side:"left",source:null,renaming:!0,body:"body",displace:!0,onOpen:function(){},onClose:function(){}},e),s=i.name,r=t("#"+s);if(0===r.length&&(r=t("<div />").attr("id",s).appendTo(t("body"))),r.addClass("sidr").addClass(i.side).data({speed:i.speed,side:i.side,body:i.body,displace:i.displace,onOpen:i.onOpen,onClose:i.onClose}),"function"==typeof i.source){var a=i.source(s);n.loadContent(r,a)}else if("string"==typeof i.source&&n.isUrl(i.source))t.get(i.source,function(t){n.loadContent(r,t)});else if("string"==typeof i.source){var l="",c=i.source.split(",");if(t.each(c,function(e,i){l+='<div class="sidr-inner">'+t(i).html()+"</div>"}),i.renaming){var u=t("<div />").html(l);u.find("*").each(function(e,i){var o=t(i);o.hasClass("fa")||n.addPrefix(o)}),l=u.html()}n.loadContent(r,l)}else null!==i.source&&t.error("Invalid Sidr Source");return this.each(function(){var e=t(this),i=e.data("sidr");i||(e.data("sidr",s),"ontouchstart"in document.documentElement?(e.bind("touchstart",function(t){t.originalEvent.touches[0];this.touched=t.timeStamp}),e.bind("touchend",function(t){var e=Math.abs(t.timeStamp-this.touched);200>e&&(t.preventDefault(),o.toggle(s))})):e.click(function(t){t.preventDefault(),o.toggle(s)}))})}}(jQuery),function(t){var e=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();t.fn.requestAnimation=function(t){var i;return i=window.mozAnimationStartTime?window.mozAnimationStartTime:window.webkitAnimationStartTime?window.webkitAnimationStartTime:(new Date).getTime(),this.each(function(){function n(c){c||(c=(new Date).getTime()),c-r>=1e3&&(a=l,l=0,r=c),t({timestamp:c,elapsed:c-i,frameTime:c-s,framesPerSecond:a})!==!1&&(e(n,o),++l)}var o=this,s=i,r=i,a=0,l=0;n(i)})}}(jQuery),function(t,e){function i(e){this.$element=t(e),this.init()}var n="scrolly2";i.prototype.init=function(){var e=this;this.startPosition=0,this.offsetTop=this.$element.offset().top,this.height=this.$element.outerHeight(!0),this.velocity=this.$element.attr("data-velocity"),this.direction=this.$element.attr("data-direction"),t(this).requestAnimation(function(){e.scrolly2()})},i.prototype.scrolly2=function(){var i=t(e).scrollTop()-20,n=t(e).scrollTop()+t(e).height()+20,o=this.$element.offset().top,s=this.$element.offset().top+this.$element.height();if(!(o>=n||i>=s)){this.$element.offset().top>t(e).height()&&"none"!==this.direction&&(this.startPosition=(this.$element.offset().top-t(e).height())*Math.abs(this.velocity));var r=this.startPosition+t(e).scrollTop()*this.velocity,a="50%",l="50%";if("left"===this.direction)a=r+"px";else if("right"===this.direction)a="calc(100% + "+-r+"px)";else if("down"===this.direction){var c=-(t(e).height()-this.$element.offset().top-this.$element.height()-parseInt(this.$element.css("paddingTop"))-parseInt(this.$element.css("paddingBottom")));l="calc(100% + "+(c-t(e).scrollTop()-r)+"px)"}else l=this.$element.offset().top-t(e).scrollTop()+r+"px";this.$element.css({backgroundPosition:a+" "+l})}},t.fn[n]=function(e){return this.each(function(){t.data(this,"plugin_"+n)||t.data(this,"plugin_"+n,new i(this,e))})}}(jQuery,window,document),function(t){t.fn.matchHeight=function(e){if("remove"===e){var i=this;return this.css("height",""),t.each(t.fn.matchHeight._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1?this:(e="undefined"!=typeof e?e:!0,t.fn.matchHeight._groups.push({elements:this,byRow:e}),t.fn.matchHeight._apply(this,e),this)},t.fn.matchHeight._apply=function(e,i){var s=t(e),r=[s];return i&&(s.css({display:"block","padding-top":"0","padding-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"}),r=n(s),s.css({display:"","padding-top":"","padding-bottom":"","border-top-width":"","border-bottom-width":"",height:""})),t.each(r,function(e,i){var n=t(i),s=0;n.each(function(){var e=t(this);e.css({display:"block",height:""}),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),e.css({display:""})}),n.each(function(){var e=t(this),i=0;"border-box"!==e.css("box-sizing")&&(i+=o(e.css("border-top-width"))+o(e.css("border-bottom-width")),i+=o(e.css("padding-top"))+o(e.css("padding-bottom"))),e.css("height",s-i)})}),this},t.fn.matchHeight._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),n=i.attr("data-match-height");e[n]=n in e?e[n].add(i):i}),t.each(e,function(){this.matchHeight(!0)})},t.fn.matchHeight._groups=[],t.fn.matchHeight._throttle=80;var e=-1,i=-1;t.fn.matchHeight._update=function(n){if(n&&"resize"===n.type){var o=t(window).width();if(o===e)return;e=o}-1===i&&(i=setTimeout(function(){t.each(t.fn.matchHeight._groups,function(){t.fn.matchHeight._apply(this.elements,this.byRow)}),i=-1},t.fn.matchHeight._throttle))},t(t.fn.matchHeight._applyDataApi),t(window).bind("load resize orientationchange",t.fn.matchHeight._update);var n=function(e){var i=1,n=t(e),s=null,r=[];return n.each(function(){var e=t(this),n=e.offset().top-o(e.css("margin-top")),a=r.length>0?r[r.length-1]:null;null===a?r.push(e):Math.floor(Math.abs(s-n))<=i?r[r.length-1]=a.add(e):r.push(e),s=n}),r},o=function(t){return parseFloat(t)||0}}(jQuery),function(t){function e(e){var i=e||window.event,n=[].slice.call(arguments,1
1),o=0,s=0,r=0;return e=t.event.fix(i),e.type="mousewheel",i.wheelDelta&&(o=i.wheelDelta/120),i.detail&&(o=-i.detail/3),r=o,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(r=0,s=-1*o),void 0!==i.wheelDeltaY&&(r=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(s=-1*i.wheelDeltaX/120),n.unshift(e,o,s,r),(t.event.dispatch||t.event.handle).apply(this,n)}var i=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=i.length;n;)t.event.fixHooks[i[--n]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery),function(t,e){for(var i,n=0,o=function(t){i&&(e.requestAnimationFrame(o,t),jQuery.fx.tick())},s=["ms","moz","webkit","o"],r=0;r<s.length&&!e.requestAnimationFrame;++r)e.requestAnimationFrame=e[s[r]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[s[r]+"CancelAnimationFrame"]||e[s[r]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(t){var i=(new Date).getTime(),o=i-n,s=Math.max(0,16-o),r=e.setTimeout(function(){t(i+s)},s);return n=i+s,r}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(t){clearTimeout(t)}),jQuery.fx.timer=function(t){t()&&jQuery.timers.push(t)&&!i&&(i=!0,o(t.elem))},jQuery.fx.stop=function(){i=!1}}(jQuery,this),function(g,u,H){function C(t,e){return parseInt(t.css(e),10)||0}function G(){var t=u,e="inner";return"innerWidth"in u||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}}function da(){var t=K();u.location.hash="",u.scrollTo(t.x,t.y)}function ea(t,e){t="http://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),g.ajax({url:t,dataType:"jsonp"}).error(function(){e(!1)}),iLCallback=function(t){e(t)}}function P(t){var e=[];return g("*",t).each(function(){var t="";if("none"!=g(this).css("background-image")?t=g(this).css("background-image"):"undefined"!=typeof g(this).attr("src")&&"img"==this.nodeName.toLowerCase()&&(t=g(this).attr("src")),-1==t.indexOf("gradient"))for(var t=t.replace(/url\(\"/g,""),t=t.replace(/url\(/g,""),t=t.replace(/\"\)/g,""),t=t.replace(/\)/g,""),t=t.split(","),i=0;i<t.length;i++)if(0<t[i].length&&-1==g.inArray(t[i],e)){var n="";x.msie&&9>x.version&&(n="?"+Math.floor(3e3*Math.random())),e.push(t[i]+n)}}),e}function Q(t,e){var i=t.replace(/^.*[\/\\]/g,"");return"string"==typeof e&&i.substr(i.length-e.length)==e&&(i=i.substr(0,i.length-e.length)),i}function W(t,e){var i="",n="",o=0,s={},r=0,a=0,l=r=!1,c=!1;if(!t)return!1;e||(e="PATHINFO_ALL");var u={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(n in u)u.PATHINFO_ALL|=u[n];if("number"!=typeof e){for(e=[].concat(e),a=0;a<e.length;a++)u[e[a]]&&(o|=u[e[a]]);e=o}n=function(t){t+="";var e=t.lastIndexOf(".")+1;return e?e!==t.length?t.substr(e):"":!1},e&u.PATHINFO_DIRNAME&&(o=t.replace(/\\/g,"/").replace(/\/[^\/]*\/?$/,""),s.dirname=o===t?".":o),e&u.PATHINFO_BASENAME&&(!1===r&&(r=Q(t)),s.basename=r),e&u.PATHINFO_EXTENSION&&(!1===r&&(r=Q(t)),!1===l&&(l=n(r)),!1!==l&&(s.extension=l)),e&u.PATHINFO_FILENAME&&(!1===r&&(r=Q(t)),!1===l&&(l=n(r)),!1===c&&(c=r.slice(0,r.length-(l?l.length+1:!1===l?0:1))),s.filename=c),r=0;for(i in s)r++;return 1==r?s[i]:s}function X(t){return t=W(t,"PATHINFO_EXTENSION"),t=g.isPlainObject(t)?null:t.toLowerCase(),type=0<=R.image.indexOf(t)?"image":0<=R.flash.indexOf(t)?"flash":0<=R.video.indexOf(t)?"video":"iframe"}function Y(t,e){return parseInt(e/100*t)}function S(t){return(t=String(t).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/))?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function L(t,e){function i(t){var e=[];return t.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(t){"/.."===t?e.pop():e.push(t)}),e.join("").replace(/^\//,"/"===t.charAt(0)?"/":"")}return e=S(e||""),t=S(t||""),e&&t?(e.protocol||t.protocol)+(e.protocol||e.authority?e.authority:t.authority)+i(e.protocol||e.authority||"/"===e.pathname.charAt(0)?e.pathname:e.pathname?(t.authority&&!t.pathname?"/":"")+t.pathname.slice(0,t.pathname.lastIndexOf("/")+1)+e.pathname:t.pathname)+(e.protocol||e.authority||e.pathname?e.search:e.search||t.search)+e.hash:null}function fa(t,e,i){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var n=0,o=0,s=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},n=function(t){return t=(""+t).replace(/[_\-+]/g,"."),t=t.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),t.length?t.split("."):[-8]};for(t=n(t),e=n(e),o=Math.max(t.length,e.length),n=0;o>n;
1n++)if(t[n]!=e[n]){if(t[n]=t[n]?isNaN(t[n])?r[t[n]]||-7:parseInt(t[n],10):0,e[n]=e[n]?isNaN(e[n])?r[e[n]]||-7:parseInt(e[n],10):0,t[n]<e[n]){s=-1;break}if(t[n]>e[n]){s=1;break}}if(!i)return s;switch(i){case">":case"gt":return s>0;case">=":case"ge":return s>=0;case"<=":case"le":return 0>=s;case"==":case"=":case"eq":return 0===s;case"<>":case"!=":case"ne":return 0!==s;case"":case"<":case"lt":return 0>s;default:return null}}function K(){var t=0,e=0;return"number"==typeof u.pageYOffset?(e=u.pageYOffset,t=u.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(e=document.body.scrollTop,t=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(e=document.documentElement.scrollTop,t=document.documentElement.scrollLeft),{x:t,y:e}}function Z(t,e,i){var n;return n=p[t+e],null==n&&(n=p[e]),null!=n?(0==e.indexOf(t)&&null==i&&(i=e.substring(t.length)),null==i&&(i=e),i+'="'+n+'" '):""}function w(t,e){return 0==t.indexOf("emb#")?"":(0==t.indexOf("obj#")&&null==e&&(e=t.substring(4)),Z("obj#",t,e))}function E(t,e){return 0==t.indexOf("obj#")?"":(0==t.indexOf("emb#")&&null==e&&(e=t.substring(4)),Z("emb#",t,e))}function $(t,e){var i,n="",o=e?" />":">";return-1==t.indexOf("emb#")&&(i=p["obj#"+t],null==i&&(i=p[t]),0==t.indexOf("obj#")&&(t=t.substring(4)),null!=i&&(n=' <param name="'+t+'" value="'+i+'"'+o+"\n")),n}function ga(){for(var t=0;t<arguments.length;t++){var e=arguments[t];delete p[e],delete p["emb#"+e],delete p["obj#"+e]}}function ha(){var t;t="QT_GenerateOBJECTText";var e=arguments;if(4>e.length||0!=e.length%2)e=ia,e=e.replace("%%",t),alert(e),t="";else{p=[],p.src=e[0],p.width=e[1],p.height=e[2],p.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",p.pluginspage="http://www.apple.com/quicktime/download/",t=e[3],(null==t||""==t)&&(t="6,0,2,0"),p.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version="+t;for(var i,n=4;n<e.length;n+=2)i=e[n].toLowerCase(),t=e[n+1],"name"==i||"id"==i?p.name=t:p[i]=t;e="<object "+w("classid")+w("width")+w("height")+w("codebase")+w("name","id")+w("tabindex")+w("hspace")+w("vspace")+w("border")+w("align")+w("class")+w("title")+w("accesskey")+w("noexternaldata")+">\n"+$("src",!1),n=" <embed "+E("src")+E("width")+E("height")+E("pluginspage")+E("name")+E("align")+E("tabindex"),ga("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(i in p)t=p[i],null!=t&&(n+=E(i),e+=$(i,!1));t=e+n+"> </embed>\n</object>"}return t}function I(t){return t=t||location.href,"#"+t.replace(/^[^#]*#?(.*)$/,"$1")}var R={flash:"swf",image:"bmp gif jpeg jpg png tiff tif jfif jpe",iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt",video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v"},M=g(u),A=g(document),x,z,F,v="",D=!!("ontouchstart"in u),J=D?"itap.iLightBox":"click.iLightBox",ja=D?"touchstart.iLightBox":"mousedown.iLightBox",ka=D?"touchend.iLightBox":"mouseup.iLightBox",T=D?"touchmove.iLightBox":"mousemove.iLightBox",aa=function(t,e,i,n){var o=this;o.options=e,o.selector=t.selector||t,o.context=t.context,o.instant=n,1>i.length?o.attachItems():o.items=i,o.vars={total:o.items.length,start:0,current:null,next:null,prev:null,BODY:g("body"),loadRequests:0,overlay:g('<div class="ilightbox-overlay"></div>'),loader:g('<div class="ilightbox-loader"><div></div></div>'),toolbar:g('<div class="ilightbox-toolbar"></div>'),innerToolbar:g('<div class="ilightbox-inner-toolbar"></div>'),title:g('<div class="ilightbox-title"></div>'),closeButton:g('<a class="ilightbox-close" title="'+o.options.text.close+'"></a>'),fullScreenButton:g('<a class="ilightbox-fullscreen" title="'+o.options.text.enterFullscreen+'"></a>'),innerPlayButton:g('<a class="ilightbox-play" title="'+o.options.text.slideShow+'"></a>'),innerNextButton:g('<a class="ilightbox-next-button" title="'+o.options.text.next+'"></a>'),innerPrevButton:g('<a class="ilightbox-prev-button" title="'+o.options.text.previous+'"></a>'),holder:g('<div class="ilightbox-holder" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:g('<div class="ilightbox-holder ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:g('<div class="ilightbox-holder ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:g('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+o.options.text.next+'"><span></span></a>'),prevButton:g('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+o.options.text.previous+'"><span></span></a>
1'),thumbnails:g('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},o.vars.hideableElements=o.vars.nextButton.add(o.vars.prevButton),o.normalizeItems(),o.availPlugins(),o.options.startFrom=0<o.options.startFrom&&o.options.startFrom>=o.vars.total?o.vars.total-1:o.options.startFrom,o.options.startFrom=o.options.randomStart?Math.floor(Math.random()*o.vars.total):o.options.startFrom,o.vars.start=o.options.startFrom,n?o.instantCall():o.patchItemsEvents(),o.options.linkId&&(o.hashChangeHandler(),M.iLightBoxHashChange(function(){o.hashChangeHandler()})),D&&(t=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi,o.options.caption.show=o.options.caption.show.replace(t,"itap"),o.options.caption.hide=o.options.caption.hide.replace(t,"itap"),o.options.social.show=o.options.social.show.replace(t,"itap"),o.options.social.hide=o.options.social.hide.replace(t,"itap")),o.options.controls.arrows&&g.extend(o.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};aa.prototype={showLoader:function(){this.vars.loadRequests+=1,"horizontal"==this.options.path.toLowerCase()?this.vars.loader.stop().animate({top:"-30px"},this.options.show.speed,"easeOutCirc"):this.vars.loader.stop().animate({left:"-30px"},this.options.show.speed,"easeOutCirc")},hideLoader:function(){this.vars.loadRequests-=1,this.vars.loadRequests=0>this.vars.loadRequests?0:this.vars.loadRequests,"horizontal"==this.options.path.toLowerCase()?0>=this.vars.loadRequests&&this.vars.loader.stop().animate({top:"-192px"},this.options.show.speed,"easeInCirc"):0>=this.vars.loadRequests&&this.vars.loader.stop().animate({left:"-192px"},this.options.show.speed,"easeInCirc")},createUI:function(){var t=this;t.ui={currentElement:t.vars.holder,nextElement:t.vars.nextPhoto,prevElement:t.vars.prevPhoto,currentItem:t.vars.current,nextItem:t.vars.next,prevItem:t.vars.prev,hide:function(){t.closeAction()},refresh:function(){0<arguments.length?t.repositionPhoto(!0):t.repositionPhoto()},fullscreen:function(){t.fullScreenAction()}}},attachItems:function(){var a=this,b=[],c=[];g(a.selector,a.context).each(function(){var d=g(this),e=d.attr(a.options.attr)||null,f=d.data("options")&&eval("({"+d.data("options")+"})")||{},h=d.data("caption"),l=d.data("title"),k=d.data("type")||X(e);c.push({URL:e,caption:h,title:l,type:k,options:f}),a.instant||b.push(d)}),a.items=c,a.itemsObject=b},normalizeItems:function(){var t=this,e=[];g.each(t.items,function(i,n){"string"==typeof n&&(n={url:n});var o=n.url||n.URL||null,s=n.options||{},r=n.caption||null,a=n.title||null,l=n.type?n.type.toLowerCase():X(o),c="object"!=typeof o?W(o,"PATHINFO_EXTENSION"):"";s.thumbnail=s.thumbnail||("image"==l?o:null),s.videoType=s.videoType||null,s.skin=s.skin||t.options.skin,s.width=s.width||null,s.height=s.height||null,s.mousewheel="undefined"!=typeof s.mousewheel?s.mousewheel:!0,s.swipe="undefined"!=typeof s.swipe?s.swipe:!0,s.social="undefined"!=typeof s.social?s.social:t.options.social.buttons&&g.extend({},{},t.options.social.buttons),"video"==l&&(s.html5video="undefined"!=typeof s.html5video?s.html5video:{},s.html5video.webm=s.html5video.webm||s.html5video.WEBM||null,s.html5video.controls="undefined"!=typeof s.html5video.controls?s.html5video.controls:"controls",s.html5video.preload=s.html5video.preload||"metadata",s.html5video.autoplay="undefined"!=typeof s.html5video.autoplay?s.html5video.autoplay:!1),s.width&&s.height||("video"==l?(s.width=1280,s.height=720):"iframe"==l?(s.width="100%",s.height="90%"):"flash"==l&&(s.width=1280,s.height=720)),delete n.url,n.URL=o,n.caption=r,n.title=a,n.type=l,n.options=s,n.ext=c,e.push(n)}),t.items=e},instantCall:function(){var t=this.vars.start;this.vars.current=t,this.vars.next=this.items[t+1]?t+1:null,this.vars.prev=this.items[t-1]?t-1:null,this.addContents(),this.patchEvents()},addContents:function(){var t=this,e=t.vars,i=t.options,n=G(),o=i.path.toLowerCase();i.mobileOptimizer&&!i.innerToolbar&&(e.isMobile=n.width<=e.mobileMaxWidth),e.overlay.addClass(i.skin).hide().css({opacity:i.overlay.opacity}),i.linkId&&e.overlay.attr("linkid",i.linkId),i.controls.toolbar&&(e.toolbar.addClass(i.skin).append(e.closeButton),i.controls.fullscreen&&e.toolbar.append(e.fullScreenButton),i.controls.slideshow&&e.toolbar.append(e.innerPlayButton),1<e.total&&e.toolbar.append(e.innerPrevButton).append(e.innerNextButton)),e.BODY.addClass("ilightbox-noscroll").append(e.overlay).append(e.loader).append(e.holder).append(e.nextPhoto).append(e.prevPhoto),i.innerToolbar||e.BODY.append(e.toolbar),i.controls.arrows&&e.BODY.append(e.nextButton).append(e.prevButton),i.controls.thumbnail&&1<e.total&&(e.BODY.append(e.thumbnails),e.thumbnails.addClass(i.skin).addClass("ilightbox-"+o),g("div.ilightbox-thumbn
1ails-grid",e.thumbnails).empty(),e.thumbs=!0),n="horizontal"==i.path.toLowerCase()?{left:parseInt(n.width/2-e.loader.outerWidth()/2)}:{top:parseInt(n.height/2-e.loader.outerHeight()/2)},e.loader.addClass(i.skin).css(n),e.nextButton.add(e.prevButton).addClass(i.skin),"horizontal"==o&&e.loader.add(e.nextButton).add(e.prevButton).addClass("horizontal"),e.BODY[e.isMobile?"addClass":"removeClass"]("isMobile"),i.infinite||(e.prevButton.add(e.prevButton).add(e.innerPrevButton).add(e.innerNextButton).removeClass("disabled"),0!=i.startFrom&&0!=e.current||e.prevButton.add(e.innerPrevButton).addClass("disabled"),(i.startFrom>=e.total-1||e.current>=e.total-1)&&e.nextButton.add(e.innerNextButton).addClass("disabled")),i.show.effect?setTimeout(function(){t.generateBoxes()},i.show.speed):t.generateBoxes(),i.show.effect?(e.overlay.stop().fadeIn(i.show.speed),e.toolbar.stop().fadeIn(i.show.speed)):(e.overlay.show(),e.toolbar.show());var s=e.total;i.smartRecognition&&1<e.total&&g.each(t.items,function(i){var n=t.items[i];t.ogpRecognition(n,function(i){i&&g.extend(!0,n,{type:i.type,options:{html5video:i.html5video,width:"image"==i.type?0:i.width||n.width,height:"image"==i.type?0:i.height||n.height,thumbnail:n.options.thumbnail||i.thumbnail}}),s--,0==s&&(e.dontGenerateThumbs=!1,t.generateThumbnails())})}),t.createUI(),u.iLightBox={close:function(){t.closeAction()},fullscreen:function(){t.fullScreenAction()},moveNext:function(){t.moveTo("next")},movePrev:function(){t.moveTo("prev")},goTo:function(e){t.goTo(e)},refresh:function(){t.refresh()},reposition:function(){0<arguments.length?t.repositionPhoto(!0):t.repositionPhoto()},setOption:function(e){t.setOption(e)},destroy:function(){t.closeAction(),t.dispatchItemsEvents()}},i.linkId&&(e.hashLock=!0,u.location.hash=i.linkId+"/"+e.current,setTimeout(function(){e.hashLock=!1},55)),i.slideshow.startPaused||(t.resume(),e.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof t.options.callback.onOpen&&t.options.callback.onOpen.call(t)},loadContent:function(t,e,i){var n,o,s=this;switch(s.createUI(),t.speed=i||s.options.effects.loadedFadeSpeed,"current"==e&&(s.vars.lockWheel=t.options.mousewheel?!1:!0,s.vars.lockSwipe=t.options.swipe?!1:!0),e){case"current":n=s.vars.holder,o=s.vars.current;break;case"next":n=s.vars.nextPhoto,o=s.vars.next;break;case"prev":n=s.vars.prevPhoto,o=s.vars.prev}if(n.removeAttr("style class").addClass("ilightbox-holder").addClass(t.options.skin),g("div.ilightbox-inner-toolbar",n).remove(),t.title||s.options.innerToolbar){if(i=s.vars.innerToolbar.clone(),t.title&&s.options.show.title){var r=s.vars.title.clone();r.empty().html(t.title),i.append(r)}s.options.innerToolbar&&i.append(1<s.vars.total?s.vars.toolbar.clone():s.vars.toolbar),n.prepend(i)}s.options.smartRecognition||t.options.smartRecognition?s.ogpRecognition(t,function(i){var r=t,a=g.extend({},t,{});i&&(t=g.extend(!0,t,{type:i.type,options:{html5video:i.html5video,width:"image"==i.type?0:i.width||t.width,height:"image"==i.type?0:i.height||t.height,thumbnail:t.options.thumbnail||i.thumbnail}}),r=g.extend({},t,{URL:i.source}),t.options.smartRecognition&&!a.options.thumbnail&&(s.vars.dontGenerateThumbs=!1,s.generateThumbnails())),s.loadSwitcher(r,n,o,e)}):s.loadSwitcher(t,n,o,e)},loadSwitcher:function(t,e,i,n){var o=this,s=o.options,r={element:e,position:i};switch(t.type){case"image":"function"==typeof s.callback.onBeforeLoad&&s.callback.onBeforeLoad.call(o,o.ui,i),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(o,r),o.loadImage(t.URL,function(a){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),e.data({naturalWidth:a?a.width:400,naturalHeight:a?a.height:200}),g("div.ilightbox-container",e).empty().append(a?'<img src="'+t.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+s.errors.loadImage+"</span>"),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),o.configureHolder(t,n,e)});break;
1case"video":e.data({naturalWidth:t.options.width,naturalHeight:t.options.height}),o.addContent(e,t),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),o.configureHolder(t,n,e);break;case"iframe":o.showLoader(),e.data({naturalWidth:t.options.width,naturalHeight:t.options.height});var a=o.addContent(e,t);"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),"function"==typeof s.callback.onBeforeLoad&&s.callback.onBeforeLoad.call(o,o.ui,i),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(o,r),a.bind("load",function(){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),o.hideLoader(),o.configureHolder(t,n,e),a.unbind("load")});break;case"inline":var a=g(t.URL),l=o.addContent(e,t),c=P(e);e.data({naturalWidth:o.items[i].options.width||a.outerWidth(),naturalHeight:o.items[i].options.height||a.outerHeight()}),l.children().eq(0).show(),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),"function"==typeof s.callback.onBeforeLoad&&s.callback.onBeforeLoad.call(o,o.ui,i),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(o,r),o.loadImage(c,function(){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),o.configureHolder(t,n,e)});break;case"flash":a=o.addContent(e,t),e.data({naturalWidth:o.items[i].options.width||a.outerWidth(),naturalHeight:o.items[i].options.height||a.outerHeight()}),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),o.configureHolder(t,n,e);break;case"ajax":var u=t.options.ajax||{};"function"==typeof s.callback.onBeforeLoad&&s.callback.onBeforeLoad.call(o,o.ui,i),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(o,r),o.showLoader(),g.ajax({url:t.URL||s.ajaxSetup.url,data:u.data||null,dataType:u.dataType||"html",type:u.type||s.ajaxSetup.type,cache:u.cache||s.ajaxSetup.cache,crossDomain:u.crossDomain||s.ajaxSetup.crossDomain,global:u.global||s.ajaxSetup.global,ifModified:u.ifModified||s.ajaxSetup.ifModified,username:u.username||s.ajaxSetup.username,password:u.password||s.ajaxSetup.password,beforeSend:u.beforeSend||s.ajaxSetup.beforeSend,complete:u.complete||s.ajaxSetup.complete,success:function(a,l,c){o.hideLoader();var d=g(a),p=g("div.ilightbox-container",e),f=o.items[i].options.width||parseInt(d.attr("width")),h=o.items[i].options.height||parseInt(d.attr("height")),m=d.attr("width")&&d.attr("height")?{overflow:"hidden"}:{};p.empty().append(g('<div class="ilightbox-wrapper"></div>').css(m).html(d)),e.show().data({naturalWidth:f||p.outerWidth(),naturalHeight:h||p.outerHeight()}).hide(),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),d=P(e),o.loadImage(d,function(){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),o.configureHolder(t,n,e)}),s.ajaxSetup.success(a,l,c),"function"==typeof u.success&&u.success(a,l,c)},error:function(a,l,c){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),o.hideLoader(),g("div.ilightbox-container",e).empty().append('<span class="ilightbox-alert">'+s.errors.loadContents+"</span>"),o.configureHolder(t,n,e),s.ajaxSetup.error(a,l,c),"function"==typeof u.error&&u.error(a,l,c)}});break;case"html":l=t.URL,container=g("div.ilightbox-container",e),l[0].nodeName?a=l.clone():(l=g(l),a=l.selector?g("<div>"+l+"</div>"):l);var d=o.items[i].options.width||parseInt(a.attr("width")),p=o.items[i].options.height||parseInt(a.attr("height"));o.addContent(e,t),a.appendTo(document.documentElement).hide(),"function"==typeof s.callback.onRender&&s.callback.onRender.call(o,o.ui,i),"function"==typeof t.options.onRender&&t.options.onRender.call(o,r),c=P(e),"function"==typeof s.callback.onBeforeLoad&&s.callback.onBeforeLoad.call(o,o.ui,i),"function"==typeof t.options.onBeforeLoad&&t.options.onBeforeLoad.call(o,r),o.loadImage(c,function(){"function"==typeof s.callback.onAfterLoad&&s.callback.onAfterLoad.call(o,o.ui,i),"function"==typeof t.options.onAfterLoad&&t.options.onAfterLoad.call(o,r),e.show().data({naturalWi
1dth:d||container.outerWidth(),naturalHeight:p||container.outerHeight()}).hide(),a.remove(),o.configureHolder(t,n,e)})}},configureHolder:function(t,e,i){var n=this,o=n.vars,s=n.options;if("current"!=e&&i.addClass("next"==e?"ilightbox-next":"ilightbox-prev"),"current"==e)var r=o.current;else if("next"==e)var a=s.styles.nextOpacity,r=o.next;else a=s.styles.prevOpacity,r=o.prev;var l={element:i,position:r};n.items[r].options.width=n.items[r].options.width||0,n.items[r].options.height=n.items[r].options.height||0,"current"==e?s.show.effect?i.css(z,F).fadeIn(t.speed,function(){if(i.css(z,""),t.caption){n.setCaption(t,i);var e=g("div.ilightbox-caption",i),o=parseInt(e.outerHeight()/i.outerHeight()*100);s.caption.start&50>=o&&e.fadeIn(s.effects.fadeSpeed)}(e=t.options.social)&&(n.setSocial(e,t.URL,i),s.social.start&&g("div.ilightbox-social",i).fadeIn(s.effects.fadeSpeed)),n.generateThumbnails(),"function"==typeof s.callback.onShow&&s.callback.onShow.call(n,n.ui,r),"function"==typeof t.options.onShow&&t.options.onShow.call(n,l)}):(i.show(),n.generateThumbnails(),"function"==typeof s.callback.onShow&&s.callback.onShow.call(n,n.ui,r),"function"==typeof t.options.onShow&&t.options.onShow.call(n,l)):s.show.effect?i.fadeTo(t.speed,a,function(){"next"==e?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),"function"==typeof s.callback.onShow&&s.callback.onShow.call(n,n.ui,r),"function"==typeof t.options.onShow&&t.options.onShow.call(n,l)}):(i.css({opacity:a}).show(),"next"==e?o.nextLock=!1:o.prevLock=!1,n.generateThumbnails(),"function"==typeof s.callback.onShow&&s.callback.onShow.call(n,n.ui,r),"function"==typeof t.options.onShow&&t.options.onShow.call(n,l)),setTimeout(function(){n.repositionPhoto()},0)},generateBoxes:function(){var t=this.vars,e=this.options;e.infinite&&3<=t.total?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):e.infinite=!1,this.loadContent(this.items[t.current],"current",e.show.speed),this.items[t.next]&&this.loadContent(this.items[t.next],"next",e.show.speed),this.items[t.prev]&&this.loadContent(this.items[t.prev],"prev",e.show.speed)},generateThumbnails:function(){var t=this,e=t.vars,i=t.options,n=null;if(e.thumbs&&!t.vars.dontGenerateThumbs){var o=e.thumbnails,s=g("div.ilightbox-thumbnails-container",o),r=g("div.ilightbox-thumbnails-grid",s),a=0;r.removeAttr("style").empty(),g.each(t.items,function(l,c){var u=e.current==l?"ilightbox-active":"",d=e.current==l?i.thumbnails.activeOpacity:i.thumbnails.normalOpacity,p=c.options.thumbnail,f=g('<div class="ilightbox-thumbnail"></div>'),h=g('<div class="ilightbox-thumbnail-icon"></div>');f.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||"undefined"!=typeof c.options.icon?c.options.icon&&(h.addClass("ilightbox-thumbnail-"+c.options.icon),f.append(h)):(h.addClass("ilightbox-thumbnail-video"),f.append(h)),p&&t.loadImage(p,function(e){a++,e?f.data({naturalWidth:e.width,naturalHeight:e.height}).append('<img src="'+p+'" border="0" />'):f.data({naturalWidth:i.thumbnails.maxWidth,naturalHeight:i.thumbnails.maxHeight}),clearTimeout(n),n=setTimeout(function(){t.positionThumbnails(o,s,r)},20),setTimeout(function(){f.fadeTo(i.effects.loadedFadeSpeed,d)},20*a)}),r.append(f)}),t.vars.dontGenerateThumbs=!0}},positionThumbnails:function(t,e,i){var n=this,o=n.vars,s=n.options,r=G(),a=s.path.toLowerCase();t||(t=o.thumbnails),e||(e=g("div.ilightbox-thumbnails-container",t)),i||(i=g("div.ilightbox-thumbnails-grid",e));var l=g(".ilightbox-thumbnail",i),o="horizontal"==a?r.width-s.styles.pageOffsetX:l.eq(0).outerWidth()-s.styles.pageOffsetX,r="horizontal"==a?l.eq(0).outerHeight()-s.styles.pageOffsetY:r.height-s.styles.pageOffsetY,c="horizontal"==a?0:o,u="horizontal"==a?r:0,d=g(".ilightbox-active",i),p={};3>arguments.length&&(l.css({opacity:s.thumbnails.normalOpacity}),d.css({opacity:s.thumbnails.activeOpacity})),l.each(function(t){t=g(this);var e=t.data(),i="horizontal"==a?0:s.thumbnails.maxWidth;height="horizontal"==a?s.thumbnails.maxHeight:0,dims=n.getNewDimenstions(i,height,e.naturalWidth,e.naturalHeight,!0),t.css({width:dims.width,height:dims.height}),"horizontal"==a&&t.css({"float":"left"}),"horizontal"==a?c+=t.outerWidth():u+=t.outerHeight()}),p={width:c,height:u},i.css(p);var p={},l=i.offset(),f=d.length?d.offset():{top:parseInt(r/2),left:parseInt(o/2)};l.top-=A.scrollTop(),l.left-=A.scrollLeft(),f.top=f.top-l.top-A.scrollTop(),f.left=f.left-l.left-A.scrollLeft(),"horizontal"==a?(p.top=0,p.left=parseInt(o/2-f.left-d.outerWidth()/2)):(p.top=parseInt(r/2-f.top-d.outerHeight()/2),p.left=0),3>arguments.length?i.stop().animate(p,s.effects.repositionSpeed,"easeOutCirc"):i.css(p)},loadImage:function(t,e){g.isArray(t)||(t=[t]);var i=this,n=t.length;n>0?(i.showLoader(),g.each(t,function(o){var s=new Image;s.onload=function(){n-=1,0==n&&(i.hideLoader(),e(s))},s.onerror=s.onabort=function(){n-=1,0==n&&(i.hideLoader(),e(!1))}
1,s.src=t[o]})):e(!1)},patchItemsEvents:function(){var t=this,e=t.vars,i=D?"itap.iLightBox":"click.iLightBox",n=D?"click.iLightBox":"itap.iLightBox";g.each(t.itemsObject,function(o,s){s.on(i,function(){return e.current=o,e.next=t.items[o+1]?o+1:null,e.prev=t.items[o-1]?o-1:null,t.addContents(),t.patchEvents(),!1}).on(n,function(){return!1})})},dispatchItemsEvents:function(){g.each(this.itemsObject,function(t,e){e.off(".iLightBox")})},refresh:function(){this.dispatchItemsEvents(),this.attachItems(),this.normalizeItems(),this.patchItemsEvents()},patchEvents:function(){function t(t){"mousemove"!==t.type||i.isMobile||(i.mouseID||i.hideableElements.show(),i.mouseID=clearTimeout(i.mouseID),i.mouseID=setTimeout(function(){i.hideableElements.hide(),i.mouseID=clearTimeout(i.mouseID)},3e3))}var e=this,i=e.vars,n=e.options,o=n.path.toLowerCase(),s=g(".ilightbox-holder"),r=v.fullScreenEventName+".iLightBox",a=verticalDistanceThreshold=100;M.bind("resize.iLightBox",function(){var t=G();n.mobileOptimizer&&!n.innerToolbar&&(i.isMobile=t.width<=i.mobileMaxWidth),i.BODY[i.isMobile?"addClass":"removeClass"]("isMobile"),e.repositionPhoto(null),D&&(clearTimeout(i.setTime),i.setTime=setTimeout(function(){var t=K().y;u.scrollTo(0,t-30),u.scrollTo(0,t+30),u.scrollTo(0,t)},2e3)),i.thumbs&&e.positionThumbnails()}).bind("keydown.iLightBox",function(t){if(n.controls.keyboard)switch(t.keyCode){case 13:t.shiftKey&&n.keyboard.shift_enter&&e.fullScreenAction();break;case 27:n.keyboard.esc&&e.closeAction();break;case 37:n.keyboard.left&&!i.lockKey&&e.moveTo("prev");break;case 38:n.keyboard.up&&!i.lockKey&&e.moveTo("prev");break;case 39:n.keyboard.right&&!i.lockKey&&e.moveTo("next");break;case 40:n.keyboard.down&&!i.lockKey&&e.moveTo("next")}}),v.supportsFullScreen&&M.bind(r,function(){e.doFullscreen()});var r=[n.caption.show+".iLightBox",n.caption.hide+".iLightBox",n.social.show+".iLightBox",n.social.hide+".iLightBox"].filter(function(t,e,i){return i.lastIndexOf(t)===e}),l="";g.each(r,function(t,e){0!=t&&(l+=" "),l+=e}),A.on(J,".ilightbox-overlay",function(){n.overlay.blur&&e.closeAction()}).on(J,".ilightbox-next, .ilightbox-next-button",function(){e.moveTo("next")}).on(J,".ilightbox-prev, .ilightbox-prev-button",function(){e.moveTo("prev")}).on(J,".ilightbox-thumbnail",function(){var t=g(this),t=g(".ilightbox-thumbnail",i.thumbnails).index(t);t!=i.current&&e.goTo(t)}).on(l,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(t){var e=g("div.ilightbox-caption",i.holder),o=g("div.ilightbox-social",i.holder),s=n.effects.fadeSpeed;i.nextLock||i.prevLock?(t.type!=n.caption.show||e.is(":visible")?t.type==n.caption.hide&&e.is(":visible")&&e.fadeOut(s):e.fadeIn(s),t.type!=n.social.show||o.is(":visible")?t.type==n.social.hide&&o.is(":visible")&&o.fadeOut(s):o.fadeIn(s)):(t.type!=n.caption.show||e.is(":visible")?t.type==n.caption.hide&&e.is(":visible")&&e.stop().fadeOut(s):e.stop().fadeIn(s),t.type!=n.social.show||o.is(":visible")?t.type==n.social.hide&&o.is(":visible")&&o.stop().fadeOut(s):o.stop().fadeIn(s))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(t){i.lockWheel="mouseenter"==t.type?!0:!1}).on(J,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var t=g(this);t.hasClass("ilightbox-fullscreen")?e.fullScreenAction():t.hasClass("ilightbox-play")?(e.resume(),t.addClass("ilightbox-pause").removeClass("ilightbox-play")):t.hasClass("ilightbox-pause")?(e.pause(),t.addClass("ilightbox-play").removeClass("ilightbox-pause")):e.closeAction()}).on(T,".ilightbox-overlay, .ilightbox-thumbnails-container",function(t){t.preventDefault()}),n.controls.arrows&&!D&&A.on("mousemove.iLightBox",t),n.controls.slideshow&&n.slideshow.pauseOnHover&&A.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(t){"mouseenter"==t.type&&i.cycleID?e.pause():"mouseleave"==t.type&&i.isPaused&&e.resume()}),r=g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails"),n.controls.mousewheel&&r.on("mousewheel.iLightBox",function(t,n){i.lockWheel||(t.preventDefault(),0>n?e.moveTo("next"):n>0&&e.moveTo("prev"))}),n.controls.swipe&&s.on(ja,function(t){function r(t){if(p){var e=t.originalEvent.touches?t.originalEvent.touches[0]:t;c={time:(new Date).getTime(),coords:[e.pageX-d,e.pageY-u]},s.each(function(){var t=g(this),e=t.data("offset")||{top:t.offset().top-u,left:t.offset().left-d},i=e.top,e=e.left,n=[p.coords[0]-c.coords[0],p.coords[1]-c.coords[1]];
1t.stop().css("horizontal"==o?{left:e-n[0]}:{top:i-n[1]})}),t.preventDefault()}}function l(){s.each(function(){var t=g(this),e=t.data("offset")||{top:t.offset().top-u,left:t.offset().left-d},i=e.top,e=e.left;t.css(z,F).stop().animate({top:i,left:e},500,"easeOutCirc",function(){t.css(z,"")})})}if(!i.nextLock&&!i.prevLock&&1!=i.total&&!i.lockSwipe){i.BODY.addClass("ilightbox-closedhand"),t=t.originalEvent.touches?t.originalEvent.touches[0]:t;var c,u=A.scrollTop(),d=A.scrollLeft(),p={time:(new Date).getTime(),coords:[t.pageX-d,t.pageY-u]};s.bind(T,r),A.one(ka,function(){s.unbind(T,r),i.BODY.removeClass("ilightbox-closedhand"),p&&c&&("horizontal"==o&&1e3>c.time-p.time&&Math.abs(p.coords[0]-c.coords[0])>a&&Math.abs(p.coords[1]-c.coords[1])<verticalDistanceThreshold?p.coords[0]>c.coords[0]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,e.moveTo("next")):l():0!=i.current||n.infinite?(i.isSwipe=!0,e.moveTo("prev")):l():"vertical"==o&&1e3>c.time-p.time&&Math.abs(p.coords[1]-c.coords[1])>a&&Math.abs(p.coords[0]-c.coords[0])<verticalDistanceThreshold?p.coords[1]>c.coords[1]?i.current!=i.total-1||n.infinite?(i.isSwipe=!0,e.moveTo("next")):l():0!=i.current||n.infinite?(i.isSwipe=!0,e.moveTo("prev")):l():l()),p=c=H})}})},goTo:function(t){var e=this,i=e.vars,n=e.options,o=t-i.current;if(n.infinite&&(t==i.total-1&&0==i.current&&(o=-1),i.current==i.total-1&&0==t&&(o=1)),1==o)e.moveTo("next");else if(-1==o)e.moveTo("prev");else{if(i.nextLock||i.prevLock)return!1;"function"==typeof n.callback.onBeforeChange&&n.callback.onBeforeChange.call(e,e.ui),n.linkId&&(i.hashLock=!0,u.location.hash=n.linkId+"/"+t),e.items[t]&&(e.items[t].options.mousewheel?e.vars.lockWheel=!1:i.lockWheel=!0,i.lockSwipe=e.items[t].options.swipe?!1:!0),g.each([i.holder,i.nextPhoto,i.prevPhoto],function(t,e){e.css(z,F).fadeOut(n.effects.loadedFadeSpeed)}),i.current=t,i.next=t+1,i.prev=t-1,e.createUI(),setTimeout(function(){e.generateBoxes()},n.effects.loadedFadeSpeed+50),g(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(t).addClass("ilightbox-active"),e.positionThumbnails(),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),0==i.current&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),e.resetCycle(),"function"==typeof n.callback.onAfterChange&&n.callback.onAfterChange.call(e,e.ui)}},moveTo:function(t){var e=this,i=e.vars,n=e.options,o=n.path.toLowerCase(),s=G(),r=n.effects.switchSpeed;if(i.nextLock||i.prevLock)return!1;var a="next"==t?i.next:i.prev;if(n.linkId&&(i.hashLock=!0,u.location.hash=n.linkId+"/"+a),"next"==t){if(!e.items[a])return!1;var l=i.nextPhoto,c=i.holder,d=i.prevPhoto,p="ilightbox-prev",f="ilightbox-next"}else if("prev"==t){if(!e.items[a])return!1;l=i.prevPhoto,c=i.holder,d=i.nextPhoto,p="ilightbox-next",f="ilightbox-prev"}"function"==typeof n.callback.onBeforeChange&&n.callback.onBeforeChange.call(e,e.ui),"next"==t?i.nextLock=!0:i.prevLock=!0;var h=g("div.ilightbox-caption",c),m=g("div.ilightbox-social",c);h.length&&h.stop().fadeOut(r,function(){g(this).remove()}),m.length&&m.stop().fadeOut(r,function(){g(this).remove()}),e.items[a].caption&&(e.setCaption(e.items[a],l),h=g("div.ilightbox-caption",l),m=parseInt(h.outerHeight()/l.outerHeight()*100),n.caption.start&&50>=m&&h.fadeIn(r)),(h=e.items[a].options.social)&&(e.setSocial(h,e.items[a].URL,l),n.social.start&&g("div.ilightbox-social",l).fadeIn(n.effects.fadeSpeed)),g.each([l,c,d],function(t,e){e.removeClass("ilightbox-next ilightbox-prev")});var v=l.data("offset"),h=s.width-n.styles.pageOffsetX,s=s.height-n.styles.pageOffsetY,m=v.newDims.width,b=v.newDims.height,y=v.thumbsOffset,v=v.diff,w=parseInt(s/2-b/2-v.H-y.H/2),v=parseInt(h/2-m/2-v.W-y.W/2);l.css(z,F).animate({top:w,left:v,opacity:1},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){l.css(z,"")}),g("div.ilightbox-container",l).animate({width:m,height:b},r,i.isSwipe?"easeOutCirc":"easeInOutCirc");var b=c.data("offset"),x=b.object,v=b.diff,m=b.newDims.width,b=b.newDims.height,m=parseInt(m*n.styles["next"==t?"prevScale":"nextScale"]),b=parseInt(b*n.styles["next"==t?"prevScale":"nextScale"]),w=parseInt("horizontal"==o?s/2-x.offsetY-b/2-v.H-y.H/2:s-x.offsetX-v.H-y.H/2);"prev"==t?v=parseInt("horizontal"==o?h-x.offsetX-v.W-y.W/2:h/2-m/2-v.W-x.offsetY-y.W/2):(w="horizontal"==o?w:p
1arseInt(x.offsetX-v.H-b-y.H/2),v=parseInt("horizontal"==o?x.offsetX-v.W-m-y.W/2:h/2-x.offsetY-m/2-v.W-y.W/2)),g("div.ilightbox-container",c).animate({width:m,height:b},r,i.isSwipe?"easeOutCirc":"easeInOutCirc"),c.addClass(p).css(z,F).animate({top:w,left:v,opacity:n.styles.prevOpacity},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){c.css(z,""),g(".ilightbox-thumbnail",i.thumbnails).removeClass("ilightbox-active").eq(a).addClass("ilightbox-active"),e.positionThumbnails(),e.items[a]&&(i.lockWheel=e.items[a].options.mousewheel?!1:!0,i.lockSwipe=e.items[a].options.swipe?!1:!0),i.isSwipe=!1,"next"==t?(i.nextPhoto=d,i.prevPhoto=c,i.holder=l,i.nextPhoto.hide(),i.next+=1,i.prev=i.current,i.current+=1,n.infinite&&(i.current>i.total-1&&(i.current=0),i.current==i.total-1&&(i.next=0),0==i.current&&(i.prev=i.total-1)),e.createUI(),e.items[i.next]?e.loadContent(e.items[i.next],"next"):i.nextLock=!1):(i.prevPhoto=d,i.nextPhoto=c,i.holder=l,i.prevPhoto.hide(),i.next=i.current,i.current=i.prev,i.prev=i.current-1,n.infinite&&(i.current==i.total-1&&(i.next=0),0==i.current&&(i.prev=i.total-1)),e.createUI(),e.items[i.prev]?e.loadContent(e.items[i.prev],"prev"):i.prevLock=!1),n.linkId&&setTimeout(function(){i.hashLock=!1},55),n.infinite||(i.nextButton.add(i.prevButton).add(i.innerPrevButton).add(i.innerNextButton).removeClass("disabled"),0==i.current&&i.prevButton.add(i.innerPrevButton).addClass("disabled"),i.current>=i.total-1&&i.nextButton.add(i.innerNextButton).addClass("disabled")),e.repositionPhoto(),e.resetCycle(),"function"==typeof n.callback.onAfterChange&&n.callback.onAfterChange.call(e,e.ui)}),w="horizontal"==o?C(d,"top"):parseInt("next"==t?-(s/2)-d.outerHeight():2*w),v="horizontal"==o?parseInt("next"==t?-(h/2)-d.outerWidth():2*v):C(d,"left"),d.css(z,F).animate({top:w,left:v,opacity:n.styles.nextOpacity},r,i.isSwipe?"easeOutCirc":"easeInOutCirc",function(){d.css(z,"")}).addClass(f)},setCaption:function(t,e){var i=g('<div class="ilightbox-caption"></div>');t.caption&&(i.html(t.caption),g("div.ilightbox-container",e).append(i))},normalizeSocial:function(t,e){var i=this.options,n=u.location.href;return g.each(t,function(o,s){var r,a;switch(o.toLowerCase()){case"facebook":r="http://www.facebook.com/share.php?v=4&src=bm&u={URL}",a="Share on Facebook";break;case"twitter":r="http://twitter.com/home?status={URL}",a="Share on Twitter";break;case"googleplus":r="https://plus.google.com/share?url={URL}",a="Share on Google+";break;case"delicious":r="http://delicious.com/post?url={URL}",a="Share on Delicious";break;case"digg":r="http://digg.com/submit?phase=2&url={URL}",a="Share on Digg";break;case"reddit":r="http://reddit.com/submit?url={URL}",a="Share on reddit"}t[o]={URL:s.URL&&L(n,s.URL)||i.linkId&&u.location.href||"string"!=typeof e&&n||e&&L(n,e)||n,source:s.source||r||s.URL&&L(n,s.URL)||e&&L(n,e),text:a||s.text||"Share on "+o,width:"undefined"==typeof s.width||isNaN(s.width)?640:parseInt(s.width),height:s.height||360}}),t},setSocial:function(t,e,i){var n=g('<div class="ilightbox-social"></div>'),o="<ul>";t=this.normalizeSocial(t,e),g.each(t,function(t,e){t.toLowerCase();var i=e.source.replace("{URL}",encodeURIComponent(e.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+"));o+='<li class="'+t+'"><a href="'+i+'" onclick="javascript:window.open(this.href'+(0>=e.width||0>=e.height?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+e.height+",width="+e.width+",left=40,top=40'")+');return false;" title="'+e.text+'" target="_blank"></a></li>'}),o+="</ul>",n.html(o),g("div.ilightbox-container",i).append(n)},fullScreenAction:function(){v.supportsFullScreen?v.isFullScreen()?v.cancelFullScreen(document.documentElement):v.requestFullScreen(document.documentElement):this.doFullscreen()},doFullscreen:function(){var t=this.vars,e=G(),i=this.options;if(i.fullAlone){var n=t.holder,o=this.items[t.current],s=e.width,r=e.height,a=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],e=[t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:this.options.overlay.opacity}),g.each(e,function(t,e){e.show()}),t.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWi
1dth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),g.each(a,function(t,e){e.removeClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onExitFullScreen&&i.callback.onExitFullScreen.call(this,this.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),g.each(e,function(t,e){e.hide()}),t.fullScreenButton.attr("title",i.text.exitFullscreen),-1!=i.fullStretchTypes.indexOf(o.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:s,naturalHeight:r});else{var e=o.options.fullViewPort||i.fullViewPort||"",t=s,o=r,s=n.data("naturalWidth"),l=n.data("naturalHeight");"fill"==e.toLowerCase()?(o=t/s*l,r>o&&(t=r/l*s,o=r)):"fit"==e.toLowerCase()?(r=this.getNewDimenstions(t,o,s,l,!0),t=r.width,o=r.height):"stretch"!=e.toLowerCase()&&(r=this.getNewDimenstions(t,o,s,l,s>t||l>o?!0:!1),t=r.width,o=r.height),n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:t,naturalHeight:o})}g.each(a,function(t,e){e.addClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onEnterFullScreen&&i.callback.onEnterFullScreen.call(this,this.ui)}}else t.isInFullScreen=t.isInFullScreen?!1:!0;this.repositionPhoto(!0)},closeAction:function(){var t=this.vars,e=this.options;M.unbind(".iLightBox"),t.isInFullScreen&&v.cancelFullScreen(document.documentElement),A.off(".iLightBox"),g(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),e.hide.effect?t.overlay.stop().fadeOut(e.hide.speed,function(){t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")),g.each([t.toolbar,t.holder,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.loader,t.thumbnails],function(t,e){e.removeAttr("style").remove()}),t.dontGenerateThumbs=t.isInFullScreen=!1,u.iLightBox=null,e.linkId&&(t.hashLock=!0,da(),setTimeout(function(){t.hashLock=!1},55)),"function"==typeof e.callback.onHide&&e.callback.onHide.call(this,this.ui)},repositionPhoto:function(){var t=this.vars,e=this.options,i=e.path.toLowerCase(),n=G(),o=n.width,s=n.height,n=t.isInFullScreen&&e.fullAlone||t.isMobile?0:"horizontal"==i?0:t.thumbnails.outerWidth(),r=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&e.fullAlone?0:"horizontal"==i?t.thumbnails.outerHeight():0,o=t.isInFullScreen&&e.fullAlone?o:o-e.styles.pageOffsetX,s=t.isInFullScreen&&e.fullAlone?s:s-e.styles.pageOffsetY,a="horizontal"==i?parseInt(this.items[t.next]||this.items[t.prev]?2*(e.styles.nextOffsetX+e.styles.prevOffsetX):30>=o/10?30:o/10):parseInt(30>=o/10?30:o/10)+n,l="horizontal"==i?parseInt(30>=s/10?30:s/10)+r:parseInt(this.items[t.next]||this.items[t.prev]?2*(e.styles.nextOffsetX+e.styles.prevOffsetX):30>=s/10?30:s/10),n={type:"current",width:o,height:s,item:this.items[t.current],offsetW:a,offsetH:l,thumbsOffsetW:n,thumbsOffsetH:r,animate:arguments.length,holder:t.holder};this.repositionEl(n),this.items[t.next]&&(n=g.extend(n,{type:"next",item:this.items[t.next],offsetX:e.styles.nextOffsetX,offsetY:e.styles.nextOffsetY,holder:t.nextPhoto}),this.repositionEl(n)),this.items[t.prev]&&(n=g.extend(n,{type:"prev",item:this.items[t.prev],offsetX:e.styles.prevOffsetX,offsetY:e.styles.prevOffsetY,holder:t.prevPhoto}),this.repositionEl(n)),e="horizontal"==i?{left:parseInt(o/2-t.loader.outerWidth()/2)}:{top:parseInt(s/2-t.loader.outerHeight()/2)},t.loader.css(e)},repositionEl:function(t){var e=this.vars,i=this.options,n=i.path.toLowerCase(),o="current"==t.type&&e.isInFullScreen&&i.fullAlone?t.width:t.width-t.offsetW,s="current"==t.type&&e.isInFullScreen&&i.fullAlone?t.height:t.height-t.offsetH,r=t.item,a=t.item.options,l=t.holder,c=t.offsetX||0,u=t.offsetY||0,d=t.thumbsOffsetW,p=t.thumbsOffsetH;switch("current"==t.type?("number"==typeof a.width&&a.width&&(o=e.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(r.type)||a.fullViewPort||i.fullViewPort)?o:a.width>o?o:a.width),"number"==typeof a.height&&a.height&&(s=e.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(r.type)||a.fullViewPort||i.fullViewPort)?s:a.height>
1s?s:a.height)):("number"==typeof a.width&&a.width&&(o=a.width>o?o:a.width),"number"==typeof a.height&&a.height&&(s=a.height>s?s:a.height)),s=parseInt(s-g(".ilightbox-inner-toolbar",l).outerHeight()),e="string"==typeof a.width&&-1!=a.width.indexOf("%")?Y(parseInt(a.width.replace("%","")),t.width):l.data("naturalWidth"),r="string"==typeof a.height&&-1!=a.height.indexOf("%")?Y(parseInt(a.height.replace("%","")),t.height):l.data("naturalHeight"),r="string"==typeof a.width&&-1!=a.width.indexOf("%")||"string"==typeof a.height&&-1!=a.height.indexOf("%")?{width:e,height:r}:this.getNewDimenstions(o,s,e,r),o=g.extend({},r,{}),"prev"==t.type||"next"==t.type?(e=parseInt(r.width*("next"==t.type?i.styles.nextScale:i.styles.prevScale)),r=parseInt(r.height*("next"==t.type?i.styles.nextScale:i.styles.prevScale))):(e=r.width,r=r.height),s=parseInt((C(l,"padding-left")+C(l,"padding-right")+C(l,"border-left-width")+C(l,"border-right-width"))/2),a=parseInt((C(l,"padding-top")+C(l,"padding-bottom")+C(l,"border-top-width")+C(l,"border-bottom-width")+g(".ilightbox-inner-toolbar",l).outerHeight())/2),t.type){case"current":var f=parseInt(t.height/2-r/2-a-p/2),h=parseInt(t.width/2-e/2-s-d/2);break;case"next":f=parseInt("horizontal"==n?t.height/2-u-r/2-a-p/2:t.height-c-a-p/2),h=parseInt("horizontal"==n?t.width-c-s-d/2:t.width/2-e/2-s-u-d/2);break;case"prev":f=parseInt("horizontal"==n?t.height/2-u-r/2-a-p/2:c-a-r-p/2),h=parseInt("horizontal"==n?c-s-e-d/2:t.width/2-u-e/2-s-d/2)}l.data("offset",{top:f,left:h,newDims:o,diff:{W:s,H:a},thumbsOffset:{W:d,H:p},object:t}),0<t.animate&&i.effects.reposition?(l.css(z,F).stop().animate({top:f,left:h},i.effects.repositionSpeed,"easeOutCirc",function(){l.css(z,"")}),g("div.ilightbox-container",l).stop().animate({width:e,height:r},i.effects.repositionSpeed,"easeOutCirc"),g("div.ilightbox-inner-toolbar",l).stop().animate({width:e},i.effects.repositionSpeed,"easeOutCirc",function(){g(this).css("overflow","visible")})):(l.css({top:f,left:h}),g("div.ilightbox-container",l).css({width:e,height:r}),g("div.ilightbox-inner-toolbar",l).css({width:e}))},resume:function(t){var e=this,i=e.vars,n=e.options;!n.slideshow.pauseTime||n.controls.slideshow&&1>=i.total||t<i.isPaused||(i.isPaused=0,i.cycleID&&(i.cycleID=clearTimeout(i.cycleID)),i.cycleID=setTimeout(function(){i.current==i.total-1?e.goTo(0):e.moveTo("next")},n.slideshow.pauseTime))},pause:function(t){var e=this.vars;t<e.isPaused||(e.isPaused=t||100,e.cycleID&&(e.cycleID=clearTimeout(e.cycleID)))},resetCycle:function(){var t=this.vars;this.options.controls.slideshow&&t.cycleID&&!t.isPaused&&this.resume()},getNewDimenstions:function(t,e,i,n,o){return factor=t?e?Math.min(t/i,e/n):t/i:e/n,o||(factor>this.options.maxScale?factor=this.options.maxScale:factor<this.options.minScale&&(factor=this.options.minScale)),t=this.options.keepAspectRatio?Math.round(i*factor):t,e=this.options.keepAspectRatio?Math.round(n*factor):e,{width:t,height:e,ratio:factor}},setOption:function(t){this.options=g.extend(!0,this.options,t||{}),this.refresh()},availPlugins:function(){var t=document.createElement("video");this.plugins={flash:0<=parseInt(N.getVersion("Shockwave"))||0<=parseInt(N.getVersion("Flash"))?!0:!1,quicktime:0<=parseInt(N.getVersion("QuickTime"))?!0:!1,html5H264:!(!t.canPlayType||!t.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!t.canPlayType||!t.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!t.canPlayType||!t.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!t.canPlayType||!t.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(t,e){var i;switch(e.type){case"video":i=!1;var n=e.videoType,o=e.options.html5video;("video/mp4"==n||"mp4"==e.ext||"m4v"==e.ext||o.h264)&&this.plugins.html5H264?(e.ext="mp4",e.URL=o.h264||e.URL):o.webm&&this.plugins.html5WebM?(e.ext="webm",e.URL=o.webm||e.URL):o.ogg&&this.plugins.html5Vorbis&&(e.ext="ogv",e.URL=o.ogg||e.URL),!this.plugins.html5H264||"video/mp4"!=n&&"mp4"!=e.ext&&"m4v"!=e.ext?!this.plugins.html5WebM||"video/webm"!=n&&"webm"!=e.ext?!this.plugins.html5Vorbis||"video/ogg"!=n&&"ogv"!=e.ext?!this.plugins.html5QuickTime||"video/quicktime"!=n&&"mov"!=e.ext&&"qt"!=e.ext||(i=!0,n="video/quicktime"):(i=!0,n="video/ogg"):(i=!0,n="video/webm"):(i=!0,n="video/mp4"),i?i=g("<video />
1",{width:"100%",height:"100%",preload:o.preload,autoplay:o.autoplay,poster:o.poster,controls:o.controls}).append(g("<source />",{src:e.URL,type:n})):this.plugins.quicktime?(i=g("<object />",{type:"video/quicktime",pluginspage:"http://www.apple.com/quicktime/download"}).attr({data:e.URL,width:"100%",height:"100%"}).append(g("<param />",{name:"src",value:e.URL})).append(g("<param />",{name:"autoplay",value:"false"})).append(g("<param />",{name:"loop",value:"false"})).append(g("<param />",{name:"scale",value:"tofit"})),x.msie&&(i=ha(e.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):i=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.apple.com/quicktime/download").replace("{type}","QuickTime")});break;case"flash":if(this.plugins.flash){var s="",r=0;e.options.flashvars?g.each(e.options.flashvars,function(t,e){0!=r&&(s+="&"),s+=t+"="+encodeURIComponent(e),r++}):s=null,i=g("<embed />").attr({type:"application/x-shockwave-flash",src:e.URL,width:"number"==typeof e.options.width&&e.options.width&&"1"==this.options.minScale&&"1"==this.options.maxScale?e.options.width:"100%",height:"number"==typeof e.options.height&&e.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?e.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:s,fullscreen:"yes"})}else i=g("<span />",{"class":"ilightbox-alert",html:this.options.errors.missingPlugin.replace("{pluginspage}","http://www.adobe.com/go/getflash").replace("{type}","Adobe Flash player")});break;case"iframe":i=g("<iframe />").attr({width:"number"==typeof e.options.width&&e.options.width&&"1"==this.options.minScale&&"1"==this.options.maxScale?e.options.width:"100%",height:"number"==typeof e.options.height&&e.options.height&&"1"==this.options.minScale&&"1"==this.options.maxScale?e.options.height:"100%",src:e.URL,frameborder:0,webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":i=g('<div class="ilightbox-wrapper"></div>').html(g(e.URL).clone(!0));break;case"html":i=e.URL,i[0].nodeName||(i=g(e.URL),i=i.selector?g("<div>"+i+"</div>"):i),i=g('<div class="ilightbox-wrapper"></div>').html(i)}return g("div.ilightbox-container",t).empty().html(i),i},ogpRecognition:function(t,e){var i=this,n=t.URL,o={length:!1};i.showLoader(),ea(n,function(t){if(i.hideLoader(),200==t.status){t=t.results;var n=t.type,s=t.source;o.source=s.src,o.width=s.width&&parseInt(s.width)||0,o.height=s.height&&parseInt(s.height)||0,o.type=n,o.thumbnail=s.thumbnail||t.images[0],o.html5video=t.html5video||{},o.length=!0,"application/x-shockwave-flash"==s.type?o.type="flash":-1!=s.type.indexOf("video/")?o.type="video":-1!=s.type.indexOf("/html")?o.type="iframe":-1!=s.type.indexOf("image/")&&(o.type="image")}else if("undefined"!=typeof t.response)throw t.response;e(o.length?o:!1)})},hashChangeHandler:function(t){var e=this.vars,i=this.options;t=S(t||u.location.href).hash;var n=t.indexOf("#"+i.linkId+"/"),o=t.split("/");e.hashLock||"#"+i.linkId!=o[0]&&1<t.length||(-1!=n?(e=o[1]||0,this.items[e]?(t=g(".ilightbox-overlay"),t.length&&t.attr("linkid")==i.linkId?this.goTo(e):this.itemsObject[e].trigger("click")):(t=g(".ilightbox-overlay"),t.length&&this.closeAction())):(t=g(".ilightbox-overlay"),t.length&&this.closeAction()))}},g.fn.iLightBox=function(){var t=arguments,e=g.isPlainObject(t[0])?t[0]:t[1],i=g.isArray(t[0])||"string"==typeof t[0]?t[0]:t[1];e||(e={});var e=g.extend(!0,{attr:"href",path:"vertical",skin:"dark",linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(){},cache:!1,complete:function(){},crossDomain:!1,error:function(){},success:function(){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},e),n=g.isArray(i)||"string"==typeof i?!0:!1,i=g.isArray(i)?i:[];if("string"==typeof t[0]&&(i[0]=t[0]),fa(g.fn.jquery,"1.8",">=")){var o=new aa(g(this),e,i,n);return{close:function(){o.closeAction()},fullscreen:function(){o.fullScreenAction()},moveNext:function(){o.moveTo("next")},movePrev:function(){o.moveTo("prev")},goTo:function(t){o.goTo(t)},refresh:function(){o.refresh()},reposition:function(){0<arguments.length?o.repositionPhoto(!0):o.repositionPhoto()},setOption:function(t){o.setOption(t)},destroy:function(){o.closeAction(),o.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},g.iLightBox=function(t,e){return g.fn.iLightBox(t,e)}
1,g.extend(g.easing,{easeInCirc:function(t,e,i,n,o){return-n*(Math.sqrt(1-(e/=o)*e)-1)+i},easeOutCirc:function(t,e,i,n,o){return n*Math.sqrt(1-(e=e/o-1)*e)+i},easeInOutCirc:function(t,e,i,n,o){return 1>(e/=o/2)?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i}}),g(document),g.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,e){g.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)},g.attrFn&&(g.attrFn[e]=!0)}),g.event.special.itap={setup:function(){var t,e,i=this,n=g(this);n.bind("touchstart.iTap",function(){t=K(),n.one("touchend.iTap",function(n){e=K(),n=g.event.fix(n||u.event),n.type="itap",t&&e&&t.x==e.x&&t.y==e.y&&(g.event.dispatch||g.event.handle).call(i,n),t=e=H})})},teardown:function(){g(this).unbind("touchstart.iTap")}},function(){if(v={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes=["webkit","moz","o","ms","khtml"],"undefined"!=typeof document.cancelFullScreen)v.supportsFullScreen=!0;else for(var t=0,e=browserPrefixes.length;e>t;t++)if(v.prefix=browserPrefixes[t],"undefined"!=typeof document[v.prefix+"CancelFullScreen"]){v.supportsFullScreen=!0;break}v.supportsFullScreen&&(v.fullScreenEventName=v.prefix+"fullscreenchange",v.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},v.requestFullScreen=function(t){return""===this.prefix?t.requestFullScreen():t[this.prefix+"RequestFullScreen"]()},v.cancelFullScreen=function(){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})}(),function(){var t,e;t=navigator.userAgent,t=t.toLowerCase(),e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||0>t.indexOf("compatible")&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],t=e[1]||"",e=e[2]||"0",x={},t&&(x[t]=!0,x.version=e),x.chrome?x.webkit=!0:x.webkit&&(x.safari=!0)}(),function(){function t(t){for(var n=0,o=e.length;o>n;n++){var s=e[n]?e[n]+t.charAt(0).toUpperCase()+t.slice(1):t;if(i.style[s]!==H)return s}}var e=["","webkit","moz","ms","o"],i=document.createElement("div");z=t("transform")||"",F=t("perspective")?"translateZ(0) ":""}();var N={version:"0.7.9",name:"PluginDetect",handler:function(t,e,i){return function(){t(e,i)}},openTag:"<",isDefined:function(t){return"undefined"!=typeof t},isArray:function(t){return/array/i.test(Object.prototype.toString.call(t))},isFunc:function(t){return"function"==typeof t},isString:function(t){return"string"==typeof t},isNum:function(t){return"number"==typeof t},isStrNum:function(t){return"string"==typeof t&&/\d/.test(t)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(t,e){var i=this.isStrNum(t)?(this.isDefined(e)?RegExp(e):this.getNumRegx).exec(t):null;return i?i[0]:null},compareNums:function(t,e,i){var n=parseInt;if(this.isStrNum(t)&&this.isStrNum(e)){if(this.isDefined(i)&&i.compareNums)return i.compareNums(t,e);for(t=t.split(this.splitNumRegx),e=e.split(this.splitNumRegx),i=0;i<Math.min(t.length,e.length);i++){if(n(t[i],10)>n(e[i],10))return 1;if(n(t[i],10)<n(e[i],10))return-1}}return 0},formatNum:function(t,e){var i,n;if(!this.isStrNum(t))return null;for(this.isNum(e)||(e=4),e--,n=t.replace(/\s/g,"").split(this.splitNumRegx).concat(["0","0","0","0"]),i=0;4>i;i++)/^(0+)(.+)$/.test(n[i])&&(n[i]=RegExp.$2),(i>e||!/\d/.test(n[i]))&&(n[i]="0");return n.slice(0,4).join(",")},$$hasMimeType:function(t){return function(e){if(!t.isIE&&e){var i,n,o=t.isArray(e)?e:t.isString(e)?[e]:[];for(n=0;n<o.length;n++)if(t.isString(o[n])&&/[^\s]/.test(o[n])&&(i=(e=navigator.mimeTypes[o[n]])?e.enabledPlugin:0)&&(i.name||i.description))return e}return null}},findNavPlugin:function(t,e,i){t=RegExp(t,"i"),e=!this.isDefined(e)||e?/\d/:0,i=i?RegExp(i,"i"):0;var n,o,s,r=navigator.plugins;for(n=0;n<r.length;n++)if(s=r[n].description||"",o=r[n].name||"",(t.test(s)&&(!e||e.test(RegExp.leftContext+RegExp.rightContext))||t.test(o)&&(!e||e.test(RegExp.leftContext+RegExp.rightContext)))&&(!i||!i.test(s)&&!i.test(o)))return r[n];return null}
1,getMimeEnabledPlugin:function(t,e,i){var n;e=RegExp(e,"i"),i=i?RegExp(i,"i"):0;var o,s,r=this.isString(t)?[t]:t;for(s=0;s<r.length;s++)if((n=this.hasMimeType(r[s]))&&(n=n.enabledPlugin)&&(o=n.description||"",t=n.name||"",e.test(o)||e.test(t))&&(!i||!i.test(o)&&!i.test(t)))return n;return 0},getPluginFileVersion:function(t,e){var i,n,o,s,r=-1;if(2<this.OS||!t||!t.version||!(i=this.getNum(t.version)))return e;if(!e)return i;for(i=this.formatNum(i),e=this.formatNum(e),n=e.split(this.splitNumRegx),o=i.split(this.splitNumRegx),s=0;s<n.length;s++)if(r>-1&&s>r&&"0"!=n[s]||o[s]!=n[s]&&(-1==r&&(r=s),"0"!=n[s]))return e;return i},AXO:u.ActiveXObject,getAXO:function(t){var e=null;try{e=new this.AXO(t)}catch(i){}return e},convertFuncs:function(t){var e,i,n=/^[\$][\$]/;for(e in t)if(n.test(e))try{i=e.slice(2),0<i.length&&!t[i]&&(t[i]=t[e](t),delete t[e])}catch(o){}},initObj:function(t,e,i){var n;if(t){if(1==t[e[0]]||i)for(n=0;n<e.length;n+=2)t[e[n]]=e[n+1];for(n in t)(i=t[n])&&1==i[e[0]]&&this.initObj(i,e)}},initScript:function(){var t,e=navigator,i=document,n=e.userAgent||"",o=e.vendor||"",s=e.platform||"",e=e.product||"";this.initObj(this,["$",this]);for(t in this.Plugins)this.Plugins[t]&&this.initObj(this.Plugins[t],["$",this,"$$",this.Plugins[t]],1);if(this.convertFuncs(this),this.OS=100,s){var r=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(t=r.length-2;t>=0;t-=2)if(r[t]&&RegExp(r[t],"i").test(s)){this.OS=r[t+1];break}}if(this.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null,this.verIE=(this.isIE=new Function("return/*@cc_on!@*/!1")())&&/MSIE\s*(\d+\.?\d*)/i.test(n)?parseFloat(RegExp.$1,10):null,this.docModeIE=this.verIEfull=null,this.isIE){t=document.createElement("div");try{t.style.behavior="url(#default#clientcaps)",this.verIEfull=t.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")}catch(a){}t=parseFloat(this.verIEfull||"0",10),this.docModeIE=i.documentMode||(/back/i.test(i.compatMode||"")?5:t)||this.verIE,this.verIE=t||this.docModeIE}if(this.ActiveXEnabled=!1,this.isIE)for(i="Msxml2.XMLHTTP Msxml2.DOMDocument Microsoft.XMLDOM ShockwaveFlash.ShockwaveFlash TDCCtl.TDCCtl Shell.UIHelper Scripting.Dictionary wmplayer.ocx".split(" "),t=0;t<i.length;t++)if(this.getAXO(i[t])){this.ActiveXEnabled=!0;break}this.verGecko=(this.isGecko=/Gecko/i.test(e)&&/Gecko\s*\/\s*\d/i.test(n))?this.formatNum
1(/rv\s*\:\s*([\.\,\d]+)/i.test(n)?RegExp.$1:"0.9"):null,this.verChrome=(this.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(n))?this.formatNum(RegExp.$1):null,this.verSafari=(this.isSafari=(/Apple/i.test(o)||!o&&!this.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(n))&&/Version\s*\/\s*(\d[\d\.]*)/i.test(n)?this.formatNum(RegExp.$1):null,this.verOpera=(this.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(n))?parseFloat(RegExp.$1,10):null,this.addWinEvent("load",this.handler(this.runWLfuncs,this))},init:function(t){var e,i={status:-3,plugin:0};return this.isString(t)?1==t.length?(this.getVersionDelimiter=t,i):(t=t.toLowerCase().replace(/\s/g,""),e=this.Plugins[t],e&&e.getVersion?(i.plugin=e,this.isDefined(e.installed)||(e.installed=null,e.version=null,e.version0=null,e.getVersionDone=null,e.pluginName=t),this.garbage=!1,this.isIE&&!this.ActiveXEnabled&&"java"!==t?(i.status=-2,i):(i.status=1,i)):i):i},fPush:function(t,e){this.isArray(e)&&(this.isFunc(t)||this.isArray(t)&&0<t.length&&this.isFunc(t[0]))&&e.push(t)},callArray:function(t){var e;if(this.isArray(t))for(e=0;e<t.length&&null!==t[e];e++)this.call(t[e]),t[e]=null},call:function(t){var e=this.isArray(t)?t.length:-1;e>0&&this.isFunc(t[0])?t[0](this,e>1?t[1]:0,e>2?t[2]:0,e>3?t[3]:0):this.isFunc(t)&&t(this)},getVersionDelimiter:",",$$getVersion:function(t){return function(e,i,n){return e=t.init(e),0>e.status?null:(e=e.plugin,1!=e.getVersionDone&&(e.getVersion(null,i,n),null===e.getVersionDone&&(e.getVersionDone=1)),t.cleanup(),i=(i=e.version||e.version0)?i.replace(t.splitNumRegx,t.getVersionDelimiter):i)}},cleanup:function(){this.garbage&&this.isDefined(u.CollectGarbage)&&u.CollectGarbage()},isActiveXObject:function(t,e){var i=!1,n='<object width="1" height="1" style="display:none" '+t.getCodeBaseVersion(e)+">"+t.HTML+this.openTag+"/object>";if(!this.head)return i;this.head.insertBefore(document.createElement("object"),this.head.firstChild),this.head.firstChild.outerHTML=n;try{this.head.firstChild.classid=t.classID}catch(o){}try{this.head.firstChild.object&&(i=!0)}catch(s){}try{i&&4>this.head.firstChild.readyState&&(this.garbage=!0)}catch(r){}return this.head.removeChild(this.head.firstChild),i},codebaseSearch:function(t,e){var i=this;if(!i.ActiveXEnabled||!t)return null;t.BIfuncs&&t.BIfuncs.length&&null!==t.BIfuncs[t.BIfuncs.length-1]&&i.callArray(t.BIfuncs);var n,o=t.SEARCH;if(i.isStrNum(e))return o.match&&o.min&&0>=i.compareNums(e,o.min)?!0:o.match&&o.max&&0<=i.compareNums(e,o.max)?!1:((n=i.isActiveXObject(t,e))&&(!o.min||0<i.compareNums(e,o.min))&&(o.min=e),n||o.max&&!(0>i.compareNums(e,o.max))||(o.max=e),n);var s,r,a=[0,0,0,0],l=[].concat(o.digits),c=o.min?1:0,u=function(e,n){var o=[].concat(a);return o[e]=n,i.isActiveXObject(t,o.join(","))};if(o.max){for(n=o.max.split(i.splitNumRegx),s=0;s<n.length;s++)n[s]=parseInt(n[s],10);n[0]<l[0]&&(l[0]=n[0])}if(o.min){for(r=o.min.split(i.splitNumRegx),s=0;s<r.length;s++)r[s]=parseInt(r[s],10);r[0]>a[0]&&(a[0]=r[0])}if(r&&n)for(s=1;s<r.length&&r[s-1]==n[s-1];s++)n[s]<l[s]&&(l[s]=n[s]),r[s]>a[s]&&(a[s]=r[s]);if(o.max)for(s=1;s<l.length;s++)if(0<n[s]&&0==l[s]&&l[s-1]<o.digits[s-1]){l[s-1]+=1;break}for(s=0;s<l.length;s++){for(r={},o=0;20>o&&!(1>l[s]-a[s])&&(n=Math.round((l[s]+a[s])/2),!r["a"+n]);o++)r["a"+n]=1,u(s,n)?(a[s]=n,c=1):l[s]=n;if(l[s]=a[s],!c&&u(s,a[s])&&(c=1),!c)break}return c?a.join(","):null},addWinEvent:function(t,e){var i,n=u;this.isFunc(e)&&(n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent?n.attachEvent("on"+t,e):(i=n["on"+t],n["on"+t]=this.winHandler(e,i)))},winHandler:function(t,e){return function(){t(),"function"==typeof e&&e()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(t){t.winLoaded=!0,t.callArray(t.WLfuncs0),t.callArray(t.WLfuncs),t.onDoneEmptyDiv&&t.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(t){return function(e){t.winLoaded?t.call(e):t.fPush(e,t.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var t,e,i,n;if(this.div&&this.div.childNodes)for(t=this.div.childNodes.length-1;t>=0;t--){if((i=this.div.childNodes[t])&&i.childNodes)for(e=i.childNodes.length-1;e>=0;e--){n=i.childNodes[e];try{i.removeChild(n)}catch(o){}}if(i)try{this.div.removeChild(i)}catch(s){}}if(!this.div&&(t=document.getElementById(this.divID))&&(this.div=t),this.div&&this.div.parentNode){try{this.div.parentNode.removeChild(this.div)}catch(r){}this.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var t,e;if(this.winLoaded&&(!this.WLfuncs||!this.WLfuncs.length||null===this.WLfuncs[this.WLfuncs.length-1])){for(t in this)if((e=this[t])&&e.funcs&&(3==e.OTF||e.funcs.length&&null!==e.funcs[e.funcs.length-1]))return;for(t=0;t<this.DONEfuncs.length;t++)this.callArray(this.DONEfuncs);
1this.emptyDiv()}},getWidth:function(t){return t&&(t=t.scrollWidth||t.offsetWidth,this.isNum(t))?t:-1},getTagStatus:function(t,e,i,n){var o=t.span,s=this.getWidth(o);i=i.span;var r=this.getWidth(i);e=e.span;var a=this.getWidth(e);if(!(o&&i&&e&&this.getDOMobj(t)))return-2;if(a>r||0>s||0>r||0>a||a<=this.pluginSize||1>this.pluginSize)return 0;if(s>=a)return-1;try{if(s==this.pluginSize&&(!this.isIE||4==this.getDOMobj(t).readyState)&&(!t.winLoaded&&this.winLoaded||t.winLoaded&&this.isNum(n)&&(this.isNum(t.count)||(t.count=n),10<=n-t.count)))return 1}catch(l){}return 0},getDOMobj:function(t,e){var i=t?t.span:0,n=i&&i.firstChild?1:0;try{n&&e&&this.div.focus()}catch(o){}return n?i.firstChild:null},setStyle:function(t,e){var i,n=t.style;if(n&&e)for(i=0;i<e.length;i+=2)try{n[e[i]]=e[i+1]}catch(o){}},insertDivInBody:function(t,e){var i=null,n=e?u.top.document:u.document,o=n.getElementsByTagName("body")[0]||n.body;if(!o)try{n.write('<div id="pd33993399">.'+this.openTag+"/div>"),i=n.getElementById("pd33993399")}catch(s){}(o=n.getElementsByTagName("body")[0]||n.body)&&(o.insertBefore(t,o.firstChild),i&&o.removeChild(i))},insertHTML:function(t,e,i,n,o){o=document;var s,r,a=o.createElement("span"),l="outlineStyle none borderStyle none padding 0px margin 0px visibility visible".split(" ");if(this.isDefined(n)||(n=""),this.isString(t)&&/[^\s]/.test(t)){for(t=t.toLowerCase().replace(/\s/g,""),s=this.openTag+t+' width="'+this.pluginSize+'" height="'+this.pluginSize+'" ',s+='style="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;display:inline;" ',r=0;r<e.length;r+=2)/[^\s]/.test(e[r+1])&&(s+=e[r]+'="'+e[r+1]+'" ');for(s+=">",r=0;r<i.length;r+=2)/[^\s]/.test(i[r+1])&&(s+=this.openTag+'param name="'+i[r]+'" value="'+i[r+1]+'" />');s+=n+this.openTag+"/"+t+">"}else s=n;if(this.div||((e=o.getElementById(this.divID))?this.div=e:(this.div=o.createElement("div"),this.div.id=this.divID),this.setStyle(this.div,l.concat(["width",this.divWidth+"px","height",this.pluginSize+3+"px","fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","block"])),e||(this.setStyle(this.div,"position absolute right 0px top 0px".split(" ")),this.insertDivInBody(this.div))),this.div&&this.div.parentNode){this.setStyle(a,l.concat(["fontSize",this.pluginSize+3+"px","lineHeight",this.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{a.innerHTML=s}catch(c){}try{this.div.appendChild(a)}catch(u){}return{span:a,winLoaded:this.winLoaded,tagName:t,outerHTML:s}}return{span:null,winLoaded:this.winLoaded,tagName:"",outerHTML:s}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(t){return'codebase="#version='+t+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(t){var e=this.$,i=null,n=null;if(e.isIE){if(e.isStrNum(t)&&(t=t.split(e.splitNumRegx),3<t.length&&0<parseInt(t[3],10)&&(t[3]="9999"),t=t.join(",")),e.isStrNum(t)&&e.verIE>=this.minIEver&&0<this.canUseIsMin())return this.installed=this.isMin(t),void(this.getVersionDone=0);this.getVersionDone=1,!i&&e.verIE>=this.minIEver&&(i=this.CDBASE2VER(e.codebaseSearch(this))),i||(n=e.getAXO(this.progID))&&n.QuickTimeVersion&&(i=n.QuickTimeVersion.toString(16),i=parseInt(i.charAt(0),16)+"."+parseInt(i.charAt(1),16)+"."+parseInt(i.charAt(2),16))}else e.hasMimeType(this.mimeType)&&(n=3!=e.OS?e.findNavPlugin("QuickTime.*Plug-?in",0):null)&&n.name&&(i=e.getNum(n.name));this.installed=i?1:n?0:-1,this.version=e.formatNum(i,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(t,e){var i=e.split(t.$.splitNumRegx);return[i[0],i[1].charAt(0),i[1].charAt(1),i[2]].join()},null],CDBASE2VER:function(t){var e,i=this.$,n=this.cdbaseUpper,o=this.cdbaseLower;if(t)for(t=i.formatNum(t),e=0;e<n.length;e++)if(n[e]&&0>i.compareNums(t,n[e])&&o[e]&&0<=i.compareNums(t,o[e])&&this.cdbase2ver[e])return this.cdbase2ver[e](this,t);return t},canUseIsMin:function(){var t,e=this.$,i=this.canUseIsMin,n=this.cdbaseUpper,o=this.cdbaseLower;if(!i.value)for(i.value=-1,t=0;t<n.length;t++){if(n[t]&&e.codebaseSearch(this,n[t])){i.value=1;break}if(o[t]&&e.codebaseSearch(this,o[t])){i.value=-1;break}}return this.SEARCH.match=1==i.value?1:0,i.value},isMin:function(t){return this.$.codebaseSearch(this,t)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var t,e=function(t){return t&&(t=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(t))?t[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},i=this.$,n=null,o=null,s=null;if(i.isIE){for(t=15;t>2;t--)if(o=i.getAXO(this.progID+"."+t)){s=t.toString();break}if(o||(o=i.getAXO(this.progID)),"6"==s)try{o.AllowScriptAccess="always"}catch(r){return"6,0,21,0"}try{n=e(o.GetVariable("$version"))}catch(a){}!n&&s&&(n=s)}else{if(o=i.hasMimeType(this.mimeType)){t=i.getDOMobj(i.insertHTML("object",["type",this.mimeType],[],"",this));try{n=i.getNum(t.GetVariable("$version"))}catch(l){}}n||((t=o?o.enabledPlugin:null)&&t.description&&(n=e(t.description)),n&&(n=i.getPluginFileVersion(t,n)))}
1return this.installed=n?1:-1,this.version=i.formatNum(n),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var t=null,e=null,i=this.$;if(i.isIE){try{e=i.getAXO(this.progID).ShockwaveVersion("")}catch(n){}i.isString(e)&&0<e.length?t=i.getNum(e):i.getAXO(this.progID+".8")?t="8":i.getAXO(this.progID+".7")?t="7":i.getAXO(this.progID+".1")&&(t="6")}else(e=i.findNavPlugin("Shockwave\\s*for\\s*Director"))&&e.description&&i.hasMimeType(this.mimeType)&&(t=i.getNum(e.description)),t&&(t=i.getPluginFileVersion(e,t));this.installed=t?1:-1,this.version=i.formatNum(t)}},zz:0}};N.initScript();var ia='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',p=null,B="iLightBoxHashChange",O=document,U,ba=g.event.special,ca=O.documentMode,V="on"+B in u&&(ca===H||ca>7);g.fn[B]=function(t){return t?this.bind(B,t):this.trigger(B)},g.fn[B].delay=50,ba[B]=g.extend(ba[B],{setup:function(){return V?!1:void g(U.start)}
1,teardown:function(){return V?!1:void g(U.stop)}}),U=function(){function t(){var i=I(),o=r(n);i!==n?(s(n=i,o),g(u).trigger(B)):o!==n&&(location.href=location.href.replace(/#.*/,"")+o),e=setTimeout(t,g.fn[B].delay)}var e,i={},n=I(),o=function(t){return t},s=o,r=o;return i.start=function(){e||t()},i.stop=function(){e&&clearTimeout(e),e=H},x.msie&&!V&&function(){var e,n;i.start=function(){e||(n=(n=g.fn[B].src)&&n+I(),e=g('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){n||s(I()),t()}).attr("src",n||"javascript:0").insertAfter("body")[0].contentWindow,O.onpropertychange=function(){try{"title"===event.propertyName&&(e.document.title=O.title)}catch(t){}})},i.stop=o,r=function(){return I(e.location.href)},s=function(t,i){var n=e.document,o=g.fn[B].domain;t!==i&&(n.title=O.title,n.open(),o&&n.write('<script>document.domain="'+o+'"</script>'),n.close(),e.location.hash=t)}}(),i}(),Array.prototype.filter||(Array.prototype.filter=function(t,e){if(null==this)throw new TypeError;var i=Object(this),n=i.length>>>0;if("function"!=typeof t)throw new TypeError;for(var o=[],s=0;n>s;s++)if(s in i){var r=i[s];t.call(e,r,s,i)&&o.push(r)}return o}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(t){if(null==this)throw new TypeError;var e=Object(this),i=e.length>>>0;if(0===i)return-1;var n=i;for(1<arguments.length&&(n=Number(arguments[1]),n!=n?n=0:0!=n&&n!=1/0&&n!=-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),i=n>=0?Math.min(n,i-1):i-Math.abs(n);i>=0;i--)if(i in e&&e[i]===t)return i;return-1})}(jQuery,this);!function(e){"use strict";function o(){e(".vcex-isotope-grid").length&&e(".vcex-isotope-grid").each(function(){var o=e(this);o.isotope({itemSelector:".vcex-isotope-entry"});var t=o.prev("ul.vcex-filter-links"),a=t.find("a");a.each(function(){var t=e(this).data("filter");"*"===t||o.find(t).length||e(this).parent().hide("100")}),a.css({opacity:1}),a.click(function(){var t=e(this).attr("data-filter");return o.isotope({filter:t}),e(this).parents("ul").find("li").removeClass("active"),e(this).parent("li").addClass("active"),!1})})}function t(){e(".vcex-no-margin-grid").length&&e(".vcex-no-margin-grid").each(function(){var o=e(this);o.masonry({itemSelector:".vcex-no-margin-entry"})})}function a(){var o=e(".blog-masonry-grid");o.length&&o.isotope({itemSelector:".blog-entry"})}function i(){e("div.wpex-row.portfolio-masonry").length?e("div.wpex-row.portfolio-masonry").masonry({itemSelector:".portfolio-entry"}):e("div.wpex-row.portfolio-no-margins").length&&e("div.wpex-row.portfolio-no-margins").masonry({itemSelector:".portfolio-entry"})}function r(){e("div.wpex-row.staff-masonry").length?e("div.wpex-row.staff-masonry").masonry({itemSelector:".staff-entry"}):e("div.wpex-row.staff-no-margins").length&&e("div.wpex-row.staff-no-margins").masonry({itemSelector:".staff-entry"})}var s=e(window),l=s.width(),n=!1;e("body").hasClass("is-mobile")&&(n=!0),e(document).ready(function(){e("li.nav-no-click > a").click(function(){return!1}),e("ul.sf-menu").superfish({delay:100,animation:{opacity:"show"},speed:"fast",speedOut:"fast",cssArrows:!1,disableHI:!1}),e("a.search-overlay-toggle").leanerModal({id:"#searchform-overlay",top:100,overlay:.8}),e("a.search-overlay-toggle").click(function(){e("#site-searchform input").focus()}),e("a.search-dropdown-toggle").click(function(){return e("div#current-shop-items-dropdown").hide(),e("li.wcmenucart-toggle-dropdown").removeClass("current-menu-item"),e("#searchform-dropdown").fadeToggle("fast"),e("#searchform-dropdown input").focus(),e(this).parent("li").toggleClass("current-menu-item"),!1}),e("a.search-header-replace-toggle").click(function(){return e("#searchform-header-replace").fadeToggle("fast"),e("#searchform-header-replace input").focus(),!1}),e("#searchform-header-replace-close").click(function(){return e("#searchform-header-replace").fadeOut("fast"),!1}),e("#searchform-dropdown, #searchform-header-replace, #toggle-bar-wrap").click(function(e){e.stopPropagation()}),e(document).click(function(){e("#searchform-dropdown, #searchform-header-replace").fadeOut("fast"),e("a.search-dropdown-toggle").parent("li").removeClass("current-menu-item"),e("#toggle-bar-wrap").removeClass("active-bar"),e("a.toggle-bar-btn.fade-toggle").
1children(".fa").removeClass("fa-minus").addClass("fa-plus")});var l=e("div#main .widget_nav_menu ul.sub-menu").parent("li");l.length&&(l.addClass("parent"),e(".parent > a").click(function(){return e(this).parent("li").children(".sub-menu").stop(!0,!0).slideToggle("fast"),e(this).parent("li").toggleClass("active"),!1})),e("a.wcmenucart").hasClass("go-to-shop")||(e("li.wcmenucart-toggle-overlay").leanerModal({id:"#current-shop-items-overlay",top:100,overlay:.8}),e("li.wcmenucart-toggle-dropdown").click(function(){return e("#searchform-dropdown").hide(),e("a.search-dropdown-toggle").parent("li").removeClass("current-menu-item"),e("div#current-shop-items-dropdown").fadeToggle("fast"),e(this).toggleClass("current-menu-item"),!1}),e("div#current-shop-items-dropdown").click(function(e){e.stopPropagation()}),e(document).click(function(){e("div#current-shop-items-dropdown").fadeOut("fast"),e("li.wcmenucart-toggle-dropdown").removeClass("current-menu-item")})),"undefined"!=typeof wpexLocalize.sidrSource&&e("a.sidr-menu-toggle").sidr({name:"sidr-main",source:wpexLocalize.sidrSource,side:wpexLocalize.sidrSide,renaming:!0,displace:!1}),e(".sidr-class-menu-item-has-children").each(function(){e(this).append('<span class="sidr-class-dropdown-toggle"><i class="fa fa-chevron-right"></i></span>')}),e(".sidr-class-dropdown-toggle").on(n?"touchstart":"click",function(){var o=e(this).prev("ul"),t=o.is(":visible")?'<i class="fa fa-chevron-right"></i>':'<i class="fa fa-chevron-down"></i>';return e(this).html(t),o.toggle(),e(this).toggleClass("active"),!1}),e("a.sidr-class-toggle-sidr-close").click(function(){return e.sidr("close","sidr-main"),!1});var c=e("a#site-scroll-top");s.scroll(function(){e(this).scrollTop()>100?c.fadeIn():c.fadeOut()}),c.on("click",function(){return e("html, body").animate({scrollTop:0},400),!1}),e(".single li.comment-scroll a").click(function(o){o.preventDefault(),e("html,body").animate({scrollTop:e(this.hash).offset().top-180},"normal")}),wpexLocalize.lightboxArrows="1"===wpexLocalize.lightboxArrows?!0:!1,wpexLocalize.lightboxThumbnails="1"===wpexLocalize.lightboxThumbnails?!0:!1,wpexLocalize.lightboxFullScreen="1"===wpexLocalize.lightboxFullScreen?!0:!1,wpexLocalize.lightboxMouseWheel="1"===wpexLocalize.lightboxMouseWheel?!0:!1,wpexLocalize.lightboxTitles="1"===wpexLocalize.lightboxTitles?!0:!1,e(".wpex-lightbox, .wpb_single_image.image-lightbox a").each(function(){e(this).iLightBox({skin:wpexLocalize.LightboxSkin,controls:{fullscreen:wpexLocalize.lightboxFullScreen}})}),e(".wpex-lightbox-video, .wpb_single_image.video-lightbox a, .wpex-lightbox-autodetect, .wpex-lightbox-autodetect a").iLightBox({skin:wpexLocalize.LightboxSkin,path:"horizontal",show:{title:wpexLocalize.lightboxTitles},controls:{fullscreen:wpexLocalize.lightboxFullScreen,mousewheel:wpexLocalize.lightboxMouseWheel},smartRecognition:!0}),e(".wpex-gallery-lightbox, .vcex-gallery-lightbox").each(function(){e(this).find("a").iLightBox({skin:wpexLocalize.lightboxSkin,path:"horizontal",show:{title:wpexLocalize.lightboxTitles},controls:{arrows:wpexLocalize.lightboxArrows,thumbnail:wpexLocalize.lightboxThumbnails,fullscreen:wpexLocalize.lightboxFullScreen,mousewheel:wpexLocalize.lightboxMouseWheel}})}),e(".wpex-lightbox-gallery").on(n?"touchstart":"click",function(o){o.preventDefault();var t=e(this).data("gallery").split(",");t&&e.iLightBox(t,{skin:wpexLocalize.lightboxSkin,path:"horizontal",show:{title:wpexLocalize.lightboxTitles},controls:{arrows:wpexLocalize.lightboxArrows,thumbnail:wpexLocalize.lightboxThumbnails,fullscreen:wpexLocalize.lightboxFullScreen,mousewheel:wpexLocalize.lightboxMouseWheel}})}),e("a.tooltip-left").tipsy({fade:!0,gravity:"e"}),e("a.tooltip-right").tipsy({fade:!0,gravity:"w"}),e("a.tooltip-up").tipsy({fade:!0,gravity:"s"}),e("a.tooltip-down").tipsy({fade:!0,gravity:"n"}),e(".woocommerce-ordering .orderby, #dropdown_product_cat, .widget_categories select, .widget_archive select, #bbp_stick_topic_select, #bbp_topic_status_select, #bbp_destination_topic").customSelect({customClass:"theme-select"}),e(".social-share-buttons.style-counter").width()&&Socialite.load(),e("a.toggle-bar-btn.fade-toggle").on(n?"touchstart":"click",function(){return e(this).find(".fa").toggleClass("fa-plus fa-minus"),e("#toggle-bar-wrap").toggleClass("active-bar"),!1}),e("li.local-scroll a").click(function(){var o=e(this.hash);if(e("body").hasClass("shrink-fixed-header"))var t="60";else if(e("#site-header").hasClass("fixed-scroll"))var t=e("#site-header").outerHeight();else var t="";return e(o).length&&(e(".main-navigation li").removeClass("current-menu-item"),e(this).parent("li").addClass("current-menu-item"),e("html,body").stop(!0,!0).animate({scrollTop:o.offset().top-t},1e3)),!1}),e(".local-scroll-link").click(function(){var o=e(this.hash);if(e("body").hasClass("shrink-fixed-header"))var t="60";else if(e("#site-header").hasClass("fixed-scroll"))var t=e("#site-header").outerHeight();else var t="";return e(o).length&&e("html,body").stop(!0,!0).animate({scrollTop:o.offset().top-t},1e3),!1}),e("body.single div.entry-summary a.woocommerce-review-link").click(function(){var o=e(this.hash);if(e("body").hasClass("shrink-fixed-header"))var t="60";else if(e("#site-header").hasClass("fixed-scroll"))var t=e("#site-header").outerHeight();else var t="";return e(o).length&&e("html,body").stop(!0,!0).animate({scrollTop:o.offset().top-t-30},1e3),!1}),e(".vcex-skillbar").each(function(){e(this).find(".vcex-skillbar-bar").animate({width:e(this).attr("data-percent")},800)}),e(".vcex-animated-milestone").each(function(){e(this).appear(function(){e(this).find(".vcex-milestone-time").countTo()},{accX:0,accY:0})}),e("a.wpex-data-hover, .wpex-data-hover a").hover(function(){"undefined"!=typeof e(this).attr("data-hover-background")&&e(this).css({background:e(this).attr("data-hover-background")}),"undefined"!=typeof e(this).attr("data-hover-color")&&e(this).css({color:e(this).attr("data-hover-color")})},function(){"undefined"!=typeof e(this).attr("data-original-background")&&e(this).css({background:e(this).attr("data-original-background")}),"undefined"!=typeof e(this).attr("data-original-color")&&e(this).css({color:e(this).attr("data-original-color")})}),e("#wrap").imagesLoaded(function(){o(),t(),a(),i(),r();var l=e.browser.msie&&8===+e.browser.version;l?document.body.onresize=function(){o(),a(),i(),r()}:(e(window).resize(function(){o(),a(),i(),r()}),window.addEventListener("orientationchange",function(){o(),a(),i(),r()})),e(".fade-in-image").addClass("no-opacity"),e("div.vcex-parallax-div").each(function(){e(this).scrolly2().trigger("scroll")}),e(".equal-height-column, .blog-grid div.blog-entry-inner, .match-height-row .match-height-content, .match-height-feature-row .match-height-feature").matchHeight(),e("body").hasClass(".is_mobile")||e(".style-parallax, .row-with-parallax .vcex-background-parallax").each(function(){var o=e(this);s=e(window),e(window).scroll(function(){var e=-(s.scrollTop()/"8"),t="50% "+e+"px";o.css({backgroundPosition:t})})}
1),e(".vcex-caroufredsel-wrap .vcex-caroufredsel-prev,.vcex-caroufredsel-wrap .vcex-caroufredsel-next").show(),e(".vcex-flexslider, .vcex-galleryslider").each(function(){var o=e(this),t=o.data("slideshow"),a=o.data("animation"),i=o.data("randomize"),r=o.data("direction"),s=o.data("slideshow-speed"),l=o.data("animation-speed"),n=o.data("direction-nav"),c=o.data("pause"),h=o.data("smooth-height"),d=o.data("control-nav");o.flexslider({slideshow:t,animation:a,randomize:i,direction:r,slideshowSpeed:s,animationSpeed:l,directionNav:n,pauseOnHover:c,smoothHeight:h,controlNav:d,prevText:'<i class=fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',useCSS:!1})}),e(".gallery-format-post-slider").flexslider({animation:"fade",animationSpeed:500,slideshow:!0,smoothHeight:!1,directionNav:!0,controlNav:"thumbnails",prevText:'<span class="fa fa-chevron-left"></span>',nextText:'<span class="fa fa-chevron-right"></span>',useCSS:!1}),e(".woocommerce-single-product-slider").flexslider({animation:"fade",animationSpeed:500,slideshow:!1,smoothHeight:!0,directionNav:!1,controlNav:"thumbnails",controlsContainer:".woocommerce-single-product-slider-wrap",useCSS:!1}),e(".woo-product-entry-slider").each(function(){var o=e(this);e(this).flexslider({animation:"fade",slideshow:!1,randomize:!1,controlNav:!0,directionNav:!1,smoothHeight:!1,prevText:'<span class="fa fa-chevron-left"></span>',nextText:'<span class="fa fa-chevron-right"></span>',useCSS:!1,start:function(e){o.click(function(o){o.preventDefault(),e.flexAnimate(e.getTarget("next"))})}})})})}),s.load(function(){function o(){var o=location.hash;if(-1!=o.indexOf("localscroll-")){var t=o.replace("localscroll-","");if(e(t).length){if(e("body").hasClass("shrink-fixed-header"))var a="60";else if(e("#site-header").hasClass("fixed-scroll"))var a=e("#site-header").outerHeight();else var a="";e("html,body").animate({scrollTop:e(t).offset().top-a},1e3)}}}l>=960&&(e("#site-header.fixed-scroll").sticky({topSpacing:0}),e(".fixed-nav").sticky({topSpacing:0})),window.setTimeout(o,500),e(window).on("hashchange",o),e("body").hasClass("footer-has-reveal")&&e("body.footer-has-reveal #main").css({"margin-bottom":e(".footer-reveal").outerHeight()})})}(jQuery);;document.documentElement.className+=' js_active ';document.documentElement.className+='ontouchstart'in document.documentElement?' vc_mobile ':' vc_desktop ';(function(){var prefix=['-webkit-','-o-','-moz-','-ms-',""];for(var i in prefix){if(prefix[i]+'transform'in document.documentElement.style)document.documentElement.className+=" vc_transform ";}})();jQuery(window).load(function(){});var vc_js=function(){vc_twitterBehaviour();vc_toggleBehaviour();vc_tabsBehaviour();vc_accordionBehaviour();vc_teaserGrid();vc_carouselBehaviour();vc_slidersBehaviour();vc_prettyPhoto();vc_googleplus();vc_pinterest();vc_progress_bar();vc_plugin_flexslider();vc_google_fonts();window.setTimeout(vc_waypoints,1500);};jQuery(document).ready(function($){window.vc_js();});if(typeof window['vc_plugin_flexslider']!=='function'){function vc_plugin_flexslider($parent){var $slider=$parent?$parent.find('.wpb_flexslider'):jQuery('.wpb_flexslider');$slider.each(function(){var this_element=jQuery(this);var sliderSpeed=800,sliderTimeout=parseInt(this_element.attr('data-interval'))*1000,sliderFx=this_element.attr('data-flex_fx'),slideshow=true;if(sliderTimeout==0)slideshow=false;this_element.is(':visible')&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:sliderSpeed,smoothHeight:true});});}} 2if(typeof window['vc_twitterBehaviour']!=='function'){function vc_twitterBehaviour(){jQuery('.wpb_twitter_widget .tweets').each(function(index){var this_element=jQuery(this),tw_name=this_element.attr('data-tw_name');tw_count=this_element.attr('data-tw_count');this_element.tweet({username:tw_name,join_text:"auto",avatar_size:0,count:tw_count,template:"{avatar}{join}{text}{time}",auto_join_text_default:"",auto_join_text_ed:"",auto_join_text_ing:"",auto_join_text_reply:"",auto_join_text_url:"",loading_text:'<span class="loading_tweets">loading tweets...</span>'});});}} 3if(typeof window['vc_googleplus']!=='function'){function vc_googleplus(){if(jQuery('.wpb_googleplus').length>0){(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='https://apis.google.com/js/plusone.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();}}} 4if(typeof window['vc_pinterest']!=='function'){function vc_pinterest(){if(jQuery('.wpb_pinterest').length>0){(function(){var po=document.createElement('script');po.type='text/javascript';po.async=true;po.src='http://assets.pinterest.com/js/pinit.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(po,s);})();}}} 5if(typeof window['vc_progress_bar']!=='function'){function vc_progress_bar(){if(typeof jQuery.fn.waypoint!=='undefined'){jQuery('.vc_progress_bar').waypoint(function(){jQuery(this).find('.vc_single_bar').each(function(index){var $this=jQuery(this),bar=$this.find('.vc_bar'),val=bar.data('percentage-value');setTimeout(function(){bar.css({"width":val+'%'});},index*200);});},{offset:'85%'});}}} 6if(typeof window['vc_waypoints']!=='function'){function vc_waypoints(){if(typeof jQuery.fn.waypoint!=='undefined'){jQuery('.wpb_animate_when_almost_visible:not(.wpb_start_animation)').waypoint(function(){jQuery(this).addClass('wpb_start_animation');},{offset:'85%'});}}} 7if(typeof window['vc_toggleBehaviour']!=='function'){function vc_toggleBehaviour(){jQuery(".wpb_toggle").unbind('click').click(function(e){if(jQuery(this).next().is(':animated')){return false;} 8if(jQuery(this).hasClass('wpb_toggle_title_active')){jQuery(this).removeClass('wpb_toggle_title_active').next().slideUp(500);}else{jQuery(this).addClass('wpb_toggle_title_active').next().slideDown(500);}});
8jQuery('.wpb_toggle_content').each(function(index){if(jQuery(this).next().is('h4.wpb_toggle')==false){jQuery('<div class="last_toggle_el_margin"></div>').insertAfter(this);}});}} 9if(typeof window['vc_tabsBehaviour']!=='function'){function vc_tabsBehaviour($tab){jQuery(function($){$(document.body).off('click.preview','a')});var $call=$tab||jQuery('.wpb_tabs, .wpb_tour'),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split('.'):'1.10',old_version=parseInt(ver[0])==1&&parseInt(ver[1])<9;$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];$tabs=jQuery(this).find('.wpb_tour_tabs_wrapper').tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui);},beforeActivate:function(event,ui){ui.newPanel.index()!==1&&ui.newPanel.find('.vc_pie_chart:not(.vc_ready)');},activate:function(event,ui){wpb_prepare_tab_content(event,ui);}}).tabs('rotate',interval*1000);jQuery(this).find('.wpb_tab').each(function(){tabs_array.push(this.id);});jQuery(this).find('.wpb_tabs_nav a').click(function(e){e.preventDefault();if(jQuery.inArray(jQuery(this).attr('href'),tabs_array)){if(old_version){$tabs.tabs("select",jQuery(this).attr('href'));}else{$tabs.tabs("option","active",jQuery(jQuery(this).attr('href')).index()-1);} 10return false;}});jQuery(this).find('.wpb_prev_slide a, .wpb_next_slide a').click(function(e){e.preventDefault();if(old_version){var index=$tabs.tabs('option','selected');if(jQuery(this).parent().hasClass('wpb_next_slide')){index++;} 11else{index--;} 12if(index<0){index=$tabs.tabs("length")-1;} 13else if(index>=$tabs.tabs("length")){index=0;} 14$tabs.tabs("select",index);}else{var index=$tabs.tabs("option","active"),length=$tabs.find('.wpb_tab').length;if(jQuery(this).parent().hasClass('wpb_next_slide')){index=(index+1)>=length?0:index+1;}else{index=index-1<0?length-1:index-1;} 15$tabs.tabs("option","active",index);}});});}} 16if(typeof window['vc_accordionBehaviour']!=='function'){function vc_accordionBehaviour(){jQuery('.wpb_accordion').each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),active_tab=!isNaN(jQuery(this).data('active-tab'))&&parseInt(jQuery(this).data('active-tab'))>0?parseInt(jQuery(this).data('active-tab'))-1:false,collapsible=active_tab===false||jQuery(this).data('collapsible')==='yes';$tabs=jQuery(this).find('.wpb_accordion_wrapper').accordion({header:"> div > h3",autoHeight:false,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:true,activate:vc_accordionActivate,change:function(event,ui){if(jQuery.fn.isotope!=undefined){ui.newContent.find('.isotope').isotope("layout");} 17vc_carouselBehaviour(ui.newPanel);}});});}} 18if(typeof window['vc_teaserGrid']!=='function'){function vc_teaserGrid(){var layout_modes={fitrows:'fitRows',masonry:'masonry'} 19jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function(){var $container=jQuery(this);var $thumbs=$container.find('.wpb_thumbnails');var layout_mode=$thumbs.attr('data-layout-mode');$thumbs.isotope({itemSelector:'.isotope-item',layoutMode:(layout_modes[layout_mode]==undefined?'fitRows':layout_modes[layout_mode])});$container.find('.categories_filter a').data('isotope',$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data('isotope');jQuery(this).parent().parent().find('.active').removeClass('active');jQuery(this).parent().addClass('active');$thumbs.isotope({filter:jQuery(this).attr('data-filter')});});jQuery(window).bind('load resize',function(){$thumbs.isotope("layout");});});}} 20if(typeof window['vc_carouselBehaviour']!=='function'){function vc_carouselBehaviour($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if($this.data('carousel_enabled')!==true&&$this.is(':visible')){$this.data('carousel_enabled',true);var carousel_width=jQuery(this).width(),visible_count=getColumnsCount(jQuery(this)),carousel_speed=500;if(jQuery(this).hasClass('columns_count_1')){carousel_speed=900;} 21var carousele_li=jQuery(this).find('.wpb_thumbnails-fluid li');carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});jQuery(this).find('.wpb_wrapper:eq(0)').jCarouselLite({btnNext:jQuery(this).find('.next'),btnPrev:jQuery(this).find('.prev'),visible:visible_count,speed:carousel_speed}).width('100%');var fluid_ul=jQuery(this).find('ul.wpb_thumbnails-fluid');fluid_ul.width(fluid_ul.width()+300);jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName();if(before_resize!=screen_size){window.setTimeout('location.reload()',20);}}
21);}});if(window.Swiper!==undefined){jQuery('.swiper-container').each(function(){var $this=jQuery(this),my_swiper,max_slide_size=0,options=jQuery(this).data('settings');if(options.mode==='vertical'){$this.find('.swiper-slide').each(function(){var height=jQuery(this).outerHeight(true);if(height>max_slide_size)max_slide_size=height;});$this.height(max_slide_size);$this.css('overflow','hidden');} 22jQuery(window).resize(function(){$this.find('.swiper-slide').each(function(){var height=jQuery(this).outerHeight(true);if(height>max_slide_size)max_slide_size=height;});$this.height(max_slide_size);});my_swiper=jQuery(this).swiper(jQuery.extend(options,{onFirstInit:function(swiper){if(swiper.slides.length<2){$this.find('.vc_arrow-left,.vc_arrow-right').hide();}else if(swiper.activeIndex===0&&swiper.params.loop!==true){$this.find('.vc_arrow-left').hide();}else{$this.find('.vc_arrow-left').show();}},onSlideChangeStart:function(swiper){if(swiper.slides.length>1&&swiper.params.loop!==true){if(swiper.activeIndex===0){$this.find('.vc_arrow-left').hide();}else{$this.find('.vc_arrow-left').show();} 23if(swiper.slides.length-1===swiper.activeIndex){$this.find('.vc_arrow-right').hide();}else{$this.find('.vc_arrow-right').show();}}}}));$this.find('.vc_arrow-left').click(function(e){e.preventDefault();my_swiper.swipePrev();});$this.find('.vc_arrow-right').click(function(e){e.preventDefault();my_swiper.swipeNext();});my_swiper.reInit();});}}} 24if(typeof window['vc_slidersBehaviour']!=='function'){function vc_slidersBehaviour(){jQuery('.wpb_gallery_slides').each(function(index){var this_element=jQuery(this);var ss_count=0;if(this_element.hasClass('wpb_slider_nivo')){var sliderSpeed=800,sliderTimeout=this_element.attr('data-interval')*1000;if(sliderTimeout==0)sliderTimeout=9999999999;this_element.find('.nivoSlider').nivoSlider({effect:'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse',slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,keyboardNav:false,pauseOnHover:true,manualAdvance:false,prevText:'Prev',nextText:'Next'});} 25else if(this_element.hasClass('wpb_flexslider')&&1==2){} 26else if(this_element.hasClass('wpb_image_grid')){var isotope=this_element.find('.wpb_image_grid_ul');isotope.isotope({itemSelector:'.isotope-item',layoutMode:'fitRows'});jQuery(window).load(function(){isotope.isotope("layout");});}});}} 27if(typeof window['vc_prettyPhoto']!=='function'){function vc_prettyPhoto(){try{jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:'normal',padding:15,opacity:0.7,showTitle:true,allowresize:true,counter_separator_label:'/',hideflash:false,deeplinking:false,modal:false,callback:function(){var url=location.href;var hashtag=(url.indexOf('#!prettyPhoto'))?true:false;if(hashtag)location.hash="!";},social_tools:''});}catch(err){}}} 28if(typeof window['vc_google_fonts']!=='function'){function vc_google_fonts(){return;}} 29function getColumnsCount(el){var find=false,i=1;while(find==false){if(el.hasClass('columns_count_'+i)){find=true;return i;} 30i++;}} 31var screen_size=getSizeName();function getSizeName(){var screen_size='',screen_w=jQuery(window).width();if(screen_w>1170){screen_size="desktop_wide";} 32else if(screen_w>960&&screen_w<1169){screen_size="desktop";} 33else if(screen_w>768&&screen_w<959){screen_size="tablet";} 34else if(screen_w>300&&screen_w<767){screen_size="mobile";} 35else if(screen_w<300){screen_size="mobile_portrait";} 36return screen_size;} 37function loadScript(url,$obj,callback){var script=document.createElement("script") 38script.type="text/javascript";if(script.readyState){script.onreadystatechange=function(){if(script.readyState=="loaded"||script.readyState=="complete"){script.onreadystatechange=null;callback();}};}else{} 39script.src=url;$obj.get(0).appendChild(script);} 40function wpb_prepare_tab_content(event,ui){var panel=ui.panel||ui.newPanel,$pie_charts=panel.find('.vc_pie_chart:not(.vc_ready)'),$carousel=panel.find('[data-ride="vc_carousel"]'),$ui_panel,$google_maps;vc_carouselBehaviour();vc_plugin_flexslider(panel);$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat();$carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction');$ui_panel=panel.find('.isotope');$google_maps=panel.find('.wpb_gmaps_widget');if($ui_panel.length>0){$ui_panel.isotope("layout");} 41if($google_maps.length&&!$google_maps.is('.map_ready')){var $frame=$google_maps.find('iframe');$frame.attr('src',$frame.attr('src'));$google_maps.addClass('map_ready');} 42if(panel.parents('.isotope').length){panel.parents('.isotope').each(function(){jQuery(this).isotope("layout");});}} 43var vc_accordionActivate=function(event,ui){var $pie_charts=ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');
43if(jQuery.fn.isotope!=undefined){ui.newPanel.find('.isotope').isotope("layout");} 44vc_carouselBehaviour(ui.newPanel);vc_plugin_flexslider(ui.newPanel);$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat();$carousel.length&&jQuery.fn.carousel&&$carousel.carousel('resizeAction');if(ui.newPanel.parents('.isotope').length){ui.newPanel.parents('.isotope').each(function(){jQuery(this).isotope("layout");});}}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.