Current File : /home/k/a/r/karenpetzb/www/items/category/liquidslider.zip |
PK A>H[N�~i�� �� js/jquery.liquid-slider.jsnu &1i� /*!
* Liquid Slider v2.0.12
* http://liquidslider.com
* GPL license
*/
// See https://github.com/KevinBatdorf/liquidslider for version updates
/*jslint bitwise: true, browser: true */
/*global $, jQuery */
/*jshint unused:false, curly:false */
// Utility for creating objects in older browsers
if (typeof Object.create !== 'function') {
Object.create = function(obj) {
"use strict";
function F() {}
F.prototype = obj;
return new F();
};
}
(function($, window, document, undefined) {
"use strict";
var Slider = {
//initialize
makeResponsive: function() {
var self = this;
// Adjust widths and add classes to make responsive
$(self.sliderId + '-wrapper').addClass('ls-responsive').css({
'max-width': $(self.sliderId + ' .panel:first-child').width(),
'width': '100%'
});
// Update widths
$(self.sliderId + ' .panel-container').css('width', 100 * self.panelCountTotal + self.pSign);
$(self.sliderId + ' .panel').css('width', 100 / self.panelCountTotal + self.pSign);
// Cache the padding for add/removing arrows
if (self.options.hideArrowsWhenMobile) {
self.leftWrapperPadding = $(self.sliderId + '-wrapper').css('padding-left');
self.rightWrapperPadding = (self.$sliderWrap).css('padding-right');
}
// Set events and fire on browser resize
self.responsiveEvents();
$(window).bind('resize', function() {
self.responsiveEvents();
clearTimeout(self.resizingTimeout);
self.resizingTimeout = setTimeout(function() {
var height = (self.options.autoHeight) ? self.getHeight() : self.getHeighestPanel(self.nextPanel);
self.adjustHeight(false, height);
}, 500);
});
},
responsiveEvents: function() {
var self = this,
mobileNavChangeOver = (self.options.hideArrowsThreshold ||
self.options.mobileUIThreshold ||
(self.totalNavWidth + 10));
// Since we are resizing, let's simply test the width
if ((self.$sliderId).outerWidth() < mobileNavChangeOver) {
if (self.options.mobileNavigation) {
(self.navigation).css('display', 'none');
(self.dropdown).css('display', 'block');
(self.dropdownSelect).css('display', 'block');
// Update the navigation
$(self.sliderId + '-nav-select').val(self.options.mobileNavDefaultText);
}
if (self.options.dynamicArrows) {
if (self.options.hideArrowsWhenMobile) {
(self.leftArrow).remove().length = 0;
(self.rightArrow).remove().length = 0;
} else if (!self.options.dynamicArrowsGraphical) {
// If using text arrows, let's move them to the top
(self.leftArrow).css('margin-' + self.options.dynamicTabsPosition, '0');
(self.rightArrow).css('margin-' + self.options.dynamicTabsPosition, '0');
}
}
} else {
if (self.options.mobileNavigation) {
(self.navigation).css('display', 'block');
(self.dropdown).css('display', 'none');
(self.dropdownSelect).css('display', 'none');
}
if (self.options.dynamicArrows) {
if (self.options.hideArrowsWhenMobile &&
(!(self.leftArrow).length || !(self.rightArrow).length)) {
self.addArrows();
self.registerArrows();
} else if (!self.options.dynamicArrowsGraphical) {
// Reposition the text arrows
(self.leftArrow).css('margin-' +
self.options.dynamicTabsPosition, (self.navigation).css('height'));
(self.rightArrow).css('margin-' +
self.options.dynamicTabsPosition, (self.navigation).css('height'));
}
}
}
// While resizing, set the width to 100%
$(self.sliderId + '-wrapper').css('width', '100%');
// Update when the select box changes
if (self.options.mobileNavigation) {
(self.dropdownSelect).change(function() {
self.setNextPanel(parseInt($(this).val().split('tab')[1], 10) - 1);
});
}
},
addNavigation: function(navClass) {
var self = this,
dynamicTabsElm = '<' + self.options.navElementTag + ' class="ls-nav"><ul id="' +
(self.$elem).attr('id') + '-nav-ul"></ul></' + self.options.navElementTag + '>';
// Add basic frame
if (self.options.dynamicTabsPosition === 'bottom') {
(self.$sliderId).after(dynamicTabsElm);
} else {
(self.$sliderId).before(dynamicTabsElm);
}
// Add responsive navigation
if (self.options.mobileNavigation) {
var selectBoxDefault = (self.options.mobileNavDefaultText) ?
'<option disabled="disabled" selected="selected">' +
self.options.mobileNavDefaultText + '</option>' :
null,
dropDownList = '<div class="ls-select-box"><select id="' +
(self.$elem).attr('id') + '-nav-select" name="navigation">' +
selectBoxDefault + '</select></div>';
// cache elements
self.navigation = $(self.sliderId + '-nav-ul').before(dropDownList);
self.dropdown = $(self.sliderId + '-wrapper .ls-select-box');
self.dropdownSelect = $(self.sliderId + '-nav-select');
$.each(
(self.$elem).find(self.options.panelTitleSelector),
function(n) {
$((self.$sliderWrap)).find('.ls-select-box select')
.append('<option value="tab' + (n + 1) + '">' +
$(this).text() + '</option>');
}
);
}
// Add standard navigation
$.each(
(self.$elem).find(self.options.panelTitleSelector),
function(n) {
$((self.$sliderWrap)).find('.ls-nav ul').append('<li class="tab' +
(n + 1) + '"><a class="' + ( navClass || '') + '" href="#' +
(n + 1) + '">' + self.getNavInsides(this) + '</a></li>');
if (!self.options.includeTitle) $(this).remove();
}
);
},
getNavInsides: function(input) {
return (this.options.dynamicTabsHtml) ? $(input).html() : $(input).text();
},
alignNavigation: function() {
var self = this,
arrow = (self.options.dynamicArrowsGraphical) ? '-arrow' : '';
// Set the alignment, adjusting for margins
if (self.options.dynamicTabsAlign !== 'center') {
if (!self.options.responsive) {
$((self.$sliderWrap)).find('.ls-nav ul').css(
'margin-' + self.options.dynamicTabsAlign,
// Finds the width of the arrows and the margin
$((self.$sliderWrap)).find(
'.ls-nav-' +
self.options.dynamicTabsAlign +
arrow
).outerWidth(true) + parseInt((self.$sliderId)
.css('margin-' + self.options.dynamicTabsAlign), 10)
);
}
$((self.$sliderWrap)).find('.ls-nav ul').css('float', self.options.dynamicTabsAlign);
}
self.totalNavWidth = $((self.$sliderWrap)).find('.ls-nav ul').outerWidth(true);
if (self.options.dynamicTabsAlign === 'center') {
// Get total width of the navigation tabs and center it
self.totalNavWidth = 0;
$((self.$sliderWrap)).find('.ls-nav li a').each(function() {
self.totalNavWidth += $(this).outerWidth(true);
});
$((self.$sliderWrap)).find('.ls-nav ul').css('width', self.totalNavWidth + 1);
}
},
registerNav: function() {
var self = this;
(self.$sliderWrap).find('[class^=ls-nav] li').on('click', function() {
self.setNextPanel(parseInt($(this).attr('class').split('tab')[1], 10) - 1);
return false;
});
},
addArrows: function(arrowClass) {
var self = this,
arrow = (self.options.dynamicArrowsGraphical) ? "-arrow " : ' ';
(self.$sliderWrap).addClass("arrows");
if (self.options.dynamicArrowsGraphical) {
self.options.dynamicArrowLeftText = '';
self.options.dynamicArrowRightText = '';
}
// Build the arrows
(self.$sliderId).before('<div class="ls-nav-left' + arrow + (arrowClass || '') +
'"><a href="#">' +
self.options.dynamicArrowLeftText + '</a></div>');
(self.$sliderId).after('<div class="ls-nav-right' + arrow + (arrowClass || '') +
'"><a href="#">' +
self.options.dynamicArrowRightText + '</a></div>');
self.leftArrow = $(self.sliderId + '-wrapper [class^=ls-nav-left]')
.css('visibility', "hidden").addClass('ls-hidden');
self.rightArrow = $(self.sliderId + '-wrapper [class^=ls-nav-right]')
.css('visibility', "hidden").addClass('ls-hidden');
if (!self.options.hoverArrows) self.hideShowArrows(undefined, true, true, false);
},
hideShowArrows: function(speed, forceVisibility, showBoth, hideBoth) {
var self = this,
fadeOut = (typeof speed !== 'undefined') ? speed : self.options.fadeOutDuration,
fadeIn = (typeof speed !== 'undefined') ? speed : self.options.fadeInDuration,
visibility = forceVisibility ? "visible" : "hidden";
if (!showBoth && (hideBoth || (self.sanatizeNumber(self.nextPanel) === 1))) {
self.leftArrow.stop().fadeTo(fadeOut, 0, function() {
$(this).css('visibility', visibility).addClass('ls-hidden');
});
} else if (showBoth || self.leftArrow.hasClass('ls-hidden')) {
self.leftArrow.stop().css('visibility', "visible").fadeTo(fadeIn, 1).removeClass('ls-hidden');
}
if (!showBoth && (hideBoth || (self.sanatizeNumber(self.nextPanel) === self.panelCount))) {
self.rightArrow.stop().fadeTo(fadeOut, 0, function() {
$(this).css('visibility', visibility).addClass('ls-hidden');
});
} else if (showBoth || self.rightArrow.hasClass('ls-hidden')) {
self.rightArrow.stop().css('visibility', "visible").fadeTo(fadeIn, 1).removeClass('ls-hidden');
}
},
registerArrows: function() {
var self = this;
$((self.$sliderWrap).find('[class^=ls-nav-]')).on('click', function() {
self.setNextPanel($(this).attr('class').split(' ')[0].split('-')[2]);
});
},
registerCrossLinks: function() {
var self = this;
// Find cross links
self.crosslinks = $('[data-liquidslider-ref*=' + (self.sliderId).split('#')[1] + ']');
(self.crosslinks).on('click', function(e) {
if (self.options.autoSlide === true)
self.startAutoSlide(true);
self.setNextPanel(self.getPanelNumber(($(this).attr('href').split('#')[1]), self.options.panelTitleSelector));
e.preventDefault();
});
self.updateClass();
},
registerTouch: function() {
var self = this,
args = self.options.swipeArgs || {
fallbackToMouseEvents: false,
allowPageScroll: "vertical",
swipe: function(e, dir) {
if (dir === 'up' || dir === 'down')
return false;
// Reverse the swipe direction
self.swipeDir = (dir === 'left') ? 'right' : 'left';
self.setNextPanel(self.swipeDir);
}};
$(self.sliderId + ' .panel').swipe(args);
},
registerKeyboard: function() {
var self = this;
$(document).keydown(function(event) {
var key = event.keyCode || event.which;
if (event.target.type !== 'textarea' && event.target.type !== 'textbox') {
// Off the autoSlider
if (!self.options.forceAutoSlide)
$(this).trigger('click');
if (key === self.options.leftKey)
self.setNextPanel('right');
if (key === self.options.rightKey)
self.setNextPanel('left');
$.each(self.options.panelKeys, function(index, value) {
if (key === value) {
self.setNextPanel(index - 1);
}
});
}
});
},
autoSlide: function() {
var self = this;
// Can't set the autoSlide slower than the easing ;-)
if (self.options.autoSlideInterval < self.options.slideEaseDuration) {
self.options.autoSlideInterval =
(self.options.slideEaseDuration > self.options.heightEaseDuration) ?
self.options.slideEaseDuration : self.options.heightEaseDuration;
}
self.autoSlideTimeout = setTimeout(function() {
// Slide left or right
self.setNextPanel(self.options.autoSlideDirection);
self.autoSlide();
}, self.options.autoSlideInterval);
},
stopAutoSlide: function() {
var self = this;
self.options.autoSlide = false;
clearTimeout(self.autoSlideTimeout);
},
startAutoSlide: function(reset) {
var self = this;
self.options.autoSlide = true;
if (!reset) self.setNextPanel(self.options.autoSlideDirection);
self.autoSlide(clearTimeout(self.autoSlideTimeout));
},
updateHashTags: function() {
var self = this,
filtered = (self.nextPanel === self.panelCount) ? 0 : self.nextPanel;
window.location.hash = self.getFromPanel(self.options.hashTitleSelector, filtered);
},
adjustHeight: function(noAnimation, height, easing, duration) {
var self = this;
if (noAnimation || self.useCSS) {
if (noAnimation) self.configureCSSTransitions('0', '0');
(self.$sliderId).height(height);
if (noAnimation) self.configureCSSTransitions();
return;
}
(self.$sliderId).animate({
'height': height + 'px'
}, {
easing: easing || self.options.heightEaseFunction,
duration: duration || self.options.heightEaseDuration,
queue: false
});
},
getHeight: function(height) {
var self = this;
height = height || self.$panelClass.eq(self.sanatizeNumber(self.nextPanel) - 1).outerHeight(true);
// If the height in the settings be higher, honor thy
height = (height < self.options.minHeight) ? self.options.minHeight : height;
return height;
},
addPreloader: function() {
var self = this;
$(self.sliderId + '-wrapper').append('<div class="ls-preloader"></div>');
},
removePreloader: function() {
var self = this;
$(self.sliderId + '-wrapper .ls-preloader').fadeTo('slow', 0, function() {
$(this).remove();
});
},
init: function(options, elem) {
var self = this;
// Cache the element
self.elem = elem;
self.$elem = $(elem);
$('body').removeClass('no-js');
// Cache the ID and class. This allows for multiple instances with any ID name supplied
self.sliderId = '#' + (self.$elem).attr('id');
self.$sliderId = $(self.sliderId);
// Set the options
self.options = $.extend({}, $.fn.liquidSlider.options, options);
// Variable for the % sign if needed (responsive), otherwise px
self.pSign = (self.options.responsive) ? '%' : 'px';
if (self.options.responsive) {
// jQuery or CSS3 ?
self.determineAnimationType();
} else {
// Disable some stuff
self.options.mobileNavigation = false;
self.options.hideArrowsWhenMobile = false;
}
// If using animate.css, add the class here and disable other options.
if (self.options.slideEaseFunction === "animate.css") {
if (!self.useCSS) {
self.options.slideEaseFunction = self.options.slideEaseFunctionFallback;
} else {
self.options.continuous = false;
self.animateCSS = true;
}
}
// Build the tabs and navigation
self.build();
// Register events
self.events();
// Fix width
if (!self.options.responsive && self.options.dynamicArrows)
self.$sliderWrap.width(self.$sliderId.outerWidth(true) +
self.leftArrow.outerWidth(true) +
self.rightArrow.outerWidth(true));
self.loaded = true;
$(window).bind("load", function() {
self.options.preload.call(self);
});
},
build: function() {
var self = this,
isAbsolute;
// Wrap the entire slider unless manually there
if ((self.$sliderId).parent().attr('class') !== 'ls-wrapper') {
(self.$sliderId).wrap('<div id="' +
(self.$elem).attr('id') +
'-wrapper" class="ls-wrapper"></div>');
}
// Cache the wrapper
self.$sliderWrap = $(self.sliderId + '-wrapper');
if (self.options.preloader) self.addPreloader();
// Add the .panel class to the individual panels
$(self.sliderId).children().addClass((self.$elem).attr('id') + '-panel panel');
self.panelClass = self.sliderId + ' .' + (self.$elem).attr('id') + '-panel:not(.clone)';
self.$panelClass = $(self.panelClass);
// Wrap all panels in a div, and wrap inner content in a div (not backwards compatible)
(self.$panelClass).wrapAll('<div class="panel-container"></div>');
(self.$panelClass).wrapInner('<div class="panel-wrapper"></div>');
self.panelContainer = (self.$panelClass).parent();
self.$panelContainer = self.panelContainer;
// If using fade transition, add the class here and disable other options.
if (self.options.slideEaseFunction === "fade") {
(self.$panelClass).addClass('fade');
self.options.continuous = false;
self.fade = true;
}
// Build navigation tabs
if (self.options.dynamicTabs)
self.addNavigation();
else
self.options.mobileNavigation = false;
// Build navigation arrows or disable features
if (self.options.dynamicArrows) {
self.addArrows();
} else {
self.options.hoverArrows = false;
self.options.hideSideArrows = false;
self.options.hideArrowsWhenMobile = false;
}
// Create a container width to allow for a smooth float right. Won't calculate arrows if absolute
isAbsolute = ((self.$leftArrow) && (self.$leftArrow).css('position') === 'absolute') ? 0 : 1;
// Set slider width
self.totalSliderWidth = (self.$sliderId).outerWidth(true) +
($(self.$leftArrow).outerWidth(true)) * isAbsolute +
($(self.$rightArrow).outerWidth(true)) * isAbsolute;
$((self.$sliderWrap)).css('width', self.totalSliderWidth);
// Align navigation tabs
if (self.options.dynamicTabs) self.alignNavigation();
if (self.options.hideSideArrows) self.options.continuous = false;
// Clone panels if continuous is enabled
if (self.options.continuous) {
(self.$panelContainer).prepend((self.$panelContainer).children().last().clone().addClass('clone'));
(self.$panelContainer).append((self.$panelContainer).children().eq(1).clone().addClass('clone'));
}
var clonedCount = (self.options.continuous) ? 2 : 0;
// Count the number of panels and get the combined width
self.panelCount = $(self.panelClass).length;
self.panelCountTotal = (self.fade) ? 1 : self.panelCount + clonedCount;
self.panelWidth = $(self.panelClass).outerWidth();
self.totalWidth = self.panelCountTotal * self.panelWidth;
// Apply the width to the panel container
$(self.sliderId + ' .panel-container').css('width', self.totalWidth);
//How far should we slide?
self.slideDistance = (self.options.responsive) ? 100 : $(self.sliderId).outerWidth();
if (self.useCSS) {
self.totalWidth = 100 * self.panelCountTotal;
self.slideDistance = 100 / self.panelCountTotal;
}
// Make responsive
if (self.options.responsive) self.makeResponsive();
// Apply starting position
self.prepareTransition(self.getFirstPanel(), true);
// Update the class
self.updateClass();
},
determineAnimationType: function() {
var self = this,
animationstring = 'animation',
keyframeprefix = '',
domPrefixes = 'Webkit Moz O ms Khtml'.split(' '),
pfx = '',
i = 0;
// Decide whether or not to use CSS transitions or jQuery
// https://developer.mozilla.org/en-US/docs/CSS/CSS_animations/Detecting_CSS_animation_support
self.useCSS = false;
if (self.elem.style.animationName) {
self.useCSS = true;
}
if (self.useCSS === false) {
for (i = 0; i < domPrefixes.length; i++) {
if (self.elem.style[domPrefixes[i] + 'AnimationName'] !== undefined) {
pfx = domPrefixes[i];
animationstring = pfx + 'Animation';
keyframeprefix = '-' + pfx.toLowerCase() + '-';
self.useCSS = true;
break;
}
}
}
if (document.documentElement.clientWidth > self.options.useCSSMaxWidth) {
self.useCSS = false;
}
},
configureCSSTransitions: function(slide, height) {
var self = this,
slideTransition,
heightTransition;
self.easing = {
// Penner equations
easeOutCubic: 'cubic-bezier(.215,.61,.355,1)',
easeInOutCubic: 'cubic-bezier(.645,.045,.355,1)',
easeInCirc: 'cubic-bezier(.6,.04,.98,.335)',
easeOutCirc: 'cubic-bezier(.075,.82,.165,1)',
easeInOutCirc: 'cubic-bezier(.785,.135,.15,.86)',
easeInExpo: 'cubic-bezier(.95,.05,.795,.035)',
easeOutExpo: 'cubic-bezier(.19,1,.22,1)',
easeInOutExpo: 'cubic-bezier(1,0,0,1)',
easeInQuad: 'cubic-bezier(.55,.085,.68,.53)',
easeOutQuad: 'cubic-bezier(.25,.46,.45,.94)',
easeInOutQuad: 'cubic-bezier(.455,.03,.515,.955)',
easeInQuart: 'cubic-bezier(.895,.03,.685,.22)',
easeOutQuart: 'cubic-bezier(.165,.84,.44,1)',
easeInOutQuart: 'cubic-bezier(.77,0,.175,1)',
easeInQuint: 'cubic-bezier(.755,.05,.855,.06)',
easeOutQuint: 'cubic-bezier(.23,1,.32,1)',
easeInOutQuint: 'cubic-bezier(.86,0,.07,1)',
easeInSine: 'cubic-bezier(.47,0,.745,.715)',
easeOutSine: 'cubic-bezier(.39,.575,.565,1)',
easeInOutSine: 'cubic-bezier(.445,.05,.55,.95)',
easeInBack: 'cubic-bezier(.6,-.28,.735,.045)',
easeOutBack: 'cubic-bezier(.175,.885,.32,1.275)',
easeInOutBack: 'cubic-bezier(.68,-.55,.265,1.55)'
};
// Build a CSS class depending on the type of transition
if (self.useCSS) {
slideTransition = 'all ' + (slide || self.options.slideEaseDuration) + 'ms ' +
self.easing[self.options.slideEaseFunction];
heightTransition = 'all ' + (height || self.options.heightEaseDuration) + 'ms ' +
self.easing[self.options.heightEaseFunction];
// Build the width transition rules
$(self.panelContainer).css({
'-webkit-transition': slideTransition,
'-moz-transition': slideTransition,
'-ms-transition': slideTransition,
'-o-transition': slideTransition,
'transition': slideTransition
});
// Build the height transition rules
if (self.options.autoHeight) {
(self.$sliderId).css({
'-webkit-transition': heightTransition,
'-moz-transition': heightTransition,
'-ms-transition': heightTransition,
'-o-transition': heightTransition,
'transition': heightTransition
});
}
}
},
transitionFade: function() {
var self = this;
$(self.panelClass).eq(self.nextPanel)
.fadeTo(self.options.fadeInDuration, 1.0).css('z-index', 1);
$(self.panelClass).eq(self.prevPanel)
.fadeTo(self.options.fadeOutDuration, 0).css('z-index', 0);
self.callback(self.options.callback, true);
},
hover: function() {
var self = this;
(self.$sliderWrap).hover(
function() {
if (self.options.hoverArrows)
self.hideShowArrows(self.options.fadeInDuration, true, true, false);
if (self.options.pauseOnHover)
clearTimeout(self.autoSlideTimeout);
},
function() {
if (self.options.hoverArrows)
self.hideShowArrows(self.options.fadeOutnDuration, true, false, true);
if (self.options.pauseOnHover && self.options.autoSlide)
self.startAutoSlide();
}
);
},
events: function() {
var self = this;
if (self.options.dynamicArrows) self.registerArrows();
if (self.options.crossLinks) self.registerCrossLinks();
if (self.options.dynamicTabs) self.registerNav();
if (self.options.swipe) self.registerTouch();
if (self.options.keyboardNavigation) self.registerKeyboard();
// Click to stop autoSlider
(self.$sliderWrap).find('*').on('click', function() {
if (self.options.forceAutoSlide)
self.startAutoSlide(true);
else if (self.options.autoSlide)
self.stopAutoSlide();
});
self.hover();
},
setNextPanel: function(direction) {
var self = this;
if (direction === self.nextPanel)
return;
self.prevPanel = self.nextPanel;
if (self.loaded) {
if (typeof direction === 'number') {
self.nextPanel = direction;
} else {
// "left" = -1; "right" = 1;
self.nextPanel += (~~(direction === 'right') || -1);
// If not continuous, slide back at the last or first panel
if (!self.options.continuous)
self.nextPanel = (self.nextPanel < 0) ? self.panelCount - 1 : (self.nextPanel % self.panelCount);
}
if (self.fade || self.animateCSS)
self.prepareTransition(self.nextPanel);
else
self.verifyPanel();
}
},
getFirstPanel: function() {
var self = this,
output;
// is there a hash tag?
if (self.options.hashLinking) {
output = self.getPanelNumber(window.location.hash, self.options.hashTitleSelector);
// Default to panel 1 if mistyped
if (typeof(output) !== 'number') {
output = 0;
}
}
return (output) ? output : self.options.firstPanelToLoad - 1;
},
getPanelNumber: function(input, searchTerm) {
var self = this,
title,
output = input.replace('#', '').toLowerCase();
// Return the num that matches the panel, or return whats given.
(self.$panelClass).each(function(i) {
title = self.convertRegex($(this).find(searchTerm).text());
if (title === output) {
output = i + 1;
}
});
return (parseInt(output, 10) ? parseInt(output, 10) - 1 : output);
},
getFromPanel: function(searchTerm, panelNumber) {
var self = this;
// Return string that matches selector.
return self.convertRegex(self.$panelClass.find(searchTerm).eq(panelNumber).text());
},
convertRegex: function(input) {
return input
.replace(/[^\w -]+/g,'')
.replace(/ +/g,'-')
.toLowerCase();
},
updateClass: function() {
var self = this;
if (self.options.dynamicTabs) {
$((self.$sliderWrap)).find('.tab' + self.sanatizeNumber(self.nextPanel) + ':first a')
.addClass('current')
.parent().siblings().children().removeClass('current');
}
// Add current class to cross linked Tabs
if (self.options.crossLinks && self.crosslinks) {
(self.crosslinks).not(self.nextPanel).removeClass('currentCrossLink');
(self.crosslinks).each(function() {
if ($(this).attr('href') === ('#' +
self.getFromPanel(self.options.panelTitleSelector, self.sanatizeNumber(self.nextPanel) - 1))) {
$(this).addClass('currentCrossLink');
}
});
}
// Set current panel class
self.$panelClass.eq(self.nextPanel)
.addClass('currentPanel')
.siblings().removeClass('currentPanel');
},
sanatizeNumber: function(panel) {
var self = this;
// spits out real numbers, 1-based
if (panel >= self.panelCount) {
return 1;
} else if (panel <= -1) {
return self.panelCount;
} else {
return panel + 1;
}
},
finalize: function() {
var self = this;
// Adjust the height again
var height = (self.options.autoHeight) ? self.getHeight() : self.getHeighestPanel(self.nextPanel);
if (self.options.autoHeight)
self.adjustHeight(true, height);
if (self.options.autoSlide) self.autoSlide();
if (self.options.preloader) self.removePreloader();
self.onload();
},
callback: function(callbackFn, isFade) {
var self = this;
if (callbackFn && self.loaded) {
if (self.useCSS && typeof isFade !== 'undefined') {
$('.panel-container').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',
function(e) {
callbackFn.call(self);
});
} else {
setTimeout(function() {
callbackFn.call(self);
}, self.options.slideEaseDuration + 50);
}
}
},
onload: function() {
var self = this;
self.options.onload.call(self);
},
prepareTransition: function(nextPanel, noAnimation, noPretransition, noPosttransition) {
var self = this;
// Override panel
self.nextPanel = nextPanel || 0;
// Option to not update classes, etc
if (!noPretransition) self.pretransition(self.options.pretransition);
// stores some variables, then sends to pretransition hook
self.noAnimation = noAnimation;
self.noPosttransition = noPosttransition;
if (!self.loaded)
self.transition();
else
self.options.pretransition.call(self);
},
pretransition: function() {
var self = this,
marginLeft;
if (self.options.hashLinking) self.updateHashTags();
if (self.options.mobileNavigation) self.dropdownSelect.val('tab' + (self.nextPanel + 1));
if (self.options.hideSideArrows) self.hideShowArrows();
self.updateClass();
},
getTransitionMargin: function() {
var self = this;
return -(self.nextPanel * self.slideDistance) -
(self.slideDistance * ~~(self.options.continuous));
},
transition: function() {
var self = this,
marginLeft = self.getTransitionMargin();
if(self.animateCSS && self.loaded) {
self.transitionOutAnimateCSS();
return false;
}
if ((marginLeft + self.pSign) !== (self.panelContainer).css('margin-left') || (marginLeft !== -100)) {
if (self.options.autoHeight && !self.animateCSS)
self.adjustHeight(true, self.getHeight());
// SLIDE!
if (self.fade)
self.transitionFade();
else if (self.animateCSS)
self.transitionInAnimateCSS(marginLeft);
else if (self.useCSS)
self.transitionCSS(marginLeft, self.noAnimation);
else
self.transitionjQuery(marginLeft, self.noAnimation);
}
if (!self.noPosttransition) self.callback(self.options.callback);
},
transitionOutAnimateCSS: function() {
var self = this;
$(self.panelClass).removeClass(self.options.animateIn + ' animated');
$(self.panelClass).eq(self.prevPanel).addClass('animated ' + self.options.animateOut);
self.callback(self.transitionInAnimateCSS, undefined);
},
transitionInAnimateCSS: function() {
var self = this;
if (self.options.autoHeight)
self.adjustHeight(false, self.getHeight());
self.transitionCSS(self.getTransitionMargin(), !self.loaded);
$(self.panelClass).removeClass(self.options.animateOut + ' animated');
$(self.panelClass).eq(self.nextPanel).addClass('animated ' + self.options.animateIn);
self.callback(self.options.callback, undefined);
},
transitionCSS: function(marginLeft, noAnimation) {
var self = this;
if (noAnimation) self.configureCSSTransitions('0', '0');
(self.panelContainer).css({
'-webkit-transform': 'translate3d(' + marginLeft + self.pSign + ', 0, 0)',
'-moz-transform': 'translate3d(' + marginLeft + self.pSign + ', 0, 0)',
'-ms-transform': 'translate3d(' + marginLeft + self.pSign + ', 0, 0)',
'-o-transform': 'translate3d(' + marginLeft + self.pSign + ', 0, 0)',
'transform': 'translate3d(' + marginLeft + self.pSign + ', 0, 0)'
});
// Reset transitions
if (noAnimation)
self.callback(function() {
self.configureCSSTransitions();
});
else
self.configureCSSTransitions();
},
transitionjQuery: function(marginLeft, noAnimation) {
var self = this;
if (noAnimation) {
(self.panelContainer).css('margin-left', marginLeft + self.pSign);
} else {
(self.panelContainer).animate({
'margin-left': marginLeft + self.pSign
}, {
easing: self.options.slideEaseFunction,
duration: self.options.slideEaseDuration,
queue: false //,
//complete: function () {
//}
});
}
},
getHeighestPanel: function() {
var self = this, height, heighest = 0;
self.$panelClass.each(function() {
height = $(this).outerHeight(true);
heighest = (height > heighest) ? height : heighest;
});
if (!self.options.autoHeight) return heighest;
},
verifyPanel: function() {
// Basically checks if we need to jump panels
var self = this,
clickable = false;
// Continuous slide required careful clicking
if (self.options.continuous) {
// If they click beyond, run it through again.
if (self.nextPanel > self.panelCount) {
self.nextPanel = self.panelCount;
self.setNextPanel(self.panelCount);
} else if (self.nextPanel < -1) {
self.nextPanel = -1;
self.setNextPanel(-1);
} else if ((!clickable) && ((self.nextPanel === self.panelCount) || (self.nextPanel === -1))) {
// If on the edge, transport them across
self.prepareTransition(self.nextPanel);
self.updateClass();
clearTimeout(cloneJumper);
var cloneJumper = setTimeout(function() {
// But wait first until all is rested
if (self.nextPanel === self.panelCount) {
self.prepareTransition(0, true, true, true);
} else if (self.nextPanel === -1) {
self.prepareTransition(self.panelCount - 1, true, true, true);
}
}, self.options.slideEaseDuration + 50);
} else {
clickable = true;
self.prepareTransition(self.nextPanel);
}
} else {
// Non-continuous just needs to stay in bounds
if (self.nextPanel === self.panelCount) {
self.nextPanel = 0;
} else if (self.nextPanel === -1) {
self.nextPanel = (self.panelCount - 1);
}
self.prepareTransition(self.nextPanel);
}
}
};
$.fn.liquidSlider = function(options) {
return this.each(function() {
var slider = Object.create(Slider);
slider.init(options, this);
$.data(this, 'liquidSlider', slider);
});
};
$.fn.liquidSlider.options = {
autoHeight: true,
minHeight: 0,
heightEaseDuration: 1500,
heightEaseFunction: "easeInOutExpo",
slideEaseDuration: 1500,
slideEaseFunction: "easeInOutExpo",
slideEaseFunctionFallback: "easeInOutExpo",
animateIn: "bounceInRight",
animateOut: "bounceOutRight",
continuous: true,
fadeInDuration: 500,
fadeOutDuration: 500,
autoSlide: false,
autoSlideDirection: 'right',
autoSlideInterval: 6000,
forceAutoSlide: false,
pauseOnHover: false,
dynamicArrows: true,
dynamicArrowsGraphical: true,
dynamicArrowLeftText: "« left",
dynamicArrowRightText: "right »",
hideSideArrows: false,
hideSideArrowsDuration: 750,
hoverArrows: true,
hoverArrowDuration: 250,
dynamicTabs: true,
dynamicTabsHtml: true,
includeTitle: true,
panelTitleSelector: ".title",
dynamicTabsAlign: "left",
dynamicTabsPosition: "top",
navElementTag: "div",
firstPanelToLoad: 1,
crossLinks: false,
hashLinking: false,
hashTitleSelector: ".title",
keyboardNavigation: false,
leftKey: 39,
rightKey: 37,
panelKeys: {
1: 49,
2: 50,
3: 51,
4: 52
},
responsive: true,
mobileNavigation: true,
mobileNavDefaultText: 'Menu',
mobileUIThreshold: 0,
hideArrowsWhenMobile: true,
hideArrowsThreshold: 0,
useCSSMaxWidth: 2200,
preload: function() {
this.finalize();
},
onload: function() {},
pretransition: function() {
this.transition();
},
callback: function() {},
preloader: false,
swipe: true,
swipeArgs: undefined
};
})(jQuery, window, document);PK A>H[�f���) �) js/jquery.touchSwipe.min.jsnu &1i� // TouchSwipe v1.6.4
// https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
(function(e){var o="left",n="right",d="up",v="down",c="in",w="out",l="none",r="auto",k="swipe",s="pinch",x="tap",i="doubletap",b="longtap",A="horizontal",t="vertical",h="all",q=10,f="start",j="move",g="end",p="cancel",a="ontouchstart" in window,y="TouchSwipe";var m={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,triggerOnTouchEnd:true,triggerOnTouchLeave:false,allowPageScroll:"auto",fallbackToMouseEvents:true,excludedElements:"button, input, select, textarea, a, .noSwipe"};e.fn.swipe=function(D){var C=e(this),B=C.data(y);if(B&&typeof D==="string"){if(B[D]){return B[D].apply(this,Array.prototype.slice.call(arguments,1))}else{e.error("Method "+D+" does not exist on jQuery.swipe")}}else{if(!B&&(typeof D==="object"||!D)){return u.apply(this,arguments)}}return C};e.fn.swipe.defaults=m;e.fn.swipe.phases={PHASE_START:f,PHASE_MOVE:j,PHASE_END:g,PHASE_CANCEL:p};e.fn.swipe.directions={LEFT:o,RIGHT:n,UP:d,DOWN:v,IN:c,OUT:w};e.fn.swipe.pageScroll={NONE:l,HORIZONTAL:A,VERTICAL:t,AUTO:r};e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:h};function u(B){if(B&&(B.allowPageScroll===undefined&&(B.swipe!==undefined||B.swipeStatus!==undefined))){B.allowPageScroll=l}if(B.click!==undefined&&B.tap===undefined){B.tap=B.click}if(!B){B={}}B=e.extend({},e.fn.swipe.defaults,B);return this.each(function(){var D=e(this);var C=D.data(y);if(!C){C=new z(this,B);D.data(y,C)}})}function z(a0,aq){var av=(a||!aq.fallbackToMouseEvents),G=av?"touchstart":"mousedown",au=av?"touchmove":"mousemove",R=av?"touchend":"mouseup",P=av?null:"mouseleave",az="touchcancel";var ac=0,aL=null,Y=0,aX=0,aV=0,D=1,am=0,aF=0,J=null;var aN=e(a0);var W="start";var T=0;var aM=null;var Q=0,aY=0,a1=0,aa=0,K=0;var aS=null;try{aN.bind(G,aJ);aN.bind(az,a5)}catch(ag){e.error("events not supported "+G+","+az+" on jQuery.swipe")}this.enable=function(){aN.bind(G,aJ);aN.bind(az,a5);return aN};this.disable=function(){aG();return aN};this.destroy=function(){aG();aN.data(y,null);return aN};this.option=function(a8,a7){if(aq[a8]!==undefined){if(a7===undefined){return aq[a8]}else{aq[a8]=a7}}else{e.error("Option "+a8+" does not exist on jQuery.swipe.options")}};function aJ(a9){if(ax()){return}if(e(a9.target).closest(aq.excludedElements,aN).length>0){return}var ba=a9.originalEvent?a9.originalEvent:a9;var a8,a7=a?ba.touches[0]:ba;W=f;if(a){T=ba.touches.length}else{a9.preventDefault()}ac=0;aL=null;aF=null;Y=0;aX=0;aV=0;D=1;am=0;aM=af();J=X();O();if(!a||(T===aq.fingers||aq.fingers===h)||aT()){ae(0,a7);Q=ao();if(T==2){ae(1,ba.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}if(aq.swipeStatus||aq.pinchStatus){a8=L(ba,W)}}else{a8=false}if(a8===false){W=p;L(ba,W);return a8}else{ak(true)}}function aZ(ba){var bd=ba.originalEvent?ba.originalEvent:ba;if(W===g||W===p||ai()){return}var a9,a8=a?bd.touches[0]:bd;var bb=aD(a8);aY=ao();if(a){T=bd.touches.length}W=j;if(T==2){if(aX==0){ae(1,bd.touches[1]);aX=aV=ap(aM[0].start,aM[1].start)}else{aD(bd.touches[1]);aV=ap(aM[0].end,aM[1].end);aF=an(aM[0].end,aM[1].end)}D=a3(aX,aV);am=Math.abs(aX-aV)}if((T===aq.fingers||aq.fingers===h)||!a||aT()){aL=aH(bb.start,bb.end);ah(ba,aL);ac=aO(bb.start,bb.end);Y=aI();aE(aL,ac);if(aq.swipeStatus||aq.pinchStatus){a9=L(bd,W)}if(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave){var a7=true;if(aq.triggerOnTouchLeave){var bc=aU(this);a7=B(bb.end,bc)}if(!aq.triggerOnTouchEnd&&a7){W=ay(j)}else{if(aq.triggerOnTouchLeave&&!a7){W=ay(g)}}if(W==p||W==g){L(bd,W)}}}else{W=p;L(bd,W)}if(a9===false){W=p;L(bd,W)}}function I(a7){var a8=a7.originalEvent;if(a){if(a8.touches.length>0){C();return true}}if(ai()){T=aa}a7.preventDefault();aY=ao();Y=aI();if(a6()){W=p;L(a8,W)}else{if(aq.triggerOnTouchEnd||(aq.triggerOnTouchEnd==false&&W===j)){W=g;L(a8,W)}else{if(!aq.triggerOnTouchEnd&&a2()){W=g;aB(a8,W,x)}else{if(W===j){W=p;L(a8,W)}}}}ak(false)}function a5(){T=0;aY=0;Q=0;aX=0;aV=0;D=1;O();ak(false)}function H(a7){var a8=a7.originalEvent;if(aq.triggerOnTouchLeave){W=ay(g);L(a8,W)}}function aG(){aN.unbind(G,aJ);aN.unbind(az,a5);aN.unbind(au,aZ);aN.unbind(R,I);if(P){aN.unbind(P,H)}ak(false)}function ay(bb){var ba=bb;var a9=aw();var a8=aj();var a7=a6();if(!a9||a7){ba=p}else{if(a8&&bb==j&&(!aq.triggerOnTouchEnd||aq.triggerOnTouchLeave)){ba=g}else{if(!a8&&bb==g&&aq.triggerOnTouchLeave){ba=p}}}return ba}function L(a9,a7){var a8=undefined;if(F()||S()){a8=aB(a9,a7,k)}else{if((M()||aT())&&a8!==false){a8=aB(a9,a7,s)}}if(aC()&&a8!==false){a8=aB(a9,a7,i)}else{if(al()&&a8!==false){a8=aB(a9,a7,b)}else{if(ad()&&a8!==false){a8=aB(a9,a7,x)}}}if(a7===p){a5(a9)}if(a7===g){if(a){if(a9.touches.length==0){a5(a9)}}else{a5(a9)}}return a8}function aB(ba,a7,a9){var a8=undefined;if(a9==k){aN.trigger("swipeStatus",[a7,aL||null,ac||0,Y||0,T]);if(aq.swipeStatus){a8=aq.swipeStatus.call(aN,ba,a7,aL||null,ac||0,Y||0,T);if(a8===false){return false}}if(a7==g&&aR()){aN.trigger("swipe",[aL,ac,Y,T]);if(aq.swipe){a8=aq.swipe.call(aN,ba,aL,ac,Y,T);if(a8===false){return false}}switch(aL){case o:aN.trigger("swipeLeft",[aL,ac,Y,T]);if(aq.swipeLeft){a8=aq.swipeLeft.call(aN,ba,aL,ac,Y,T)}break;case n:aN.trigger("swipeRight",[aL,ac,Y,T]);if(aq.swipeRight){a8=aq.swipeRight.call(aN,ba,aL,ac,Y,T)}break;case d:aN.trigger("swipeUp",[aL,ac,Y,T]);if(aq.swipeUp){a8=aq.swipeUp.call(aN,ba,aL,ac,Y,T)}break;case v:aN.trigger("swipeDown",[aL,ac,Y,T]);if(aq.swipeDown){a8=aq.swipeDown.call(aN,ba,aL,ac,Y,T)}break}}}if(a9==s){aN.trigger("pinchStatus",[a7,aF||null,am||0,Y||0,T,D]);if(aq.pinchStatus){a8=aq.pinchStatus.call(aN,ba,a7,aF||null,am||0,Y||0,T,D);if(a8===false){return false}}if(a7==g&&a4()){switch(aF){case c:aN.trigger("pinchIn",[aF||null,am||0,Y||0,T,D]);if(aq.pinchIn){a8=aq.pinchIn.call(aN,ba,aF||null,am||0,Y||0,T,D)}break;case w:aN.trigger("pinchOut",[aF||null,am||0,Y||0,T,D]);if(aq.pinchOut){a8=aq.pinchOut.call(aN,ba,aF||null,am||0,Y||0,T,D)}break}}}if(a9==x){if(a7===p||a7===g){clearTimeout(aS);if(V()&&!E()){K=ao();aS=setTimeout(e.proxy(function(){K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}},this),aq.doubleTapThreshold)}else{K=null;aN.trigger("tap",[ba.target]);if(aq.tap){a8=aq.tap.call(aN,ba,ba.target)}}}}else{if(a9==i){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("doubletap",[ba.target]);if(aq.doubleTap){a8=aq.doubleTap.call(aN,ba,ba.target)}}}else{if(a9==b){if(a7===p||a7===g){clearTimeout(aS);K=null;aN.trigger("longtap",[ba.target]);if(aq.longTap){a8=aq.longTap.call(aN,ba,ba.target)}}}}}return a8}function aj(){var a7=true;if(aq.threshold!==null){a7=ac>=aq.threshold}return a7}function a6(){var a7=false;if(aq.cancelThreshold!==null&&aL!==null){a7=(aP(aL)-ac)>=aq.cancelThreshold}return a7}function ab(){if(aq.pinchThreshold!==null){return am>=aq.pinchThreshold}return true}function aw(){var a7;if(aq.maxTimeThreshold){if(Y>=aq.maxTimeThreshold){a7=false}else{a7=true}}else{a7=true}return a7}function ah(a7,a8){if(aq.allowPageScroll===l||aT()){a7.preventDefault()}else{var a9=aq.allowPageScroll===r;switch(a8){case o:if((aq.swipeLeft&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case n:if((aq.swipeRight&&a9)||(!a9&&aq.allowPageScroll!=A)){a7.preventDefault()}break;case d:if((aq.swipeUp&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break;case v:if((aq.swipeDown&&a9)||(!a9&&aq.allowPageScroll!=t)){a7.preventDefault()}break}}}function a4(){var a8=aK();var a7=U();var a9=ab();return a8&&a7&&a9}function aT(){return !!(aq.pinchStatus||aq.pinchIn||aq.pinchOut)}function M(){return !!(a4()&&aT())}function aR(){var ba=aw();var bc=aj();var a9=aK();var a7=U();var a8=a6();var bb=!a8&&a7&&a9&&bc&&ba;return bb}function S(){return !!(aq.swipe||aq.swipeStatus||aq.swipeLeft||aq.swipeRight||aq.swipeUp||aq.swipeDown)}function F(){return !!(aR()&&S())}function aK(){return((T===aq.fingers||aq.fingers===h)||!a)}function U(){return aM[0].end.x!==0}function a2(){return !!(aq.tap)}function V(){return !!(aq.doubleTap)}function aQ(){return !!(aq.longTap)}function N(){if(K==null){return false}var a7=ao();return(V()&&((a7-K)<=aq.doubleTapThreshold))}function E(){return N()}function at(){return((T===1||!a)&&(isNaN(ac)||ac===0))}function aW(){return((Y>aq.longTapThreshold)&&(ac<q))}function ad(){return !!(at()&&a2())}function aC(){return !!(N()&&V())}function al(){return !!(aW()&&aQ())}function C(){a1=ao();aa=event.touches.length+1}function O(){a1=0;aa=0}function ai(){var a7=false;if(a1){var a8=ao()-a1;if(a8<=aq.fingerReleaseThreshold){a7=true}}return a7}function ax(){return !!(aN.data(y+"_intouch")===true)}function ak(a7){if(a7===true){aN.bind(au,aZ);aN.bind(R,I);if(P){aN.bind(P,H)}}else{aN.unbind(au,aZ,false);aN.unbind(R,I,false);if(P){aN.unbind(P,H,false)}}aN.data(y+"_intouch",a7===true)}function ae(a8,a7){var a9=a7.identifier!==undefined?a7.identifier:0;aM[a8].identifier=a9;aM[a8].start.x=aM[a8].end.x=a7.pageX||a7.clientX;aM[a8].start.y=aM[a8].end.y=a7.pageY||a7.clientY;return aM[a8]}function aD(a7){var a9=a7.identifier!==undefined?a7.identifier:0;var a8=Z(a9);a8.end.x=a7.pageX||a7.clientX;a8.end.y=a7.pageY||a7.clientY;return a8}function Z(a8){for(var a7=0;a7<aM.length;a7++){if(aM[a7].identifier==a8){return aM[a7]}}}function af(){var a7=[];for(var a8=0;a8<=5;a8++){a7.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0})}return a7}function aE(a7,a8){a8=Math.max(a8,aP(a7));J[a7].distance=a8}function aP(a7){return J[a7].distance}function X(){var a7={};a7[o]=ar(o);a7[n]=ar(n);a7[d]=ar(d);a7[v]=ar(v);return a7}function ar(a7){return{direction:a7,distance:0}}function aI(){return aY-Q}function ap(ba,a9){var a8=Math.abs(ba.x-a9.x);var a7=Math.abs(ba.y-a9.y);return Math.round(Math.sqrt(a8*a8+a7*a7))}function a3(a7,a8){var a9=(a8/a7)*1;return a9.toFixed(2)}function an(){if(D<1){return w}else{return c}}function aO(a8,a7){return Math.round(Math.sqrt(Math.pow(a7.x-a8.x,2)+Math.pow(a7.y-a8.y,2)))}function aA(ba,a8){var a7=ba.x-a8.x;var bc=a8.y-ba.y;var a9=Math.atan2(bc,a7);var bb=Math.round(a9*180/Math.PI);if(bb<0){bb=360-Math.abs(bb)}return bb}function aH(a8,a7){var a9=aA(a8,a7);if((a9<=45)&&(a9>=0)){return o}else{if((a9<=360)&&(a9>=315)){return o}else{if((a9>=135)&&(a9<=225)){return n}else{if((a9>45)&&(a9<135)){return v}else{return d}}}}}function ao(){var a7=new Date();return a7.getTime()}function aU(a7){a7=e(a7);var a9=a7.offset();var a8={left:a9.left,right:a9.left+a7.outerWidth(),top:a9.top,bottom:a9.top+a7.outerHeight()};return a8}function B(a7,a8){return(a7.x>a8.left&&a7.x<a8.right&&a7.y>a8.top&&a7.y<a8.bottom)}}})(jQuery);PK A>H[Yi�*S *S js/jquery.liquid-slider.min.jsnu &1i� /*!
* Liquid Slider v2.0.12
* http://liquidslider.com
* GPL license
*/
;if(typeof Object.create!=="function"){Object.create=function(b){function a(){}a.prototype=b;return new a()}}(function(d,c,a,e){var b={makeResponsive:function(){var f=this;d(f.sliderId+"-wrapper").addClass("ls-responsive").css({"max-width":d(f.sliderId+" .panel:first-child").width(),width:"100%"});d(f.sliderId+" .panel-container").css("width",100*f.panelCountTotal+f.pSign);d(f.sliderId+" .panel").css("width",100/f.panelCountTotal+f.pSign);if(f.options.hideArrowsWhenMobile){f.leftWrapperPadding=d(f.sliderId+"-wrapper").css("padding-left");f.rightWrapperPadding=(f.$sliderWrap).css("padding-right")}f.responsiveEvents();d(c).bind("resize",function(){f.responsiveEvents();clearTimeout(f.resizingTimeout);f.resizingTimeout=setTimeout(function(){var g=(f.options.autoHeight)?f.getHeight():f.getHeighestPanel(f.nextPanel);f.adjustHeight(false,g)},500)})},responsiveEvents:function(){var g=this,f=(g.options.hideArrowsThreshold||g.options.mobileUIThreshold||(g.totalNavWidth+10));if((g.$sliderId).outerWidth()<f){if(g.options.mobileNavigation){(g.navigation).css("display","none");(g.dropdown).css("display","block");(g.dropdownSelect).css("display","block");d(g.sliderId+"-nav-select").val(g.options.mobileNavDefaultText)}if(g.options.dynamicArrows){if(g.options.hideArrowsWhenMobile){(g.leftArrow).remove().length=0;(g.rightArrow).remove().length=0}else{if(!g.options.dynamicArrowsGraphical){(g.leftArrow).css("margin-"+g.options.dynamicTabsPosition,"0");(g.rightArrow).css("margin-"+g.options.dynamicTabsPosition,"0")}}}}else{if(g.options.mobileNavigation){(g.navigation).css("display","block");(g.dropdown).css("display","none");(g.dropdownSelect).css("display","none")}if(g.options.dynamicArrows){if(g.options.hideArrowsWhenMobile&&(!(g.leftArrow).length||!(g.rightArrow).length)){g.addArrows();g.registerArrows()}else{if(!g.options.dynamicArrowsGraphical){(g.leftArrow).css("margin-"+g.options.dynamicTabsPosition,(g.navigation).css("height"));(g.rightArrow).css("margin-"+g.options.dynamicTabsPosition,(g.navigation).css("height"))}}}}d(g.sliderId+"-wrapper").css("width","100%");if(g.options.mobileNavigation){(g.dropdownSelect).change(function(){g.setNextPanel(parseInt(d(this).val().split("tab")[1],10)-1)})}},addNavigation:function(i){var h=this,f="<"+h.options.navElementTag+' class="ls-nav"><ul id="'+(h.$elem).attr("id")+'-nav-ul"></ul></'+h.options.navElementTag+">";if(h.options.dynamicTabsPosition==="bottom"){(h.$sliderId).after(f)}else{(h.$sliderId).before(f)}if(h.options.mobileNavigation){var j=(h.options.mobileNavDefaultText)?'<option disabled="disabled" selected="selected">'+h.options.mobileNavDefaultText+"</option>":null,g='<div class="ls-select-box"><select id="'+(h.$elem).attr("id")+'-nav-select" name="navigation">'+j+"</select></div>";h.navigation=d(h.sliderId+"-nav-ul").before(g);h.dropdown=d(h.sliderId+"-wrapper .ls-select-box");h.dropdownSelect=d(h.sliderId+"-nav-select");d.each((h.$elem).find(h.options.panelTitleSelector),function(k){d((h.$sliderWrap)).find(".ls-select-box select").append('<option value="tab'+(k+1)+'">'+d(this).text()+"</option>")})}d.each((h.$elem).find(h.options.panelTitleSelector),function(k){d((h.$sliderWrap)).find(".ls-nav ul").append('<li class="tab'+(k+1)+'"><a class="'+(i||"")+'" href="#'+(k+1)+'">'+h.getNavInsides(this)+"</a></li>");if(!h.options.includeTitle){d(this).remove()}})},getNavInsides:function(f){return(this.options.dynamicTabsHtml)?d(f).html():d(f).text()},alignNavigation:function(){var f=this,g=(f.options.dynamicArrowsGraphical)?"-arrow":"";if(f.options.dynamicTabsAlign!=="center"){if(!f.options.responsive){d((f.$sliderWrap)).find(".ls-nav ul").css("margin-"+f.options.dynamicTabsAlign,d((f.$sliderWrap)).find(".ls-nav-"+f.options.dynamicTabsAlign+g).outerWidth(true)+parseInt((f.$sliderId).css("margin-"+f.options.dynamicTabsAlign),10))}d((f.$sliderWrap)).find(".ls-nav ul").css("float",f.options.dynamicTabsAlign)}f.totalNavWidth=d((f.$sliderWrap)).find(".ls-nav ul").outerWidth(true);if(f.options.dynamicTabsAlign==="center"){f.totalNavWidth=0;d((f.$sliderWrap)).find(".ls-nav li a").each(function(){f.totalNavWidth+=d(this).outerWidth(true)});d((f.$sliderWrap)).find(".ls-nav ul").css("width",f.totalNavWidth+1)}},registerNav:function(){var f=this;(f.$sliderWrap).find("[class^=ls-nav] li").on("click",function(){f.setNextPanel(parseInt(d(this).attr("class").split("tab")[1],10)-1);return false})},addArrows:function(g){var f=this,h=(f.options.dynamicArrowsGraphical)?"-arrow ":" ";(f.$sliderWrap).addClass("arrows");if(f.options.dynamicArrowsGraphical){f.options.dynamicArrowLeftText="";f.options.dynamicArrowRightText=""}(f.$sliderId).before('<div class="ls-nav-left'+h+(g||"")+'"><a href="#">'+f.options.dynamicArrowLeftText+"</a></div>");(f.$sliderId).after('<div class="ls-nav-right'+h+(g||"")+'"><a href="#">'+f.options.dynamicArrowRightText+"</a></div>");f.leftArrow=d(f.sliderId+"-wrapper [class^=ls-nav-left]").css("visibility","hidden").addClass("ls-hidden");f.rightArrow=d(f.sliderId+"-wrapper [class^=ls-nav-right]").css("visibility","hidden").addClass("ls-hidden");if(!f.options.hoverArrows){f.hideShowArrows(e,true,true,false)}},hideShowArrows:function(k,h,m,l){var i=this,j=(typeof k!=="undefined")?k:i.options.fadeOutDuration,f=(typeof k!=="undefined")?k:i.options.fadeInDuration,g=h?"visible":"hidden";if(!m&&(l||(i.sanatizeNumber(i.nextPanel)===1))){i.leftArrow.stop().fadeTo(j,0,function(){d(this).css("visibility",g).addClass("ls-hidden")})}else{if(m||i.leftArrow.hasClass("ls-hidden")){i.leftArrow.stop().css("visibility","visible").fadeTo(f,1).removeClass("ls-hidden")}}if(!m&&(l||(i.sanatizeNumber(i.nextPanel)===i.panelCount))){i.rightArrow.stop().fadeTo(j,0,function(){d(this).css("visibility",g).addClass("ls-hidden")})}else{if(m||i.rightArrow.hasClass("ls-hidden")){i.rightArrow.stop().css("visibility","visible").fadeTo(f,1).removeClass("ls-hidden")}}},registerArrows:function(){var f=this;d((f.$sliderWrap).find("[class^=ls-nav-]")).on("click",function(){f.setNextPanel(d(this).attr("class").split(" ")[0].split("-")[2])})},registerCrossLinks:function(){var f=this;f.crosslinks=d("[data-liquidslider-ref*="+(f.sliderId).split("#")[1]+"]");(f.crosslinks).on("click",function(g){if(f.options.autoSlide===true){f.startAutoSlide(true)}f.setNextPanel(f.getPanelNumber((d(this).attr("href").split("#")[1]),f.options.panelTitleSelector));g.preventDefault()});f.updateClass()},registerTouch:function(){var f=this,g=f.options.swipeArgs||{fallbackToMouseEvents:false,allowPageScroll:"vertical",swipe:function(i,h){if(h==="up"||h==="down"){return false}f.swipeDir=(h==="left")?"right":"left";f.setNextPanel(f.swipeDir)}};d(f.sliderId+" .panel").swipe(g)},registerKeyboard:function(){var f=this;d(a).keydown(function(h){var g=h.keyCode||h.which;if(h.target.type!=="textarea"&&h.target.type!=="textbox"){if(!f.options.forceAutoSlide){d(this).trigger("click")}if(g===f.options.leftKey){f.setNextPanel("right")}if(g===f.options.rightKey){f.setNextPanel("left")}d.each(f.options.panelKeys,function(i,j){if(g===j){f.setNextPanel(i-1)}})}})},autoSlide:function(){var f=this;if(f.options.autoSlideInterval<f.options.slideEaseDuration){f.options.autoSlideInterval=(f.options.slideEaseDuration>f.options.heightEaseDuration)?f.options.slideEaseDuration:f.options.heightEaseDuration}f.autoSlideTimeout=setTimeout(function(){f.setNextPanel(f.options.autoSlideDirection);f.autoSlide()},f.options.autoSlideInterval)},stopAutoSlide:function(){var f=this;f.options.autoSlide=false;clearTimeout(f.autoSlideTimeout)},startAutoSlide:function(g){var f=this;f.options.autoSlide=true;if(!g){f.setNextPanel(f.options.autoSlideDirection)}f.autoSlide(clearTimeout(f.autoSlideTimeout))},updateHashTags:function(){var f=this,g=(f.nextPanel===f.panelCount)?0:f.nextPanel;c.location.hash=f.getFromPanel(f.options.hashTitleSelector,g)},adjustHeight:function(h,f,j,i){var g=this;if(h||g.useCSS){if(h){g.configureCSSTransitions("0","0")}(g.$sliderId).height(f);if(h){g.configureCSSTransitions()}return}(g.$sliderId).animate({height:f+"px"},{easing:j||g.options.heightEaseFunction,duration:i||g.options.heightEaseDuration,queue:false})},getHeight:function(f){var g=this;f=f||g.$panelClass.eq(g.sanatizeNumber(g.nextPanel)-1).outerHeight(true);f=(f<g.options.minHeight)?g.options.minHeight:f;return f},addPreloader:function(){var f=this;d(f.sliderId+"-wrapper").append('<div class="ls-preloader"></div>')},removePreloader:function(){var f=this;d(f.sliderId+"-wrapper .ls-preloader").fadeTo("slow",0,function(){d(this).remove()})},init:function(g,h){var f=this;f.elem=h;f.$elem=d(h);d("body").removeClass("no-js");f.sliderId="#"+(f.$elem).attr("id");f.$sliderId=d(f.sliderId);f.options=d.extend({},d.fn.liquidSlider.options,g);f.pSign=(f.options.responsive)?"%":"px";if(f.options.responsive){f.determineAnimationType()}else{f.options.mobileNavigation=false;f.options.hideArrowsWhenMobile=false}if(f.options.slideEaseFunction==="animate.css"){if(!f.useCSS){f.options.slideEaseFunction=f.options.slideEaseFunctionFallback}else{f.options.continuous=false;f.animateCSS=true}}f.build();f.events();if(!f.options.responsive&&f.options.dynamicArrows){f.$sliderWrap.width(f.$sliderId.outerWidth(true)+f.leftArrow.outerWidth(true)+f.rightArrow.outerWidth(true))}f.loaded=true;d(c).bind("load",function(){f.options.preload.call(f)})},build:function(){var f=this,h;if((f.$sliderId).parent().attr("class")!=="ls-wrapper"){(f.$sliderId).wrap('<div id="'+(f.$elem).attr("id")+'-wrapper" class="ls-wrapper"></div>')}f.$sliderWrap=d(f.sliderId+"-wrapper");if(f.options.preloader){f.addPreloader()}d(f.sliderId).children().addClass((f.$elem).attr("id")+"-panel panel");f.panelClass=f.sliderId+" ."+(f.$elem).attr("id")+"-panel:not(.clone)";f.$panelClass=d(f.panelClass);(f.$panelClass).wrapAll('<div class="panel-container"></div>');(f.$panelClass).wrapInner('<div class="panel-wrapper"></div>');f.panelContainer=(f.$panelClass).parent();f.$panelContainer=f.panelContainer;if(f.options.slideEaseFunction==="fade"){(f.$panelClass).addClass("fade");f.options.continuous=false;f.fade=true}if(f.options.dynamicTabs){f.addNavigation()}else{f.options.mobileNavigation=false}if(f.options.dynamicArrows){f.addArrows()}else{f.options.hoverArrows=false;f.options.hideSideArrows=false;f.options.hideArrowsWhenMobile=false}h=((f.$leftArrow)&&(f.$leftArrow).css("position")==="absolute")?0:1;f.totalSliderWidth=(f.$sliderId).outerWidth(true)+(d(f.$leftArrow).outerWidth(true))*h+(d(f.$rightArrow).outerWidth(true))*h;d((f.$sliderWrap)).css("width",f.totalSliderWidth);if(f.options.dynamicTabs){f.alignNavigation()}if(f.options.hideSideArrows){f.options.continuous=false}if(f.options.continuous){(f.$panelContainer).prepend((f.$panelContainer).children().last().clone().addClass("clone"));(f.$panelContainer).append((f.$panelContainer).children().eq(1).clone().addClass("clone"))}var g=(f.options.continuous)?2:0;f.panelCount=d(f.panelClass).length;f.panelCountTotal=(f.fade)?1:f.panelCount+g;f.panelWidth=d(f.panelClass).outerWidth();f.totalWidth=f.panelCountTotal*f.panelWidth;d(f.sliderId+" .panel-container").css("width",f.totalWidth);f.slideDistance=(f.options.responsive)?100:d(f.sliderId).outerWidth();if(f.useCSS){f.totalWidth=100*f.panelCountTotal;f.slideDistance=100/f.panelCountTotal}if(f.options.responsive){f.makeResponsive()}f.prepareTransition(f.getFirstPanel(),true);f.updateClass()},determineAnimationType:function(){var f=this,l="animation",j="",h="Webkit Moz O ms Khtml".split(" "),k="",g=0;f.useCSS=false;if(f.elem.style.animationName){f.useCSS=true}if(f.useCSS===false){for(g=0;g<h.length;g++){if(f.elem.style[h[g]+"AnimationName"]!==e){k=h[g];l=k+"Animation";j="-"+k.toLowerCase()+"-";f.useCSS=true;break}}}if(a.documentElement.clientWidth>f.options.useCSSMaxWidth){f.useCSS=false}},configureCSSTransitions:function(g,f){var h=this,i,j;h.easing={easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175,.885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};if(h.useCSS){i="all "+(g||h.options.slideEaseDuration)+"ms "+h.easing[h.options.slideEaseFunction];j="all "+(f||h.options.heightEaseDuration)+"ms "+h.easing[h.options.heightEaseFunction];d(h.panelContainer).css({"-webkit-transition":i,"-moz-transition":i,"-ms-transition":i,"-o-transition":i,transition:i});if(h.options.autoHeight){(h.$sliderId).css({"-webkit-transition":j,"-moz-transition":j,"-ms-transition":j,"-o-transition":j,transition:j})}}},transitionFade:function(){var f=this;d(f.panelClass).eq(f.nextPanel).fadeTo(f.options.fadeInDuration,1).css("z-index",1);d(f.panelClass).eq(f.prevPanel).fadeTo(f.options.fadeOutDuration,0).css("z-index",0);f.callback(f.options.callback,true)},hover:function(){var f=this;(f.$sliderWrap).hover(function(){if(f.options.hoverArrows){f.hideShowArrows(f.options.fadeInDuration,true,true,false)}if(f.options.pauseOnHover){clearTimeout(f.autoSlideTimeout)}},function(){if(f.options.hoverArrows){f.hideShowArrows(f.options.fadeOutnDuration,true,false,true)}if(f.options.pauseOnHover&&f.options.autoSlide){f.startAutoSlide()}})},events:function(){var f=this;if(f.options.dynamicArrows){f.registerArrows()}if(f.options.crossLinks){f.registerCrossLinks()}if(f.options.dynamicTabs){f.registerNav()}if(f.options.swipe){f.registerTouch()}if(f.options.keyboardNavigation){f.registerKeyboard()}(f.$sliderWrap).find("*").on("click",function(){if(f.options.forceAutoSlide){f.startAutoSlide(true)}else{if(f.options.autoSlide){f.stopAutoSlide()}}});f.hover()},setNextPanel:function(g){var f=this;if(g===f.nextPanel){return}f.prevPanel=f.nextPanel;if(f.loaded){if(typeof g==="number"){f.nextPanel=g}else{f.nextPanel+=(~~(g==="right")||-1);if(!f.options.continuous){f.nextPanel=(f.nextPanel<0)?f.panelCount-1:(f.nextPanel%f.panelCount)}}if(f.fade||f.animateCSS){f.prepareTransition(f.nextPanel)}else{f.verifyPanel()}}},getFirstPanel:function(){var g=this,f;if(g.options.hashLinking){f=g.getPanelNumber(c.location.hash,g.options.hashTitleSelector);if(typeof(f)!=="number"){f=0}}return(f)?f:g.options.firstPanelToLoad-1},getPanelNumber:function(i,h){var g=this,j,f=i.replace("#","").toLowerCase();(g.$panelClass).each(function(k){j=g.convertRegex(d(this).find(h).text());if(j===f){f=k+1}});return(parseInt(f,10)?parseInt(f,10)-1:f)},getFromPanel:function(g,h){var f=this;return f.convertRegex(f.$panelClass.find(g).eq(h).text())},convertRegex:function(f){return f.replace(/[^\w -]+/g,"").replace(/ +/g,"-").toLowerCase()},updateClass:function(){var f=this;if(f.options.dynamicTabs){d((f.$sliderWrap)).find(".tab"+f.sanatizeNumber(f.nextPanel)+":first a").addClass("current").parent().siblings().children().removeClass("current")}if(f.options.crossLinks&&f.crosslinks){(f.crosslinks).not(f.nextPanel).removeClass("currentCrossLink");(f.crosslinks).each(function(){if(d(this).attr("href")===("#"+f.getFromPanel(f.options.panelTitleSelector,f.sanatizeNumber(f.nextPanel)-1))){d(this).addClass("currentCrossLink")}})}f.$panelClass.eq(f.nextPanel).addClass("currentPanel").siblings().removeClass("currentPanel")},sanatizeNumber:function(f){var g=this;if(f>=g.panelCount){return 1}else{if(f<=-1){return g.panelCount}else{return f+1}}},finalize:function(){var g=this;var f=(g.options.autoHeight)?g.getHeight():g.getHeighestPanel(g.nextPanel);if(g.options.autoHeight){g.adjustHeight(true,f)}if(g.options.autoSlide){g.autoSlide()}if(g.options.preloader){g.removePreloader()}g.onload()},callback:function(g,h){var f=this;if(g&&f.loaded){if(f.useCSS&&typeof h!=="undefined"){d(".panel-container").one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(i){g.call(f)})}else{setTimeout(function(){g.call(f)},f.options.slideEaseDuration+50)}}},onload:function(){var f=this;f.options.onload.call(f)},prepareTransition:function(j,h,g,i){var f=this;f.nextPanel=j||0;if(!g){f.pretransition(f.options.pretransition)}f.noAnimation=h;f.noPosttransition=i;if(!f.loaded){f.transition()}else{f.options.pretransition.call(f)}},pretransition:function(){var f=this,g;if(f.options.hashLinking){f.updateHashTags()}if(f.options.mobileNavigation){f.dropdownSelect.val("tab"+(f.nextPanel+1))}if(f.options.hideSideArrows){f.hideShowArrows()}f.updateClass()},getTransitionMargin:function(){var f=this;return -(f.nextPanel*f.slideDistance)-(f.slideDistance*~~(f.options.continuous))},transition:function(){var f=this,g=f.getTransitionMargin();if(f.animateCSS&&f.loaded){f.transitionOutAnimateCSS();return false}if((g+f.pSign)!==(f.panelContainer).css("margin-left")||(g!==-100)){if(f.options.autoHeight&&!f.animateCSS){f.adjustHeight(true,f.getHeight())}if(f.fade){f.transitionFade()}else{if(f.animateCSS){f.transitionInAnimateCSS(g)}else{if(f.useCSS){f.transitionCSS(g,f.noAnimation)}else{f.transitionjQuery(g,f.noAnimation)}}}}if(!f.noPosttransition){f.callback(f.options.callback)}},transitionOutAnimateCSS:function(){var f=this;d(f.panelClass).removeClass(f.options.animateIn+" animated");d(f.panelClass).eq(f.prevPanel).addClass("animated "+f.options.animateOut);f.callback(f.transitionInAnimateCSS,e)},transitionInAnimateCSS:function(){var f=this;if(f.options.autoHeight){f.adjustHeight(false,f.getHeight())}f.transitionCSS(f.getTransitionMargin(),!f.loaded);d(f.panelClass).removeClass(f.options.animateOut+" animated");d(f.panelClass).eq(f.nextPanel).addClass("animated "+f.options.animateIn);f.callback(f.options.callback,e)},transitionCSS:function(h,g){var f=this;if(g){f.configureCSSTransitions("0","0")}(f.panelContainer).css({"-webkit-transform":"translate3d("+h+f.pSign+", 0, 0)","-moz-transform":"translate3d("+h+f.pSign+", 0, 0)","-ms-transform":"translate3d("+h+f.pSign+", 0, 0)","-o-transform":"translate3d("+h+f.pSign+", 0, 0)",transform:"translate3d("+h+f.pSign+", 0, 0)"});if(g){f.callback(function(){f.configureCSSTransitions()})}else{f.configureCSSTransitions()}},transitionjQuery:function(h,g){var f=this;if(g){(f.panelContainer).css("margin-left",h+f.pSign)}else{(f.panelContainer).animate({"margin-left":h+f.pSign},{easing:f.options.slideEaseFunction,duration:f.options.slideEaseDuration,queue:false})}},getHeighestPanel:function(){var g=this,f,h=0;g.$panelClass.each(function(){f=d(this).outerHeight(true);h=(f>h)?f:h});if(!g.options.autoHeight){return h}},verifyPanel:function(){var g=this,f=false;if(g.options.continuous){if(g.nextPanel>g.panelCount){g.nextPanel=g.panelCount;g.setNextPanel(g.panelCount)}else{if(g.nextPanel<-1){g.nextPanel=-1;g.setNextPanel(-1)}else{if((!f)&&((g.nextPanel===g.panelCount)||(g.nextPanel===-1))){g.prepareTransition(g.nextPanel);g.updateClass();clearTimeout(h);var h=setTimeout(function(){if(g.nextPanel===g.panelCount){g.prepareTransition(0,true,true,true)}else{if(g.nextPanel===-1){g.prepareTransition(g.panelCount-1,true,true,true)}}},g.options.slideEaseDuration+50)}else{f=true;g.prepareTransition(g.nextPanel)}}}}else{if(g.nextPanel===g.panelCount){g.nextPanel=0}else{if(g.nextPanel===-1){g.nextPanel=(g.panelCount-1)}}g.prepareTransition(g.nextPanel)}}};d.fn.liquidSlider=function(f){return this.each(function(){var g=Object.create(b);g.init(f,this);d.data(this,"liquidSlider",g)})};d.fn.liquidSlider.options={autoHeight:true,minHeight:0,heightEaseDuration:1500,heightEaseFunction:"easeInOutExpo",slideEaseDuration:1500,slideEaseFunction:"easeInOutExpo",slideEaseFunctionFallback:"easeInOutExpo",animateIn:"bounceInRight",animateOut:"bounceOutRight",continuous:true,fadeInDuration:500,fadeOutDuration:500,autoSlide:false,autoSlideDirection:"right",autoSlideInterval:6000,forceAutoSlide:false,pauseOnHover:false,dynamicArrows:true,dynamicArrowsGraphical:true,dynamicArrowLeftText:"« left",dynamicArrowRightText:"right »",hideSideArrows:false,hideSideArrowsDuration:750,hoverArrows:true,hoverArrowDuration:250,dynamicTabs:true,dynamicTabsHtml:true,includeTitle:true,panelTitleSelector:".title",dynamicTabsAlign:"left",dynamicTabsPosition:"top",navElementTag:"div",firstPanelToLoad:1,crossLinks:false,hashLinking:false,hashTitleSelector:".title",keyboardNavigation:false,leftKey:39,rightKey:37,panelKeys:{1:49,2:50,3:51,4:52},responsive:true,mobileNavigation:true,mobileNavDefaultText:"Menu",mobileUIThreshold:0,hideArrowsWhenMobile:true,hideArrowsThreshold:0,useCSSMaxWidth:2200,preload:function(){this.finalize()},onload:function(){},pretransition:function(){this.transition()},callback:function(){},preloader:false,swipe:true,swipeArgs:e}})(jQuery,window,document);PK A>H[l��� � js/jquery.easing.1.3.jsnu &1i� /*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright © 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing,
{
def: 'easeOutQuad',
swing: function (x, t, b, c, d) {
//alert(jQuery.easing.default);
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
},
easeInQuad: function (x, t, b, c, d) {
return c*(t/=d)*t + b;
},
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
},
easeInOutQuad: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t + b;
return -c/2 * ((--t)*(t-2) - 1) + b;
},
easeInCubic: function (x, t, b, c, d) {
return c*(t/=d)*t*t + b;
},
easeOutCubic: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t + 1) + b;
},
easeInOutCubic: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t + b;
return c/2*((t-=2)*t*t + 2) + b;
},
easeInQuart: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t + b;
},
easeOutQuart: function (x, t, b, c, d) {
return -c * ((t=t/d-1)*t*t*t - 1) + b;
},
easeInOutQuart: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
return -c/2 * ((t-=2)*t*t*t - 2) + b;
},
easeInQuint: function (x, t, b, c, d) {
return c*(t/=d)*t*t*t*t + b;
},
easeOutQuint: function (x, t, b, c, d) {
return c*((t=t/d-1)*t*t*t*t + 1) + b;
},
easeInOutQuint: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
return c/2*((t-=2)*t*t*t*t + 2) + b;
},
easeInSine: function (x, t, b, c, d) {
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
},
easeOutSine: function (x, t, b, c, d) {
return c * Math.sin(t/d * (Math.PI/2)) + b;
},
easeInOutSine: function (x, t, b, c, d) {
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
},
easeInExpo: function (x, t, b, c, d) {
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
},
easeOutExpo: function (x, t, b, c, d) {
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
},
easeInOutExpo: function (x, t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
},
easeInCirc: function (x, t, b, c, d) {
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
},
easeOutCirc: function (x, t, b, c, d) {
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
},
easeInOutCirc: function (x, t, b, c, d) {
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
},
easeInElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
},
easeOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
},
easeInOutElastic: function (x, t, b, c, d) {
var s=1.70158;var p=0;var a=c;
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
if (a < Math.abs(c)) { a=c; var s=p/4; }
else var s = p/(2*Math.PI) * Math.asin (c/a);
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
},
easeInBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*(t/=d)*t*((s+1)*t - s) + b;
},
easeOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
},
easeInOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
},
easeInBounce: function (x, t, b, c, d) {
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
},
easeOutBounce: function (x, t, b, c, d) {
if ((t/=d) < (1/2.75)) {
return c*(7.5625*t*t) + b;
} else if (t < (2/2.75)) {
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
} else if (t < (2.5/2.75)) {
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
} else {
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
}
},
easeInOutBounce: function (x, t, b, c, d) {
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
}
});
/*
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright © 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/PK A>H[�x�f$� $� img/arrows.psdnu &1i� 8BPS 2 2 �8BIM /Z %GZ %GZ %GZ %GZ %G 8BIM% n�r��v���"H�+}�8BIM$ N�<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c061 64.140949, 2010/12/07-10:57:01 ">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about=""
xmlns:xmp="http://ns.adobe.com/xap/1.0/">
<xmp:CreatorTool>Adobe Photoshop CS5.1 Windows</xmp:CreatorTool>
<xmp:CreateDate>2012-06-14T15:10:25+07:00</xmp:CreateDate>
<xmp:ModifyDate>2012-06-30T16:14:26+07:00</xmp:ModifyDate>
<xmp:MetadataDate>2012-06-30T16:14:26+07:00</xmp:MetadataDate>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/vnd.adobe.photoshop</dc:format>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
<photoshop:ColorMode>3</photoshop:ColorMode>
<photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
<photoshop:DocumentAncestors>
<rdf:Bag>
<rdf:li>xmp.did:D609030604B9E111AE5D9769824C67A0</rdf:li>
</rdf:Bag>
</photoshop:DocumentAncestors>
</rdf:Description>
<rdf:Description rdf:about=""
xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#">
<xmpMM:InstanceID>xmp.iid:8304DEC793C2E111834594854D0360DB</xmpMM:InstanceID>
<xmpMM:DocumentID>xmp.did:D609030604B9E111AE5D9769824C67A0</xmpMM:DocumentID>
<xmpMM:OriginalDocumentID>xmp.did:D609030604B9E111AE5D9769824C67A0</xmpMM:OriginalDocumentID>
<xmpMM:History>
<rdf:Seq>
<rdf:li rdf:parseType="Resource">
<stEvt:action>created</stEvt:action>
<stEvt:instanceID>xmp.iid:D609030604B9E111AE5D9769824C67A0</stEvt:instanceID>
<stEvt:when>2012-06-14T15:10:25+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>converted</stEvt:action>
<stEvt:parameters>from image/png to application/vnd.adobe.photoshop</stEvt:parameters>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:D709030604B9E111AE5D9769824C67A0</stEvt:instanceID>
<stEvt:when>2012-06-18T14:59:28+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:D809030604B9E111AE5D9769824C67A0</stEvt:instanceID>
<stEvt:when>2012-06-18T15:59:18+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:CE681B6EC7BAE11193CD9F240D4D313B</stEvt:instanceID>
<stEvt:when>2012-06-20T18:02:30+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:3829372811BDE111B7E9C81938A6FE60</stEvt:instanceID>
<stEvt:when>2012-06-23T15:55:18+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:3929372811BDE111B7E9C81938A6FE60</stEvt:instanceID>
<stEvt:when>2012-06-23T15:55:44+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:6F45226E80C0E1118FC9FE00B33D13FC</stEvt:instanceID>
<stEvt:when>2012-06-28T01:12:24+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:7045226E80C0E1118FC9FE00B33D13FC</stEvt:instanceID>
<stEvt:when>2012-06-28T01:24:54+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:7145226E80C0E1118FC9FE00B33D13FC</stEvt:instanceID>
<stEvt:when>2012-06-28T01:26:27+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:7245226E80C0E1118FC9FE00B33D13FC</stEvt:instanceID>
<stEvt:when>2012-06-28T01:32:05+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:7345226E80C0E1118FC9FE00B33D13FC</stEvt:instanceID>
<stEvt:when>2012-06-28T01:59:45+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:8104DEC793C2E111834594854D0360DB</stEvt:instanceID>
<stEvt:when>2012-06-30T16:12:56+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:8204DEC793C2E111834594854D0360DB</stEvt:instanceID>
<stEvt:when>2012-06-30T16:14:07+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
<rdf:li rdf:parseType="Resource">
<stEvt:action>saved</stEvt:action>
<stEvt:instanceID>xmp.iid:8304DEC793C2E111834594854D0360DB</stEvt:instanceID>
<stEvt:when>2012-06-30T16:14:26+07:00</stEvt:when>
<stEvt:softwareAgent>Adobe Photoshop CS5.1 Windows</stEvt:softwareAgent>
<stEvt:changed>/</stEvt:changed>
</rdf:li>
</rdf:Seq>
</xmpMM:History>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>