"use strict"; //----------------------------------------------------- // Initiate Slider (flexslider) //----------------------------------------------------- function themo_start_flex_slider(flex_selector,themo_autoplay,themo_flex_animation, themo_flex_easing, themo_flex_animationloop, themo_flex_smoothheight, themo_flex_slideshowspeed, themo_flex_animationspeed, themo_flex_randomize, themo_flex_pauseonhover, themo_flex_touch, themo_flex_directionnav,themo_flex_controlNav){ // SETUP FLEXSLIDER OPTIONS // Remove ajax_loader.gif from Formidable Plugin jQuery("img.frm_ajax_loading").remove(); jQuery(flex_selector).flexslider({ slideshow: themo_autoplay, animation: themo_flex_animation, smoothHeight: themo_flex_smoothheight, easing: themo_flex_easing, animationLoop: themo_flex_animationloop, slideshowSpeed: themo_flex_slideshowspeed, animationSpeed: themo_flex_animationspeed, randomize: themo_flex_randomize, pauseOnHover: themo_flex_pauseonhover, touch: themo_flex_touch, directionNav: themo_flex_directionnav, controlNav: themo_flex_controlNav, //directionNav: false, prevText: '', nextText: '', start: function (slider) { //slider.removeClass( "flexpreloader"); jQuery('body').addClass('loaded'); }, after: function (slider) { }, before: function () { } }); } //----------------------------------------------------- // Active Lightbox //----------------------------------------------------- function themo_active_lightbox(){ // delegate calls to data-toggle="lightbox" jQuery(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) { event.preventDefault(); return jQuery(this).ekkoLightbox({ always_show_close: true, gallery_parent_selector: '.gallery', right_arrow_class: '.flex-next', left_arrow_class: '.flex-prev' }); }); } jQuery( function ( $ ) { // fix pricing columns themo_adjust_pricing_table_height(); // start isotope themo_init_isotope(); // Add class to section if parallax enabled and we detect an IOS or Andriod device . if (navigator.userAgent.match(/(iPod|iPhone|iPad)/) || (navigator.userAgent.match(/(Android)/))) { //console.log('IOS or Android'); $(".th-parallax").addClass( "th-mobile" ); } //----------------------------------------------------- // Start isotope / for masonry blog and tours filtering //----------------------------------------------------- function themo_init_isotope() { // Equalize Heights $.fn.equalizeHeights = function() { // construct an array that contains the height of every
element var two = $(this).map(function(i, e) { return $(e).height(); }); return this.height( // set the height of element
element to... Math.max.apply( // the largest value in... this,two.get() // the array of height values ) ); // ...and finally, return the original jQuery object to enable chaining }; // Room Grid / Portfolio var $container = $('.th-portfolio-row').not('.elementor-element-edit-mode .th-portfolio-row'); // init var $port_grid = $container.isotope({ // options itemSelector: '.th-portfolio-item', layoutMode: 'fitRows' /*itemSelector: '.th-portfolio-item', masonry: { //columnWidth: 100 }*/ }); // layout Isotope after each image loads $port_grid.imagesLoaded().progress( function() { $port_grid.isotope('layout'); }); var $th_cardbody = $('.th-portfolio-row .th-port-card-body'); // Equalize Card Body $($th_cardbody).equalizeHeights(); // filter items on click handler $('.th-portfolio-filters').on( 'click', 'a', function(e) { e.preventDefault(); // Get Data-filter value var filterValue = $(this).attr('data-filter'); // Get Parent Class if (filterValue == '*') { var parent_class = $(this).closest('.th-portfolio').attr("id"); } else { var parent_class = $(filterValue).closest('.th-portfolio').attr("id"); } // Remove .current class from all a links inside .th-portfolio-filters $('#'+parent_class+' .th-portfolio-filters a').removeClass( "current" ); // Add .current class to current filter link. $(this).addClass( "current" ); // Get the container element to initialize isotope. var $thiscontainer = $('#'+parent_class+' .th-portfolio-row'); $thiscontainer.isotope({ filter: filterValue }); }); // Masonry Blog var $bloggrid = $('.mas-blog').isotope({ itemSelector: '.mas-blog-post', transitionDuration: '0.2s', percentPosition: true, originLeft: true, masonry: { columnWidth: '.mas-blog-post-sizer' //gutter: 30 } }); // layout Isotope after each image loads $bloggrid.imagesLoaded().progress( function() { $bloggrid.isotope('layout'); $bloggrid.on('layoutComplete', function (event, laidOutItems) { //console.log('layoutComplete with ' + laidOutItems.length + ' items'); }); }); } //----------------------------------------------------- // Adjust Pricing Table Height //----------------------------------------------------- function themo_adjust_pricing_table_height(){ var $tallestCol; // For each pricing-table element $('.th-pricing-table').each(function(){ $tallestCol = 0; // Find the plan name $(this).find('> div .th-pricing-title').each(function(){ ($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol; }); // Safety net increase pricing tables height couldn't be determined if($tallestCol == 0) $tallestCol = 'auto'; // set even height $(this).find('> div .th-pricing-title').css('height',$tallestCol); // Button Wrap $(this).find('> div .th-btn-wrap').each(function(){ ($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol; }); // Safety net incase pricing tables height couldn't be determined if($tallestCol == 0) $tallestCol = 'auto'; // Set even height $(this).find('> div .th-btn-wrap').css('height',$tallestCol); // FEATURES UL $(this).find('> div .th-pricing-features').each(function(){ ($(this).height() > $tallestCol) ? $tallestCol = $(this).height() : $tallestCol = $tallestCol; }); // Safety net incase pricing tables height couldn't be determined if($tallestCol == 0) $tallestCol = 'auto'; // Set even height $(this).find('> div .th-pricing-features').css('height',$tallestCol); // END FEATURES UL }); } // Intinerary Toggles $( '.th-itinerary' ).find( '.th-itin-single' ).each( function() { var $$ = $( this ), $title = $$.find( '.th-itin-title' ), $content = $$.find( '.th-itin-content' ); $title.on( 'click', function() { if ( $$.hasClass( 'th-itin-active' ) ) { $content.slideUp('fast', function() { $$.addClass( 'th-itin-inactive' ); $$.removeClass( 'th-itin-active' ); }); } else { $content.slideDown('fast', function() { $$.addClass( 'th-itin-active' ); $$.removeClass( 'th-itin-inactive' ); }); } } ); } ); // tooltips $('a[rel=tooltip]').tooltip(); // popovers $("a[rel=popover]").popover(); } ); //====================================================================== // On Window Load - executes when complete page is fully loaded, including all frames, objects and images //====================================================================== jQuery(window).on('load',function ($) { "use strict"; // Initiate Lightbox themo_active_lightbox(); }); jQuery(window).on('elementor/frontend/init', function () { elementorFrontend.hooks.addAction( 'frontend/element_ready/image-carousel.default', function( $scope ) { //var $carousel_wrapper = $scope.find( '.elementor-image-carousel-wrapper' ); //$carousel_wrapper.parents("div.elementor-widget-image-carousel").css("border",'red solid 5px'); //var $slick_div = $carousel_wrapper.parents("div.elementor-widget-image-carousel"); //$carousel_wrapper.parents("div.elementor-widget-image-carousel").data( "settingsNEW", "HELLO" ); //if ( $scope.find( '.elementor-image-carousel-wrapper' ) ){ //} //$scope.find("[data-element_type='image-carousel.default']").data( "settingsNEW", { slides_to_show: "10"}) ; //var $image_carousel_div = $scope.find( "elementor-widget-image-carousel" ); // console.log($image_carousel_div.id); //if ( $scope.find( ".elementor-widget-image-carousel" ) ){ //console.log('FOUND IT'); //console.log($scope.find( ".elementor-widget-image-carousel" )); //$scope.find( ".elementor-widget-image-carousel" ).data( "settingsNEW", { slides_to_show: "10"} ); //} //console.log('HELLO'); } ); }) //----------------------------------------------------- // Initialize Image Carousel Timeline Slick Slider //----------------------------------------------------- jQuery(document).ready(function ($) { if (typeof jQuery.fn.slick === 'function' ) { $('.th-image-carousel-timeline .elementor-image-carousel').slick(); } // Reinitialize slick when "image carousel timeline" element changes. if (typeof elementorFrontend !== 'undefined' && typeof elementorFrontend.hooks !== 'undefined') { elementorFrontend.hooks.addAction('frontend/element_ready/themo-image-carousel-timeline.default', function ($scope) { var $carousel = $scope.find('.elementor-image-carousel'); // Check if slick is not already initialized on the same element. if (typeof jQuery.fn.slick === 'function' && ! $carousel.hasClass('slick-initialized')) { $carousel.slick(); } }); } });; (function( $ ) { 'use strict'; var html = document.querySelector( 'html' ); if ( wpa.lang ) { var lang = html.getAttribute( 'lang' ); if ( ! lang ) { $('html').attr( 'lang', wpa.lang ); if ( wpa.errors ) { console.log( 'HTML language set by WP Accessibility' ); } } } if ( wpa.dir ) { var dir = html.getAttribute( 'dir' ); if ( ! dir ) { $('html').attr( 'dir', wpa.dir ); if ( wpa.errors ) { console.log( 'HTML language direction set by WP Accessibility' ); } } } var viewport = document.querySelector( 'meta[name="viewport"]' ); if ( viewport ) { var conditionsBefore = viewport.getAttribute( 'content' ); var conditionsAfter = viewport.getAttribute( 'content' ); if ( conditionsBefore.search(/user-scalable=no/g) ) { conditionsAfter = conditionsBefore.replace( 'user-scalable=no', 'user-scalable=yes' ); viewport.setAttribute( 'content', conditionsAfter ); if ( wpa.errors && conditionsAfter != conditionsBefore ) { console.log( 'Viewport made scalable by WP Accessibility' ); } } if ( conditionsBefore.search(/maximum-scale=1/g) ) { conditionsAfter = conditionsBefore.replace( 'maximum-scale=1', 'maximum-scale=5' ); conditionsAfter = conditionsAfter.replace( 'maximum-scale=0', 'maximum-scale=5' ); viewport.setAttribute( 'content', conditionsAfter ); if ( wpa.errors && conditionsAfter != conditionsBefore ) { console.log( 'Viewport maximum scale set by WP Accessibility' ); } } } if ( wpa.skiplinks.enabled ) { $('body').prepend( wpa.skiplinks.output ); if ( wpa.errors ) { console.log( 'Skip links added by WP Accessibility' ); } } if ( wpa.current ) { $(function() { $( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'page' ); }); if ( wpa.errors ) { console.log( 'ARIA current added by WP Accessibility' ); } } if ( wpa.labels ) { var wpa_names = [ 's', 'author', 'email', 'url', 'comment' ]; $.each( wpa_names, function( index, value ) { if ( value == 'comment' ) { var field = $( 'textarea[name=' + value + ']' ); } else { var field = $( 'input[name=' + value + ']' ).not( '#adminbar-search' ); } if ( 0 !== field.length ) { var field_id = field.attr( 'id' ); var implicit = $( field ).parent( 'label' ); var aria = $( field ).attr( 'aria-label' ); var ariaId = $( field ).attr( 'aria-labelledby' ); var ariaTarget = {}; if ( ariaId ) { ariaTarget = $( '#' + ariaId ); } var hasAria = ( '' == aria || 'undefined' == typeof( aria ) ) ? false : true; var hasAriaId = ( '' == ariaId || 'undefined' == typeof( ariaId ) ) ? false : true; // Add label if aria label empty, aria labelledby empty, or aria reference ID does not exist. if ( ( ! hasAria && ! hasAriaId ) || ( ! hasAria && ( hasAriaId && 0 === ariaTarget.length ) ) ) { if ( field_id ) { var label = $( 'label[for=' + field_id + ']' ); if ( !label.length && !implicit.length ) { field.before( "" ); if ( wpa.errors ) { console.log( 'Explicit label on ' + wpa.wpalabels[value] + 'added by WP Accessibility' ); } } } else { if ( !implicit.length ) { field.attr( 'id', 'wpa_label_' + value ).before( "" ); if ( wpa.errors ) { console.log( 'Implicit label on ' + wpa.wpalabels[value] + 'added by WP Accessibility' ); } } } } } }); } if ( wpa.titles ) { var images = 0; var controls = 0; var fields = 0; const els = document.querySelectorAll( 'img, a, input, textarea, select, button' ); els.forEach((el) => { var title = el.getAttribute( 'title' ); if ( title && '' !== title ) { switch ( el.tagName ) { case 'IMG': // If image has alt, remove title. If not, set title as alt. var alt = el.getAttribute( 'alt' ); if ( ! alt || '' === alt ) { el.setAttribute( 'alt', title ); el.removeAttribute( 'title' ); } else { el.removeAttribute( 'title' ); } images++; break; case 'A': case 'BUTTON': // If link or button has contained text or an img with alt, remove title. Otherwise, set title as aria-label unless element already has aria-label. var linkText = wpaElementText(el); if ( ! linkText || '' === linkText ) { var ariaLabel = el.getAttribute( 'aria-label' ); if ( ! ariaLabel || '' === ariaLabel ) { el.setAttribute( 'aria-label', title ); el.removeAttribute( 'title' ); } } else { el.removeAttribute( 'title' ); } controls++; break; case 'INPUT': case 'SELECT': case 'TEXTAREA': // If input field has an aria-label, aria-labelledby, associated label, or wrapping label, remove title. Else, add title as aria-label. var ariaLabel = el.getAttribute( 'aria-label' ); var ariaLabelled = el.getAttribute( 'aria-labelledby' ); var ariaLabeller = ( ariaLabelled ) ? document.getElementById( ariaLabelled ) : false; var labelId = el.getAttribute( 'id' ); var label = ( labelId ) ? document.querySelector( 'label[for="' + labelId + '"]' ) : false; var parentLabel = el.closest( 'label' ); var hasAriaLabel = ( ariaLabel && '' !== ariaLabel ) ? true : false; var hasRealLabel = ( label && '' !== wpaElementText( label ) ) ? true : false; var hasImplicitLabel = ( parentLabel && '' !== wpaElementText( parentLabel ) ) ? true : false; var hasAriaLabelled = ( ariaLabeller && '' !== wpaElementText( arialabeller ) ) ? true : false; if ( hasAriaLabel || hasRealLabel || hasImplicitLabel || hasAriaLabelled ) { // This has a label. el.removeAttribute( 'title' ); } else { el.setAttribute( 'aria-label', title ); el.removeAttribute( 'title' ); } fields++; break; } } }); if ( wpa.errors ) { if ( images > 0 ) { console.log( images + ' title attributes removed from images by WP Accessibility' ); } if ( controls > 0 ) { console.log( controls + ' title attributes removed from links and buttons by WP Accessibility' ); } if ( fields > 0 ) { console.log( fields + ' title attributes removed from input fields by WP Accessibility' ); } } } if ( wpa.target ) { var targeted = $('a:not(.wpa-allow-target)'); var targetRemoved = 0; targeted.each( function() { var target = $( this ).attr( 'target' ); if ( target ) { $( this ).removeAttr( 'target' ); targetRemoved++; } }); if ( targetRemoved > 0 && wpa.errors ) { console.log( targetRemoved + ' target attributes removed from links by WP Accessibility' ); } } if ( wpa.tabindex ) { // Remove tabindex from elements that should be natively focusable. var focusable = $('input,a,select,textarea,button').not('a:not([href])'); var tabRemoved = 0; focusable.each( function() { var tabindex = $( this ).attr( 'tabindex' ); if ( tabindex ) { $( this ).removeAttr('tabindex'); tabRemoved++; } }); if ( tabRemoved > 0 && wpa.errors ) { console.log( tabRemoved + ' tabindex attributes removed from links, buttons and inputs by WP Accessibility' ); } // Add tabindex to elements that appear active but are not natively focusable. var fakeButtons = $('div[role="button"]').not('div[tabindex]' ); var buttonLinks = $('a[role="button"]').not('a[tabindex],a[href]'); fakeButtons.attr( 'tabindex', '0' ).addClass('wpa-focusable'); if ( fakeButtons.length > 0 && wpa.errors ) { console.log( fakeButtons.length + ' tabindex attributes added to divs with the button role by WP Accessibility' ); } buttonLinks.attr( 'tabindex', '0' ).addClass('wpa-focusable'); if ( buttonLinks.length > 0 && wpa.errors ) { console.log( buttonLinks.length + ' tabindex attributes added to anchor elements with the button role and no href value by WP Accessibility' ); } } if ( wpa.underline.enabled ) { // Underline any link not inside a `nav` region. Using JS for this avoids problems with cascade precedence. var originalOutline = $( wpa.underline.target ).css( 'outline-width' ); var originalOffset = $( wpa.underline.target ).css( 'outline-offset' ); var textColor = $( wpa.underline.target ).css( 'color' ); var originalColor = $( wpa.underline.target ).css( 'outline-color' ); $( wpa.underline.target ).not( 'nav ' + wpa.underline.target ).css( 'text-decoration', 'underline' ); $( wpa.underline.target ).on( 'mouseenter', function() { $( this ).css( 'text-decoration', 'none' ); }); $( wpa.underline.target ).on( 'mouseleave', function() { // Reset visible appearance on exit. $( this ).css( 'text-decoration', 'underline' ); }); $( wpa.underline.target ).on( 'focusin', function() { var newOutline = '2px'; if ( originalOutline == '2px' ) { newOutline = '4px'; } // Ensure there's a visible change of appearance on hover or focus. $(this).css( 'outline-width', newOutline ); $(this).css( 'outline-color', textColor ); $(this).css( 'outline-offset', '2px' ); }); $( wpa.underline.target ).on( 'focusout', function() { // Reset visible appearance on exit. $(this).css( 'outline-width', originalOutline ); $(this).css( 'outline-color', originalColor ); $(this).css( 'outline-offset', originalOffset ); }); } }(jQuery)); /** * Check whether an element contains text, including inspecting contained content for image alt attributes or aria-label attributes. * * * @arg el DOM element to check. * * Based on work by Roger Johansson https://www.456bereastreet.com/archive/201105/get_element_text_including_alt_text_for_images_with_javascript/ */ function wpaElementText(el) { var text = ''; // Text node (3) or CDATA node (4) - return its text if ( (el.nodeType === 3) || (el.nodeType === 4) ) { text = el.nodeValue; // If node is an element (1) and an img, input[type=image], or area element, return its alt text } else if ( (el.nodeType === 1) && ( (el.tagName.toLowerCase() == 'img') || (el.tagName.toLowerCase() == 'area') || ((el.tagName.toLowerCase() == 'input') && el.getAttribute('type') && (el.getAttribute('type').toLowerCase() == 'image')) ) ) { text = el.getAttribute('alt') || ''; // Traverse children unless this is a script or style element } else if ( (el.nodeType === 1) && !el.tagName.match(/^(script|style)$/i) ) { var children = el.childNodes; for (var i = 0, l = children.length; i < l; i++) { // If an element has an aria-label, that will override any other contained text. var ariaLabel = el.getAttribute( 'aria-label' ); text += ( ariaLabel ) ? ariaLabel : wpaElementText( children[i] ) + ' '; } } return text; };; if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one(t.support.transition.end,function(){i=!0});return setTimeout(function(){i||t(o).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}()})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.prototype.close=function(e){function i(){s.trigger("closed.bs.alert").remove()}var o=t(this),n=o.attr("data-target");n||(n=(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var s=t(n);e&&e.preventDefault(),s.length||(s=o.hasClass("alert")?o:o.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one(t.support.transition.end,i).emulateTransitionEnd(150):i())};var o=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var o=t(this),n=o.data("bs.alert");n||o.data("bs.alert",n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",s.resetText||o.data("resetText",o[n]()),o[n](s[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=function(i){return this.each(function(){var o=t(this),n=o.data("bs.button"),s="object"==typeof i&&i;n||o.data("bs.button",n=new e(this,s)),"toggle"==i?n.toggle():i&&n.setState(i)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api","[data-toggle^=button]",function(e){var i=t(e.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",t.proxy(this.pause,this)).on("mouseleave",t.proxy(this.cycle,this))};e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},e.prototype.to=function(e){var i=this,o=this.getActiveIndex();return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),n=i||o[e](),s=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!n.length){if(!this.options.wrap)return;n=this.$element.find(".item")[a]()}if(n.hasClass("active"))return this.sliding=!1;var h=t.Event("slide.bs.carousel",{relatedTarget:n[0],direction:r});return this.$element.trigger(h),h.isDefaultPrevented()?void 0:(this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var e=t(l.$indicators.children()[l.getActiveIndex()]);e&&e.addClass("active")})),t.support.transition&&this.$element.hasClass("slide")?(n.addClass(e),n[0].offsetWidth,o.addClass(r),n.addClass(r),o.one(t.support.transition.end,function(){n.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),n.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this)};var i=t.fn.carousel;t.fn.carousel=function(i){return this.each(function(){var o=t(this),n=o.data("bs.carousel"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i),r="string"==typeof i?i:s.slide;n||o.data("bs.carousel",n=new e(this,s)),"number"==typeof i?n.to(i):r?n[r]():s.interval&&n.pause().cycle()})},t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(e){var i,o=t(this),n=t(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")),s=t.extend({},n.data(),o.data()),r=o.attr("data-slide-to");r&&(s.interval=!1),n.carousel(s),(r=o.attr("data-slide-to"))&&n.data("bs.carousel").to(r),e.preventDefault()}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);e.carousel(e.data())})})}(jQuery),function(t){"use strict";var e=function(i,o){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,o),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=t.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var o=i.data("bs.collapse");if(o&&o.transitioning)return;i.collapse("hide"),o||i.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var r=t.camelCase(["scroll",n].join("-"));this.$element.one(t.support.transition.end,t.proxy(s,this)).emulateTransitionEnd(350)[n](this.$element[0][r])}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var o=t(this),n=o.data("bs.collapse"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i);!n&&s.toggle&&"show"==i&&(i=!i),n||o.data("bs.collapse",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(e){var i,o=t(this),n=o.attr("data-target")||e.preventDefault()||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),s=t(n),r=s.data("bs.collapse"),a=r?"toggle":o.data(),l=o.attr("data-parent"),h=l&&t(l);r&&r.transitioning||(h&&h.find('[data-toggle=collapse][data-parent="'+l+'"]').not(o).addClass("collapsed"),o[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),s.collapse(a)})}(jQuery),function(t){"use strict";function e(e){t(o).remove(),t(n).each(function(){var o=i(t(this)),n={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",n)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",n))})}function i(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}var o=".dropdown-backdrop",n="[data-toggle=dropdown]",s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.prototype.toggle=function(o){var n=t(this);if(!n.is(".disabled, :disabled")){var s=i(n),r=s.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t(''}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content")[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var i=t.fn.popover;t.fn.popover=function(i){return this.each(function(){var o=t(this),n=o.data("bs.popover"),s="object"==typeof i&&i;(n||"destroy"!=i)&&(n||o.data("bs.popover",n=new e(this,s)),"string"==typeof i&&n[i]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(i,o){var n,s=t.proxy(this.process,this);this.$element=t(t(i).is("body")?window:i),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",s),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||(n=t(i).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var i=this;this.$body.find(this.selector).map(function(){var o=t(this),n=o.data("target")||o.attr("href"),s=/^#./.test(n)&&t(n);return s&&s.length&&s.is(":visible")&&[[s[e]().top+(!t.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),n]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),o=this.offsets,n=this.targets,s=this.activeTarget;if(e>=i)return s!=(t=n.last()[0])&&this.activate(t);if(s&&e<=o[0])return s!=(t=n[0])&&this.activate(t);for(t=o.length;t--;)s!=n[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each(function(){var o=t(this),n=o.data("bs.scrollspy"),s="object"==typeof i&&i;n||o.data("bs.scrollspy",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=(o=e.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var n=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:n});if(e.trigger(s),!s.isDefaultPrevented()){var r=t(o);this.activate(e.parent("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:n})})}}},e.prototype.activate=function(e,i,o){function n(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),o&&o()}var s=i.find("> .active"),r=o&&t.support.transition&&s.hasClass("fade");r?s.one(t.support.transition.end,n).emulateTransitionEnd(150):n(),s.removeClass("in")};var i=t.fn.tab;t.fn.tab=function(i){return this.each(function(){var o=t(this),n=o.data("bs.tab");n||o.data("bs.tab",n=new e(this)),"string"==typeof i&&n[i]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault(),t(this).tab("show")})}(jQuery),function(t){"use strict";var e=function(i,o){this.options=t.extend({},e.DEFAULTS,o),this.$window=t(window).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=t(document).height(),o=this.$window.scrollTop(),n=this.$element.offset(),s=this.options.offset,r=s.top,a=s.bottom;"top"==this.affixed&&(n.top+=o),"object"!=typeof s&&(a=r=s),"function"==typeof r&&(r=s.top(this.$element)),"function"==typeof a&&(a=s.bottom(this.$element));var l=!(null!=this.unpin&&o+this.unpin<=n.top)&&(null!=a&&n.top+this.$element.height()>=i-a?"bottom":null!=r&&r>=o&&"top");if(this.affixed!==l){this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),d=t.Event(h+".bs.affix");this.$element.trigger(d),d.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:i-a-this.$element.height()}))}}};var i=t.fn.affix;t.fn.affix=function(i){return this.each(function(){var o=t(this),n=o.data("bs.affix"),s="object"==typeof i&&i;n||o.data("bs.affix",n=new e(this,s)),"string"==typeof i&&n[i]()})},t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),e.affix(i)})})}(jQuery),function(){"use strict";var t,e;t=jQuery,(e=function(e,i){var o,n;return this.options=t.extend({title:null,footer:null,remote:null},t.fn.ekkoLightbox.defaults,i||{}),this.$element=t(e),"",this.modal_id=this.options.modal_id?this.options.modal_id:"ekkoLightbox-"+Math.floor(1e3*Math.random()+1),n='",o='",t(document.body).append('"),this.modal=t("#"+this.modal_id),this.modal_dialog=this.modal.find(".modal-dialog").first(),this.modal_content=this.modal.find(".modal-content").first(),this.modal_body=this.modal.find(".modal-body").first(),this.modal_header=this.modal.find(".modal-header").first(),this.modal_footer=this.modal.find(".modal-footer").first(),this.lightbox_container=this.modal_body.find(".ekko-lightbox-container").first(),this.lightbox_body=this.lightbox_container.find("> div:first-child").first(),this.showLoading(),this.modal_arrows=null,this.border={top:parseFloat(this.modal_dialog.css("border-top-width"))+parseFloat(this.modal_content.css("border-top-width"))+parseFloat(this.modal_body.css("border-top-width")),right:parseFloat(this.modal_dialog.css("border-right-width"))+parseFloat(this.modal_content.css("border-right-width"))+parseFloat(this.modal_body.css("border-right-width")),bottom:parseFloat(this.modal_dialog.css("border-bottom-width"))+parseFloat(this.modal_content.css("border-bottom-width"))+parseFloat(this.modal_body.css("border-bottom-width")),left:parseFloat(this.modal_dialog.css("border-left-width"))+parseFloat(this.modal_content.css("border-left-width"))+parseFloat(this.modal_body.css("border-left-width"))},this.padding={top:parseFloat(this.modal_dialog.css("padding-top"))+parseFloat(this.modal_content.css("padding-top"))+parseFloat(this.modal_body.css("padding-top")),right:parseFloat(this.modal_dialog.css("padding-right"))+parseFloat(this.modal_content.css("padding-right"))+parseFloat(this.modal_body.css("padding-right")),bottom:parseFloat(this.modal_dialog.css("padding-bottom"))+parseFloat(this.modal_content.css("padding-bottom"))+parseFloat(this.modal_body.css("padding-bottom")),left:parseFloat(this.modal_dialog.css("padding-left"))+parseFloat(this.modal_content.css("padding-left"))+parseFloat(this.modal_body.css("padding-left"))},this.modal.on("show.bs.modal",this.options.onShow.bind(this)).on("shown.bs.modal",function(t){return function(){return t.modal_shown(),t.options.onShown.call(t)}}(this)).on("hide.bs.modal",this.options.onHide.bind(this)).on("hidden.bs.modal",function(e){return function(){return e.gallery&&t(document).off("keydown.ekkoLightbox"),e.modal.remove(),e.options.onHidden.call(e)}}(this)).modal("show",i),this.modal}).prototype={modal_shown:function(){var e;return this.options.remote?(this.gallery=this.$element.data("gallery"),this.gallery&&("document.body"===this.options.gallery_parent_selector||""===this.options.gallery_parent_selector?this.gallery_items=t(document.body).find('*[data-gallery="'+this.gallery+'"]'):this.gallery_items=this.$element.parents(this.options.gallery_parent_selector).first().find('*[data-gallery="'+this.gallery+'"]'),this.gallery_index=this.gallery_items.index(this.$element),t(document).on("keydown.ekkoLightbox",this.navigate.bind(this)),this.options.directional_arrows&&this.gallery_items.length>1&&(this.lightbox_container.append('
'),this.modal_arrows=this.lightbox_container.find("div.flex-direction-nav").first(),this.lightbox_container.find("a"+this.strip_spaces(this.options.left_arrow_class)).on("click",function(t){return function(e){return e.preventDefault(),t.navigate_left()}}(this)),this.lightbox_container.find("a"+this.strip_spaces(this.options.right_arrow_class)).on("click",function(t){return function(e){return e.preventDefault(),t.navigate_right()}}(this)))),this.options.type?"image"===this.options.type?this.preloadImage(this.options.remote,!0):"youtube"===this.options.type&&(e=this.getYoutubeId(this.options.remote))?this.showYoutubeVideo(e):"vimeo"===this.options.type?this.showVimeoVideo(this.options.remote):"instagram"===this.options.type?this.showInstagramVideo(this.options.remote):"url"===this.options.type?this.loadRemoteContent(this.options.remote):"video"===this.options.type?this.showVideoIframe(this.options.remote):this.error('Could not detect remote target type. Force the type using data-type="image|youtube|vimeo|instagram|url|video"'):this.detectRemoteType(this.options.remote)):this.error("No remote target given")},strip_stops:function(t){return t.replace(/\./g,"")},strip_spaces:function(t){return t.replace(/\s/g,"")},isImage:function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSwf:function(t){return t.match(/\.(swf)((\?|#).*)?$/i)},getYoutubeId:function(t){var e;return!(!(e=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/))||11!==e[2].length)&&e[2]},getVimeoId:function(t){return t.indexOf("vimeo")>0&&t},getInstagramId:function(t){return t.indexOf("instagram")>0&&t},navigate:function(t){if(39===(t=t||window.event).keyCode||37===t.keyCode){if(39===t.keyCode)return this.navigate_right();if(37===t.keyCode)return this.navigate_left()}},navigateTo:function(e){var i,o;return 0>e||e>this.gallery_items.length-1?this:(this.showLoading(),this.gallery_index=e,this.$element=t(this.gallery_items.get(this.gallery_index)),this.updateTitleAndFooter(),o=this.$element.attr("data-remote")||this.$element.attr("href"),this.detectRemoteType(o,this.$element.attr("data-type")||!1),this.gallery_index+1'+this.options.loadingMessage+"
"),this},showYoutubeVideo:function(t){var e,i,o;return i=null!=this.$element.attr("data-norelated")||this.options.no_related?"&rel=0":"",e=(o=this.checkDimensions(this.$element.data("width")||560))/(560/315),this.showVideoIframe("//www.youtube.com/embed/"+t+"?badge=0&autoplay=1&html5=1"+i,o,e)},showVimeoVideo:function(t){var e,i;return e=(i=this.checkDimensions(this.$element.data("width")||560))/(500/281),this.showVideoIframe(t+"?autoplay=1",i,e)},showInstagramVideo:function(t){var e,i;return i=this.checkDimensions(this.$element.data("width")||612),this.resize(i),e=i+80,this.lightbox_body.html(''),this.options.onContentLoaded.call(this),this.modal_arrows?this.modal_arrows.css("display","none"):void 0},showVideoIframe:function(t,e,i){return i=i||e,this.resize(e),this.lightbox_body.html('
'),this.options.onContentLoaded.call(this),this.modal_arrows&&this.modal_arrows.css("display","none"),this},loadRemoteContent:function(e){var i;return i=this.$element.data("width")||560,this.resize(i),this.$element.data("disableExternalCheck")||!1||this.isExternal(e)?(this.lightbox_body.html(''),this.options.onContentLoaded.call(this)):this.lightbox_body.load(e,t.proxy(function(t){return function(){return t.$element.trigger("loaded.bs.modal")}}(this))),this.modal_arrows&&this.modal_arrows.css("display","none"),this},isExternal:function(t){var e;return"string"==typeof(e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/))[1]&&e[1].length>0&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host},error:function(t){return this.lightbox_body.html(t),this},preloadImage:function(e,i){var o;return o=new Image,(null==i||!0===i)&&(o.onload=function(e){return function(){var i;return(i=t("")).attr("src",o.src),i.addClass("img-responsive"),e.lightbox_body.html(i),e.modal_arrows&&e.modal_arrows.css("display","block"),i.load(function(){return e.options.scale_height?e.scaleHeight(o.height,o.width):e.resize(o.width),e.options.onContentLoaded.call(e)})}}(this),o.onerror=function(t){return function(){return t.error("Failed to load image: "+e)}}(this)),o.src=e,o},scaleHeight:function(e,i){var o,n,s,r,a,l;return r=this.modal_header.outerHeight(!0)||0,s=this.modal_footer.outerHeight(!0)||0,this.modal_footer.is(":visible")||(s=0),this.modal_header.is(":visible")||(r=0),o=this.border.top+this.border.bottom+this.padding.top+this.padding.bottom,a=parseFloat(this.modal_dialog.css("margin-top"))+parseFloat(this.modal_dialog.css("margin-bottom")),l=t(window).height()-o-a-r-s,n=Math.min(l/e,1),this.modal_dialog.css("height","auto").css("max-height",l),this.resize(n*i)},resize:function(e){var i;return i=e+this.border.left+this.padding.left+this.padding.right+this.border.right,this.modal_dialog.css("width","auto").css("max-width",i),this.lightbox_container.find("a").css("line-height",function(){return t(this).parent().height()+"px"}),this},checkDimensions:function(t){return t+this.border.left+this.padding.left+this.padding.right+this.border.right>document.body.clientWidth&&(t=this.modal_body.width()),t},close:function(){return this.modal.modal("hide")},addTrailingSlash:function(t){return"/"!==t.substr(-1)&&(t+="/"),t}},t.fn.ekkoLightbox=function(i){return this.each(function(){var o;return o=t(this),i=t.extend({remote:o.attr("data-remote")||o.attr("href"),gallery_parent_selector:o.attr("data-parent"),type:o.attr("data-type")},i,o.data()),new e(this,i),this})},t.fn.ekkoLightbox.defaults={gallery_parent_selector:"document.body",left_arrow_class:".glyphicon .glyphicon-chevron-left",right_arrow_class:".glyphicon .glyphicon-chevron-right",directional_arrows:!0,type:null,always_show_close:!0,no_related:!1,scale_height:!0,loadingMessage:"Loading...",onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}}}.call(this),function(t){t.flexslider=function(e,i){var o=t(e);o.vars=t.extend({},t.flexslider.defaults,i);var n,s=o.vars.namespace,r=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,a=("ontouchstart"in window||r||window.DocumentTouch&&document instanceof DocumentTouch)&&o.vars.touch,l="click touchend MSPointerUp keyup",h="",d="vertical"===o.vars.direction,c=o.vars.reverse,u=o.vars.itemWidth>0,p="fade"===o.vars.animation,f=""!==o.vars.asNavFor,m={};t.data(e,"flexslider",o),m={init:function(){o.animating=!1,o.currentSlide=parseInt(o.vars.startAt?o.vars.startAt:0,10),isNaN(o.currentSlide)&&(o.currentSlide=0),o.animatingTo=o.currentSlide,o.atEnd=0===o.currentSlide||o.currentSlide===o.last,o.containerSelector=o.vars.selector.substr(0,o.vars.selector.search(" ")),o.slides=t(o.vars.selector,o),o.container=t(o.containerSelector,o),o.count=o.slides.length,o.syncExists=t(o.vars.sync).length>0,"slide"===o.vars.animation&&(o.vars.animation="swing"),o.prop=d?"top":"marginLeft",o.args={},o.manualPause=!1,o.stopped=!1,o.started=!1,o.startTimeout=null,o.transitions=!o.vars.video&&!p&&o.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.pfx=e[i].replace("Perspective","").toLowerCase(),o.prop="-"+o.pfx+"-transform",!0;return!1}(),o.ensureAnimationEnd="",""!==o.vars.controlsContainer&&(o.controlsContainer=t(o.vars.controlsContainer).length>0&&t(o.vars.controlsContainer)),""!==o.vars.manualControls&&(o.manualControls=t(o.vars.manualControls).length>0&&t(o.vars.manualControls)),o.vars.randomize&&(o.slides.sort(function(){return Math.round(Math.random())-.5}),o.container.empty().append(o.slides)),o.doMath(),o.setup("init"),o.vars.controlNav&&m.controlNav.setup(),o.vars.directionNav&&m.directionNav.setup(),o.vars.keyboard&&(1===t(o.containerSelector).length||o.vars.multipleKeyboard)&&t(document).bind("keyup",function(t){var e=t.keyCode;if(!o.animating&&(39===e||37===e)){var i=39===e?o.getTarget("next"):37===e&&o.getTarget("prev");o.flexAnimate(i,o.vars.pauseOnAction)}}),o.vars.mousewheel&&o.bind("mousewheel",function(t,e,i,n){t.preventDefault();var s=o.getTarget(0>e?"next":"prev");o.flexAnimate(s,o.vars.pauseOnAction)}),o.vars.pausePlay&&m.pausePlay.setup(),o.vars.slideshow&&o.vars.pauseInvisible&&m.pauseInvisible.init(),o.vars.slideshow&&(o.vars.pauseOnHover&&o.hover(function(){o.manualPlay||o.manualPause||o.pause()},function(){o.manualPause||o.manualPlay||o.stopped||o.play()}),o.vars.pauseInvisible&&m.pauseInvisible.isHidden()||(o.vars.initDelay>0?o.startTimeout=setTimeout(o.play,o.vars.initDelay):o.play())),f&&m.asNav.setup(),a&&o.vars.touch&&m.touch(),(!p||p&&o.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",m.resize),o.find("img").attr("draggable","false"),setTimeout(function(){o.vars.start(o)},200)},asNav:{setup:function(){o.asNav=!0,o.animatingTo=Math.floor(o.currentSlide/o.move),o.currentItem=o.currentSlide,o.slides.removeClass(s+"active-slide").eq(o.currentItem).addClass(s+"active-slide"),r?(e._slider=o,o.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var i=t(this),n=i.index();t(o.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(o.direction=o.currentItem=i.offset().left-t(o).scrollLeft()&&i.hasClass(s+"active-slide")?o.flexAnimate(o.getTarget("prev"),!0):t(o.vars.asNavFor).data("flexslider").animating||i.hasClass(s+"active-slide")||(o.direction=o.currentItem'),o.pagingCount>1)for(var a=0;a':""+r+"","thumbnails"===o.vars.controlNav&&!0===o.vars.thumbCaptions){var d=i.attr("data-thumbcaption");""!=d&&null!=d&&(e+=''+d+"")}o.controlNavScaffold.append("
  • "+e+"
  • "),r++}o.controlsContainer?t(o.controlsContainer).append(o.controlNavScaffold):o.append(o.controlNavScaffold),m.controlNav.set(),m.controlNav.active(),o.controlNavScaffold.delegate("a, img",l,function(e){if(e.preventDefault(),""===h||h===e.type){var i=t(this),n=o.controlNav.index(i);i.hasClass(s+"active")||(o.direction=n>o.currentSlide?"next":"prev",o.flexAnimate(n,o.vars.pauseOnAction))}""===h&&(h=e.type),m.setToClearWatchedEvent()})},setupManual:function(){o.controlNav=o.manualControls,m.controlNav.active(),o.controlNav.bind(l,function(e){if(e.preventDefault(),""===h||h===e.type){var i=t(this),n=o.controlNav.index(i);i.hasClass(s+"active")||(o.direction=n>o.currentSlide?"next":"prev",o.flexAnimate(n,o.vars.pauseOnAction))}""===h&&(h=e.type),m.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===o.vars.controlNav?"img":"a";o.controlNav=t("."+s+"control-nav li "+e,o.controlsContainer?o.controlsContainer:o)},active:function(){o.controlNav.removeClass(s+"active").eq(o.animatingTo).addClass(s+"active")},update:function(e,i){o.pagingCount>1&&"add"===e?o.controlNavScaffold.append(t("
  • "+o.count+"
  • ")):1===o.pagingCount?o.controlNavScaffold.find("li").remove():o.controlNav.eq(i).closest("li").remove(),m.controlNav.set(),o.pagingCount>1&&o.pagingCount!==o.controlNav.length?o.update(i,e):m.controlNav.active()}},directionNav:{setup:function(){var e=t('");o.controlsContainer?(t(o.controlsContainer).append(e),o.directionNav=t("."+s+"direction-nav li a",o.controlsContainer)):(o.append(e),o.directionNav=t("."+s+"direction-nav li a",o)),m.directionNav.update(),o.directionNav.bind(l,function(e){var i;e.preventDefault(),(""===h||h===e.type)&&(i=o.getTarget(t(this).hasClass(s+"next")?"next":"prev"),o.flexAnimate(i,o.vars.pauseOnAction)),""===h&&(h=e.type),m.setToClearWatchedEvent()})},update:function(){var t=s+"disabled";1===o.pagingCount?o.directionNav.addClass(t).attr("tabindex","-1"):o.vars.animationLoop?o.directionNav.removeClass(t).removeAttr("tabindex"):0===o.animatingTo?o.directionNav.removeClass(t).filter("."+s+"prev").addClass(t).attr("tabindex","-1"):o.animatingTo===o.last?o.directionNav.removeClass(t).filter("."+s+"next").addClass(t).attr("tabindex","-1"):o.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('
    ');o.controlsContainer?(o.controlsContainer.append(e),o.pausePlay=t("."+s+"pauseplay a",o.controlsContainer)):(o.append(e),o.pausePlay=t("."+s+"pauseplay a",o)),m.pausePlay.update(o.vars.slideshow?s+"pause":s+"play"),o.pausePlay.bind(l,function(e){e.preventDefault(),(""===h||h===e.type)&&(t(this).hasClass(s+"pause")?(o.manualPause=!0,o.manualPlay=!1,o.pause()):(o.manualPause=!1,o.manualPlay=!0,o.play())),""===h&&(h=e.type),m.setToClearWatchedEvent()})},update:function(t){"play"===t?o.pausePlay.removeClass(s+"pause").addClass(s+"play").html(o.vars.playText):o.pausePlay.removeClass(s+"play").addClass(s+"pause").html(o.vars.pauseText)}},touch:function(){function t(t){g=t.touches[0].pageX,v=t.touches[0].pageY,h=d?n-v:n-g;(!(m=d?Math.abs(h)500)&&(t.preventDefault(),!p&&o.transitions&&(o.vars.animationLoop||(h/=0===o.currentSlide&&0>h||o.currentSlide===o.last&&h>0?Math.abs(h)/l+2:1),o.setProps(a+h,"setTouch")))}function i(r){if(e.removeEventListener("touchmove",t,!1),o.animatingTo===o.currentSlide&&!m&&null!==h){var d=c?-h:h,u=o.getTarget(d>0?"next":"prev");o.canAdvance(u)&&(Number(new Date)-f<550&&Math.abs(d)>50||Math.abs(d)>l/2)?o.flexAnimate(u,o.vars.pauseOnAction):p||o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}e.removeEventListener("touchend",i,!1),n=null,s=null,h=null,a=null}var n,s,a,l,h,f,m=!1,g=0,v=0,y=0;r?(e.style.msTouchAction="none",e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.stopPropagation(),o.animating?t.preventDefault():(o.pause(),e._gesture.addPointer(t.pointerId),y=0,l=d?o.h:o.w,f=Number(new Date),a=u&&c&&o.animatingTo===o.last?0:u&&c?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:u&&o.currentSlide===o.last?o.limit:u?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:c?(o.last-o.currentSlide+o.cloneOffset)*l:(o.currentSlide+o.cloneOffset)*l)},!1),e._slider=o,e.addEventListener("MSGestureChange",function(t){t.stopPropagation();var i=t.target._slider;if(i){var o=-t.translationX,n=-t.translationY;return h=y+=d?n:o,m=d?Math.abs(y)500)&&(t.preventDefault(),!p&&i.transitions&&(i.vars.animationLoop||(h=y/(0===i.currentSlide&&0>y||i.currentSlide===i.last&&y>0?Math.abs(y)/l+2:1)),i.setProps(a+h,"setTouch"))))}},!1),e.addEventListener("MSGestureEnd",function(t){t.stopPropagation();var e=t.target._slider;if(e){if(e.animatingTo===e.currentSlide&&!m&&null!==h){var i=c?-h:h,o=e.getTarget(i>0?"next":"prev");e.canAdvance(o)&&(Number(new Date)-f<550&&Math.abs(i)>50||Math.abs(i)>l/2)?e.flexAnimate(o,e.vars.pauseOnAction):p||e.flexAnimate(e.currentSlide,e.vars.pauseOnAction,!0)}n=null,s=null,h=null,a=null,y=0}},!1)):e.addEventListener("touchstart",function(r){o.animating?r.preventDefault():(window.navigator.msPointerEnabled||1===r.touches.length)&&(o.pause(),l=d?o.h:o.w,f=Number(new Date),g=r.touches[0].pageX,v=r.touches[0].pageY,a=u&&c&&o.animatingTo===o.last?0:u&&c?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:u&&o.currentSlide===o.last?o.limit:u?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:c?(o.last-o.currentSlide+o.cloneOffset)*l:(o.currentSlide+o.cloneOffset)*l,n=d?v:g,s=d?g:v,e.addEventListener("touchmove",t,!1),e.addEventListener("touchend",i,!1))},!1)},resize:function(){!o.animating&&o.is(":visible")&&(u||o.doMath(),p?m.smoothHeight():u?(o.slides.width(o.computedW),o.update(o.pagingCount),o.setProps()):d?(o.viewport.height(o.h),o.setProps(o.h,"setTotal")):(o.vars.smoothHeight&&m.smoothHeight(),o.newSlides.width(o.computedW),o.setProps(o.computedW,"setTotal")))},smoothHeight:function(t){if(!d||p){var e=p?o:o.viewport;t?e.animate({height:o.slides.eq(o.animatingTo).height()},t):e.height(o.slides.eq(o.animatingTo).height())}},sync:function(e){var i=t(o.vars.sync).data("flexslider"),n=o.animatingTo;switch(e){case"animate":i.flexAnimate(n,o.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var t=m.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){m.pauseInvisible.isHidden()?o.startTimeout?clearTimeout(o.startTimeout):o.pause():o.started?o.play():o.vars.initDelay>0?setTimeout(o.play,o.vars.initDelay):o.play()})}},isHidden:function(){var t=m.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;eo.currentSlide?"next":"prev"),f&&1===o.pagingCount&&(o.direction=o.currentItemo.limit&&1!==o.visible?o.limit:y):v=0===o.currentSlide&&e===o.count-1&&o.vars.animationLoop&&"next"!==o.direction?c?(o.count+o.cloneOffset)*b:0:o.currentSlide===o.last&&0===e&&o.vars.animationLoop&&"prev"!==o.direction?c?0:(o.count+1)*b:c?(o.count-1-e+o.cloneOffset)*b:(e+o.cloneOffset)*b,o.setProps(v,"",o.vars.animationSpeed),o.transitions?(o.vars.animationLoop&&o.atEnd||(o.animating=!1,o.currentSlide=o.animatingTo),o.container.unbind("webkitTransitionEnd transitionend"),o.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(o.ensureAnimationEnd),o.wrapup(b)}),clearTimeout(o.ensureAnimationEnd),o.ensureAnimationEnd=setTimeout(function(){o.wrapup(b)},o.vars.animationSpeed+100)):o.container.animate(o.args,o.vars.animationSpeed,o.vars.easing,function(){o.wrapup(b)})}o.vars.smoothHeight&&m.smoothHeight(o.vars.animationSpeed)}},o.wrapup=function(t){p||u||(0===o.currentSlide&&o.animatingTo===o.last&&o.vars.animationLoop?o.setProps(t,"jumpEnd"):o.currentSlide===o.last&&0===o.animatingTo&&o.vars.animationLoop&&o.setProps(t,"jumpStart")),o.animating=!1,o.currentSlide=o.animatingTo,o.vars.after(o)},o.animateSlides=function(){!o.animating&&o.flexAnimate(o.getTarget("next"))},o.pause=function(){clearInterval(o.animatedSlides),o.animatedSlides=null,o.playing=!1,o.vars.pausePlay&&m.pausePlay.update("play"),o.syncExists&&m.sync("pause")},o.play=function(){o.playing&&clearInterval(o.animatedSlides),o.animatedSlides=o.animatedSlides||setInterval(o.animateSlides,o.vars.slideshowSpeed),o.started=o.playing=!0,o.vars.pausePlay&&m.pausePlay.update("pause"),o.syncExists&&m.sync("play")},o.stop=function(){o.pause(),o.stopped=!0},o.canAdvance=function(t,e){var i=f?o.pagingCount-1:o.last;return!!e||(!(!f||o.currentItem!==o.count-1||0!==t||"prev"!==o.direction)||(!f||0!==o.currentItem||t!==o.pagingCount-1||"next"===o.direction)&&(!(t===o.currentSlide&&!f)&&(!!o.vars.animationLoop||(!o.atEnd||0!==o.currentSlide||t!==i||"next"===o.direction)&&(!o.atEnd||o.currentSlide!==i||0!==t||"next"!==o.direction))))},o.getTarget=function(t){return o.direction=t,"next"===t?o.currentSlide===o.last?0:o.currentSlide+1:0===o.currentSlide?o.last:o.currentSlide-1},o.setProps=function(t,e,i){var n=function(){var i=t||(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo;return-1*function(){if(u)return"setTouch"===e?t:c&&o.animatingTo===o.last?0:c?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:o.animatingTo===o.last?o.limit:i;switch(e){case"setTotal":return c?(o.count-1-o.currentSlide+o.cloneOffset)*t:(o.currentSlide+o.cloneOffset)*t;case"setTouch":return t;case"jumpEnd":return c?t:o.count*t;case"jumpStart":return c?o.count*t:t;default:return t}}()+"px"}();o.transitions&&(n=d?"translate3d(0,"+n+",0)":"translate3d("+n+",0,0)",i=void 0!==i?i/1e3+"s":"0s",o.container.css("-"+o.pfx+"-transition-duration",i),o.container.css("transition-duration",i)),o.args[o.prop]=n,(o.transitions||void 0===i)&&o.container.css(o.args),o.container.css("transform",n)},o.setup=function(e){var i,n;p?(o.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(a?o.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+o.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(o.currentSlide).css({opacity:1,zIndex:2}):0==o.vars.fadeFirstSlide?o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).css({opacity:1}):o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing)),o.vars.smoothHeight&&m.smoothHeight()):("init"===e&&(o.viewport=t('
    ').css({overflow:"hidden",position:"relative"}).appendTo(o).append(o.container),o.cloneCount=0,o.cloneOffset=0,c&&(n=t.makeArray(o.slides).reverse(),o.slides=t(n),o.container.empty().append(o.slides))),o.vars.animationLoop&&!u&&(o.cloneCount=2,o.cloneOffset=1,"init"!==e&&o.container.find(".clone").remove(),o.container.append(m.uniqueID(o.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(m.uniqueID(o.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),o.newSlides=t(o.vars.selector,o),i=c?o.count-1-o.currentSlide+o.cloneOffset:o.currentSlide+o.cloneOffset,d&&!u?(o.container.height(200*(o.count+o.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){o.newSlides.css({display:"block"}),o.doMath(),o.viewport.height(o.h),o.setProps(i*o.h,"init")},"init"===e?100:0)):(o.container.width(200*(o.count+o.cloneCount)+"%"),o.setProps(i*o.computedW,"init"),setTimeout(function(){o.doMath(),o.newSlides.css({width:o.computedW,float:"left",display:"block"}),o.vars.smoothHeight&&m.smoothHeight()},"init"===e?100:0)));u||o.slides.removeClass(s+"active-slide").eq(o.currentSlide).addClass(s+"active-slide"),o.vars.init(o)},o.doMath=function(){var t=o.slides.first(),e=o.vars.itemMargin,i=o.vars.minItems,n=o.vars.maxItems;o.w=void 0===o.viewport?o.width():o.viewport.width(),o.h=t.height(),o.boxPadding=t.outerWidth()-t.width(),u?(o.itemT=o.vars.itemWidth+e,o.minW=i?i*o.itemT:o.w,o.maxW=n?n*o.itemT-e:o.w,o.itemW=o.minW>o.w?(o.w-e*(i-1))/i:o.maxWo.w?o.w:o.vars.itemWidth,o.visible=Math.floor(o.w/o.itemW),o.move=o.vars.move>0&&o.vars.moveo.w?o.itemW*(o.count-1)+e*(o.count-1):(o.itemW+e)*o.count-o.w-e):(o.itemW=o.w,o.pagingCount=o.count,o.last=o.count-1),o.computedW=o.itemW-o.boxPadding},o.update=function(t,e){o.doMath(),u||(to.controlNav.length?m.controlNav.update("add"):("remove"===e&&!u||o.pagingCounto.last&&(o.currentSlide-=1,o.animatingTo-=1),m.controlNav.update("remove",o.last))),o.vars.directionNav&&m.directionNav.update()},o.addSlide=function(e,i){var n=t(e);o.count+=1,o.last=o.count-1,d&&c?void 0!==i?o.slides.eq(o.count-i).after(n):o.container.prepend(n):void 0!==i?o.slides.eq(i).before(n):o.container.append(n),o.update(i,"add"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.added(o)},o.removeSlide=function(e){var i=isNaN(e)?o.slides.index(t(e)):e;o.count-=1,o.last=o.count-1,isNaN(e)?t(e,o.slides).remove():d&&c?o.slides.eq(o.last).remove():o.slides.eq(e).remove(),o.doMath(),o.update(i,"remove"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.removed(o)},m.init()},t(window).blur(function(t){focused=!1}).focus(function(t){focused=!0}),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,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,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:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var i=t(this),o=e.selector?e.selector:".slides > li",n=i.find(o);1===n.length&&!0===e.allowOneSlide||0===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"stop":i.stop();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,e,i){"use strict";t.fn.scrollUp=function(e){t.data(i.body,"scrollUp")||(t.data(i.body,"scrollUp",!0),t.fn.scrollUp.init(e))},t.fn.scrollUp.init=function(o){var n,s,r,a,l,h,d=t.fn.scrollUp.settings=t.extend({},t.fn.scrollUp.defaults,o),c=!1;switch(h=d.scrollTrigger?t(d.scrollTrigger):t("",{id:d.scrollName,href:"#top"}),d.scrollTitle&&h.attr("title",d.scrollTitle),h.appendTo("body"),d.scrollImg||d.scrollTrigger||h.html(d.scrollText),h.css({display:"none",position:"fixed",zIndex:d.zIndex}),d.activeOverlay&&t("
    ",{id:d.scrollName+"-active"}).css({position:"absolute",top:d.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+d.activeOverlay,zIndex:d.zIndex}).appendTo("body"),d.animation){case"fade":n="fadeIn",s="fadeOut",r=d.animationSpeed;break;case"slide":n="slideDown",s="slideUp",r=d.animationSpeed;break;default:n="show",s="hide",r=0}a="top"===d.scrollFrom?d.scrollDistance:t(i).height()-t(e).height()-d.scrollDistance,t(e).scroll(function(){t(e).scrollTop()>a?c||(h[n](r),c=!0):c&&(h[s](r),c=!1)}),d.scrollTarget?"number"==typeof d.scrollTarget?l=d.scrollTarget:"string"==typeof d.scrollTarget&&(l=Math.floor(t(d.scrollTarget).offset().top)):l=0,h.click(function(e){e.preventDefault(),t("html, body").animate({scrollTop:l},d.scrollSpeed,d.easingType)})},t.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},t.fn.scrollUp.destroy=function(o){t.removeData(i.body,"scrollUp"),t("#"+t.fn.scrollUp.settings.scrollName).remove(),t("#"+t.fn.scrollUp.settings.scrollName+"-active").remove(),t.fn.jquery.split(".")[1]>=7?t(e).off("scroll",o):t(e).unbind("scroll",o)},t.scrollUp=t.fn.scrollUp}(jQuery,window,document),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){(a=a||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){return"string"==typeof t?function(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,l){var h=a.data(l,i);if(h){var d=h[e];if(d&&"_"!=e.charAt(0)){var c=d.apply(h,o);n=void 0===n?c:n}else r(s+" is not a valid method")}else r(i+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==n?n:t}(this,t,n.call(arguments,1)):(function(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}(this,t),this)},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r=void 0===s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n