diff --git a/js/jquery/jquery.fancybox-1.3.4.js b/js/jquery/jquery.fancybox-1.3.4.js
index a8520051..11283021 100755
--- a/js/jquery/jquery.fancybox-1.3.4.js
+++ b/js/jquery/jquery.fancybox-1.3.4.js
@@ -15,1142 +15,74 @@
* http://www.gnu.org/licenses/gpl.html
*/
-;(function($) {
- var tmp, loading, overlay, wrap, outer, content, close, title, nav_left, nav_right,
-
- selectedIndex = 0, selectedOpts = {}, selectedArray = [], currentIndex = 0, currentOpts = {}, currentArray = [],
-
- ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
-
- loadingTimer, loadingFrame = 1,
-
- titleHeight = 0, titleStr = '', start_pos, final_pos, busy = false, fx = $.extend($('
')[0], { prop: 0 }),
-
- isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHttpRequest,
-
- /*
- * Private methods
- */
-
- _abort = function() {
- loading.hide();
-
- imgPreloader.onerror = imgPreloader.onload = null;
-
- if (ajaxLoader) {
- ajaxLoader.abort();
- }
-
- tmp.empty();
- },
-
- _error = function() {
- if (false === selectedOpts.onError(selectedArray, selectedIndex, selectedOpts)) {
- loading.hide();
- busy = false;
- return;
- }
-
- selectedOpts.titleShow = false;
-
- selectedOpts.width = 'auto';
- selectedOpts.height = 'auto';
-
- tmp.html( 'The requested content cannot be loaded.
Please try again later.
' );
-
- _process_inline();
- },
-
- _start = function() {
- var obj = selectedArray[ selectedIndex ],
- href,
- type,
- title,
- str,
- emb,
- ret;
-
- _abort();
-
- selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typeof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybox')));
-
- ret = selectedOpts.onStart(selectedArray, selectedIndex, selectedOpts);
-
- if (ret === false) {
- busy = false;
- return;
- } else if (typeof ret == 'object') {
- selectedOpts = $.extend(selectedOpts, ret);
- }
-
- title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
-
- if (obj.nodeName && !selectedOpts.orig) {
- selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
- }
-
- if (title === '' && selectedOpts.orig && selectedOpts.titleFromAlt) {
- title = selectedOpts.orig.attr('alt');
- }
-
- href = selectedOpts.href || (obj.nodeName ? $(obj).attr('href') : obj.href) || null;
-
- if ((/^(?:javascript)/i).test(href) || href == '#') {
- href = null;
- }
-
- if (selectedOpts.type) {
- type = selectedOpts.type;
-
- if (!href) {
- href = selectedOpts.content;
- }
-
- } else if (selectedOpts.content) {
- type = 'html';
-
- } else if (href) {
- if (href.match(imgRegExp)) {
- type = 'image';
-
- } else if (href.match(swfRegExp)) {
- type = 'swf';
-
- } else if ($(obj).hasClass("iframe")) {
- type = 'iframe';
-
- } else if (href.indexOf("#") === 0) {
- type = 'inline';
-
- } else {
- type = 'ajax';
- }
- }
-
- if (!type) {
- _error();
- return;
- }
-
- if (type == 'inline') {
- obj = href.substr(href.indexOf("#"));
- type = $(obj).length > 0 ? 'inline' : 'ajax';
- }
-
- selectedOpts.type = type;
- selectedOpts.href = href;
- selectedOpts.title = title;
-
- if (selectedOpts.autoDimensions) {
- if (selectedOpts.type == 'html' || selectedOpts.type == 'inline' || selectedOpts.type == 'ajax') {
- selectedOpts.width = 'auto';
- selectedOpts.height = 'auto';
- } else {
- selectedOpts.autoDimensions = false;
- }
- }
-
- if (selectedOpts.modal) {
- selectedOpts.overlayShow = true;
- selectedOpts.hideOnOverlayClick = false;
- selectedOpts.hideOnContentClick = false;
- selectedOpts.enableEscapeButton = false;
- selectedOpts.showCloseButton = false;
- }
-
- selectedOpts.padding = parseInt(selectedOpts.padding, 10);
- selectedOpts.margin = parseInt(selectedOpts.margin, 10);
-
- tmp.css('padding', (selectedOpts.padding + selectedOpts.margin));
-
- $('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change', function() {
- $(this).replaceWith(content.children());
- });
-
- switch (type) {
- case 'html' :
- tmp.html( selectedOpts.content );
- _process_inline();
- break;
-
- case 'inline' :
- if ( $(obj).parent().is('#fancybox-content') === true) {
- busy = false;
- return;
- }
-
- $('')
- .hide()
- .insertBefore( $(obj) )
- .bind('fancybox-cleanup', function() {
- $(this).replaceWith(content.children());
- }).bind('fancybox-cancel', function() {
- $(this).replaceWith(tmp.children());
- });
-
- $(obj).appendTo(tmp);
-
- _process_inline();
- break;
-
- case 'image':
- busy = false;
-
- $.fancybox.showActivity();
-
- imgPreloader = new Image();
-
- imgPreloader.onerror = function() {
- _error();
- };
-
- imgPreloader.onload = function() {
- busy = true;
-
- imgPreloader.onerror = imgPreloader.onload = null;
-
- _process_image();
- };
-
- imgPreloader.src = href;
- break;
-
- case 'swf':
- selectedOpts.scrolling = 'no';
-
- str = '';
-
- tmp.html(str);
-
- _process_inline();
- break;
-
- case 'ajax':
- busy = false;
-
- $.fancybox.showActivity();
-
- selectedOpts.ajax.win = selectedOpts.ajax.success;
-
- ajaxLoader = $.ajax($.extend({}, selectedOpts.ajax, {
- url : href,
- data : selectedOpts.ajax.data || {},
- error : function(XMLHttpRequest, textStatus, errorThrown) {
- if ( XMLHttpRequest.status > 0 ) {
- _error();
- }
- },
- success : function(data, textStatus, XMLHttpRequest) {
- var o = typeof XMLHttpRequest == 'object' ? XMLHttpRequest : ajaxLoader;
- if (o.status == 200) {
- if ( typeof selectedOpts.ajax.win == 'function' ) {
- ret = selectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
-
- if (ret === false) {
- loading.hide();
- return;
- } else if (typeof ret == 'string' || typeof ret == 'object') {
- data = ret;
- }
- }
-
- tmp.html( data );
- _process_inline();
- }
- }
- }));
-
- break;
-
- case 'iframe':
- _show();
- break;
- }
- },
-
- _process_inline = function() {
- var
- w = selectedOpts.width,
- h = selectedOpts.height;
-
- if (w.toString().indexOf('%') > -1) {
- w = parseInt( ($(window).width() - (selectedOpts.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
-
- } else {
- w = w == 'auto' ? 'auto' : w + 'px';
- }
-
- if (h.toString().indexOf('%') > -1) {
- h = parseInt( ($(window).height() - (selectedOpts.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
-
- } else {
- h = h == 'auto' ? 'auto' : h + 'px';
- }
-
- tmp.wrapInner('');
-
- selectedOpts.width = tmp.width();
- selectedOpts.height = tmp.height();
-
- _show();
- },
-
- _process_image = function() {
- selectedOpts.width = imgPreloader.width;
- selectedOpts.height = imgPreloader.height;
-
- $("").attr({
- 'id' : 'fancybox-img',
- 'src' : imgPreloader.src,
- 'alt' : selectedOpts.title
- }).appendTo( tmp );
-
- _show();
- },
-
- _show = function() {
- var pos, equal;
-
- loading.hide();
-
- if (wrap.is(":visible") && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
- $.event.trigger('fancybox-cancel');
-
- busy = false;
- return;
- }
-
- busy = true;
-
- $(content.add( overlay )).unbind();
-
- $(window).unbind("resize.fb scroll.fb");
- $(document).unbind('keydown.fb');
-
- if (wrap.is(":visible") && currentOpts.titlePosition !== 'outside') {
- wrap.css('height', wrap.height());
- }
-
- currentArray = selectedArray;
- currentIndex = selectedIndex;
- currentOpts = selectedOpts;
-
- if (currentOpts.overlayShow) {
- overlay.css({
- 'background-color' : currentOpts.overlayColor,
- 'opacity' : currentOpts.overlayOpacity,
- 'cursor' : currentOpts.hideOnOverlayClick ? 'pointer' : 'auto',
- 'height' : $(document).height()
- });
-
- if (!overlay.is(':visible')) {
- if (isIE6) {
- $('select:not(#fancybox-tmp select)').filter(function() {
- return this.style.visibility !== 'hidden';
- }).css({'visibility' : 'hidden'}).one('fancybox-cleanup', function() {
- this.style.visibility = 'inherit';
- });
- }
-
- overlay.show();
- }
- } else {
- overlay.hide();
- }
-
- final_pos = _get_zoom_to();
-
- _process_title();
-
- if (wrap.is(":visible")) {
- $( close.add( nav_left ).add( nav_right ) ).hide();
-
- pos = wrap.position(),
-
- start_pos = {
- top : pos.top,
- left : pos.left,
- width : wrap.width(),
- height : wrap.height()
- };
-
- equal = (start_pos.width == final_pos.width && start_pos.height == final_pos.height);
-
- content.fadeTo(currentOpts.changeFade, 0.3, function() {
- var finish_resizing = function() {
- content.html( tmp.contents() ).fadeTo(currentOpts.changeFade, 1, _finish);
- };
-
- $.event.trigger('fancybox-change');
-
- content
- .empty()
- .removeAttr('filter')
- .css({
- 'border-width' : currentOpts.padding,
- 'width' : final_pos.width - currentOpts.padding * 2,
- 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
- });
-
- if (equal) {
- finish_resizing();
-
- } else {
- fx.prop = 0;
-
- $(fx).animate({prop: 1}, {
- duration : currentOpts.changeSpeed,
- easing : currentOpts.easingChange,
- step : _draw,
- complete : finish_resizing
- });
- }
- });
-
- return;
- }
-
- wrap.removeAttr("style");
-
- content.css('border-width', currentOpts.padding);
-
- if (currentOpts.transitionIn == 'elastic') {
- start_pos = _get_zoom_from();
-
- content.html( tmp.contents() );
-
- wrap.show();
-
- if (currentOpts.opacity) {
- final_pos.opacity = 0;
- }
-
- fx.prop = 0;
-
- $(fx).animate({prop: 1}, {
- duration : currentOpts.speedIn,
- easing : currentOpts.easingIn,
- step : _draw,
- complete : _finish
- });
-
- return;
- }
-
- if (currentOpts.titlePosition == 'inside' && titleHeight > 0) {
- title.show();
- }
-
- content
- .css({
- 'width' : final_pos.width - currentOpts.padding * 2,
- 'height' : selectedOpts.autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
- })
- .html( tmp.contents() );
-
- wrap
- .css(final_pos)
- .fadeIn( currentOpts.transitionIn == 'none' ? 0 : currentOpts.speedIn, _finish );
- },
-
- _format_title = function(title) {
- if (title && title.length) {
- if (currentOpts.titlePosition == 'float') {
- return '';
- }
-
- return '' + title + '
';
- }
-
- return false;
- },
-
- _process_title = function() {
- titleStr = currentOpts.title || '';
- titleHeight = 0;
-
- title
- .empty()
- .removeAttr('style')
- .removeClass();
-
- if (currentOpts.titleShow === false) {
- title.hide();
- return;
- }
-
- titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
-
- if (!titleStr || titleStr === '') {
- title.hide();
- return;
- }
-
- title
- .addClass('fancybox-title-' + currentOpts.titlePosition)
- .html( titleStr )
- .appendTo( 'body' )
- .show();
-
- switch (currentOpts.titlePosition) {
- case 'inside':
- title
- .css({
- 'width' : final_pos.width - (currentOpts.padding * 2),
- 'marginLeft' : currentOpts.padding,
- 'marginRight' : currentOpts.padding
- });
-
- titleHeight = title.outerHeight(true);
-
- title.appendTo( outer );
-
- final_pos.height += titleHeight;
- break;
-
- case 'over':
- title
- .css({
- 'marginLeft' : currentOpts.padding,
- 'width' : final_pos.width - (currentOpts.padding * 2),
- 'bottom' : currentOpts.padding
- })
- .appendTo( outer );
- break;
-
- case 'float':
- title
- .css('left', parseInt((title.width() - final_pos.width - 40)/ 2, 10) * -1)
- .appendTo( wrap );
- break;
-
- default:
- title
- .css({
- 'width' : final_pos.width - (currentOpts.padding * 2),
- 'paddingLeft' : currentOpts.padding,
- 'paddingRight' : currentOpts.padding
- })
- .appendTo( wrap );
- break;
- }
-
- title.hide();
- },
-
- _set_navigation = function() {
- if (currentOpts.enableEscapeButton || currentOpts.enableKeyboardNav) {
- $(document).bind('keydown.fb', function(e) {
- if (e.keyCode == 27 && currentOpts.enableEscapeButton) {
- e.preventDefault();
- $.fancybox.close();
-
- } else if ((e.keyCode == 37 || e.keyCode == 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.target.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
- e.preventDefault();
- $.fancybox[ e.keyCode == 37 ? 'prev' : 'next']();
- }
- });
- }
-
- if (!currentOpts.showNavArrows) {
- nav_left.hide();
- nav_right.hide();
- return;
- }
-
- if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex !== 0) {
- nav_left.show();
- }
-
- if ((currentOpts.cyclic && currentArray.length > 1) || currentIndex != (currentArray.length -1)) {
- nav_right.show();
- }
- },
-
- _finish = function () {
- if (!$.support.opacity) {
- content.get(0).style.removeAttribute('filter');
- wrap.get(0).style.removeAttribute('filter');
- }
-
- if (selectedOpts.autoDimensions) {
- content.css('height', 'auto');
- }
-
- wrap.css('height', 'auto');
-
- if (titleStr && titleStr.length) {
- title.show();
- }
-
- if (currentOpts.showCloseButton) {
- close.show();
- }
-
- _set_navigation();
-
- if (currentOpts.hideOnContentClick) {
- content.bind('click', $.fancybox.close);
- }
-
- if (currentOpts.hideOnOverlayClick) {
- overlay.bind('click', $.fancybox.close);
- }
-
- $(window).bind("resize.fb", $.fancybox.resize);
-
- if (currentOpts.centerOnScroll) {
- $(window).bind("scroll.fb", $.fancybox.center);
- }
-
- if (currentOpts.type == 'iframe') {
- $('').appendTo(content);
- }
-
- wrap.show();
-
- busy = false;
-
- $.fancybox.center();
-
- currentOpts.onComplete(currentArray, currentIndex, currentOpts);
-
- _preload_images();
- },
-
- _preload_images = function() {
- var href,
- objNext;
-
- if ((currentArray.length -1) > currentIndex) {
- href = currentArray[ currentIndex + 1 ].href;
-
- if (typeof href !== 'undefined' && href.match(imgRegExp)) {
- objNext = new Image();
- objNext.src = href;
- }
- }
-
- if (currentIndex > 0) {
- href = currentArray[ currentIndex - 1 ].href;
-
- if (typeof href !== 'undefined' && href.match(imgRegExp)) {
- objNext = new Image();
- objNext.src = href;
- }
- }
- },
-
- _draw = function(pos) {
- var dim = {
- width : parseInt(start_pos.width + (final_pos.width - start_pos.width) * pos, 10),
- height : parseInt(start_pos.height + (final_pos.height - start_pos.height) * pos, 10),
-
- top : parseInt(start_pos.top + (final_pos.top - start_pos.top) * pos, 10),
- left : parseInt(start_pos.left + (final_pos.left - start_pos.left) * pos, 10)
- };
-
- if (typeof final_pos.opacity !== 'undefined') {
- dim.opacity = pos < 0.5 ? 0.5 : pos;
- }
-
- wrap.css(dim);
-
- content.css({
- 'width' : dim.width - currentOpts.padding * 2,
- 'height' : dim.height - (titleHeight * pos) - currentOpts.padding * 2
- });
- },
-
- _get_viewport = function() {
- return [
- $(window).width() - (currentOpts.margin * 2),
- $(window).height() - (currentOpts.margin * 2),
- $(document).scrollLeft() + currentOpts.margin,
- $(document).scrollTop() + currentOpts.margin
- ];
- },
-
- _get_zoom_to = function () {
- var view = _get_viewport(),
- to = {},
- resize = currentOpts.autoScale,
- double_padding = currentOpts.padding * 2,
- ratio;
-
- if (currentOpts.width.toString().indexOf('%') > -1) {
- to.width = parseInt((view[0] * parseFloat(currentOpts.width)) / 100, 10);
- } else {
- to.width = currentOpts.width + double_padding;
- }
-
- if (currentOpts.height.toString().indexOf('%') > -1) {
- to.height = parseInt((view[1] * parseFloat(currentOpts.height)) / 100, 10);
- } else {
- to.height = currentOpts.height + double_padding;
- }
-
- if (resize && (to.width > view[0] || to.height > view[1])) {
- if (selectedOpts.type == 'image' || selectedOpts.type == 'swf') {
- ratio = (currentOpts.width ) / (currentOpts.height );
-
- if ((to.width ) > view[0]) {
- to.width = view[0];
- to.height = parseInt(((to.width - double_padding) / ratio) + double_padding, 10);
- }
-
- if ((to.height) > view[1]) {
- to.height = view[1];
- to.width = parseInt(((to.height - double_padding) * ratio) + double_padding, 10);
- }
-
- } else {
- to.width = Math.min(to.width, view[0]);
- to.height = Math.min(to.height, view[1]);
- }
- }
-
- to.top = parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - to.height - 40) * 0.5)), 10);
- to.left = parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - to.width - 40) * 0.5)), 10);
-
- return to;
- },
-
- _get_obj_pos = function(obj) {
- var pos = obj.offset();
-
- pos.top += parseInt( obj.css('paddingTop'), 10 ) || 0;
- pos.left += parseInt( obj.css('paddingLeft'), 10 ) || 0;
-
- pos.top += parseInt( obj.css('border-top-width'), 10 ) || 0;
- pos.left += parseInt( obj.css('border-left-width'), 10 ) || 0;
-
- pos.width = obj.width();
- pos.height = obj.height();
-
- return pos;
- },
-
- _get_zoom_from = function() {
- var orig = selectedOpts.orig ? $(selectedOpts.orig) : false,
- from = {},
- pos,
- view;
-
- if (orig && orig.length) {
- pos = _get_obj_pos(orig);
-
- from = {
- width : pos.width + (currentOpts.padding * 2),
- height : pos.height + (currentOpts.padding * 2),
- top : pos.top - currentOpts.padding - 20,
- left : pos.left - currentOpts.padding - 20
- };
-
- } else {
- view = _get_viewport();
-
- from = {
- width : currentOpts.padding * 2,
- height : currentOpts.padding * 2,
- top : parseInt(view[3] + view[1] * 0.5, 10),
- left : parseInt(view[2] + view[0] * 0.5, 10)
- };
- }
-
- return from;
- },
-
- _animate_loading = function() {
- if (!loading.is(':visible')){
- clearInterval(loadingTimer);
- return;
- }
-
- $('div', loading).css('top', (loadingFrame * -40) + 'px');
-
- loadingFrame = (loadingFrame + 1) % 12;
- };
-
- /*
- * Public methods
- */
-
- $.fn.fancybox = function(options) {
- if (!$(this).length) {
- return this;
- }
-
- $(this)
- .data('fancybox', $.extend({}, options, ($.metadata ? $(this).metadata() : {})))
- .unbind('click.fb')
- .bind('click.fb', function(e) {
- e.preventDefault();
-
- if (busy) {
- return;
- }
-
- busy = true;
-
- $(this).blur();
-
- selectedArray = [];
- selectedIndex = 0;
-
- var rel = $(this).attr('rel') || '';
-
- if (!rel || rel == '' || rel === 'nofollow') {
- selectedArray.push(this);
-
- } else {
- selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");
- selectedIndex = selectedArray.index( this );
- }
-
- _start();
-
- return;
- });
-
- return this;
- };
-
- $.fancybox = function(obj) {
- var opts;
-
- if (busy) {
- return;
- }
-
- busy = true;
- opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
-
- selectedArray = [];
- selectedIndex = parseInt(opts.index, 10) || 0;
-
- if ($.isArray(obj)) {
- for (var i = 0, j = obj.length; i < j; i++) {
- if (typeof obj[i] == 'object') {
- $(obj[i]).data('fancybox', $.extend({}, opts, obj[i]));
- } else {
- obj[i] = $({}).data('fancybox', $.extend({content : obj[i]}, opts));
- }
- }
-
- selectedArray = jQuery.merge(selectedArray, obj);
-
- } else {
- if (typeof obj == 'object') {
- $(obj).data('fancybox', $.extend({}, opts, obj));
- } else {
- obj = $({}).data('fancybox', $.extend({content : obj}, opts));
- }
-
- selectedArray.push(obj);
- }
-
- if (selectedIndex > selectedArray.length || selectedIndex < 0) {
- selectedIndex = 0;
- }
-
- _start();
- };
-
- $.fancybox.showActivity = function() {
- clearInterval(loadingTimer);
-
- loading.show();
- loadingTimer = setInterval(_animate_loading, 66);
- };
-
- $.fancybox.hideActivity = function() {
- loading.hide();
- };
-
- $.fancybox.next = function() {
- return $.fancybox.pos( currentIndex + 1);
- };
-
- $.fancybox.prev = function() {
- return $.fancybox.pos( currentIndex - 1);
- };
-
- $.fancybox.pos = function(pos) {
- if (busy) {
- return;
- }
-
- pos = parseInt(pos);
-
- selectedArray = currentArray;
-
- if (pos > -1 && pos < currentArray.length) {
- selectedIndex = pos;
- _start();
-
- } else if (currentOpts.cyclic && currentArray.length > 1) {
- selectedIndex = pos >= currentArray.length ? 0 : currentArray.length - 1;
- _start();
- }
-
- return;
- };
-
- $.fancybox.cancel = function() {
- if (busy) {
- return;
- }
-
- busy = true;
-
- $.event.trigger('fancybox-cancel');
-
- _abort();
-
- selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts);
-
- busy = false;
- };
-
- // Note: within an iframe use - parent.$.fancybox.close();
- $.fancybox.close = function() {
- if (busy || wrap.is(':hidden')) {
- return;
- }
-
- busy = true;
-
- if (currentOpts && false === currentOpts.onCleanup(currentArray, currentIndex, currentOpts)) {
- busy = false;
- return;
- }
-
- _abort();
-
- $(close.add( nav_left ).add( nav_right )).hide();
-
- $(content.add( overlay )).unbind();
-
- $(window).unbind("resize.fb scroll.fb");
- $(document).unbind('keydown.fb');
-
- content.find('iframe').attr('src', isIE6 && /^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank');
-
- if (currentOpts.titlePosition !== 'inside') {
- title.empty();
- }
-
- wrap.stop();
-
- function _cleanup() {
- overlay.fadeOut('fast');
-
- title.empty().hide();
- wrap.hide();
-
- $.event.trigger('fancybox-cleanup');
-
- content.empty();
-
- currentOpts.onClosed(currentArray, currentIndex, currentOpts);
-
- currentArray = selectedOpts = [];
- currentIndex = selectedIndex = 0;
- currentOpts = selectedOpts = {};
-
- busy = false;
- }
-
- if (currentOpts.transitionOut == 'elastic') {
- start_pos = _get_zoom_from();
-
- var pos = wrap.position();
-
- final_pos = {
- top : pos.top ,
- left : pos.left,
- width : wrap.width(),
- height : wrap.height()
- };
-
- if (currentOpts.opacity) {
- final_pos.opacity = 1;
- }
-
- title.empty().hide();
-
- fx.prop = 1;
-
- $(fx).animate({ prop: 0 }, {
- duration : currentOpts.speedOut,
- easing : currentOpts.easingOut,
- step : _draw,
- complete : _cleanup
- });
-
- } else {
- wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 : currentOpts.speedOut, _cleanup);
- }
- };
-
- $.fancybox.resize = function() {
- if (overlay.is(':visible')) {
- overlay.css('height', $(document).height());
- }
-
- $.fancybox.center(true);
- };
-
- $.fancybox.center = function() {
- var view, align;
-
- if (busy) {
- return;
- }
-
- align = arguments[0] === true ? 1 : 0;
- view = _get_viewport();
-
- if (!align && (wrap.width() > view[0] || wrap.height() > view[1])) {
- return;
- }
-
- wrap
- .stop()
- .animate({
- 'top' : parseInt(Math.max(view[3] - 20, view[3] + ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),
- 'left' : parseInt(Math.max(view[2] - 20, view[2] + ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))
- }, typeof arguments[0] == 'number' ? arguments[0] : 200);
- };
-
- $.fancybox.init = function() {
- if ($("#fancybox-wrap").length) {
- return;
- }
-
- $('body').append(
- tmp = $(''),
- loading = $(''),
- overlay = $(''),
- wrap = $('')
- );
-
- outer = $('')
- .append('')
- .appendTo( wrap );
-
- outer.append(
- content = $(''),
- close = $(''),
- title = $(''),
-
- nav_left = $(''),
- nav_right = $('')
- );
-
- close.click($.fancybox.close);
- loading.click($.fancybox.cancel);
-
- nav_left.click(function(e) {
- e.preventDefault();
- $.fancybox.prev();
- });
-
- nav_right.click(function(e) {
- e.preventDefault();
- $.fancybox.next();
- });
-
- if ($.fn.mousewheel) {
- wrap.bind('mousewheel.fb', function(e, delta) {
- if (busy) {
- e.preventDefault();
-
- } else if ($(e.target).get(0).clientHeight == 0 || $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
- e.preventDefault();
- $.fancybox[ delta > 0 ? 'prev' : 'next']();
- }
- });
- }
-
- if (!$.support.opacity) {
- wrap.addClass('fancybox-ie');
- }
-
- if (isIE6) {
- loading.addClass('fancybox-ie6');
- wrap.addClass('fancybox-ie6');
-
- $('').prependTo(outer);
- }
- };
-
- $.fn.fancybox.defaults = {
- padding : 10,
- margin : 40,
- opacity : false,
- modal : false,
- cyclic : false,
- scrolling : 'auto', // 'auto', 'yes' or 'no'
-
- width : 560,
- height : 340,
-
- autoScale : true,
- autoDimensions : true,
- centerOnScroll : false,
-
- ajax : {},
- swf : { wmode: 'transparent' },
-
- hideOnOverlayClick : true,
- hideOnContentClick : false,
-
- overlayShow : true,
- overlayOpacity : 0.7,
- overlayColor : '#777',
-
- titleShow : true,
- titlePosition : 'float', // 'float', 'outside', 'inside' or 'over'
- titleFormat : null,
- titleFromAlt : false,
-
- transitionIn : 'fade', // 'elastic', 'fade' or 'none'
- transitionOut : 'fade', // 'elastic', 'fade' or 'none'
-
- speedIn : 300,
- speedOut : 300,
-
- changeSpeed : 300,
- changeFade : 'fast',
-
- easingIn : 'swing',
- easingOut : 'swing',
-
- showCloseButton : true,
- showNavArrows : true,
- enableEscapeButton : true,
- enableKeyboardNav : true,
-
- onStart : function(){},
- onCancel : function(){},
- onComplete : function(){},
- onCleanup : function(){},
- onClosed : function(){},
- onError : function(){}
- };
-
- $(document).ready(function() {
- $.fancybox.init();
- });
-
-})(jQuery);
\ No newline at end of file
+;(function($){var tmp,loading,overlay,wrap,outer,content,close,title,nav_left,nav_right,selectedIndex=0,selectedOpts={},selectedArray=[],currentIndex=0,currentOpts={},currentArray=[],ajaxLoader=null,imgPreloader=new Image(),imgRegExp=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,swfRegExp=/[^\.]\.(swf)\s*$/i,loadingTimer,loadingFrame=1,titleHeight=0,titleStr='',start_pos,final_pos,busy=!1,fx=$.extend($('')[0],{prop:0}),isIE6=$.browser.msie&&$.browser.version<7&&!window.XMLHttpRequest,_abort=function(){loading.hide();imgPreloader.onerror=imgPreloader.onload=null;if(ajaxLoader){ajaxLoader.abort()}
+tmp.empty()},_error=function(){if(!1===selectedOpts.onError(selectedArray,selectedIndex,selectedOpts)){loading.hide();busy=!1;return}
+selectedOpts.titleShow=!1;selectedOpts.width='auto';selectedOpts.height='auto';tmp.html('The requested content cannot be loaded.
Please try again later.
');_process_inline()},_start=function(){var obj=selectedArray[selectedIndex],href,type,title,str,emb,ret;_abort();selectedOpts=$.extend({},$.fn.fancybox.defaults,(typeof $(obj).data('fancybox')=='undefined'?selectedOpts:$(obj).data('fancybox')));ret=selectedOpts.onStart(selectedArray,selectedIndex,selectedOpts);if(ret===!1){busy=!1;return}else if(typeof ret=='object'){selectedOpts=$.extend(selectedOpts,ret)}
+title=selectedOpts.title||(obj.nodeName?$(obj).attr('title'):obj.title)||'';if(obj.nodeName&&!selectedOpts.orig){selectedOpts.orig=$(obj).children("img:first").length?$(obj).children("img:first"):$(obj)}
+if(title===''&&selectedOpts.orig&&selectedOpts.titleFromAlt){title=selectedOpts.orig.attr('alt')}
+href=selectedOpts.href||(obj.nodeName?$(obj).attr('href'):obj.href)||null;if((/^(?:javascript)/i).test(href)||href=='#'){href=null}
+if(selectedOpts.type){type=selectedOpts.type;if(!href){href=selectedOpts.content}}else if(selectedOpts.content){type='html'}else if(href){if(href.match(imgRegExp)){type='image'}else if(href.match(swfRegExp)){type='swf'}else if($(obj).hasClass("iframe")){type='iframe'}else if(href.indexOf("#")===0){type='inline'}else{type='ajax'}}
+if(!type){_error();return}
+if(type=='inline'){obj=href.substr(href.indexOf("#"));type=$(obj).length>0?'inline':'ajax'}
+selectedOpts.type=type;selectedOpts.href=href;selectedOpts.title=title;if(selectedOpts.autoDimensions){if(selectedOpts.type=='html'||selectedOpts.type=='inline'||selectedOpts.type=='ajax'){selectedOpts.width='auto';selectedOpts.height='auto'}else{selectedOpts.autoDimensions=!1}}
+if(selectedOpts.modal){selectedOpts.overlayShow=!0;selectedOpts.hideOnOverlayClick=!1;selectedOpts.hideOnContentClick=!1;selectedOpts.enableEscapeButton=!1;selectedOpts.showCloseButton=!1}
+selectedOpts.padding=parseInt(selectedOpts.padding,10);selectedOpts.margin=parseInt(selectedOpts.margin,10);tmp.css('padding',(selectedOpts.padding+selectedOpts.margin));$('.fancybox-inline-tmp').unbind('fancybox-cancel').bind('fancybox-change',function(){$(this).replaceWith(content.children())});switch(type){case 'html':tmp.html(selectedOpts.content);_process_inline();break;case 'inline':if($(obj).parent().is('#fancybox-content')===!0){busy=!1;return}
+$('').hide().insertBefore($(obj)).bind('fancybox-cleanup',function(){$(this).replaceWith(content.children())}).bind('fancybox-cancel',function(){$(this).replaceWith(tmp.children())});$(obj).appendTo(tmp);_process_inline();break;case 'image':busy=!1;$.fancybox.showActivity();imgPreloader=new Image();imgPreloader.onerror=function(){_error()};imgPreloader.onload=function(){busy=!0;imgPreloader.onerror=imgPreloader.onload=null;_process_image()};imgPreloader.src=href;break;case 'swf':selectedOpts.scrolling='no';str='';tmp.html(str);_process_inline();break;case 'ajax':busy=!1;$.fancybox.showActivity();selectedOpts.ajax.win=selectedOpts.ajax.success;ajaxLoader=$.ajax($.extend({},selectedOpts.ajax,{url:href,data:selectedOpts.ajax.data||{},error:function(XMLHttpRequest,textStatus,errorThrown){if(XMLHttpRequest.status>0){_error()}},success:function(data,textStatus,XMLHttpRequest){var o=typeof XMLHttpRequest=='object'?XMLHttpRequest:ajaxLoader;if(o.status==200){if(typeof selectedOpts.ajax.win=='function'){ret=selectedOpts.ajax.win(href,data,textStatus,XMLHttpRequest);if(ret===!1){loading.hide();return}else if(typeof ret=='string'||typeof ret=='object'){data=ret}}
+tmp.html(data);_process_inline()}}}));break;case 'iframe':_show();break}},_process_inline=function(){var
+w=selectedOpts.width,h=selectedOpts.height;if(w.toString().indexOf('%')>-1){w=parseInt(($(window).width()-(selectedOpts.margin*2))*parseFloat(w)/100,10)+'px'}else{w=w=='auto'?'auto':w+'px'}
+if(h.toString().indexOf('%')>-1){h=parseInt(($(window).height()-(selectedOpts.margin*2))*parseFloat(h)/100,10)+'px'}else{h=h=='auto'?'auto':h+'px'}
+tmp.wrapInner('');selectedOpts.width=tmp.width();selectedOpts.height=tmp.height();_show()},_process_image=function(){selectedOpts.width=imgPreloader.width;selectedOpts.height=imgPreloader.height;$("").attr({'id':'fancybox-img','src':imgPreloader.src,'alt':selectedOpts.title}).appendTo(tmp);_show()},_show=function(){var pos,equal;loading.hide();if(wrap.is(":visible")&&!1===currentOpts.onCleanup(currentArray,currentIndex,currentOpts)){$.event.trigger('fancybox-cancel');busy=!1;return}
+busy=!0;$(content.add(overlay)).unbind();$(window).unbind("resize.fb scroll.fb");$(document).unbind('keydown.fb');if(wrap.is(":visible")&¤tOpts.titlePosition!=='outside'){wrap.css('height',wrap.height())}
+currentArray=selectedArray;currentIndex=selectedIndex;currentOpts=selectedOpts;if(currentOpts.overlayShow){overlay.css({'background-color':currentOpts.overlayColor,'opacity':currentOpts.overlayOpacity,'cursor':currentOpts.hideOnOverlayClick?'pointer':'auto','height':$(document).height()});if(!overlay.is(':visible')){if(isIE6){$('select:not(#fancybox-tmp select)').filter(function(){return this.style.visibility!=='hidden'}).css({'visibility':'hidden'}).one('fancybox-cleanup',function(){this.style.visibility='inherit'})}
+overlay.show()}}else{overlay.hide()}
+final_pos=_get_zoom_to();_process_title();if(wrap.is(":visible")){$(close.add(nav_left).add(nav_right)).hide();pos=wrap.position(),start_pos={top:pos.top,left:pos.left,width:wrap.width(),height:wrap.height()};equal=(start_pos.width==final_pos.width&&start_pos.height==final_pos.height);content.fadeTo(currentOpts.changeFade,0.3,function(){var finish_resizing=function(){content.html(tmp.contents()).fadeTo(currentOpts.changeFade,1,_finish)};$.event.trigger('fancybox-change');content.empty().removeAttr('filter').css({'border-width':currentOpts.padding,'width':final_pos.width-currentOpts.padding*2,'height':selectedOpts.autoDimensions?'auto':final_pos.height-titleHeight-currentOpts.padding*2});if(equal){finish_resizing()}else{fx.prop=0;$(fx).animate({prop:1},{duration:currentOpts.changeSpeed,easing:currentOpts.easingChange,step:_draw,complete:finish_resizing})}});return}
+wrap.removeAttr("style");content.css('border-width',currentOpts.padding);if(currentOpts.transitionIn=='elastic'){start_pos=_get_zoom_from();content.html(tmp.contents());wrap.show();if(currentOpts.opacity){final_pos.opacity=0}
+fx.prop=0;$(fx).animate({prop:1},{duration:currentOpts.speedIn,easing:currentOpts.easingIn,step:_draw,complete:_finish});return}
+if(currentOpts.titlePosition=='inside'&&titleHeight>0){title.show()}
+content.css({'width':final_pos.width-currentOpts.padding*2,'height':selectedOpts.autoDimensions?'auto':final_pos.height-titleHeight-currentOpts.padding*2}).html(tmp.contents());wrap.css(final_pos).fadeIn(currentOpts.transitionIn=='none'?0:currentOpts.speedIn,_finish)},_format_title=function(title){if(title&&title.length){if(currentOpts.titlePosition=='float'){return ''}
+return ''+title+'
'}
+return!1},_process_title=function(){titleStr=currentOpts.title||'';titleHeight=0;title.empty().removeAttr('style').removeClass();if(currentOpts.titleShow===!1){title.hide();return}
+titleStr=$.isFunction(currentOpts.titleFormat)?currentOpts.titleFormat(titleStr,currentArray,currentIndex,currentOpts):_format_title(titleStr);if(!titleStr||titleStr===''){title.hide();return}
+title.addClass('fancybox-title-'+currentOpts.titlePosition).html(titleStr).appendTo('body').show();switch(currentOpts.titlePosition){case 'inside':title.css({'width':final_pos.width-(currentOpts.padding*2),'marginLeft':currentOpts.padding,'marginRight':currentOpts.padding});titleHeight=title.outerHeight(!0);title.appendTo(outer);final_pos.height+=titleHeight;break;case 'over':title.css({'marginLeft':currentOpts.padding,'width':final_pos.width-(currentOpts.padding*2),'bottom':currentOpts.padding}).appendTo(outer);break;case 'float':title.css('left',parseInt((title.width()-final_pos.width-40)/2,10)*-1).appendTo(wrap);break;default:title.css({'width':final_pos.width-(currentOpts.padding*2),'paddingLeft':currentOpts.padding,'paddingRight':currentOpts.padding}).appendTo(wrap);break}
+title.hide()},_set_navigation=function(){if(currentOpts.enableEscapeButton||currentOpts.enableKeyboardNav){$(document).bind('keydown.fb',function(e){if(e.keyCode==27&¤tOpts.enableEscapeButton){e.preventDefault();$.fancybox.close()}else if((e.keyCode==37||e.keyCode==39)&¤tOpts.enableKeyboardNav&&e.target.tagName!=='INPUT'&&e.target.tagName!=='TEXTAREA'&&e.target.tagName!=='SELECT'){e.preventDefault();$.fancybox[e.keyCode==37?'prev':'next']()}})}
+if(!currentOpts.showNavArrows){nav_left.hide();nav_right.hide();return}
+if((currentOpts.cyclic&¤tArray.length>1)||currentIndex!==0){nav_left.show()}
+if((currentOpts.cyclic&¤tArray.length>1)||currentIndex!=(currentArray.length-1)){nav_right.show()}},_finish=function(){if(!$.support.opacity){content.get(0).style.removeAttribute('filter');wrap.get(0).style.removeAttribute('filter')}
+if(selectedOpts.autoDimensions){content.css('height','auto')}
+wrap.css('height','auto');if(titleStr&&titleStr.length){title.show()}
+if(currentOpts.showCloseButton){close.show()}
+_set_navigation();if(currentOpts.hideOnContentClick){content.bind('click',$.fancybox.close)}
+if(currentOpts.hideOnOverlayClick){overlay.bind('click',$.fancybox.close)}
+$(window).bind("resize.fb",$.fancybox.resize);if(currentOpts.centerOnScroll){$(window).bind("scroll.fb",$.fancybox.center)}
+if(currentOpts.type=='iframe'){$('').appendTo(content)}
+wrap.show();busy=!1;$.fancybox.center();currentOpts.onComplete(currentArray,currentIndex,currentOpts);_preload_images()},_preload_images=function(){var href,objNext;if((currentArray.length-1)>currentIndex){href=currentArray[currentIndex+1].href;if(typeof href!=='undefined'&&href.match(imgRegExp)){objNext=new Image();objNext.src=href}}
+if(currentIndex>0){href=currentArray[currentIndex-1].href;if(typeof href!=='undefined'&&href.match(imgRegExp)){objNext=new Image();objNext.src=href}}},_draw=function(pos){var dim={width:parseInt(start_pos.width+(final_pos.width-start_pos.width)*pos,10),height:parseInt(start_pos.height+(final_pos.height-start_pos.height)*pos,10),top:parseInt(start_pos.top+(final_pos.top-start_pos.top)*pos,10),left:parseInt(start_pos.left+(final_pos.left-start_pos.left)*pos,10)};if(typeof final_pos.opacity!=='undefined'){dim.opacity=pos<0.5?0.5:pos}
+wrap.css(dim);content.css({'width':dim.width-currentOpts.padding*2,'height':dim.height-(titleHeight*pos)-currentOpts.padding*2})},_get_viewport=function(){return[$(window).width()-(currentOpts.margin*2),$(window).height()-(currentOpts.margin*2),$(document).scrollLeft()+currentOpts.margin,$(document).scrollTop()+currentOpts.margin]},_get_zoom_to=function(){var view=_get_viewport(),to={},resize=currentOpts.autoScale,double_padding=currentOpts.padding*2,ratio;if(currentOpts.width.toString().indexOf('%')>-1){to.width=parseInt((view[0]*parseFloat(currentOpts.width))/100,10)}else{to.width=currentOpts.width+double_padding}
+if(currentOpts.height.toString().indexOf('%')>-1){to.height=parseInt((view[1]*parseFloat(currentOpts.height))/100,10)}else{to.height=currentOpts.height+double_padding}
+if(resize&&(to.width>view[0]||to.height>view[1])){if(selectedOpts.type=='image'||selectedOpts.type=='swf'){ratio=(currentOpts.width)/(currentOpts.height);if((to.width)>view[0]){to.width=view[0];to.height=parseInt(((to.width-double_padding)/ratio)+double_padding,10)}
+if((to.height)>view[1]){to.height=view[1];to.width=parseInt(((to.height-double_padding)*ratio)+double_padding,10)}}else{to.width=Math.min(to.width,view[0]);to.height=Math.min(to.height,view[1])}}
+to.top=parseInt(Math.max(view[3]-20,view[3]+((view[1]-to.height-40)*0.5)),10);to.left=parseInt(Math.max(view[2]-20,view[2]+((view[0]-to.width-40)*0.5)),10);return to},_get_obj_pos=function(obj){var pos=obj.offset();pos.top+=parseInt(obj.css('paddingTop'),10)||0;pos.left+=parseInt(obj.css('paddingLeft'),10)||0;pos.top+=parseInt(obj.css('border-top-width'),10)||0;pos.left+=parseInt(obj.css('border-left-width'),10)||0;pos.width=obj.width();pos.height=obj.height();return pos},_get_zoom_from=function(){var orig=selectedOpts.orig?$(selectedOpts.orig):!1,from={},pos,view;if(orig&&orig.length){pos=_get_obj_pos(orig);from={width:pos.width+(currentOpts.padding*2),height:pos.height+(currentOpts.padding*2),top:pos.top-currentOpts.padding-20,left:pos.left-currentOpts.padding-20}}else{view=_get_viewport();from={width:currentOpts.padding*2,height:currentOpts.padding*2,top:parseInt(view[3]+view[1]*0.5,10),left:parseInt(view[2]+view[0]*0.5,10)}}
+return from},_animate_loading=function(){if(!loading.is(':visible')){clearInterval(loadingTimer);return}
+$('div',loading).css('top',(loadingFrame*-40)+'px');loadingFrame=(loadingFrame+1)%12};$.fn.fancybox=function(options){if(!$(this).length){return this}
+$(this).data('fancybox',$.extend({},options,($.metadata?$(this).metadata():{}))).unbind('click.fb').bind('click.fb',function(e){e.preventDefault();if(busy){return}
+busy=!0;$(this).blur();selectedArray=[];selectedIndex=0;var rel=$(this).attr('rel')||'';if(!rel||rel==''||rel==='nofollow'){selectedArray.push(this)}else{selectedArray=$("a[rel="+rel+"], area[rel="+rel+"]");selectedIndex=selectedArray.index(this)}
+_start();return});return this};$.fancybox=function(obj){var opts;if(busy){return}
+busy=!0;opts=typeof arguments[1]!=='undefined'?arguments[1]:{};selectedArray=[];selectedIndex=parseInt(opts.index,10)||0;if($.isArray(obj)){for(var i=0,j=obj.length;iselectedArray.length||selectedIndex<0){selectedIndex=0}
+_start()};$.fancybox.showActivity=function(){clearInterval(loadingTimer);loading.show();loadingTimer=setInterval(_animate_loading,66)};$.fancybox.hideActivity=function(){loading.hide()};$.fancybox.next=function(){return $.fancybox.pos(currentIndex+1)};$.fancybox.prev=function(){return $.fancybox.pos(currentIndex-1)};$.fancybox.pos=function(pos){if(busy){return}
+pos=parseInt(pos);selectedArray=currentArray;if(pos>-1&&pos1){selectedIndex=pos>=currentArray.length?0:currentArray.length-1;_start()}
+return};$.fancybox.cancel=function(){if(busy){return}
+busy=!0;$.event.trigger('fancybox-cancel');_abort();selectedOpts.onCancel(selectedArray,selectedIndex,selectedOpts);busy=!1};$.fancybox.close=function(){if(busy||wrap.is(':hidden')){return}
+busy=!0;if(currentOpts&&!1===currentOpts.onCleanup(currentArray,currentIndex,currentOpts)){busy=!1;return}
+_abort();$(close.add(nav_left).add(nav_right)).hide();$(content.add(overlay)).unbind();$(window).unbind("resize.fb scroll.fb");$(document).unbind('keydown.fb');content.find('iframe').attr('src',isIE6&&/^https/i.test(window.location.href||'')?'javascript:void(false)':'about:blank');if(currentOpts.titlePosition!=='inside'){title.empty()}
+wrap.stop();function _cleanup(){overlay.fadeOut('fast');title.empty().hide();wrap.hide();$.event.trigger('fancybox-cleanup');content.empty();currentOpts.onClosed(currentArray,currentIndex,currentOpts);currentArray=selectedOpts=[];currentIndex=selectedIndex=0;currentOpts=selectedOpts={};busy=!1}
+if(currentOpts.transitionOut=='elastic'){start_pos=_get_zoom_from();var pos=wrap.position();final_pos={top:pos.top,left:pos.left,width:wrap.width(),height:wrap.height()};if(currentOpts.opacity){final_pos.opacity=1}
+title.empty().hide();fx.prop=1;$(fx).animate({prop:0},{duration:currentOpts.speedOut,easing:currentOpts.easingOut,step:_draw,complete:_cleanup})}else{wrap.fadeOut(currentOpts.transitionOut=='none'?0:currentOpts.speedOut,_cleanup)}};$.fancybox.resize=function(){if(overlay.is(':visible')){overlay.css('height',$(document).height())}
+$.fancybox.center(!0)};$.fancybox.center=function(){var view,align;if(busy){return}
+align=arguments[0]===!0?1:0;view=_get_viewport();if(!align&&(wrap.width()>view[0]||wrap.height()>view[1])){return}
+wrap.stop().animate({'top':parseInt(Math.max(view[3]-20,view[3]+((view[1]-content.height()-40)*0.5)-currentOpts.padding)),'left':parseInt(Math.max(view[2]-20,view[2]+((view[0]-content.width()-40)*0.5)-currentOpts.padding))},typeof arguments[0]=='number'?arguments[0]:200)};$.fancybox.init=function(){if($("#fancybox-wrap").length){return}
+$('body').append(tmp=$(''),loading=$(''),overlay=$(''),wrap=$(''));outer=$('').append('').appendTo(wrap);outer.append(content=$(''),close=$(''),title=$(''),nav_left=$(''),nav_right=$(''));close.click($.fancybox.close);loading.click($.fancybox.cancel);nav_left.click(function(e){e.preventDefault();$.fancybox.prev()});nav_right.click(function(e){e.preventDefault();$.fancybox.next()});if($.fn.mousewheel){wrap.bind('mousewheel.fb',function(e,delta){if(busy){e.preventDefault()}else if($(e.target).get(0).clientHeight==0||$(e.target).get(0).scrollHeight===$(e.target).get(0).clientHeight){e.preventDefault();$.fancybox[delta>0?'prev':'next']()}})}
+if(!$.support.opacity){wrap.addClass('fancybox-ie')}
+if(isIE6){loading.addClass('fancybox-ie6');wrap.addClass('fancybox-ie6');$('').prependTo(outer)}};$.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:'auto',width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:'transparent'},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:0.7,overlayColor:'#777',titleShow:!0,titlePosition:'float',titleFormat:null,titleFromAlt:!1,transitionIn:'fade',transitionOut:'fade',speedIn:300,speedOut:300,changeSpeed:300,changeFade:'fast',easingIn:'swing',easingOut:'swing',showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};$(document).ready(function(){$.fancybox.init()})})(jQuery)
\ No newline at end of file
diff --git a/modules/blockbestsellers/assets/css/flexslider.css b/modules/blockbestsellers/assets/css/flexslider.css
index 9d941bc0..50137182 100644
--- a/modules/blockbestsellers/assets/css/flexslider.css
+++ b/modules/blockbestsellers/assets/css/flexslider.css
@@ -8,89 +8,4 @@
*
* Contributing author: Tyler Smith (@mbmufffin)
*/
-
-
-/* Browser Resets
-*********************************/
-.flex-container a:active,
-.flexslider a:active,
-.flex-container a:focus,
-.flexslider a:focus {outline: none;}
-.slides,
-.flex-control-nav,
-.flex-direction-nav {margin: 0; padding: 0; list-style: none;}
-
-/* Icon Fonts
-*********************************/
-/* Font-face Icons */
-@font-face {
- font-family: 'flexslider-icon';
- src:url('fonts/flexslider-icon.eot');
- src:url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'),
- url('fonts/flexslider-icon.woff') format('woff'),
- url('fonts/flexslider-icon.ttf') format('truetype'),
- url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
- font-weight: normal;
- font-style: normal;
-}
-
-/* FlexSlider Necessary Styles
-*********************************/
-.flexslider {margin: 0; padding: 0;}
-.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
-.flexslider .slides img {width: 100%; display: block;}
-.flex-pauseplay span {text-transform: capitalize;}
-
-/* Clearfix for the .slides element */
-.slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
-html[xmlns] .slides {display: block;}
-* html .slides {height: 1%;}
-
-/* No JavaScript Fallback */
-/* If you are not using another script, such as Modernizr, make sure you
- * include js that eliminates this class on page load */
-.no-js .slides > li:first-child {display: block;}
-
-/* FlexSlider Default Theme
-*********************************/
-.flexslider { margin: 0 0 60px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); -o-box-shadow: 0 1px 4px rgba(0,0,0,.2); box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1; }
-.flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
-.loading .flex-viewport { max-height: 300px; }
-.flexslider .slides { zoom: 1; }
-.carousel li { margin-right: 5px; }
-
-/* Direction Nav */
-.flex-direction-nav {*height: 0;}
-.flex-direction-nav a { display: block; width: 40px; height: 40px; margin: -20px 0 0; position: absolute; top: 50%; z-index: 10; overflow: hidden; opacity: 0; cursor: pointer; color: rgba(0,0,0,0.8); text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease; }
-.flex-direction-nav .flex-prev { left: -50px; }
-.flex-direction-nav .flex-next { right: -50px; text-align: right; }
-.flexslider:hover .flex-prev { opacity: 0.7; left: 10px; }
-.flexslider:hover .flex-next { opacity: 0.7; right: 10px; }
-.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; }
-.flex-direction-nav .flex-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
-.flex-direction-nav a:before { font-family: "flexslider-icon"; font-size: 40px; display: inline-block; content: '\f001'; }
-.flex-direction-nav a.flex-next:before { content: '\f002'; }
-
-/* Pause/Play */
-.flex-pauseplay a { display: block; width: 20px; height: 20px; position: absolute; bottom: 5px; left: 10px; opacity: 0.8; z-index: 10; overflow: hidden; cursor: pointer; color: #000; }
-.flex-pauseplay a:before { font-family: "flexslider-icon"; font-size: 20px; display: inline-block; content: '\f004'; }
-.flex-pauseplay a:hover { opacity: 1; }
-.flex-pauseplay a.flex-play:before { content: '\f003'; }
-
-/* Control Nav */
-.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
-.flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
-.flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -o-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); box-shadow: inset 0 0 3px rgba(0,0,0,0.3); }
-.flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); }
-.flex-control-paging li a.flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; }
-
-.flex-control-thumbs {margin: 5px 0 0; position: static; overflow: hidden;}
-.flex-control-thumbs li {width: 25%; float: left; margin: 0;}
-.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
-.flex-control-thumbs img:hover {opacity: 1;}
-.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}
-
-@media screen and (max-width: 860px) {
- .flex-direction-nav .flex-prev { opacity: 1; left: 10px;}
- .flex-direction-nav .flex-next { opacity: 1; right: 10px;}
-}
\ No newline at end of file
+.flex-container a:active,.flexslider a:active,.flex-container a:focus,.flexslider a:focus{outline:none}.slides,.flex-control-nav,.flex-direction-nav{margin:0;padding:0;list-style:none}@font-face{font-family:'flexslider-icon';src:url(fonts/flexslider-icon.eot);src:url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'),url(fonts/flexslider-icon.woff) format('woff'),url(fonts/flexslider-icon.ttf) format('truetype'),url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');font-weight:400;font-style:normal}.flexslider{margin:0;padding:0}.flexslider .slides>li{display:none;-webkit-backface-visibility:hidden}.flexslider .slides img{width:100%;display:block}.flex-pauseplay span{text-transform:capitalize}.slides:after{content:"\0020";display:block;clear:both;visibility:hidden;line-height:0;height:0}html[xmlns] .slides{display:block}* html .slides{height:1%}.no-js .slides>li:first-child{display:block}.flexslider{margin:0 0 60px;background:#fff;border:4px solid #fff;position:relative;-webkit-border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;border-radius:4px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.2);-moz-box-shadow:0 1px 4px rgba(0,0,0,.2);-o-box-shadow:0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px rgba(0,0,0,.2);zoom:1}.flex-viewport{max-height:2000px;-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;transition:all 1s ease}.loading .flex-viewport{max-height:300px}.flexslider .slides{zoom:1}.carousel li{margin-right:5px}.flex-direction-nav{*height:0}.flex-direction-nav a{display:block;width:40px;height:40px;margin:-20px 0 0;position:absolute;top:50%;z-index:10;overflow:hidden;opacity:0;cursor:pointer;color:rgba(0,0,0,.8);text-shadow:1px 1px 0 rgba(255,255,255,.3);-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease}.flex-direction-nav .flex-prev{left:-50px}.flex-direction-nav .flex-next{right:-50px;text-align:right}.flexslider:hover .flex-prev{opacity:.7;left:10px}.flexslider:hover .flex-next{opacity:.7;right:10px}.flexslider:hover .flex-next:hover,.flexslider:hover .flex-prev:hover{opacity:1}.flex-direction-nav .flex-disabled{opacity:0!important;filter:alpha(opacity=0);cursor:default}.flex-direction-nav a:before{font-family:"flexslider-icon";font-size:40px;display:inline-block;content:'\f001'}.flex-direction-nav a.flex-next:before{content:'\f002'}.flex-pauseplay a{display:block;width:20px;height:20px;position:absolute;bottom:5px;left:10px;opacity:.8;z-index:10;overflow:hidden;cursor:pointer;color:#000}.flex-pauseplay a:before{font-family:"flexslider-icon";font-size:20px;display:inline-block;content:'\f004'}.flex-pauseplay a:hover{opacity:1}.flex-pauseplay a.flex-play:before{content:'\f003'}.flex-control-nav{width:100%;position:absolute;bottom:-40px;text-align:center}.flex-control-nav li{margin:0 6px;display:inline-block;zoom:1;*display:inline}.flex-control-paging li a{width:11px;height:11px;display:block;background:#666;background:rgba(0,0,0,.5);cursor:pointer;text-indent:-9999px;-webkit-border-radius:20px;-moz-border-radius:20px;-o-border-radius:20px;border-radius:20px;-webkit-box-shadow:inset 0 0 3px rgba(0,0,0,.3);-moz-box-shadow:inset 0 0 3px rgba(0,0,0,.3);-o-box-shadow:inset 0 0 3px rgba(0,0,0,.3);box-shadow:inset 0 0 3px rgba(0,0,0,.3)}.flex-control-paging li a:hover{background:#333;background:rgba(0,0,0,.7)}.flex-control-paging li a.flex-active{background:#000;background:rgba(0,0,0,.9);cursor:default}.flex-control-thumbs{margin:5px 0 0;position:static;overflow:hidden}.flex-control-thumbs li{width:25%;float:left;margin:0}.flex-control-thumbs img{width:100%;display:block;opacity:.7;cursor:pointer}.flex-control-thumbs img:hover{opacity:1}.flex-control-thumbs .flex-active{opacity:1;cursor:default}@media screen and (max-width:860px){.flex-direction-nav .flex-prev{opacity:1;left:10px}.flex-direction-nav .flex-next{opacity:1;right:10px}}
\ No newline at end of file
diff --git a/modules/blockbestsellers/assets/js/jquery.flexslider.js b/modules/blockbestsellers/assets/js/jquery.flexslider.js
index d5563d43..303ef2b2 100644
--- a/modules/blockbestsellers/assets/js/jquery.flexslider.js
+++ b/modules/blockbestsellers/assets/js/jquery.flexslider.js
@@ -3,1126 +3,74 @@
* Copyright 2012 WooThemes
* Contributing Author: Tyler Smith
*/
-;
-(function ($) {
-
- //FlexSlider: Object Instance
- $.flexslider = function(el, options) {
- var slider = $(el);
-
- // making variables public
- slider.vars = $.extend({}, $.flexslider.defaults, options);
-
- var namespace = slider.vars.namespace,
- msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture,
- touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
- // depricating this idea, as devices are being released with both of these events
- //eventType = (touch) ? "touchend" : "click",
- eventType = "click touchend MSPointerUp",
- watchedEvent = "",
- watchedEventClearTimer,
- vertical = slider.vars.direction === "vertical",
- reverse = slider.vars.reverse,
- carousel = (slider.vars.itemWidth > 0),
- fade = slider.vars.animation === "fade",
- asNav = slider.vars.asNavFor !== "",
- methods = {},
- focused = true;
-
- // Store a reference to the slider object
- $.data(el, "flexslider", slider);
-
- // Private slider methods
- methods = {
- init: function() {
- slider.animating = false;
- // Get current slide and make sure it is a number
- slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0) );
- if ( isNaN( slider.currentSlide ) ) slider.currentSlide = 0;
- slider.animatingTo = slider.currentSlide;
- slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last);
- slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' '));
- slider.slides = $(slider.vars.selector, slider);
- slider.container = $(slider.containerSelector, slider);
- slider.count = slider.slides.length;
- // SYNC:
- slider.syncExists = $(slider.vars.sync).length > 0;
- // SLIDE:
- if (slider.vars.animation === "slide") slider.vars.animation = "swing";
- slider.prop = (vertical) ? "top" : "marginLeft";
- slider.args = {};
- // SLIDESHOW:
- slider.manualPause = false;
- slider.stopped = false;
- //PAUSE WHEN INVISIBLE
- slider.started = false;
- slider.startTimeout = null;
- // TOUCH/USECSS:
- slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() {
- var obj = document.createElement('div'),
- props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
- for (var i in props) {
- if ( obj.style[ props[i] ] !== undefined ) {
- slider.pfx = props[i].replace('Perspective','').toLowerCase();
- slider.prop = "-" + slider.pfx + "-transform";
- return true;
- }
- }
- return false;
- }());
- // CONTROLSCONTAINER:
- if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer);
- // MANUAL:
- if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls);
-
- // RANDOMIZE:
- if (slider.vars.randomize) {
- slider.slides.sort(function() { return (Math.round(Math.random())-0.5); });
- slider.container.empty().append(slider.slides);
- }
-
- slider.doMath();
-
- // INIT
- slider.setup("init");
-
- // CONTROLNAV:
- if (slider.vars.controlNav) methods.controlNav.setup();
-
- // DIRECTIONNAV:
- if (slider.vars.directionNav) methods.directionNav.setup();
-
- // KEYBOARD:
- if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) {
- $(document).bind('keyup', function(event) {
- var keycode = event.keyCode;
- if (!slider.animating && (keycode === 39 || keycode === 37)) {
- var target = (keycode === 39) ? slider.getTarget('next') :
- (keycode === 37) ? slider.getTarget('prev') : false;
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- }
- });
- }
- // MOUSEWHEEL:
- if (slider.vars.mousewheel) {
- slider.bind('mousewheel', function(event, delta, deltaX, deltaY) {
- event.preventDefault();
- var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev');
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- });
- }
-
- // PAUSEPLAY
- if (slider.vars.pausePlay) methods.pausePlay.setup();
-
- //PAUSE WHEN INVISIBLE
- if (slider.vars.slideshow && slider.vars.pauseInvisible) methods.pauseInvisible.init();
-
- // SLIDSESHOW
- if (slider.vars.slideshow) {
- if (slider.vars.pauseOnHover) {
- slider.hover(function() {
- if (!slider.manualPlay && !slider.manualPause) slider.pause();
- }, function() {
- if (!slider.manualPause && !slider.manualPlay && !slider.stopped) slider.play();
- });
- }
- // initialize animation
- //If we're visible, or we don't use PageVisibility API
- if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) {
- (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play();
- }
- }
-
- // ASNAV:
- if (asNav) methods.asNav.setup();
-
- // TOUCH
- if (touch && slider.vars.touch) methods.touch();
-
- // FADE&&SMOOTHHEIGHT || SLIDE:
- if (!fade || (fade && slider.vars.smoothHeight)) $(window).bind("resize orientationchange focus", methods.resize);
-
- slider.find("img").attr("draggable", "false");
-
- // API: start() Callback
- setTimeout(function(){
- slider.vars.start(slider);
- }, 200);
- },
- asNav: {
- setup: function() {
- slider.asNav = true;
- slider.animatingTo = Math.floor(slider.currentSlide/slider.move);
- slider.currentItem = slider.currentSlide;
- slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide");
- if(!msGesture){
- slider.slides.click(function(e){
- e.preventDefault();
- var $slide = $(this),
- target = $slide.index();
- var posFromLeft = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container
- if( posFromLeft <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) {
- slider.flexAnimate(slider.getTarget("prev"), true);
- } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) {
- slider.direction = (slider.currentItem < target) ? "next" : "prev";
- slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true);
- }
- });
- }else{
- el._slider = slider;
- slider.slides.each(function (){
- var that = this;
- that._gesture = new MSGesture();
- that._gesture.target = that;
- that.addEventListener("MSPointerDown", function (e){
- e.preventDefault();
- if(e.currentTarget._gesture)
- e.currentTarget._gesture.addPointer(e.pointerId);
- }, false);
- that.addEventListener("MSGestureTap", function (e){
- e.preventDefault();
- var $slide = $(this),
- target = $slide.index();
- if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) {
- slider.direction = (slider.currentItem < target) ? "next" : "prev";
- slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true);
- }
- });
- });
- }
- }
- },
- controlNav: {
- setup: function() {
- if (!slider.manualControls) {
- methods.controlNav.setupPaging();
- } else { // MANUALCONTROLS:
- methods.controlNav.setupManual();
- }
- },
- setupPaging: function() {
- var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging',
- j = 1,
- item,
- slide;
-
- slider.controlNavScaffold = $('
');
-
- if (slider.pagingCount > 1) {
- for (var i = 0; i < slider.pagingCount; i++) {
- slide = slider.slides.eq(i);
- item = (slider.vars.controlNav === "thumbnails") ? '' : '' + j + '';
- if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) {
- var captn = slide.attr( 'data-thumbcaption' );
- if ( '' != captn && undefined != captn ) item += '' + captn + '';
- }
- slider.controlNavScaffold.append('' + item + '');
- j++;
- }
- }
-
- // CONTROLSCONTAINER:
- (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold);
- methods.controlNav.set();
-
- methods.controlNav.active();
-
- slider.controlNavScaffold.delegate('a, img', eventType, function(event) {
- event.preventDefault();
-
- if (watchedEvent === "" || watchedEvent === event.type) {
- var $this = $(this),
- target = slider.controlNav.index($this);
-
- if (!$this.hasClass(namespace + 'active')) {
- slider.direction = (target > slider.currentSlide) ? "next" : "prev";
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- }
- }
-
- // setup flags to prevent event duplication
- if (watchedEvent === "") {
- watchedEvent = event.type;
- }
- methods.setToClearWatchedEvent();
-
- });
- },
- setupManual: function() {
- slider.controlNav = slider.manualControls;
- methods.controlNav.active();
-
- slider.controlNav.bind(eventType, function(event) {
- event.preventDefault();
-
- if (watchedEvent === "" || watchedEvent === event.type) {
- var $this = $(this),
- target = slider.controlNav.index($this);
-
- if (!$this.hasClass(namespace + 'active')) {
- (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev";
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- }
- }
-
- // setup flags to prevent event duplication
- if (watchedEvent === "") {
- watchedEvent = event.type;
- }
- methods.setToClearWatchedEvent();
- });
- },
- set: function() {
- var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a';
- slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider);
- },
- active: function() {
- slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active");
- },
- update: function(action, pos) {
- if (slider.pagingCount > 1 && action === "add") {
- slider.controlNavScaffold.append($('' + slider.count + ''));
- } else if (slider.pagingCount === 1) {
- slider.controlNavScaffold.find('li').remove();
- } else {
- slider.controlNav.eq(pos).closest('li').remove();
- }
- methods.controlNav.set();
- (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active();
- }
- },
- directionNav: {
- setup: function() {
- var directionNavScaffold = $('');
-
- // CONTROLSCONTAINER:
- if (slider.controlsContainer) {
- $(slider.controlsContainer).append(directionNavScaffold);
- slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer);
- } else {
- slider.append(directionNavScaffold);
- slider.directionNav = $('.' + namespace + 'direction-nav li a', slider);
- }
-
- methods.directionNav.update();
-
- slider.directionNav.bind(eventType, function(event) {
- event.preventDefault();
- var target;
-
- if (watchedEvent === "" || watchedEvent === event.type) {
- target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev');
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- }
-
- // setup flags to prevent event duplication
- if (watchedEvent === "") {
- watchedEvent = event.type;
- }
- methods.setToClearWatchedEvent();
- });
- },
- update: function() {
- var disabledClass = namespace + 'disabled';
- if (slider.pagingCount === 1) {
- slider.directionNav.addClass(disabledClass).attr('tabindex', '-1');
- } else if (!slider.vars.animationLoop) {
- if (slider.animatingTo === 0) {
- slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1');
- } else if (slider.animatingTo === slider.last) {
- slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1');
- } else {
- slider.directionNav.removeClass(disabledClass).removeAttr('tabindex');
- }
- } else {
- slider.directionNav.removeClass(disabledClass).removeAttr('tabindex');
- }
- }
- },
- pausePlay: {
- setup: function() {
- var pausePlayScaffold = $('');
-
- // CONTROLSCONTAINER:
- if (slider.controlsContainer) {
- slider.controlsContainer.append(pausePlayScaffold);
- slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer);
- } else {
- slider.append(pausePlayScaffold);
- slider.pausePlay = $('.' + namespace + 'pauseplay a', slider);
- }
-
- methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play');
-
- slider.pausePlay.bind(eventType, function(event) {
- event.preventDefault();
-
- if (watchedEvent === "" || watchedEvent === event.type) {
- if ($(this).hasClass(namespace + 'pause')) {
- slider.manualPause = true;
- slider.manualPlay = false;
- slider.pause();
- } else {
- slider.manualPause = false;
- slider.manualPlay = true;
- slider.play();
- }
- }
-
- // setup flags to prevent event duplication
- if (watchedEvent === "") {
- watchedEvent = event.type;
- }
- methods.setToClearWatchedEvent();
- });
- },
- update: function(state) {
- (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText);
- }
- },
- touch: function() {
- var startX,
- startY,
- offset,
- cwidth,
- dx,
- startT,
- scrolling = false,
- localX = 0,
- localY = 0,
- accDx = 0;
-
- if(!msGesture){
- el.addEventListener('touchstart', onTouchStart, false);
-
- function onTouchStart(e) {
- if (slider.animating) {
- e.preventDefault();
- } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) {
- slider.pause();
- // CAROUSEL:
- cwidth = (vertical) ? slider.h : slider. w;
- startT = Number(new Date());
- // CAROUSEL:
-
- // Local vars for X and Y points.
- localX = e.touches[0].pageX;
- localY = e.touches[0].pageY;
-
- offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 :
- (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
- (carousel && slider.currentSlide === slider.last) ? slider.limit :
- (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide :
- (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
- startX = (vertical) ? localY : localX;
- startY = (vertical) ? localX : localY;
-
- el.addEventListener('touchmove', onTouchMove, false);
- el.addEventListener('touchend', onTouchEnd, false);
- }
- }
-
- function onTouchMove(e) {
- // Local vars for X and Y points.
-
- localX = e.touches[0].pageX;
- localY = e.touches[0].pageY;
-
- dx = (vertical) ? startX - localY : startX - localX;
- scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY));
-
- var fxms = 500;
-
- if ( ! scrolling || Number( new Date() ) - startT > fxms ) {
- e.preventDefault();
- if (!fade && slider.transitions) {
- if (!slider.vars.animationLoop) {
- dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1);
- }
- slider.setProps(offset + dx, "setTouch");
- }
- }
- }
-
- function onTouchEnd(e) {
- // finish the touch by undoing the touch session
- el.removeEventListener('touchmove', onTouchMove, false);
-
- if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) {
- var updateDx = (reverse) ? -dx : dx,
- target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev');
-
- if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) {
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- } else {
- if (!fade) slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true);
- }
- }
- el.removeEventListener('touchend', onTouchEnd, false);
-
- startX = null;
- startY = null;
- dx = null;
- offset = null;
- }
- }else{
- el.style.msTouchAction = "none";
- el._gesture = new MSGesture();
- el._gesture.target = el;
- el.addEventListener("MSPointerDown", onMSPointerDown, false);
- el._slider = slider;
- el.addEventListener("MSGestureChange", onMSGestureChange, false);
- el.addEventListener("MSGestureEnd", onMSGestureEnd, false);
-
- function onMSPointerDown(e){
- e.stopPropagation();
- if (slider.animating) {
- e.preventDefault();
- }else{
- slider.pause();
- el._gesture.addPointer(e.pointerId);
- accDx = 0;
- cwidth = (vertical) ? slider.h : slider. w;
- startT = Number(new Date());
- // CAROUSEL:
-
- offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 :
- (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
- (carousel && slider.currentSlide === slider.last) ? slider.limit :
- (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide :
- (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
- }
- }
-
- function onMSGestureChange(e) {
- e.stopPropagation();
- var slider = e.target._slider;
- if(!slider){
- return;
- }
- var transX = -e.translationX,
- transY = -e.translationY;
-
- //Accumulate translations.
- accDx = accDx + ((vertical) ? transY : transX);
- dx = accDx;
- scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY));
-
- if(e.detail === e.MSGESTURE_FLAG_INERTIA){
- setImmediate(function (){
- el._gesture.stop();
- });
-
- return;
- }
-
- if (!scrolling || Number(new Date()) - startT > 500) {
- e.preventDefault();
- if (!fade && slider.transitions) {
- if (!slider.vars.animationLoop) {
- dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1);
- }
- slider.setProps(offset + dx, "setTouch");
- }
- }
- }
-
- function onMSGestureEnd(e) {
- e.stopPropagation();
- var slider = e.target._slider;
- if(!slider){
- return;
- }
- if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) {
- var updateDx = (reverse) ? -dx : dx,
- target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev');
-
- if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) {
- slider.flexAnimate(target, slider.vars.pauseOnAction);
- } else {
- if (!fade) slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true);
- }
- }
-
- startX = null;
- startY = null;
- dx = null;
- offset = null;
- accDx = 0;
- }
- }
- },
- resize: function() {
- if (!slider.animating && slider.is(':visible')) {
- if (!carousel) slider.doMath();
-
- if (fade) {
- // SMOOTH HEIGHT:
- methods.smoothHeight();
- } else if (carousel) { //CAROUSEL:
- slider.slides.width(slider.computedW);
- slider.update(slider.pagingCount);
- slider.setProps();
- }
- else if (vertical) { //VERTICAL:
- slider.viewport.height(slider.h);
- slider.setProps(slider.h, "setTotal");
- } else {
- // SMOOTH HEIGHT:
- if (slider.vars.smoothHeight) methods.smoothHeight();
- slider.newSlides.width(slider.computedW);
- slider.setProps(slider.computedW, "setTotal");
- }
- }
- },
- smoothHeight: function(dur) {
- if (!vertical || fade) {
- var $obj = (fade) ? slider : slider.viewport;
- (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height());
- }
- },
- sync: function(action) {
- var $obj = $(slider.vars.sync).data("flexslider"),
- target = slider.animatingTo;
-
- switch (action) {
- case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break;
- case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break;
- case "pause": $obj.pause(); break;
- }
- },
- pauseInvisible: {
- visProp: null,
- init: function() {
- var prefixes = ['webkit','moz','ms','o'];
-
- if ('hidden' in document) return 'hidden';
- for (var i = 0; i < prefixes.length; i++) {
- if ((prefixes[i] + 'Hidden') in document)
- methods.pauseInvisible.visProp = prefixes[i] + 'Hidden';
- }
- if (methods.pauseInvisible.visProp) {
- var evtname = methods.pauseInvisible.visProp.replace(/[H|h]idden/,'') + 'visibilitychange';
- document.addEventListener(evtname, function() {
- if (methods.pauseInvisible.isHidden()) {
- if(slider.startTimeout) clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible
- else slider.pause(); //Or just pause
- }
- else {
- if(slider.started) slider.play(); //Initiated before, just play
- else (slider.vars.initDelay > 0) ? setTimeout(slider.play, slider.vars.initDelay) : slider.play(); //Didn't init before: simply init or wait for it
- }
- });
- }
- },
- isHidden: function() {
- return document[methods.pauseInvisible.visProp] || false;
- }
- },
- setToClearWatchedEvent: function() {
- clearTimeout(watchedEventClearTimer);
- watchedEventClearTimer = setTimeout(function() {
- watchedEvent = "";
- }, 3000);
- }
- }
-
- // public methods
- slider.flexAnimate = function(target, pause, override, withSync, fromNav) {
- if (!slider.vars.animationLoop && target !== slider.currentSlide) {
- slider.direction = (target > slider.currentSlide) ? "next" : "prev";
- }
-
- if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev";
-
- if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) {
- if (asNav && withSync) {
- var master = $(slider.vars.asNavFor).data('flexslider');
- slider.atEnd = target === 0 || target === slider.count - 1;
- master.flexAnimate(target, true, false, true, fromNav);
- slider.direction = (slider.currentItem < target) ? "next" : "prev";
- master.direction = slider.direction;
-
- if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) {
- slider.currentItem = target;
- slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
- target = Math.floor(target/slider.visible);
- } else {
- slider.currentItem = target;
- slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
- return false;
- }
- }
-
- slider.animating = true;
- slider.animatingTo = target;
-
- // SLIDESHOW:
- if (pause) slider.pause();
-
- // API: before() animation Callback
- slider.vars.before(slider);
-
- // SYNC:
- if (slider.syncExists && !fromNav) methods.sync("animate");
-
- // CONTROLNAV
- if (slider.vars.controlNav) methods.controlNav.active();
-
- // !CAROUSEL:
- // CANDIDATE: slide active class (for add/remove slide)
- if (!carousel) slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide');
-
- // INFINITE LOOP:
- // CANDIDATE: atEnd
- slider.atEnd = target === 0 || target === slider.last;
-
- // DIRECTIONNAV:
- if (slider.vars.directionNav) methods.directionNav.update();
-
- if (target === slider.last) {
- // API: end() of cycle Callback
- slider.vars.end(slider);
- // SLIDESHOW && !INFINITE LOOP:
- if (!slider.vars.animationLoop) slider.pause();
- }
-
- // SLIDE:
- if (!fade) {
- var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW,
- margin, slideString, calcNext;
-
- // INFINITE LOOP / REVERSE:
- if (carousel) {
- //margin = (slider.vars.itemWidth > slider.w) ? slider.vars.itemMargin * 2 : slider.vars.itemMargin;
- margin = slider.vars.itemMargin;
- calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo;
- slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext;
- } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") {
- slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0;
- } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") {
- slideString = (reverse) ? 0 : (slider.count + 1) * dimension;
- } else {
- slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension;
- }
- slider.setProps(slideString, "", slider.vars.animationSpeed);
- if (slider.transitions) {
- if (!slider.vars.animationLoop || !slider.atEnd) {
- slider.animating = false;
- slider.currentSlide = slider.animatingTo;
- }
- slider.container.unbind("webkitTransitionEnd transitionend");
- slider.container.bind("webkitTransitionEnd transitionend", function() {
- slider.wrapup(dimension);
- });
- } else {
- slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){
- slider.wrapup(dimension);
- });
- }
- } else { // FADE:
- if (!touch) {
- //slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing);
- //slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
-
- slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing);
- slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
-
- } else {
- slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 });
- slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 });
- slider.wrapup(dimension);
- }
- }
- // SMOOTH HEIGHT:
- if (slider.vars.smoothHeight) methods.smoothHeight(slider.vars.animationSpeed);
- }
- }
- slider.wrapup = function(dimension) {
- // SLIDE:
- if (!fade && !carousel) {
- if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) {
- slider.setProps(dimension, "jumpEnd");
- } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) {
- slider.setProps(dimension, "jumpStart");
- }
- }
- slider.animating = false;
- slider.currentSlide = slider.animatingTo;
- // API: after() animation Callback
- slider.vars.after(slider);
- }
-
- // SLIDESHOW:
- slider.animateSlides = function() {
- if (!slider.animating && focused ) slider.flexAnimate(slider.getTarget("next"));
- }
- // SLIDESHOW:
- slider.pause = function() {
- clearInterval(slider.animatedSlides);
- slider.animatedSlides = null;
- slider.playing = false;
- // PAUSEPLAY:
- if (slider.vars.pausePlay) methods.pausePlay.update("play");
- // SYNC:
- if (slider.syncExists) methods.sync("pause");
- }
- // SLIDESHOW:
- slider.play = function() {
- if (slider.playing) clearInterval(slider.animatedSlides);
- slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed);
- slider.started = slider.playing = true;
- // PAUSEPLAY:
- if (slider.vars.pausePlay) methods.pausePlay.update("pause");
- // SYNC:
- if (slider.syncExists) methods.sync("play");
- }
- // STOP:
- slider.stop = function () {
- slider.pause();
- slider.stopped = true;
- }
- slider.canAdvance = function(target, fromNav) {
- // ASNAV:
- var last = (asNav) ? slider.pagingCount - 1 : slider.last;
- return (fromNav) ? true :
- (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true :
- (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false :
- (target === slider.currentSlide && !asNav) ? false :
- (slider.vars.animationLoop) ? true :
- (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false :
- (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false :
- true;
- }
- slider.getTarget = function(dir) {
- slider.direction = dir;
- if (dir === "next") {
- return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1;
- } else {
- return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1;
- }
- }
-
- // SLIDE:
- slider.setProps = function(pos, special, dur) {
- var target = (function() {
- var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo,
- posCalc = (function() {
- if (carousel) {
- return (special === "setTouch") ? pos :
- (reverse && slider.animatingTo === slider.last) ? 0 :
- (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
- (slider.animatingTo === slider.last) ? slider.limit : posCheck;
- } else {
- switch (special) {
- case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos;
- case "setTouch": return (reverse) ? pos : pos;
- case "jumpEnd": return (reverse) ? pos : slider.count * pos;
- case "jumpStart": return (reverse) ? slider.count * pos : pos;
- default: return pos;
- }
- }
- }());
-
- return (posCalc * -1) + "px";
- }());
-
- if (slider.transitions) {
- target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)";
- dur = (dur !== undefined) ? (dur/1000) + "s" : "0s";
- slider.container.css("-" + slider.pfx + "-transition-duration", dur);
- }
-
- slider.args[slider.prop] = target;
- if (slider.transitions || dur === undefined) slider.container.css(slider.args);
- }
-
- slider.setup = function(type) {
- // SLIDE:
- if (!fade) {
- var sliderOffset, arr;
-
- if (type === "init") {
- slider.viewport = $('').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container);
- // INFINITE LOOP:
- slider.cloneCount = 0;
- slider.cloneOffset = 0;
- // REVERSE:
- if (reverse) {
- arr = $.makeArray(slider.slides).reverse();
- slider.slides = $(arr);
- slider.container.empty().append(slider.slides);
- }
- }
- // INFINITE LOOP && !CAROUSEL:
- if (slider.vars.animationLoop && !carousel) {
- slider.cloneCount = 2;
- slider.cloneOffset = 1;
- // clear out old clones
- if (type !== "init") slider.container.find('.clone').remove();
- slider.container.append(slider.slides.first().clone().addClass('clone').attr('aria-hidden', 'true')).prepend(slider.slides.last().clone().addClass('clone').attr('aria-hidden', 'true'));
- }
- slider.newSlides = $(slider.vars.selector, slider);
-
- sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset;
- // VERTICAL:
- if (vertical && !carousel) {
- slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%");
- setTimeout(function(){
- slider.newSlides.css({"display": "block"});
- slider.doMath();
- slider.viewport.height(slider.h);
- slider.setProps(sliderOffset * slider.h, "init");
- }, (type === "init") ? 100 : 0);
- } else {
- slider.container.width((slider.count + slider.cloneCount) * 200 + "%");
- slider.setProps(sliderOffset * slider.computedW, "init");
- setTimeout(function(){
- slider.doMath();
- slider.newSlides.css({"width": slider.computedW, "float": "left", "display": "block"});
- // SMOOTH HEIGHT:
- if (slider.vars.smoothHeight) methods.smoothHeight();
- }, (type === "init") ? 100 : 0);
- }
- } else { // FADE:
- slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%", "position": "relative"});
- if (type === "init") {
- if (!touch) {
- //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing);
- slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing);
- } else {
- slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2});
- }
- }
- // SMOOTH HEIGHT:
- if (slider.vars.smoothHeight) methods.smoothHeight();
- }
- // !CAROUSEL:
- // CANDIDATE: active slide
- if (!carousel) slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide");
- }
-
-
- slider.doMath = function() {
- var slide = slider.slides.first(),
- slideMargin = slider.vars.itemMargin,
- minItems = slider.vars.minItems,
- maxItems = slider.vars.maxItems;
-
- slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width();
- slider.h = slide.height();
- slider.boxPadding = slide.outerWidth() - slide.width();
-
- // CAROUSEL:
- if (carousel) {
- slider.itemT = slider.vars.itemWidth + slideMargin;
- slider.minW = (minItems) ? minItems * slider.itemT : slider.w;
- slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w;
- slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems :
- (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems :
- (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth;
-
- slider.visible = Math.floor(slider.w/(slider.itemW));
- slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible;
- slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1);
- slider.last = slider.pagingCount - 1;
- slider.limit = (slider.pagingCount === 1) ? 0 :
- (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin;
- } else {
- slider.itemW = slider.w;
- slider.pagingCount = slider.count;
- slider.last = slider.count - 1;
- }
- slider.computedW = slider.itemW - slider.boxPadding;
- }
-
-
- slider.update = function(pos, action) {
- slider.doMath();
-
- // update currentSlide and slider.animatingTo if necessary
- if (!carousel) {
- if (pos < slider.currentSlide) {
- slider.currentSlide += 1;
- } else if (pos <= slider.currentSlide && pos !== 0) {
- slider.currentSlide -= 1;
- }
- slider.animatingTo = slider.currentSlide;
- }
-
- // update controlNav
- if (slider.vars.controlNav && !slider.manualControls) {
- if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) {
- methods.controlNav.update("add");
- } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) {
- if (carousel && slider.currentSlide > slider.last) {
- slider.currentSlide -= 1;
- slider.animatingTo -= 1;
- }
- methods.controlNav.update("remove", slider.last);
- }
- }
- // update directionNav
- if (slider.vars.directionNav) methods.directionNav.update();
-
- }
-
- slider.addSlide = function(obj, pos) {
- var $obj = $(obj);
-
- slider.count += 1;
- slider.last = slider.count - 1;
-
- // append new slide
- if (vertical && reverse) {
- (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj);
- } else {
- (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj);
- }
-
- // update currentSlide, animatingTo, controlNav, and directionNav
- slider.update(pos, "add");
-
- // update slider.slides
- slider.slides = $(slider.vars.selector + ':not(.clone)', slider);
- // re-setup the slider to accomdate new slide
- slider.setup();
-
- //FlexSlider: added() Callback
- slider.vars.added(slider);
- }
- slider.removeSlide = function(obj) {
- var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj;
-
- // update count
- slider.count -= 1;
- slider.last = slider.count - 1;
-
- // remove slide
- if (isNaN(obj)) {
- $(obj, slider.slides).remove();
- } else {
- (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove();
- }
-
- // update currentSlide, animatingTo, controlNav, and directionNav
- slider.doMath();
- slider.update(pos, "remove");
-
- // update slider.slides
- slider.slides = $(slider.vars.selector + ':not(.clone)', slider);
- // re-setup the slider to accomdate new slide
- slider.setup();
-
- // FlexSlider: removed() Callback
- slider.vars.removed(slider);
- }
-
- //FlexSlider: Initialize
- methods.init();
- }
-
- // Ensure the slider isn't focussed if the window loses focus.
- $( window ).blur( function ( e ) {
- focused = false;
- }).focus( function ( e ) {
- focused = true;
- });
-
- //FlexSlider: Default Settings
- $.flexslider.defaults = {
- namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
- selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
- animation: "fade", //String: Select your animation type, "fade" or "slide"
- easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
- direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
- reverse: false, //{NEW} Boolean: Reverse the animation direction
- animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
- smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
- startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)
- slideshow: true, //Boolean: Animate slider automatically
- slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds
- animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds
- initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds
- randomize: false, //Boolean: Randomize slide order
- thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav.
-
- // Usability features
- pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
- pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
- pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage.
- useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
- touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
- video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
-
- // Primary Controls
- controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
- directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
- prevText: "Previous", //String: Set the text for the "previous" directionNav item
- nextText: "Next", //String: Set the text for the "next" directionNav item
-
- // Secondary Navigation
- keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys
- multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
- mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
- pausePlay: false, //Boolean: Create pause/play dynamic element
- pauseText: "Pause", //String: Set the text for the "pause" pausePlay item
- playText: "Play", //String: Set the text for the "play" pausePlay item
-
- // Special properties
- controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found.
- manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
- sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
- asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
-
- // Carousel Options
- itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
- itemMargin: 0, //{NEW} Integer: Margin between carousel items.
- minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
- maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
- move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
- allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide
-
- // Callback API
- start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide
- before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation
- after: function(){}, //Callback: function(slider) - Fires after each slider animation completes
- end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
- added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
- removed: function(){} //{NEW} Callback: function(slider) - Fires after a slide is removed
- }
-
-
- //FlexSlider: Plugin Function
- $.fn.flexslider = function(options) {
- if (options === undefined) options = {};
-
- if (typeof options === "object") {
- return this.each(function() {
- var $this = $(this),
- selector = (options.selector) ? options.selector : ".slides > li",
- $slides = $this.find(selector);
-
- if ( ( $slides.length === 1 && options.allowOneSlide === true ) || $slides.length === 0 ) {
- $slides.fadeIn(400);
- if (options.start) options.start($this);
- } else if ($this.data('flexslider') === undefined) {
- new $.flexslider(this, options);
- }
- });
- } else {
- // Helper strings to quickly perform functions on the slider
- var $slider = $(this).data('flexslider');
- switch (options) {
- case "play": $slider.play(); break;
- case "pause": $slider.pause(); break;
- case "stop": $slider.stop(); break;
- case "next": $slider.flexAnimate($slider.getTarget("next"), true); break;
- case "prev":
- case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break;
- default: if (typeof options === "number") $slider.flexAnimate(options, true);
- }
- }
- }
-})(jQuery);
+;(function($){$.flexslider=function(el,options){var slider=$(el);slider.vars=$.extend({},$.flexslider.defaults,options);var namespace=slider.vars.namespace,msGesture=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,touch=(("ontouchstart" in window)||msGesture||window.DocumentTouch&&document instanceof DocumentTouch)&&slider.vars.touch,eventType="click touchend MSPointerUp",watchedEvent="",watchedEventClearTimer,vertical=slider.vars.direction==="vertical",reverse=slider.vars.reverse,carousel=(slider.vars.itemWidth>0),fade=slider.vars.animation==="fade",asNav=slider.vars.asNavFor!=="",methods={},focused=!0;$.data(el,"flexslider",slider);methods={init:function(){slider.animating=!1;slider.currentSlide=parseInt((slider.vars.startAt?slider.vars.startAt:0));if(isNaN(slider.currentSlide))slider.currentSlide=0;slider.animatingTo=slider.currentSlide;slider.atEnd=(slider.currentSlide===0||slider.currentSlide===slider.last);slider.containerSelector=slider.vars.selector.substr(0,slider.vars.selector.search(' '));slider.slides=$(slider.vars.selector,slider);slider.container=$(slider.containerSelector,slider);slider.count=slider.slides.length;slider.syncExists=$(slider.vars.sync).length>0;if(slider.vars.animation==="slide")slider.vars.animation="swing";slider.prop=(vertical)?"top":"marginLeft";slider.args={};slider.manualPause=!1;slider.stopped=!1;slider.started=!1;slider.startTimeout=null;slider.transitions=!slider.vars.video&&!fade&&slider.vars.useCSS&&(function(){var obj=document.createElement('div'),props=['perspectiveProperty','WebkitPerspective','MozPerspective','OPerspective','msPerspective'];for(var i in props){if(obj.style[props[i]]!==undefined){slider.pfx=props[i].replace('Perspective','').toLowerCase();slider.prop="-"+slider.pfx+"-transform";return!0}}
+return!1}());if(slider.vars.controlsContainer!=="")slider.controlsContainer=$(slider.vars.controlsContainer).length>0&&$(slider.vars.controlsContainer);if(slider.vars.manualControls!=="")slider.manualControls=$(slider.vars.manualControls).length>0&&$(slider.vars.manualControls);if(slider.vars.randomize){slider.slides.sort(function(){return(Math.round(Math.random())-0.5)});slider.container.empty().append(slider.slides)}
+slider.doMath();slider.setup("init");if(slider.vars.controlNav)methods.controlNav.setup();if(slider.vars.directionNav)methods.directionNav.setup();if(slider.vars.keyboard&&($(slider.containerSelector).length===1||slider.vars.multipleKeyboard)){$(document).bind('keyup',function(event){var keycode=event.keyCode;if(!slider.animating&&(keycode===39||keycode===37)){var target=(keycode===39)?slider.getTarget('next'):(keycode===37)?slider.getTarget('prev'):!1;slider.flexAnimate(target,slider.vars.pauseOnAction)}})}
+if(slider.vars.mousewheel){slider.bind('mousewheel',function(event,delta,deltaX,deltaY){event.preventDefault();var target=(delta<0)?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,slider.vars.pauseOnAction)})}
+if(slider.vars.pausePlay)methods.pausePlay.setup();if(slider.vars.slideshow&&slider.vars.pauseInvisible)methods.pauseInvisible.init();if(slider.vars.slideshow){if(slider.vars.pauseOnHover){slider.hover(function(){if(!slider.manualPlay&&!slider.manualPause)slider.pause()},function(){if(!slider.manualPause&&!slider.manualPlay&&!slider.stopped)slider.play()})}
+if(!slider.vars.pauseInvisible||!methods.pauseInvisible.isHidden()){(slider.vars.initDelay>0)?slider.startTimeout=setTimeout(slider.play,slider.vars.initDelay):slider.play()}}
+if(asNav)methods.asNav.setup();if(touch&&slider.vars.touch)methods.touch();if(!fade||(fade&&slider.vars.smoothHeight))$(window).bind("resize orientationchange focus",methods.resize);slider.find("img").attr("draggable","false");setTimeout(function(){slider.vars.start(slider)},200)},asNav:{setup:function(){slider.asNav=!0;slider.animatingTo=Math.floor(slider.currentSlide/slider.move);slider.currentItem=slider.currentSlide;slider.slides.removeClass(namespace+"active-slide").eq(slider.currentItem).addClass(namespace+"active-slide");if(!msGesture){slider.slides.click(function(e){e.preventDefault();var $slide=$(this),target=$slide.index();var posFromLeft=$slide.offset().left-$(slider).scrollLeft();if(posFromLeft<=0&&$slide.hasClass(namespace+'active-slide')){slider.flexAnimate(slider.getTarget("prev"),!0)}else if(!$(slider.vars.asNavFor).data('flexslider').animating&&!$slide.hasClass(namespace+"active-slide")){slider.direction=(slider.currentItem');if(slider.pagingCount>1){for(var i=0;i':''+j+'';if('thumbnails'===slider.vars.controlNav&&!0===slider.vars.thumbCaptions){var captn=slide.attr('data-thumbcaption');if(''!=captn&&undefined!=captn)item+=''+captn+''}
+slider.controlNavScaffold.append(''+item+'');j++}}(slider.controlsContainer)?$(slider.controlsContainer).append(slider.controlNavScaffold):slider.append(slider.controlNavScaffold);methods.controlNav.set();methods.controlNav.active();slider.controlNavScaffold.delegate('a, img',eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){slider.direction=(target>slider.currentSlide)?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction)}}
+if(watchedEvent===""){watchedEvent=event.type}
+methods.setToClearWatchedEvent()})},setupManual:function(){slider.controlNav=slider.manualControls;methods.controlNav.active();slider.controlNav.bind(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){(target>slider.currentSlide)?slider.direction="next":slider.direction="prev";slider.flexAnimate(target,slider.vars.pauseOnAction)}}
+if(watchedEvent===""){watchedEvent=event.type}
+methods.setToClearWatchedEvent()})},set:function(){var selector=(slider.vars.controlNav==="thumbnails")?'img':'a';slider.controlNav=$('.'+namespace+'control-nav li '+selector,(slider.controlsContainer)?slider.controlsContainer:slider)},active:function(){slider.controlNav.removeClass(namespace+"active").eq(slider.animatingTo).addClass(namespace+"active")},update:function(action,pos){if(slider.pagingCount>1&&action==="add"){slider.controlNavScaffold.append($(''+slider.count+''))}else if(slider.pagingCount===1){slider.controlNavScaffold.find('li').remove()}else{slider.controlNav.eq(pos).closest('li').remove()}
+methods.controlNav.set();(slider.pagingCount>1&&slider.pagingCount!==slider.controlNav.length)?slider.update(pos,action):methods.controlNav.active()}},directionNav:{setup:function(){var directionNavScaffold=$('');if(slider.controlsContainer){$(slider.controlsContainer).append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider.controlsContainer)}else{slider.append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider)}
+methods.directionNav.update();slider.directionNav.bind(eventType,function(event){event.preventDefault();var target;if(watchedEvent===""||watchedEvent===event.type){target=($(this).hasClass(namespace+'next'))?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,slider.vars.pauseOnAction)}
+if(watchedEvent===""){watchedEvent=event.type}
+methods.setToClearWatchedEvent()})},update:function(){var disabledClass=namespace+'disabled';if(slider.pagingCount===1){slider.directionNav.addClass(disabledClass).attr('tabindex','-1')}else if(!slider.vars.animationLoop){if(slider.animatingTo===0){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"prev").addClass(disabledClass).attr('tabindex','-1')}else if(slider.animatingTo===slider.last){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"next").addClass(disabledClass).attr('tabindex','-1')}else{slider.directionNav.removeClass(disabledClass).removeAttr('tabindex')}}else{slider.directionNav.removeClass(disabledClass).removeAttr('tabindex')}}},pausePlay:{setup:function(){var pausePlayScaffold=$('');if(slider.controlsContainer){slider.controlsContainer.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider.controlsContainer)}else{slider.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider)}
+methods.pausePlay.update((slider.vars.slideshow)?namespace+'pause':namespace+'play');slider.pausePlay.bind(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type){if($(this).hasClass(namespace+'pause')){slider.manualPause=!0;slider.manualPlay=!1;slider.pause()}else{slider.manualPause=!1;slider.manualPlay=!0;slider.play()}}
+if(watchedEvent===""){watchedEvent=event.type}
+methods.setToClearWatchedEvent()})},update:function(state){(state==="play")?slider.pausePlay.removeClass(namespace+'pause').addClass(namespace+'play').html(slider.vars.playText):slider.pausePlay.removeClass(namespace+'play').addClass(namespace+'pause').html(slider.vars.pauseText)}},touch:function(){var startX,startY,offset,cwidth,dx,startT,scrolling=!1,localX=0,localY=0,accDx=0;if(!msGesture){el.addEventListener('touchstart',onTouchStart,!1);function onTouchStart(e){if(slider.animating){e.preventDefault()}else if((window.navigator.msPointerEnabled)||e.touches.length===1){slider.pause();cwidth=(vertical)?slider.h:slider.w;startT=Number(new Date());localX=e.touches[0].pageX;localY=e.touches[0].pageY;offset=(carousel&&reverse&&slider.animatingTo===slider.last)?0:(carousel&&reverse)?slider.limit-(((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo):(carousel&&slider.currentSlide===slider.last)?slider.limit:(carousel)?((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.currentSlide:(reverse)?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth;startX=(vertical)?localY:localX;startY=(vertical)?localX:localY;el.addEventListener('touchmove',onTouchMove,!1);el.addEventListener('touchend',onTouchEnd,!1)}}
+function onTouchMove(e){localX=e.touches[0].pageX;localY=e.touches[0].pageY;dx=(vertical)?startX-localY:startX-localX;scrolling=(vertical)?(Math.abs(dx)fxms){e.preventDefault();if(!fade&&slider.transitions){if(!slider.vars.animationLoop){dx=dx/((slider.currentSlide===0&&dx<0||slider.currentSlide===slider.last&&dx>0)?(Math.abs(dx)/cwidth+2):1)}
+slider.setProps(offset+dx,"setTouch")}}}
+function onTouchEnd(e){el.removeEventListener('touchmove',onTouchMove,!1);if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=(reverse)?-dx:dx,target=(updateDx>0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)&&(Number(new Date())-startT<550&&Math.abs(updateDx)>50||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,slider.vars.pauseOnAction)}else{if(!fade)slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction,!0)}}
+el.removeEventListener('touchend',onTouchEnd,!1);startX=null;startY=null;dx=null;offset=null}}else{el.style.msTouchAction="none";el._gesture=new MSGesture();el._gesture.target=el;el.addEventListener("MSPointerDown",onMSPointerDown,!1);el._slider=slider;el.addEventListener("MSGestureChange",onMSGestureChange,!1);el.addEventListener("MSGestureEnd",onMSGestureEnd,!1);function onMSPointerDown(e){e.stopPropagation();if(slider.animating){e.preventDefault()}else{slider.pause();el._gesture.addPointer(e.pointerId);accDx=0;cwidth=(vertical)?slider.h:slider.w;startT=Number(new Date());offset=(carousel&&reverse&&slider.animatingTo===slider.last)?0:(carousel&&reverse)?slider.limit-(((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo):(carousel&&slider.currentSlide===slider.last)?slider.limit:(carousel)?((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.currentSlide:(reverse)?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth}}
+function onMSGestureChange(e){e.stopPropagation();var slider=e.target._slider;if(!slider){return}
+var transX=-e.translationX,transY=-e.translationY;accDx=accDx+((vertical)?transY:transX);dx=accDx;scrolling=(vertical)?(Math.abs(accDx)500){e.preventDefault();if(!fade&&slider.transitions){if(!slider.vars.animationLoop){dx=accDx/((slider.currentSlide===0&&accDx<0||slider.currentSlide===slider.last&&accDx>0)?(Math.abs(accDx)/cwidth+2):1)}
+slider.setProps(offset+dx,"setTouch")}}}
+function onMSGestureEnd(e){e.stopPropagation();var slider=e.target._slider;if(!slider){return}
+if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=(reverse)?-dx:dx,target=(updateDx>0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)&&(Number(new Date())-startT<550&&Math.abs(updateDx)>50||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,slider.vars.pauseOnAction)}else{if(!fade)slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction,!0)}}
+startX=null;startY=null;dx=null;offset=null;accDx=0}}},resize:function(){if(!slider.animating&&slider.is(':visible')){if(!carousel)slider.doMath();if(fade){methods.smoothHeight()}else if(carousel){slider.slides.width(slider.computedW);slider.update(slider.pagingCount);slider.setProps()}
+else if(vertical){slider.viewport.height(slider.h);slider.setProps(slider.h,"setTotal")}else{if(slider.vars.smoothHeight)methods.smoothHeight();slider.newSlides.width(slider.computedW);slider.setProps(slider.computedW,"setTotal")}}},smoothHeight:function(dur){if(!vertical||fade){var $obj=(fade)?slider:slider.viewport;(dur)?$obj.animate({"height":slider.slides.eq(slider.animatingTo).height()},dur):$obj.height(slider.slides.eq(slider.animatingTo).height())}},sync:function(action){var $obj=$(slider.vars.sync).data("flexslider"),target=slider.animatingTo;switch(action){case "animate":$obj.flexAnimate(target,slider.vars.pauseOnAction,!1,!0);break;case "play":if(!$obj.playing&&!$obj.asNav){$obj.play()}break;case "pause":$obj.pause();break}},pauseInvisible:{visProp:null,init:function(){var prefixes=['webkit','moz','ms','o'];if('hidden' in document)return 'hidden';for(var i=0;i0)?setTimeout(slider.play,slider.vars.initDelay):slider.play()}})}},isHidden:function(){return document[methods.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(watchedEventClearTimer);watchedEventClearTimer=setTimeout(function(){watchedEvent=""},3000)}}
+slider.flexAnimate=function(target,pause,override,withSync,fromNav){if(!slider.vars.animationLoop&&target!==slider.currentSlide){slider.direction=(target>slider.currentSlide)?"next":"prev"}
+if(asNav&&slider.pagingCount===1)slider.direction=(slider.currentItemslider.limit&&slider.visible!==1)?slider.limit:calcNext}else if(slider.currentSlide===0&&target===slider.count-1&&slider.vars.animationLoop&&slider.direction!=="next"){slideString=(reverse)?(slider.count+slider.cloneOffset)*dimension:0}else if(slider.currentSlide===slider.last&&target===0&&slider.vars.animationLoop&&slider.direction!=="prev"){slideString=(reverse)?0:(slider.count+1)*dimension}else{slideString=(reverse)?((slider.count-1)-target+slider.cloneOffset)*dimension:(target+slider.cloneOffset)*dimension}
+slider.setProps(slideString,"",slider.vars.animationSpeed);if(slider.transitions){if(!slider.vars.animationLoop||!slider.atEnd){slider.animating=!1;slider.currentSlide=slider.animatingTo}
+slider.container.unbind("webkitTransitionEnd transitionend");slider.container.bind("webkitTransitionEnd transitionend",function(){slider.wrapup(dimension)})}else{slider.container.animate(slider.args,slider.vars.animationSpeed,slider.vars.easing,function(){slider.wrapup(dimension)})}}else{if(!touch){slider.slides.eq(slider.currentSlide).css({"zIndex":1}).animate({"opacity":0},slider.vars.animationSpeed,slider.vars.easing);slider.slides.eq(target).css({"zIndex":2}).animate({"opacity":1},slider.vars.animationSpeed,slider.vars.easing,slider.wrapup)}else{slider.slides.eq(slider.currentSlide).css({"opacity":0,"zIndex":1});slider.slides.eq(target).css({"opacity":1,"zIndex":2});slider.wrapup(dimension)}}
+if(slider.vars.smoothHeight)methods.smoothHeight(slider.vars.animationSpeed)}}
+slider.wrapup=function(dimension){if(!fade&&!carousel){if(slider.currentSlide===0&&slider.animatingTo===slider.last&&slider.vars.animationLoop){slider.setProps(dimension,"jumpEnd")}else if(slider.currentSlide===slider.last&&slider.animatingTo===0&&slider.vars.animationLoop){slider.setProps(dimension,"jumpStart")}}
+slider.animating=!1;slider.currentSlide=slider.animatingTo;slider.vars.after(slider)}
+slider.animateSlides=function(){if(!slider.animating&&focused)slider.flexAnimate(slider.getTarget("next"))}
+slider.pause=function(){clearInterval(slider.animatedSlides);slider.animatedSlides=null;slider.playing=!1;if(slider.vars.pausePlay)methods.pausePlay.update("play");if(slider.syncExists)methods.sync("pause")}
+slider.play=function(){if(slider.playing)clearInterval(slider.animatedSlides);slider.animatedSlides=slider.animatedSlides||setInterval(slider.animateSlides,slider.vars.slideshowSpeed);slider.started=slider.playing=!0;if(slider.vars.pausePlay)methods.pausePlay.update("pause");if(slider.syncExists)methods.sync("play")}
+slider.stop=function(){slider.pause();slider.stopped=!0}
+slider.canAdvance=function(target,fromNav){var last=(asNav)?slider.pagingCount-1:slider.last;return(fromNav)?!0:(asNav&&slider.currentItem===slider.count-1&&target===0&&slider.direction==="prev")?!0:(asNav&&slider.currentItem===0&&target===slider.pagingCount-1&&slider.direction!=="next")?!1:(target===slider.currentSlide&&!asNav)?!1:(slider.vars.animationLoop)?!0:(slider.atEnd&&slider.currentSlide===0&&target===last&&slider.direction!=="next")?!1:(slider.atEnd&&slider.currentSlide===last&&target===0&&slider.direction==="next")?!1:!0}
+slider.getTarget=function(dir){slider.direction=dir;if(dir==="next"){return(slider.currentSlide===slider.last)?0:slider.currentSlide+1}else{return(slider.currentSlide===0)?slider.last:slider.currentSlide-1}}
+slider.setProps=function(pos,special,dur){var target=(function(){var posCheck=(pos)?pos:((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo,posCalc=(function(){if(carousel){return(special==="setTouch")?pos:(reverse&&slider.animatingTo===slider.last)?0:(reverse)?slider.limit-(((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo):(slider.animatingTo===slider.last)?slider.limit:posCheck}else{switch(special){case "setTotal":return(reverse)?((slider.count-1)-slider.currentSlide+slider.cloneOffset)*pos:(slider.currentSlide+slider.cloneOffset)*pos;case "setTouch":return(reverse)?pos:pos;case "jumpEnd":return(reverse)?pos:slider.count*pos;case "jumpStart":return(reverse)?slider.count*pos:pos;default:return pos}}}());return(posCalc*-1)+"px"}());if(slider.transitions){target=(vertical)?"translate3d(0,"+target+",0)":"translate3d("+target+",0,0)";dur=(dur!==undefined)?(dur/1000)+"s":"0s";slider.container.css("-"+slider.pfx+"-transition-duration",dur)}
+slider.args[slider.prop]=target;if(slider.transitions||dur===undefined)slider.container.css(slider.args)}
+slider.setup=function(type){if(!fade){var sliderOffset,arr;if(type==="init"){slider.viewport=$('').css({"overflow":"hidden","position":"relative"}).appendTo(slider).append(slider.container);slider.cloneCount=0;slider.cloneOffset=0;if(reverse){arr=$.makeArray(slider.slides).reverse();slider.slides=$(arr);slider.container.empty().append(slider.slides)}}
+if(slider.vars.animationLoop&&!carousel){slider.cloneCount=2;slider.cloneOffset=1;if(type!=="init")slider.container.find('.clone').remove();slider.container.append(slider.slides.first().clone().addClass('clone').attr('aria-hidden','true')).prepend(slider.slides.last().clone().addClass('clone').attr('aria-hidden','true'))}
+slider.newSlides=$(slider.vars.selector,slider);sliderOffset=(reverse)?slider.count-1-slider.currentSlide+slider.cloneOffset:slider.currentSlide+slider.cloneOffset;if(vertical&&!carousel){slider.container.height((slider.count+slider.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){slider.newSlides.css({"display":"block"});slider.doMath();slider.viewport.height(slider.h);slider.setProps(sliderOffset*slider.h,"init")},(type==="init")?100:0)}else{slider.container.width((slider.count+slider.cloneCount)*200+"%");slider.setProps(sliderOffset*slider.computedW,"init");setTimeout(function(){slider.doMath();slider.newSlides.css({"width":slider.computedW,"float":"left","display":"block"});if(slider.vars.smoothHeight)methods.smoothHeight()},(type==="init")?100:0)}}else{slider.slides.css({"width":"100%","float":"left","marginRight":"-100%","position":"relative"});if(type==="init"){if(!touch){slider.slides.css({"opacity":0,"display":"block","zIndex":1}).eq(slider.currentSlide).css({"zIndex":2}).animate({"opacity":1},slider.vars.animationSpeed,slider.vars.easing)}else{slider.slides.css({"opacity":0,"display":"block","webkitTransition":"opacity "+slider.vars.animationSpeed/1000+"s ease","zIndex":1}).eq(slider.currentSlide).css({"opacity":1,"zIndex":2})}}
+if(slider.vars.smoothHeight)methods.smoothHeight()}
+if(!carousel)slider.slides.removeClass(namespace+"active-slide").eq(slider.currentSlide).addClass(namespace+"active-slide")}
+slider.doMath=function(){var slide=slider.slides.first(),slideMargin=slider.vars.itemMargin,minItems=slider.vars.minItems,maxItems=slider.vars.maxItems;slider.w=(slider.viewport===undefined)?slider.width():slider.viewport.width();slider.h=slide.height();slider.boxPadding=slide.outerWidth()-slide.width();if(carousel){slider.itemT=slider.vars.itemWidth+slideMargin;slider.minW=(minItems)?minItems*slider.itemT:slider.w;slider.maxW=(maxItems)?(maxItems*slider.itemT)-slideMargin:slider.w;slider.itemW=(slider.minW>slider.w)?(slider.w-(slideMargin*(minItems-1)))/minItems:(slider.maxWslider.w)?slider.w:slider.vars.itemWidth;slider.visible=Math.floor(slider.w/(slider.itemW));slider.move=(slider.vars.move>0&&slider.vars.moveslider.w)?(slider.itemW*(slider.count-1))+(slideMargin*(slider.count-1)):((slider.itemW+slideMargin)*slider.count)-slider.w-slideMargin}else{slider.itemW=slider.w;slider.pagingCount=slider.count;slider.last=slider.count-1}
+slider.computedW=slider.itemW-slider.boxPadding}
+slider.update=function(pos,action){slider.doMath();if(!carousel){if(posslider.controlNav.length){methods.controlNav.update("add")}else if((action==="remove"&&!carousel)||slider.pagingCountslider.last){slider.currentSlide-=1;slider.animatingTo-=1}
+methods.controlNav.update("remove",slider.last)}}
+if(slider.vars.directionNav)methods.directionNav.update()}
+slider.addSlide=function(obj,pos){var $obj=$(obj);slider.count+=1;slider.last=slider.count-1;if(vertical&&reverse){(pos!==undefined)?slider.slides.eq(slider.count-pos).after($obj):slider.container.prepend($obj)}else{(pos!==undefined)?slider.slides.eq(pos).before($obj):slider.container.append($obj)}
+slider.update(pos,"add");slider.slides=$(slider.vars.selector+':not(.clone)',slider);slider.setup();slider.vars.added(slider)}
+slider.removeSlide=function(obj){var pos=(isNaN(obj))?slider.slides.index($(obj)):obj;slider.count-=1;slider.last=slider.count-1;if(isNaN(obj)){$(obj,slider.slides).remove()}else{(vertical&&reverse)?slider.slides.eq(slider.last).remove():slider.slides.eq(obj).remove()}
+slider.doMath();slider.update(pos,"remove");slider.slides=$(slider.vars.selector+':not(.clone)',slider);slider.setup();slider.vars.removed(slider)}
+methods.init()}
+$(window).blur(function(e){focused=!1}).focus(function(e){focused=!0});$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7000,animationSpeed:600,initDelay:0,randomize:!1,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(){}}
+$.fn.flexslider=function(options){if(options===undefined)options={};if(typeof options==="object"){return this.each(function(){var $this=$(this),selector=(options.selector)?options.selector:".slides > li",$slides=$this.find(selector);if(($slides.length===1&&options.allowOneSlide===!0)||$slides.length===0){$slides.fadeIn(400);if(options.start)options.start($this)}else if($this.data('flexslider')===undefined){new $.flexslider(this,options)}})}else{var $slider=$(this).data('flexslider');switch(options){case "play":$slider.play();break;case "pause":$slider.pause();break;case "stop":$slider.stop();break;case "next":$slider.flexAnimate($slider.getTarget("next"),!0);break;case "prev":case "previous":$slider.flexAnimate($slider.getTarget("prev"),!0);break;default:if(typeof options==="number")$slider.flexAnimate(options,!0)}}}})(jQuery)
diff --git a/modules/cookiesinfos/css/cookiesinfo.css b/modules/cookiesinfos/css/cookiesinfo.css
index 481c3bdb..75bbf78b 100755
--- a/modules/cookiesinfos/css/cookiesinfo.css
+++ b/modules/cookiesinfos/css/cookiesinfo.css
@@ -1,23 +1 @@
-#cookiesinfo{
- position:fixed;
- bottom:0px;
- left:0px;
- right:0px;
- z-index:10000;
- display:none;
- background:#cdc8c8;
- padding:10px 0px;
- text-align:center;
-}
-#cookiesinfo a{ color: #2e3192; }
-#cookiesinfo .close{
- background:url("../../../themes/site/img/icon/delete.gif") no-repeat scroll right center rgba(0, 0, 0, 0);
- cursor:pointer;
- position:absolute;
- top:0px;
- right:10px;
- font-size:0px;
- height:38px;
- line-height: 38px;
- width:30px;
-}
\ No newline at end of file
+#cookiesinfo{position:fixed;bottom:0px;left:0px;right:0px;z-index:10000;display:none;background:#cdc8c8;padding:10px 0px;text-align:center;}#cookiesinfo a{ color: #2e3192; }#cookiesinfo .close{background:url("../../../themes/site/img/icon/delete.gif") no-repeat scroll right center rgba(0, 0, 0, 0);cursor:pointer;position:absolute;top:0px;right:10px;font-size:0px;height:38px;line-height: 38px;width:30px;}
\ No newline at end of file
diff --git a/themes/site_mobile/css/jquery.fancybox-1.3.4.css b/themes/site_mobile/css/jquery.fancybox-1.3.4.css
index f9f0647f..50d0a3fa 100755
--- a/themes/site_mobile/css/jquery.fancybox-1.3.4.css
+++ b/themes/site_mobile/css/jquery.fancybox-1.3.4.css
@@ -3,10 +3,10 @@
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
- *
+ *
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
- *
+ *
* Version: 1.3.4 (11/11/2010)
* Requires: jQuery v1.3+
*
@@ -14,7 +14,7 @@
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
-
+
/* PrestaShop
*
* We did several modifications in this file:
@@ -24,351 +24,4 @@
* - Specific path for background images
*
*/
-
-#fancybox-loading {
- position: fixed;
- top: 50%;
- left: 50%;
- width: 40px;
- height: 40px;
- margin-top: -20px;
- margin-left: -20px;
- cursor: pointer;
- overflow: hidden;
- z-index: 1104;
- display: none;
-}
-
-#fancybox-loading div {
- position: absolute;
- top: 0;
- left: 0;
- width: 40px;
- height: 480px;
- background-image: url('../js/jquery/fancybox/fancybox.png');
-}
-
-#fancybox-overlay {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- z-index: 1100;
- display: none;
-}
-
-#fancybox-tmp {
- padding: 0;
- margin: 0;
- border: 0;
- overflow: auto;
- display: none;
-}
-
-#fancybox-wrap {
- position: absolute;
- top: 0;
- left: 0;
- padding: 20px;
- z-index: 1101;
- outline: none;
- display: none;
-}
-
-#fancybox-outer {
- position: relative;
- width: 100%;
- height: 100%;
- background: #fff;
-}
-
-#fancybox-content {
- width: 0;
- height: 0;
- padding: 0;
- outline: none;
- position: relative;
- overflow: hidden;
- z-index: 1102;
- border: 0px solid #fff;
-}
-
-#fancybox-hide-sel-frame {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: transparent;
- z-index: 1101;
-}
-
-#fancybox-close {
- position: absolute;
- top: -15px;
- right: -15px;
- width: 30px;
- height: 30px;
- background: transparent url('../js/jquery/fancybox/fancybox.png') -40px 0px;
- cursor: pointer;
- z-index: 1103;
- display: none;
-}
-
-#fancybox-error {
- color: #444;
- font: normal 12px/20px Arial;
- padding: 14px;
- margin: 0;
-}
-
-#fancybox-img {
- width: 100%;
- height: 100%;
- padding: 0;
- margin: 0;
- border: none;
- outline: none;
- line-height: 0;
- vertical-align: top;
-}
-
-#fancybox-frame {
- width: 100%;
- height: 100%;
- border: none;
- display: block;
-}
-
-#fancybox-left, #fancybox-right {
- position: absolute;
- bottom: 0px;
- height: 100%;
- width: 35%;
- cursor: pointer;
- outline: none;
- background: transparent url('../js/jquery/fancybox/blank.gif');
- z-index: 1102;
- display: none;
-}
-
-#fancybox-left {
- left: 0px;
-}
-
-#fancybox-right {
- right: 0px;
-}
-
-#fancybox-left-ico, #fancybox-right-ico {
- position: absolute;
- top: 50%;
- left: -9999px;
- width: 30px;
- height: 30px;
- margin-top: -15px;
- cursor: pointer;
- z-index: 1102;
- display: block;
-}
-
-#fancybox-left-ico {
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -30px;
- left: 20px; /* PrestaShop - make left arrow permanently visible */
-}
-
-#fancybox-right-ico {
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -60px;
- /* PrestaShop - make right arrow permanently visible */
- right: 20px;
- left: auto;
- /* End */
-}
-
-#fancybox-left:hover, #fancybox-right:hover {
- visibility: visible; /* IE6 */
-}
-
-#fancybox-left:hover span {
- left: 20px;
-}
-
-#fancybox-right:hover span {
- left: auto;
- right: 20px;
-}
-
-.fancybox-bg {
- position: absolute;
- padding: 0;
- margin: 0;
- border: 0;
- width: 20px;
- height: 20px;
- z-index: 1001;
-}
-
-#fancybox-bg-n {
- top: -20px;
- left: 0;
- width: 100%;
- background-image: url('../js/jquery/fancybox/fancybox-x.png');
-}
-
-#fancybox-bg-ne {
- top: -20px;
- right: -20px;
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -162px;
-}
-
-#fancybox-bg-e {
- top: 0;
- right: -20px;
- height: 100%;
- background-image: url('../js/jquery/fancybox/fancybox-y.png');
- background-position: -20px 0px;
-}
-
-#fancybox-bg-se {
- bottom: -20px;
- right: -20px;
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -182px;
-}
-
-#fancybox-bg-s {
- bottom: -20px;
- left: 0;
- width: 100%;
- background-image: url('../js/jquery/fancybox/fancybox-x.png');
- background-position: 0px -20px;
-}
-
-#fancybox-bg-sw {
- bottom: -20px;
- left: -20px;
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -142px;
-}
-
-#fancybox-bg-w {
- top: 0;
- left: -20px;
- height: 100%;
- background-image: url('../js/jquery/fancybox/fancybox-y.png');
-}
-
-#fancybox-bg-nw {
- top: -20px;
- left: -20px;
- background-image: url('../js/jquery/fancybox/fancybox.png');
- background-position: -40px -122px;
-}
-
-#fancybox-title {
- font-family: Helvetica;
- font-size: 12px;
- z-index: 1102;
-}
-
-.fancybox-title-inside {
- padding-bottom: 10px;
- text-align: center;
- color: #333;
- background: #fff;
- position: relative;
-}
-
-.fancybox-title-outside {
- padding-top: 10px;
- color: #fff;
-}
-
-.fancybox-title-over {
- position: absolute;
- bottom: 0;
- left: 0;
- color: #FFF;
- text-align: left;
-}
-
-#fancybox-title-over {
- padding: 10px;
- background-image: url('../js/jquery/fancybox/fancy_title_over.png');
- display: block;
-}
-
-.fancybox-title-float {
- position: absolute;
- left: 0;
- bottom: -20px;
- height: 32px;
-}
-
-#fancybox-title-float-wrap {
- border: none;
- border-collapse: collapse;
- width: auto;
-}
-
-#fancybox-title-float-wrap td {
- border: none;
- white-space: nowrap;
-}
-
-#fancybox-title-float-left {
- padding: 0 0 0 15px;
- background: url('../js/jquery/fancybox/fancybox.png') -40px -90px no-repeat;
-}
-
-#fancybox-title-float-main {
- color: #FFF;
- line-height: 29px;
- font-weight: bold;
- padding: 0 0 3px 0;
- background: url('../js/jquery/fancybox/fancybox-x.png') 0px -40px;
-}
-
-#fancybox-title-float-right {
- padding: 0 0 0 15px;
- background: url('../js/jquery/fancybox/fancybox.png') -55px -90px no-repeat;
-}
-
-/* IE6 */
-
-.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_close.png', sizingMethod='scale'); }
-
-.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_nav_left.png', sizingMethod='scale'); }
-.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_nav_right.png', sizingMethod='scale'); }
-
-.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; }
-.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_left.png', sizingMethod='scale'); }
-.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_main.png', sizingMethod='scale'); }
-.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_right.png', sizingMethod='scale'); }
-
-.fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
- height: expression(this.parentNode.clientHeight + "px");
-}
-
-#fancybox-loading.fancybox-ie6 {
- position: absolute; margin-top: 0;
- top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
-}
-
-#fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_loading.png', sizingMethod='scale'); }
-
-/* IE6, IE7, IE8 */
-
-.fancybox-ie .fancybox-bg { background: transparent !important; }
-
-.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_n.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_ne.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_e.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_se.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_s.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_sw.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_w.png', sizingMethod='scale'); }
-.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_nw.png', sizingMethod='scale'); }
\ No newline at end of file
+#fancybox-loading{position:fixed;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;cursor:pointer;overflow:hidden;z-index:1104;display:none}#fancybox-loading div{position:absolute;top:0;left:0;width:40px;height:480px;background-image:url(../js/jquery/fancybox/fancybox.png)}#fancybox-overlay{position:absolute;top:0;left:0;width:100%;z-index:1100;display:none}#fancybox-tmp{padding:0;margin:0;border:0;overflow:auto;display:none}#fancybox-wrap{position:absolute;top:0;left:0;padding:20px;z-index:1101;outline:none;display:none}#fancybox-outer{position:relative;width:100%;height:100%;background:#fff}#fancybox-content{width:0;height:0;padding:0;outline:none;position:relative;overflow:hidden;z-index:1102;border:0 solid #fff}#fancybox-hide-sel-frame{position:absolute;top:0;left:0;width:100%;height:100%;background:transparent;z-index:1101}#fancybox-close{position:absolute;top:-15px;right:-15px;width:30px;height:30px;background:transparent url(../js/jquery/fancybox/fancybox.png) -40px 0;cursor:pointer;z-index:1103;display:none}#fancybox-error{color:#444;font:normal 12px/20px Arial;padding:14px;margin:0}#fancybox-img{width:100%;height:100%;padding:0;margin:0;border:none;outline:none;line-height:0;vertical-align:top}#fancybox-frame{width:100%;height:100%;border:none;display:block}#fancybox-left,#fancybox-right{position:absolute;bottom:0;height:100%;width:35%;cursor:pointer;outline:none;background:transparent url(../js/jquery/fancybox/blank.gif);z-index:1102;display:none}#fancybox-left{left:0}#fancybox-right{right:0}#fancybox-left-ico,#fancybox-right-ico{position:absolute;top:50%;left:-9999px;width:30px;height:30px;margin-top:-15px;cursor:pointer;z-index:1102;display:block}#fancybox-left-ico{background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -30px;left:20px}#fancybox-right-ico{background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -60px;right:20px;left:auto}#fancybox-left:hover,#fancybox-right:hover{visibility:visible}#fancybox-left:hover span{left:20px}#fancybox-right:hover span{left:auto;right:20px}.fancybox-bg{position:absolute;padding:0;margin:0;border:0;width:20px;height:20px;z-index:1001}#fancybox-bg-n{top:-20px;left:0;width:100%;background-image:url(../js/jquery/fancybox/fancybox-x.png)}#fancybox-bg-ne{top:-20px;right:-20px;background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -162px}#fancybox-bg-e{top:0;right:-20px;height:100%;background-image:url(../js/jquery/fancybox/fancybox-y.png);background-position:-20px 0}#fancybox-bg-se{bottom:-20px;right:-20px;background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -182px}#fancybox-bg-s{bottom:-20px;left:0;width:100%;background-image:url(../js/jquery/fancybox/fancybox-x.png);background-position:0 -20px}#fancybox-bg-sw{bottom:-20px;left:-20px;background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -142px}#fancybox-bg-w{top:0;left:-20px;height:100%;background-image:url(../js/jquery/fancybox/fancybox-y.png)}#fancybox-bg-nw{top:-20px;left:-20px;background-image:url(../js/jquery/fancybox/fancybox.png);background-position:-40px -122px}#fancybox-title{font-family:Helvetica;font-size:12px;z-index:1102}.fancybox-title-inside{padding-bottom:10px;text-align:center;color:#333;background:#fff;position:relative}.fancybox-title-outside{padding-top:10px;color:#fff}.fancybox-title-over{position:absolute;bottom:0;left:0;color:#FFF;text-align:left}#fancybox-title-over{padding:10px;background-image:url(../js/jquery/fancybox/fancy_title_over.png);display:block}.fancybox-title-float{position:absolute;left:0;bottom:-20px;height:32px}#fancybox-title-float-wrap{border:none;border-collapse:collapse;width:auto}#fancybox-title-float-wrap td{border:none;white-space:nowrap}#fancybox-title-float-left{padding:0 0 0 15px;background:url(../js/jquery/fancybox/fancybox.png) -40px -90px no-repeat}#fancybox-title-float-main{color:#FFF;line-height:29px;font-weight:700;padding:0 0 3px 0;background:url(../js/jquery/fancybox/fancybox-x.png) 0 -40px}#fancybox-title-float-right{padding:0 0 0 15px;background:url(../js/jquery/fancybox/fancybox.png) -55px -90px no-repeat}.fancybox-ie6 #fancybox-close{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_close.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-left-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_nav_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-right-ico{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_nav_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-over{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_over.png',sizingMethod='scale');zoom:1}.fancybox-ie6 #fancybox-title-float-left{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_left.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-main{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_main.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-title-float-right{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_title_right.png',sizingMethod='scale')}.fancybox-ie6 #fancybox-bg-w,.fancybox-ie6 #fancybox-bg-e,.fancybox-ie6 #fancybox-left,.fancybox-ie6 #fancybox-right,#fancybox-hide-sel-frame{height:expression(this.parentNode.clientHeight + "px")}#fancybox-loading.fancybox-ie6{position:absolute;margin-top:0;top:expression((-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2:document.body.clientHeight/2) + (ignoreMe=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop)) + 'px')}#fancybox-loading.fancybox-ie6 div{background:transparent;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='js/jquery/fancybox/fancy_loading.png',sizingMethod='scale')}.fancybox-ie .fancybox-bg{background:transparent!important}.fancybox-ie #fancybox-bg-n{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_n.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-ne{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_ne.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-e{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_e.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-se{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_se.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-s{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_s.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-sw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_sw.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-w{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_w.png',sizingMethod='scale')}.fancybox-ie #fancybox-bg-nw{filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../js/jquery/fancybox/fancy_shadow_nw.png',sizingMethod='scale')}
\ No newline at end of file