1 /*------------------------------------------------------------------------ 2 # Virtuemart 3 Template - MaterialMart 3 # ------------------------------------------------------------------------ 4 # Copyright (C) 2009-2017 Flexible Web Design. All Rights Reserved. 5 # @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 6 # Author: Flexible Web Design 7 # Website: http://www.flexiblewebdesign.com 8 # Email: [email protected] 9 -------------------------------------------------------------------------*/ 10 11jQuery(function($) { 12 "use strict"; 13 14 $.fn.flexibleReviewSection = function() { 15 $('.flexWriteReviewBtn').on('click', function(e) { 16 e.preventDefault(); 17 $('.flexWriteReview').slideToggle('fast'); 18 }); 19 $('.rating .flex-stars').mousemove(); 20 var li = $('.rating .flex-stars i'); 21 li.on("mouseover", function(){ 22 var myindex = li.index(this); 23 console.log(myindex); 24 var i = 0; 25 li.text('star_border'); 26 for (i=0; i<=myindex; i++) { 27 li.eq(i).text('star'); 28 } 29 $('.ratingText').text(myindex+1); 30 $('#vote').val(myindex+1); 31 }); 32 }; 33 34 $.fn.flexibleModal = function() { 35 $(".flexibleModal").fancybox2({ 36 type: "iframe", 37 maxWidth : 800, 38 maxHeight : 600, 39 fitToView : false, 40 width : "90%", 41 height : "90%", 42 autoSize : true, 43 closeClick : false, 44 openEffect : "fade", 45 closeEffect : "fade", 46 scrolling : "auto", 47 preload : true, 48 padding:0 49 }); 50 }; 51 52 $.fn.flexibleImgCustomField = function() { 53 $('.product-field-type-M .product-field-display label:first-child').addClass('selected-flexible').children('input').attr({"checked" : "checked"}).addClass('checked'); 54 $('.product-field-type-M .product-field-display label').click(function () { 55 $(this).siblings('label').removeClass('selected-flexible'); 56 $(this).addClass('selected-flexible'); 57 }); 58 }; 59 60 $.fn.flexibleInitNextPrevReplacement = function() { 61 $('.pagination-prev > a, .pagination-prev > span').html('<i class="material-icons">keyboard_arrow_left</i>'); 62 $('.pagination-next > a, .pagination-next > span').html('<i class="material-icons">keyboard_arrow_right</i>'); 63 }; 64 65 66 $.fn.flexibleInitSelect = function() { 67 $('.flexibleContainer select').material_select(); 68 }; 69 70 $.fn.flexibleInitTooltip = function() { 71 $('#tooltipMatContainer').remove(); 72 $('.tooltipped').tooltipmat({delay: 50}); 73 }; 74 75 $.fn.flexibleInittabs2 = function() { 76 $('ul.tabs2').tabs2(); 77 }; 78 79 $.fn.flexibleInitCounter = function() { 80 $("#comment").keyup( function () { 81 var result = $(this).val(); 82 $("#counter").val(result.length ); 83 }); 84 }; 85 86 $.fn.flexibleCustomOnLoad = function() { 87 // empty 88 }; 89 90 $.fn.flexibleCustomOnReady = function() { 91 // empty 92 93 }; 94 95 $.fn.initMaterialMartEvents = function() { 96 if (typeof jQuery.fn.flexibleInitSelect !== "undefined") jQuery.fn.flexibleInitSelect(); 97 if (typeof jQuery.fn.flexibleInitTooltip !== "undefined") jQuery.fn.flexibleInitTooltip(); 98 if (typeof jQuery.fn.flexibleImgCustomField !== "undefined") jQuery.fn.flexibleImgCustomField(); 99 if (typeof jQuery.fn.flexibleZoom !== "undefined") jQuery.fn.flexibleZoom(); 100 if (typeof jQuery.fn.flexibleInittabs2 !== "undefined") jQuery.fn.flexibleInittabs2(); 101 if (typeof jQuery.fn.FlexibleImageCustomField !== "undefined") jQuery.fn.FlexibleImageCustomField(); 102 if (typeof jQuery.fn.flexibleReviewSection !== "undefined") jQuery.fn.flexibleReviewSection(); 103 if (typeof jQuery.fn.flexibleModal !== "undefined") jQuery.fn.flexibleModal(); 104 if (typeof jQuery.fn.flexibleAddImgSlider !== "undefined") jQuery.fn.flexibleAddImgSlider(); 105 if (typeof jQuery.fn.flexibleInitCounter !== "undefined") jQuery.fn.flexibleInitCounter(); 106 107 if (typeof FB !== "undefined") FB.XFBML.parse(); 108 if (typeof addthis !== "undefined") addthis.toolbox(".addthis_toolbox"); 109 }; 110 111 // When dom is ready 112 $(document).ready(function(){ 113 $.fn.initMaterialMartEvents(); 114 $.fn.flexibleInitNextPrevReplacement(); 115 $.fn.flexibleCustomOnReady(); 116 }); 117 118 // When page gets loaded 119 window.onload = function(){ 120 $.fn.flexibleCustomOnLoad(); 121 }; 122}); 123 124 125(function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox2=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf("%")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+"px"};f.extend(b,{version:"2.1.5",defaults:{padding:15,margin:20, 126width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancybox2":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"}, 127keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox2-wrap" tabIndex="-1"><div class="fancybox2-skin"><div class="fancybox2-outer"><div class="fancybox2-inner"></div></div></div></div>',image:'<img class="fancybox2-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox2-frame{rnd}" name="fancybox2-frame{rnd}" class="fancybox2-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+ 128(I?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox2-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox2-item fancybox2-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox2-nav fancybox2-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox2-nav fancybox2-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0, 129openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,
130isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox2-href")||c.attr("href"),title:c.data("fancybox2-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, 131c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox2-type"),m||(m=(m=c.prop("class").match(/fancybox2\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& 132k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| 133b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox2-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox2-item, .fancybox2-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox2-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= 134setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({"onCancel.player beforeClose.player":c,"onUpdate.player":e,"beforeLoad.player":d}),e(),b.trigger("onPlayStart")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,"next"))},prev:function(a){var d=b.current; 135d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,"prev"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d= 136a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox2-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox2-tmp"),b.trigger("onUpdate")), 137b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox2-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id="fancybox2-loading"><div></div></div>').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(), 138y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHe
vendor: 5,057 bytes, lines 138-147
138ight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement; 139if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind("mousewheel.fb",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(".fancybox2-skin")&&!h.is(".fancybox2-wrap");)j=h[0]&&!(h[0].style.overflow&&"hidden"===h[0].style.overflow)&& 140(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?"down":"left");else if(0>g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, 141{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1, 142mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio= 143!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox2-"+(s?"mobile":"desktop")+" fancybox2-type-"+c+" fancybox2-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox2-skin",d.wrap),outer:f(".fancybox2-outer",d.wrap),inner:f(".fancybox2-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href"); 144"image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload= 145this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href); 146f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox2-wrap").width("100%").removeClass("fancybox2-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload, 147e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox2-opened").find(".fancybox2-item, .fancybox2-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,
148outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("<div>").html(e).find(a.selector):t(e)&&(e.data("fancybox2-placeholder")||e.data("fancybox2-placeholder",f('<div class="fancybox2-placeholder"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox2-placeholder")).data("fancybox2-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}", 149g);break;case "swf":e='<object id="fancybox2-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+g+'"></param>',h="",f.each(a.swf,function(a,b){e+='<param name="'+a+'" value="'+b+'"></param>';h+=" "+a+'="'+b+'"'}),e+='<embed src="'+g+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"></embed></object>"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll": 150"no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox2-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside? 151h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox2-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth|| 152h.autoHeight)g.addClass("fancybox2-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox2-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;
152h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&& 153"iframe"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width(); 154y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height("auto")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:"absolute",top:c[0],left:c[3]};d.autoCenter&&d.fixed&& 155!a&&g<=e.h&&f<=e.w?c.position="fixed":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css("overflow","visible").addClass("fancybox2-opened"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css("cursor","pointer").bind("click.fb",function(d){!f(d.target).is("a")&&!f(d.target).parent().is("a")&&(d.preventDefault(), 156b[a.closeClick?"close":"next"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind("click.fb",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind("click.fb",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind("click.fb",b.next)),b.trigger("afterShow"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a= 157a||b.current;f(".fancybox2-wrap").trigger("onReset").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger("afterClose",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(":visible"))&&(e=d.find("img:first"),e.length||(e=d));t(e)?(c=e.offset(),e.is("img")&&(f=e.outerWidth(),g=e.outerHeight())): 158(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if("fixed"===b.wrap.css("position")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if("width"===f||"height"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c="width"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l("width"===f?c:c-g*e)),b.inner[f](l("width"=== 159f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c="elastic"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):"fade"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:"none"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e="elastic"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c, 160{duration:"none"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;"elastic"===d&&(g="down"===f||"up"===f?"top":"left","down"===f||"right"===f?(e[g]=w(l(e[g])-200),c[g]="+=200px"):(e[g]=w(l(e[g])+200),c[g]="-=200px"));"none"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a= 161b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;"elastic"===d&&(e["down"===c||"up"===c?"top":"left"]=("up"===c||"left"===c?"-":"+")+"=200px");a.wrap.animate(e,{duration:"none"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger("onReset").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f("html"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay= 162f('<div class="fancybox2-overlay"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox2-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());
162a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox2-overlay"))return b.isActive? 163b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox2-lock")&&(f(".fancybox2-margin").removeClass("fancybox2-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox2-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox2-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth), 164p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox2-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"=== 165f(this).css("position")&&!f(this).hasClass("fancybox2-overlay")&&!f(this).hasClass("fancybox2-wrap")}).addClass("fancybox2-margin"),this.el.addClass("fancybox2-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox2-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d= 166b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('<div class="fancybox2-title fancybox2-title-'+c+'-wrap">'+e+"</div>");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner('<span class="child"></span>'),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox2=function(a){var d, 167e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox2-wrap")&&(k=a.groupAttr||"data-fancybox2-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.o
167pen(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+ 168":not('.fancybox2-item, .fancybox2-nav')","click.fb-start",k);this.filter("[data-fancybox2-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style="position:fixed;top:20px;"></div>').appendTo("body");var e=20=== 169d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox2-lock-test");d=f(r).width();J.removeClass("fancybox2-lock-test");f("<style type='text/css'>.fancybox2-margin{margin-right:"+(d-a)+"px;}</style>").appendTo("head")})})(window,document,jQuery); 170 171 172 173!(function(e){var t=e.fancybox2;t.helpers.thumbs={defaults:{width:50,height:50,position:"bottom",source:function(t){var n;if(t.element){n=e(t.element).find("img").attr("src")}if(!n&&t.type==="image"&&t.href){n=t.href}return n}},wrap:null,list:null,width:0,init:function(t,n){var r=this,i,s=t.width,o=t.height,u=t.source;i="";for(var a=0;a<n.group.length;a++){i+='<li><a style="width:'+s+"px;height:"+o+'px;" href="javascript:jQuery.fancybox2.jumpto('+a+');"></a></li>'}this.wrap=e('<div id="fancybox2-thumbs"></div>').addClass(t.position).appendTo("body");this.list=e("<ul>"+i+"</ul>").appendTo(this.wrap);e.each(n.group,function(t){var i=u(n.group[t]);if(!i){return}e("<img />").load(function(){var n=this.width,i=this.height,u,a,f;if(!r.list||!n||!i){return}u=n/s;a=i/o;f=r.list.children().eq(t).find("a");if(u>=1&&a>=1){if(u>a){n=Math.floor(n/a);i=o}else{n=s;i=Math.floor(i/u)}}e(this).css({width:n,height:i,top:Math.floor(o/2-i/2),left:Math.floor(s/2-n/2)});f.width(s).height(o);e(this).hide().appendTo(f).fadeIn(300)}).attr("src",i)});this.width=this.list.children().eq(0).outerWidth(true);this.list.width(this.width*(n.group.length+1)).css("left",Math.floor(e(window).width()*.5-(n.index*this.width+this.width*.5)))},beforeLoad:function(e,t){if(t.group.length<2){t.helpers.thumbs=false;return}t.margin[e.position==="top"?0:2]+=e.height+15},afterShow:function(e,t){if(this.list){this.onUpdate(e,t)}else{this.init(e,t)}this.list.children().removeClass("active").eq(t.index).addClass("active")},onUpdate:function(t,n){if(this.list){this.list.stop(true).animate({left:Math.floor(e(window).width()*.5-(n.index*this.width+this.width*.5))},150)}},beforeClose:function(){if(this.wrap){this.wrap.remove()}this.wrap=null;this.list=null;this.width=0}}})(jQuery); 174 175 176!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev waves-effect waves-dark" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next waves-effect waves-dark" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,458 bytes, line 176
176sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.
176slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.o
vendor: 4,100 bytes, line 176
176ptions.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.
176slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0}
176,100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focu
vendor: 2,346 bytes, line 176
176sHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}
vendor: 3,177 bytes, line 176
176):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
vendor: 1,607 bytes, line 177
177d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.
177interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>
1774&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}}); 178 179 180/*------------------------------------------------------------------------ 181 # Flexible - Virtuemart Zoom Effect - Version 4.0 182 # ------------------------------------------------------------------------ 183 # Copyright (C) 2014 Flexible Web Design. All Rights Reserved. 184 # @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3 185 # Author: Flexible Web Design Team 186 # Websites: http://www.flexiblewebdesign.com 187 -------------------------------------------------------------------------*/ 188 189if (typeof Object.create !== "function") { 190 Object.create = function(b) { 191 function a() {} 192 a.prototype = b; 193 return new a() 194 } 195}(function(c, b, a, e) { 196 var d = { 197 init: function(g, h) { 198 var f = this; 199 f.elem = h; 200 f.$elem = c(h); 201 f.imageSrc = f.$elem.data("zoom-image") ? f.$elem.data("zoom-image") : f.$elem.attr("src"); 202 f.options = c.extend({}, c.fn.flexibleZoomEffect.options, g); 203 if (f.options.tint && f.options.zoomType != "lens") { 204 f.options.lensColour = "none", f.options.lensOpacity = "1" 205 } 206 if (f.options.zoomType == "inner") { 207 f.options.showLens = false 208 } 209 f.$elem.parent().removeAttr("title").removeAttr("alt"); 210 f.zoomImage = f.imageSrc; 211 f.refresh(1); 212 c("#" + f.options.gallery + " a").click(function(i) { 213 if (f.options.galleryActiveClass) { 214 c("#" + f.options.gallery + " a").removeClass(f.options.galleryActiveClass); 215 c(this).addClass(f.options.galleryActiveClass) 216 } 217 i.preventDefault(); 218 if (c(this).data("zoom-image")) { 219 f.zoomImagePre = c(this).data("zoom-image") 220 } else { 221 f.zoomImagePre = c(this).data("image") 222 } 223 f.swaptheimage(c(this).data("image"), f.zoomImagePre); 224 return false 225 }) 226 }, 227 refresh: function(g) { 228 var f = this; 229 setTimeout(function() { 230 f.fetch(f.imageSrc) 231 }, g || f.options.refresh) 232 }, 233 fetch: function(h) { 234 var f = this; 235 var g = new Image(); 236 g.onload = function() { 237 f.largeWidth = g.width; 238 f.largeHeight = g.height; 239 f.startZoom(); 240 f.currentImage = f.imageSrc; 241 f.options.onZoomedImageLoaded(f.$elem) 242 }; 243 g.src = h; 244 return 245 }, 246 startZoom: function() { 247 var g = this; 248 g.nzWidth = g.$elem.width(); 249 g.nzHeight = g.$elem.height(); 250 g.isWindowActive = false;
251 g.isLensActive = false; 252 g.isTintActive = false; 253 g.overWindow = false; 254 if (g.options.imageCrossfade) { 255 g.zoomWrap = g.$elem.wrap('<div style="height:' + g.nzHeight + "px;width:" + g.nzWidth + 'px;" class="zoomWrapper" />'); 256 g.$elem.css("position", "absolute") 257 } 258 g.zoomLock = 1; 259 g.scrollingLock = false; 260 g.changeBgSize = false; 261 g.currentZoomLevel = g.options.zoomLevel; 262 g.nzOffset = g.$elem.offset(); 263 g.widthRatio = (g.largeWidth / g.currentZoomLevel) / g.nzWidth; 264 g.heightRatio = (g.largeHeight / g.currentZoomLevel) / g.nzHeight; 265 if (g.options.zoomType == "window") { 266 g.FlexibleZoomWindowStyle = "overflow: hidden;background-position: 0px 0px;text-align:center;background-color: " + String(g.options.FlexibleZoomWindowBgColour) + ";width: " + String(g.options.FlexibleZoomWindowWidth) + "px;height: " + String(g.options.FlexibleZoomWindowHeight) + "px;float: left;background-size: " + g.largeWidth / g.currentZoomLevel + "px " + g.largeHeight / g.currentZoomLevel + "px;display: none;z-index:100;px solid " + g.options.borderColour + ";background-repeat: no-repeat;position: absolute;" 267 } 268 if (g.options.zoomType == "inner") { 269 var f = g.$elem.css("border-left-width"); 270 g.FlexibleZoomWindowStyle = "overflow: hidden;margin-left: " + String(f) + ";margin-top: " + String(f) + ";background-position: 0px 0px;width: " + String(g.nzWidth) + "px;height: " + String(g.nzHeight) + "px;float: left;display: none;cursor:" + (g.options.cursor) + ";px solid " + g.options.borderColour + ";background-repeat: no-repeat;position: absolute;" 271 } 272 if (g.options.zoomType == "window") { 273 if (g.nzHeight < g.options.FlexibleZoomWindowWidth / g.widthRatio) { 274 lensHeight = g.nzHeight 275 } else { 276 lensHeight = String((g.options.FlexibleZoomWindowHeight / g.heightRatio)) 277 } 278 if (g.largeWidth < g.options.FlexibleZoomWindowWidth) { 279 lensWidth = g.nzWidth 280 } else { 281 lensWidth = (g.options.FlexibleZoomWindowWidth / g.widthRatio) 282 } 283 g.lensStyle = "background-position: 0px 0px;width: " + String((g.options.FlexibleZoomWindowWidth) / g.widthRatio) + "px;height: " + String((g.options.FlexibleZoomWindowHeight) / g.heightRatio) + "px;float: right;display: none;overflow: hidden;z-index: 999;-webkit-transform: translateZ(0);width:" + lensWidth + "px;height:" + lensHeight + "px;position: absolute;" 284 } 285 g.tintStyle = "display: block;position: absolute;background-color: " + g.options.tintColour + ";filter:alpha(opacity=0);opacity: 0;width: " + g.nzWidth + "px;height: " + g.nzHeight + "px;"; 286 g.lensRound = ""; 287 if (g.options.zoomType == "lens") { 288 g.lensStyle = "background-position: 0px 0px;float: left;display: none;border: " + String(g.options.borderSize) + "px solid " + g.options.borderColour + ";width:" + String(g.options.lensSize) + "px;height:" + String(g.options.lensSize) + "px;background-repeat: no-repeat;position: absolute;" 289 } 290 if (g.options.lensShape == "round") { 291 g.lensRound = "border-top-left-radius: " + String(g.options.lensSize / 2 + g.options.borderSize) + "px;border-top-right-radius: " + String(g.options.lensSize / 2 + g.options.borderSize) + "px;border-bottom-left-radius: " + String(g.options.lensSize / 2 + g.options.borderSize) + "px;border-bottom-right-radius: " + String(g.options.lensSize / 2 + g.options.borderSize) + "px;" 292 } 293 g.flexibleZoomContainer = c('<div class="flexibleZoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:' + g.nzOffset.left + "px;top:" + g.nzOffset.top + "px;height:" + g.nzHeight + "px;width:" + g.nzWidth + 'px;"></div>'); 294 c("body").append(g.flexibleZoomContainer); 295 if (g.options.containLensZoom && g.options.zoomType == "lens") { 296 g.flexibleZoomContainer.css("overflow", "hidden") 297 } 298 if (g.options.zoomType != "inner") { 299 g.flexibleZoomLens = c("<div class='flexibleZoomLens' style='" + g.lensStyle + g.lensRound + "'> </div>").appendTo(g.flexibleZoomContainer).click(function() { 300 g.$elem.trigger("click") 301 }); 302 if (g.options.tint && g.options.zoomType != "lens") { 303 g.tintContainer = c("<div/>").addClass("tintContainer"); 304 g.zoomTint = c("<div class='zoomTint' style='" + g.tintStyle + "'></div>");
305 g.flexibleZoomLens.wrap(g.tintContainer); 306 g.zoomTintcss = g.flexibleZoomLens.after(g.zoomTint); 307 g.zoomTintImage = c('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: ' + g.nzWidth + "px; height: " + g.nzHeight + 'px;" src="' + g.imageSrc + '">').appendTo(g.flexibleZoomLens).click(function() { 308 g.$elem.trigger("click") 309 }) 310 } 311 } 312 if (isNaN(g.options.FlexibleZoomWindowPosition)) { 313 g.FlexibleZoomWindow = c("<div style='z-index:999;left:" + (g.windowOffsetLeft) + "px;top:" + (g.windowOffsetTop) + "px;" + g.FlexibleZoomWindowStyle + "' class='FlexibleZoomWindow'> </div>").appendTo("body").click(function() { 314 g.$elem.trigger("click") 315 }) 316 } else { 317 g.FlexibleZoomWindow = c("<div style='z-index:999;left:" + (g.windowOffsetLeft) + "px;top:" + (g.windowOffsetTop) + "px;" + g.FlexibleZoomWindowStyle + "' class='FlexibleZoomWindow'> </div>").appendTo(g.flexibleZoomContainer).click(function() { 318 g.$elem.trigger("click") 319 }) 320 } 321 g.FlexibleFlexibleZoomWindowContainer = c("<div/>").addClass("FlexibleFlexibleZoomWindowContainer").css("width", g.options.FlexibleZoomWindowWidth); 322 g.FlexibleZoomWindow.wrap(g.FlexibleFlexibleZoomWindowContainer); 323 if (g.options.zoomType == "lens") { 324 g.flexibleZoomLens.css({ 325 backgroundImage: "url('" + g.imageSrc + "')" 326 }) 327 } 328 if (g.options.zoomType == "window") { 329 g.FlexibleZoomWindow.css({ 330 backgroundImage: "url('" + g.imageSrc + "')" 331 }) 332 } 333 if (g.options.zoomType == "inner") { 334 g.FlexibleZoomWindow.css({ 335 backgroundImage: "url('" + g.imageSrc + "')" 336 }) 337 } 338 /*-------------------END THE ZOOM WINDOW AND LENS----------------------------------*/ 339 340 if (c(window).width() < 769) { // IF MOBILE 341 g.$elem.bind("touchmove", function(h) { 342 //alert(h.originalEvent.touches.length); 343 if (h.originalEvent.touches.length > 1) { 344 h.preventDefault(); 345 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 346 g.setPosition(i); 347 } 348 }); 349 350 g.flexibleZoomContainer.bind("touchmove", function(h) { 351 //alert(h.originalEvent.touches.length); 352 if (h.originalEvent.touches.length > 1) { 353 if (g.options.zoomType == "inner") { 354 g.showHideWindow("show") 355 } 356 h.preventDefault(); 357 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 358 g.setPosition(i); 359 }; 360 }); 361 362 g.flexibleZoomContainer.bind("touchend", function(h) { 363 if (h.originalEvent.touches.length > 1) { 364 g.showHideWindow("hide"); 365 if (g.options.showLens) { 366 g.showHideLens("hide") 367 } 368 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 369 g.showHideTint("hide") 370 } 371 } 372 }); 373 g.$elem.bind("touchend", function(h) { 374 if (h.originalEvent.touches.length > 1) { 375 g.showHideWindow("hide"); 376 if (g.options.showLens) { 377 g.showHideLens("hide") 378 } 379 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 380 g.showHideTint("hide") 381 } 382 } 383 }); 384 if (g.options.showLens) { 385 g.flexibleZoomLens.bind("touchmove", function(h) { 386 if (h.originalEvent.touches.length > 1) { 387 h.preventDefault(); 388 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 389 g.setPosition(i) 390 } 391 }); 392 g.flexibleZoomLens.bind("touchend", function(h) { 393 if (h.originalEvent.touches.length > 1) { 394 g.showHideWindow("hide"); 395 if (g.options.showLens) { 396 g.showHideLens("hide") 397 } 398 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 399 g.showHideTint("hide") 400 } 401 } 402 }) 403 } 404 g.flexibleZoomContainer.bind("mousemove", function(h) { 405 //alert(h.riginalEvent.touches.length); 406 if (h.originalEvent.touches.length > 1) { 407 if (g.overWindow == false) { 408 g.setElements("show") 409 } 410 if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 411 g.setPosition(h); 412 g.currentLoc = h 413 } 414 g.lastX = h.clientX; 415 g.lastY = h.clientY 416 } 417 }); 418 419 } else { // ELSE WEB - MOBILE 420 g.$elem.bind("touchmove", function(h) { 421 h.preventDefault(); 422 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 423 g.setPosition(i) 424 }); 425 g.flexibleZoomContainer.bind("touchmove", function(h) { 426 if (g.options.zoomType == "inner") { 427 g.showHideWindow("show") 428 } 429 h.preventDefault(); 430 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 431 g.setPosition(i) 432 }); 433 g.flexibleZoomContainer.bind("touchend", function(h) { 434 g.showHideWindow("hide"); 435 if (g.options.showLens) { 436 g.showHideLens("hide") 437 } 438 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 439 g.showHideTint("hide") 440 } 441 }); 442 g.$elem.bind("touchend", function(h) { 443 g.showHideWindow("hide"); 444 if (g.options.showLens) { 445 g.showHideLens("hide") 446 } 447 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 448 g.showHideTint("hide") 449 } 450 }); 451 if (g.options.showLens) { 452 g.flexibleZoomLens.bind("touchmove", function(h) { 453 h.preventDefault(); 454 var i = h.originalEvent.touches[0] || h.originalEvent.changedTouches[0]; 455 g.setPosition(i) 456 }); 457 g.flexibleZoomLens.bind("touchend", function(h) { 458 g.showHideWindow("hide"); 459 if (g.options.showLens) { 460 g.showHideLens("hide") 461 } 462 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 463 g.showHideTint("hide") 464 } 465 }) 466 } 467 468 g.flexibleZoomContainer.bind("mousemove", function(h) { 469 if (g.overWindow == false) { 470 g.setElements("show") 471 } 472 if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 473 g.setPosition(h); 474 g.currentLoc = h 475 } 476 g.lastX = h.clientX; 477 g.lastY = h.clientY 478 }); 479 480 }; // END IF WEB 481 482 g.$elem.bind("mousemove", function(h) { 483 if (g.overWindow == false) { 484 g.setElements("show") 485 } 486 if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 487 g.setPosition(h); 488 g.currentLoc = h 489 } 490 g.lastX = h.clientX; 491 g.lastY = h.clientY 492 }); 493 494 if (g.options.zoomType != "inner") { 495 // g.flexibleZoomLens.bind("mousemove", function(h) { 496 // if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 497 // g.setPosition(h); 498 // g.currentLoc = h 499 // } 500 // g.lastX = h.clientX; 501 // g.lastY = h.clientY 502 // }) 503 } 504 if (g.options.tint && g.options.zoomType != "inner" && g.options.zoomType != "lens") { 505 // g.zoomTint.bind("mousemove", function(h) { 506 // if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 507 // g.setPosition(h); 508 // g.currentLoc = h 509 // } 510 // g.lastX = h.clientX; 511 // g.lastY = h.clientY 512 // }) 513 } 514 if (g.options.zoomType == "inner") { 515 // g.FlexibleZoomWindow.bind("mousemove", function(h) { 516 // if (g.lastX !== h.clientX || g.lastY !== h.clientY) { 517 // g.setPosition(h); 518 // g.currentLoc = h 519 // } 520 // g.lastX = h.clientX; 521 // g.lastY = h.clientY 522 // }) 523 } 524 525 g.flexibleZoomContainer.add(g.$elem).mouseenter(function() { 526 if (g.overWindow == false) { 527 g.setElements("show") 528 } 529 }).mouseleave(function() { 530 if (!g.scrollLock) { 531 g.setElements("hide") 532 } 533 }); 534 if (g.options.zoomType != "inner") { 535 g.FlexibleZoomWindow.mouseenter(function() { 536 g.overWindow = true; 537 g.setElements("hide") 538 }).mouseleave(function() { 539 g.overWindow = false 540 }) 541 } 542 if (g.options.zoomLevel != 1) { 543 // g.changeZoomLevel(g.currentZoomLevel); 544 } 545 if (g.options.minZoomLevel) { 546 g.minZoomLevel = g.options.minZoomLevel 547 } else { 548 g.minZoomLevel = g.options.scrollZoomIncrement * 2 549 } 550 if (g.options.scrollZoom) { 551 g.flexibleZoomContainer.add(g.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll", function(h) { 552 g.scrollLock = true; 553 clearTimeout(c.data(this, "timer")); 554 c.data(this, "timer", setTimeout(function() { 555 g.scrollLock = false 556 }, 250)); 557 var i = h.originalEvent.wheelDelta || h.originalEvent.detail * -1; 558 h.stopImmediatePropagation(); 559 h.stopPropagation(); 560 h.preventDefault(); 561 if (i / 120 > 0) { 562 if (g.currentZoomLevel >= g.minZoomLevel) { 563 g.changeZoomLevel(g.currentZoomLevel - g.options.scrollZoomIncrement) 564 } 565 } else { 566 if (g.options.maxZoomLevel) { 567 if (g.currentZoomLevel <= g.options.maxZoomLevel) { 568 g.changeZoomLevel(parseFloat(g.currentZoomLevel) + g.options.scrollZoomIncrement) 569 } 570 } else { 571 g.changeZoomLevel(parseFloat(g.currentZoomLevel) + g.options.scrollZoomIncrement) 572 } 573 } 574 return false 575 }) 576 } 577 }, 578 setElements: function(g) { 579 var f = this; 580 if (!f.options.zoomEnabled) { 581 return false 582 } 583 if (g == "show") { 584 if (f.isWindowSet) { 585 if (f.options.zoomType == "inner") { 586 f.showHideWindow("show") 587 } 588 if (f.options.zoomType == "window") { 589 f.showHideWindow("show") 590 } 591 if (f.options.showLens) { 592 f.showHideLens("show") 593 } 594 if (f.options.tint && f.options.zoomType != "inner" && f.options.zoomType != "lens") { 595 f.showHideTint("show") 596 } 597 } 598 } 599 if (g == "hide") { 600 if (f.options.zoomType == "window") { 601 f.showHideWindow("hide") 602 } 603 if (!f.options.tint) { 604 f.showHideWindow("hide") 605 } 606 if (f.options.showLens) { 607 f.showHideLens("hide") 608 } 609 if (f.options.tint && f.options.zoomType != "lens") { 610 f.showHideTint("hide") 611 } 612 } 613 }, 614 setPosition: function(g) { 615 var f = this; 616 if (!f.options.zoomEnabled) { 617 return false 618 } 619 f.nzHeight = f.$elem.height(); 620 f.nzWidth = f.$elem.width(); 621 f.nzOffset = f.$elem.offset(); 622 if (f.options.tint && f.options.zoomType != "inner" && f.options.zoomType != "lens") { 623 f.zoomTint.css({ 624 top: 0 625 }); 626 f.zoomTint.css({ 627 left: 0 628 }) 629 } 630 if (f.options.responsive && !f.options.scrollZoom) { 631 if (f.options.showLens) { 632 if (f.nzHeight < f.options.FlexibleZoomWindowWidth / f.widthRatio) { 633 lensHeight = f.nzHeight 634 } else {
635 lensHeight = String((f.options.FlexibleZoomWindowHeight / f.heightRatio)) 636 } 637 if (f.largeWidth < f.options.FlexibleZoomWindowWidth) { 638 lensWidth = f.nzWidth 639 } else { 640 lensWidth = (f.options.FlexibleZoomWindowWidth / f.widthRatio) 641 } 642 f.widthRatio = f.largeWidth / f.nzWidth; 643 f.heightRatio = f.largeHeight / f.nzHeight; 644 if (f.options.zoomType != "lens") { 645 if (f.nzHeight < f.options.FlexibleZoomWindowWidth / f.widthRatio) { 646 lensHeight = f.nzHeight 647 } else { 648 lensHeight = String((f.options.FlexibleZoomWindowHeight / f.heightRatio)) 649 } 650 if (f.options.FlexibleZoomWindowWidth < f.options.FlexibleZoomWindowWidth) { 651 lensWidth = f.nzWidth 652 } else { 653 lensWidth = (f.options.FlexibleZoomWindowWidth / f.widthRatio) 654 } 655 f.flexibleZoomLens.css("width", lensWidth); 656 f.flexibleZoomLens.css("height", lensHeight); 657 if (f.options.tint && f.options.zoomType != "lens") { 658 f.zoomTintImage.css("width", f.nzWidth); 659 f.zoomTintImage.css("height", f.nzHeight) 660 } 661 } 662 if (f.options.zoomType == "lens") { 663 f.flexibleZoomLens.css({ 664 width: String(f.options.lensSize) + "px", 665 height: String(f.options.lensSize) + "px" 666 }) 667 } 668 } 669 } 670 f.flexibleZoomContainer.css({ 671 top: f.nzOffset.top 672 }); 673 f.flexibleZoomContainer.css({ 674 left: f.nzOffset.left 675 }); 676 f.mouseLeft = parseInt(g.pageX - f.nzOffset.left); 677 f.mouseTop = parseInt(g.pageY - f.nzOffset.top); 678 if (f.options.zoomType == "window") { 679 f.Etoppos = (f.mouseTop < (f.flexibleZoomLens.height() / 2)); 680 f.Eboppos = (f.mouseTop > f.nzHeight - (f.flexibleZoomLens.height() / 2) - (f.options.lensBorderSize * 2)); 681 f.Eloppos = (f.mouseLeft < 0 + ((f.flexibleZoomLens.width() / 2))); 682 f.Eroppos = (f.mouseLeft > (f.nzWidth - (f.flexibleZoomLens.width() / 2) - (f.options.lensBorderSize * 2))) 683 } 684 if (f.options.zoomType == "inner") { 685 f.Etoppos = (f.mouseTop < ((f.nzHeight / 2) / f.heightRatio)); 686 f.Eboppos = (f.mouseTop > (f.nzHeight - ((f.nzHeight / 2) / f.heightRatio))); 687 f.Eloppos = (f.mouseLeft < 0 + (((f.nzWidth / 2) / f.widthRatio))); 688 f.Eroppos = (f.mouseLeft > (f.nzWidth - (f.nzWidth / 2) / f.widthRatio - (f.options.lensBorderSize * 2))) 689 } 690 if (f.mouseLeft <= 0 || f.mouseTop < 0 || f.mouseLeft > f.nzWidth || f.mouseTop > f.nzHeight) { 691 f.setElements("hide"); 692 return 693 } else { 694 if (f.options.showLens) { 695 f.lensLeftPos = String(f.mouseLeft - f.flexibleZoomLens.width() / 2); 696 f.lensTopPos = String(f.mouseTop - f.flexibleZoomLens.height() / 2) 697 } 698 if (f.Etoppos) { 699 f.lensTopPos = 0 700 } 701 if (f.Eloppos) { 702 f.windowLeftPos = 0; 703 f.lensLeftPos = 0; 704 f.tintpos = 0 705 } 706 if (f.options.zoomType == "window") { 707 if (f.Eboppos) { 708 f.lensTopPos = Math.max((f.nzHeight) - f.flexibleZoomLens.height() - (f.options.lensBorderSize * 2), 0) 709 } 710 if (f.Eroppos) { 711 f.lensLeftPos = (f.nzWidth - (f.flexibleZoomLens.width())
711- (f.options.lensBorderSize * 2)) 712 } 713 } 714 if (f.options.zoomType == "inner") { 715 if (f.Eboppos) { 716 f.lensTopPos = Math.max(((f.nzHeight) - (f.options.lensBorderSize * 2)), 0) 717 } 718 if (f.Eroppos) { 719 f.lensLeftPos = (f.nzWidth - (f.nzWidth) - (f.options.lensBorderSize * 2)) 720 } 721 } 722 if (f.options.zoomType == "lens") { 723 f.windowLeftPos = String(((g.pageX - f.nzOffset.left) * f.widthRatio - f.flexibleZoomLens.width() / 2) * (-1)); 724 f.windowTopPos = String(((g.pageY - f.nzOffset.top) * f.heightRatio - f.flexibleZoomLens.height() / 2) * (-1)); 725 f.flexibleZoomLens.css({ 726 backgroundPosition: f.windowLeftPos + "px " + f.windowTopPos + "px" 727 }); 728 if (f.changeBgSize) { 729 if (f.nzHeight > f.nzWidth) { 730 if (f.options.zoomType == "lens") { 731 f.flexibleZoomLens.css({ 732 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 733 }) 734 } 735 f.FlexibleZoomWindow.css({ 736 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 737 }) 738 } else { 739 if (f.options.zoomType == "lens") { 740 f.flexibleZoomLens.css({ 741 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 742 }) 743 } 744 f.FlexibleZoomWindow.css({ 745 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 746 }) 747 } 748 f.changeBgSize = false 749 } 750 f.setWindowPostition(g) 751 } 752 if (f.options.tint && f.options.zoomType != "inner" && f.options.zoomType != "lens") { 753 f.setTintPosition(g) 754 } 755 if (f.options.zoomType == "window") { 756 f.setWindowPostition(g) 757 } 758 if (f.options.zoomType == "inner") { 759 f.setWindowPostition(g) 760 } 761 if (f.options.showLens) { 762 if (f.fullwidth && f.options.zoomType != "lens") { 763 f.lensLeftPos = 0 764 } 765 f.flexibleZoomLens.css({ 766 left: f.lensLeftPos + "px", 767 top: f.lensTopPos + "px" 768 }) 769 } 770 } 771 }, 772 showHideWindow: function(g) { 773 var f = this; 774 if (g == "show") { 775 if (!f.isWindowActive) { 776 if (f.options.FlexibleZoomWindowFadeIn) { 777 f.FlexibleZoomWindow.stop(true, true, false).fadeIn(f.options.FlexibleZoomWindowFadeIn) 778 } else { 779 f.FlexibleZoomWindow.show() 780 } 781 f.isWindowActive = true 782 } 783 } 784 if (g == "hide" && !f.options.FlexibleZoomWindowAlwaysShow) { 785 if (f.isWindowActive) { 786 if (f.options.FlexibleZoomWindowFadeOut) { 787 f.FlexibleZoomWindow.stop(true, true).fadeOut(f.options.FlexibleZoomWindowFadeOut) 788 } else { 789 f.FlexibleZoomWindow.hide() 790 } 791 f.isWindowActive = false 792 } 793 } 794 }, 795 showHideLens: function(g) { 796 var f = this; 797 if (g == "show") { 798 if (!f.isLensActive) { 799 if (f.options.lensFadeIn) { 800 f.flexibleZoomLens.stop(true, true, false).fadeIn(f.options.lensFadeIn) 801 } else { 802 f.flexibleZoomLens.show() 803 } 804 f.isLensActive = true 805 } 806 } 807 if (g == "hide" && !f.options.FlexibleZoomWindowAlwaysShow) { 808 if (f.isLensActive) { 809 if (f.options.lensFadeOut) { 810 f.flexibleZoomLens.stop(true, true).fadeOut(f.options.lensFadeOut) 811 } else { 812 f.flexibleZoomLens.hide() 813 } 814 f.isLensActive = false 815 } 816 } 817 }, 818 showHideTint: function(g) { 819 var f = this; 820 if (g == "show") { 821 if (!f.isTintActive) { 822 if (f.options.zoomTintFadeIn) { 823 f.zoomTint.css({ 824 opacity: f.options.tintOpacity 825 }).animate().stop(true, true).fadeIn("slow") 826 } else { 827 f.zoomTint.css({ 828 opacity: f.options.tintOpacity 829 }).animate(); 830 f.zoomTint.show() 831 } 832 f.isTintActive = true 833 } 834 } 835 if (g == "hide") { 836 if (f.isTintActive) { 837 if (f.options.zoomTintFadeOut) { 838 f.zoomTint.stop(true, true).fadeOut(f.options.zoomTintFadeOut) 839 } else { 840 f.zoomTint.hide() 841 } 842 f.isTintActive = false 843 } 844 } 845 }, 846 setLensPostition: function(f) {}, 847 setWindowPostition: function(g) { 848 var f = this; 849 if (!isNaN(f.options.FlexibleZoomWindowPosition)) { 850 switch (f.options.FlexibleZoomWindowPosition) { 851 case 1: 852 f.windowOffsetTop = (f.options.FlexibleZoomWindowOffety); 853 f.windowOffsetLeft = (+f.nzWidth); 854 break; 855 case 2: 856 if (f.options.FlexibleZoomWindowHeight > f.nzHeight) { 857 f.windowOffsetTop = ((f.options.FlexibleZoomWindowHeight / 2) - (f.nzHeight / 2)) * (-1); 858 f.windowOffsetLeft = (f.nzWidth) 859 } else {} 860 break; 861 case 3: 862 f.windowOffsetTop = (f.nzHeight - f.FlexibleZoomWindow.height() - (f.options.borderSize * 2)); 863 f.windowOffsetLeft = (f.nzWidth); 864 break; 865 case 4: 866 f.windowOffsetTop = (f.nzHeight); 867 f.windowOffsetLeft = (f.nzWidth); 868 break; 869 case 5: 870 f.windowOffsetTop = (f.nzHeight); 871 f.windowOffsetLeft = (f.nzWidth - f.FlexibleZoomWindow.width() - (f.options.borderSize * 2)); 872 break; 873 case 6: 874 if (f.options.FlexibleZoomWindowHeight > f.nzHeight) { 875 f.windowOffsetTop = (f.nzHeight); 876 f.windowOffsetLeft = ((f.options.FlexibleZoomWindowWidth / 2) - (f.nzWidth / 2) + (f.options.borderSize * 2)) * (-1) 877 } else {} 878 break; 879 case 7: 880 f.windowOffsetTop = (f.nzHeight); 881 f.windowOffsetLeft = 0; 882 break; 883 case 8: 884 f.windowOffsetTop = (f.nzHeight); 885 f.windowOffsetLeft = (f.FlexibleZoomWindow.width() + (f.options.borderSize * 2)) * (-1); 886 break; 887 case 9: 888 f.windowOffsetTop = (f.nzHeight - f.FlexibleZoomWindow.height() - (f.options.borderSize * 2)); 889 f.windowOffsetLeft = (f.FlexibleZoomWindow.width() + (f.options.borderSize * 2)) * (-1); 890 break; 891 case 10: 892 if (f.options.FlexibleZoomWindowHeight > f.nzHeight) { 893 f.windowOffsetTop = ((f.options.FlexibleZoomWindowHeight / 2) - (f.nzHeight / 2)) * (-1); 894 f.windowOffsetLeft = (f.FlexibleZoomWindow.width() + (f.options.borderSize * 2)) * (-1) 895 } else {} 896 break; 897 case 11: 898 f.windowOffsetTop = (f.options.FlexibleZoomWindowOffety); 899 f.windowOffsetLeft = (f.FlexibleZoomWindow.width() + (f.options.borderSize * 2)) * (-1); 900 break; 901 case 12: 902 f.windowOffsetTop = (f.FlexibleZoomWindow.height() + (f.options.borderSize * 2)) * (-1); 903 f.windowOffsetLeft = (f.FlexibleZoomWindow.width() + (f.options.borderSize * 2)) * (-1); 904 break; 905 case 13: 906 f.windowOffsetTop = (f.FlexibleZoomWindow.height() + (f.options.borderSize * 2)) * (-1); 907 f.windowOffsetLeft = (0); 908 break; 909 case 14: 910 if (f.options.FlexibleZoomWindowHeight > f.nzHeight) { 911 f.windowOffsetTop = (f.FlexibleZoomWindow.height() + (f.options.borderSize * 2)) * (-1); 912 f.windowOffsetLeft = ((f.options.FlexibleZoomWindowWidth / 2) - (f.nzWidth / 2) + (f.options.borderSize * 2)) * (-1) 913 } else {} 914 break; 915 case 15: 916 f.windowOffsetTop = (f.FlexibleZoomWindow.height() + (f.options.borderSize * 2)) * (-1); 917 f.windowOffsetLeft = (f.nzWidth - f.FlexibleZoomWindow.width() - (f.options.borderSize * 2)); 918 break; 919 case 16: 920 f.windowOffsetTop = (f.FlexibleZoomWindow.height() + (f.options.borderSize * 2)) * (-1); 921 f.windowOffsetLeft = (f.nzWidth); 922 break; 923 default: 924 f.windowOffsetTop = (f.options.FlexibleZoomWindowOffety); 925 f.windowOffsetLeft = (f.nzWidth) 926 } 927 } else { 928 f.externalContainer = c("#" + f.options.FlexibleZoomWindowPosition); 929 f.externalContainerWidth = f.externalContainer.width(); 930 f.externalContainerHeight = f.externalContainer.height(); 931 f.externalContainerOffset = f.externalContainer.offset(); 932 f.windowOffsetTop = f.externalContainerOffset.top; 933 f.windowOffsetLeft = f.externalContainerOffset.left 934 } 935 f.isWindowSet = true; 936 f.windowOffsetTop = f.windowOffsetTop + f.options.FlexibleZoomWindowOffety; 937 f.windowOffsetLeft = f.windowOffsetLeft + f.options.FlexibleZoomWindowOffetx; 938 f.FlexibleZoomWindow.css({ 939 top: f.windowOffsetTop 940 }); 941 f.FlexibleZoomWindow.css({ 942 left: f.windowOffsetLeft 943 }); 944 if (f.options.zoomType == "inner") { 945 f.FlexibleZoomWindow.css({ 946 top: 0 947 }); 948 f.FlexibleZoomWindow.css({ 949 left: 0 950 }) 951 } 952 f.windowLeftPos = String(((g.pageX - f.nzOffset.left) * f.widthRatio - f.FlexibleZoomWindow.width() / 2) * (-1)); 953 f.windowTopPos = String(((g.pageY - f.nzOffset.top) * f.heightRatio - f.FlexibleZoomWindow.height() / 2) * (-1)); 954 if (f.Etoppos) { 955 f.windowTopPos = 0 956 } 957 if (f.Eloppos) { 958 f.windowLeftPos = 0 959 } 960 if (f.Eboppos) { 961 f.windowTopPos = (f.largeHeight / f.currentZoomLevel - f.FlexibleZoomWindow.height()) * (-1) 962 } 963 if (f.Eroppos) { 964 f.windowLeftPos = ((f.largeWidth / f.currentZoomLevel - f.FlexibleZoomWindow.width()) * (-1)) 965 } 966 if (f.fullheight) { 967 f.windowTopPos = 0 968 } 969 if (f.fullwidth) { 970 f.windowLeftPos = 0 971 } 972 if (f.options.zoomType == "window" || f.options.zoomType == "inner") { 973 if (f.zoomLock == 1) { 974 if (f.widthRatio <= 1) { 975 f.windowLeftPos = 0 976 } 977 if (f.heightRatio <= 1) { 978 f.windowTopPos = 0 979 } 980 } 981 if (f.largeHeight < f.options.FlexibleZoomWindowHeight) { 982 f.windowTopPos = 0 983 } 984 if (f.largeWidth < f.options.FlexibleZoomWindowWidth) { 985 f.windowLeftPos = 0 986 } 987 if (f.options.easing) { 988 if (!f.xp) { 989 f.xp = 0 990 } 991 if (!f.yp) { 992 f.yp = 0 993 } 994 if (!f.loop) { 995 f.loop = setInterval(function() { 996 f.xp += (f.windowLeftPos - f.xp) / f.options.easingAmou
996nt; 997 f.yp += (f.windowTopPos - f.yp) / f.options.easingAmount; 998 if (f.scrollingLock) { 999 clearInterval(f.loop); 1000 f.xp = f.windowLeftPos; 1001 f.yp = f.windowTopPos; 1002 f.xp = ((g.pageX - f.nzOffset.left) * f.widthRatio - f.FlexibleZoomWindow.width() / 2) * (-1); 1003 f.yp = (((g.pageY - f.nzOffset.top) * f.heightRatio - f.FlexibleZoomWindow.height() / 2) * (-1)); 1004 if (f.changeBgSize) { 1005 if (f.nzHeight > f.nzWidth) { 1006 if (f.options.zoomType == "lens") { 1007 f.flexibleZoomLens.css({ 1008 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1009 }) 1010 } 1011 f.FlexibleZoomWindow.css({ 1012 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1013 }) 1014 } else { 1015 if (f.options.zoomType != "lens") { 1016 f.flexibleZoomLens.css({ 1017 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvalueheight + "px" 1018 }) 1019 } 1020 f.FlexibleZoomWindow.css({ 1021 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 1022 }) 1023 } 1024 f.changeBgSize = false 1025 } 1026 f.FlexibleZoomWindow.css({ 1027 backgroundPosition: f.windowLeftPos + "px " + f.windowTopPos + "px" 1028 }); 1029 f.scrollingLock = false; 1030 f.loop = false 1031 } else { 1032 if (f.changeBgSize) { 1033 if (f.nzHeight > f.nzWidth) { 1034 if (f.options.zoomType == "lens") { 1035 f.flexibleZoomLens.css({ 1036 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1037 }) 1038 } 1039 f.FlexibleZoomWindow.css({ 1040 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1041 }) 1042 } else { 1043 if (f.options.zoomType != "lens") { 1044 f.flexibleZoomLens.css({ 1045 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 1046 }) 1047 } 1048 f.FlexibleZoomWindow.css({ 1049 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 1050 }) 1051 } 1052 f.changeBgSize = false 1053 } 1054 f.FlexibleZoomWindow.css({ 1055 backgroundPosition: f.xp + "px " + f.yp + "px" 1056 }) 1057 } 1058 }, 16) 1059 } 1060 } else { 1061 if (f.changeBgSize) { 1062 if (f.nzHeight > f.nzWidth) { 1063 if (f.options.zoomType == "lens") { 1064 f.flexibleZoomLens.css({ 1065 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1066 }) 1067 } 1068 f.FlexibleZoomWindow.css({ 1069 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1070 }) 1071 } else { 1072 if (f.options.zoomType == "lens") { 1073 f.flexibleZoomLens.css({ 1074 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 1075 }) 1076 } 1077 if ((f.largeHeight / f.newvaluewidth) < f.options.FlexibleZoomWindowHeight) { 1078 f.FlexibleZoomWindow.css({ 1079 "background-size": f.largeWidth / f.newvaluewidth + "px " + f.largeHeight / f.newvaluewidth + "px" 1080 }) 1081 } else { 1082 f.FlexibleZoomWindow.css({ 1083 "background-size": f.largeWidth / f.newvalueheight + "px " + f.largeHeight / f.newvalueheight + "px" 1084 }) 1085 } 1086 } 1087 f.changeBgSize = false 1088 } 1089 f.FlexibleZoomWindow.css({ 1090 backgroundPosition: f.windowLeftPos + "px " + f.windowTopPos + "px" 1091 }) 1092 } 1093 } 1094 }, 1095 setTintPosition: function(g) { 1096 var f = this; 1097 f.nzOffset = f.$elem.offset(); 1098 f.tintpos = String(((g.pageX - f.nzOffset.left) - (f.flexibleZoomLens.width() / 2)) * (-1)); 1099 f.tintposy = String(((g.pageY - f.nzOffset.top) - f.flexibleZoomLens.height() / 2) * (-1)); 1100 if (f.Etoppos) { 1101 f.tintposy = 0 1102 } 1103 if (f.Eloppos) { 1104 f.tintpos = 0 1105 } 1106 if (f.Eboppos) { 1107 f.tintposy = (f.nzHeight - f.flexibleZoomLens.height() - (f.options.lensBorderSize * 2)) * (-1) 1108 } 1109 if (f.Eroppos) { 1110 f.tintpos = ((f.nzWidth - f.flexibleZoomLens.width() - (f.options.lensBorderSize * 2)) * (-1)) 1111 } 1112 if (f.options.tint && f.options.zoomType != "lens") { 1113 if (f.fullheight) { 1114 f.tintposy = 0 1115 } 1116 if (f.fullwidth) { 1117 f.tintpos = 0 1118 } 1119 f.zoomTintImage.css({ 1120 left: f.tintpos + "px" 1121 }); 1122 f.zoomTintImage.css({ 1123 top: f.tintposy + "px" 1124 }) 1125 } 1126 }, 1127 swaptheimage: function(h, g) { 1128 var f = this; 1129 var i = new Image(); 1130 if (f.options.loadingIcon) { 1131 f.spinner = c('<div class="zoomLoading"></div>'); 1132 f.$elem.after(f.spinner) 1133 } 1134 f.options.onImageSwap(f.$elem); 1135 i.onload = function() { 1136 f.largeWidth = i.width; 1137 f.largeHeight = i.height; 1138 f.zoomImage = g; 1139 f.FlexibleZoomWindow.css({ 1140 "background-size": f.largeWidth + "px " + f.largeHeight + "px" 1141 }); 1142 f.FlexibleZoomWindow.css({ 1143 "background-size": f.largeWidth + "px " + f.largeHeight + "px" 1144 }); 1145 f.swapAction(h, g); 1146 return 1147 }; 1148 i.src = g 1149 }, 1150 swapAction: function(h, g) { 1151 var f = this; 1152 var m = new Image(); 1153 m.onload = function() { 1154 f.nzHeight = m.height; 1155 f.nzWidth = m.width; 1156 f.options.onImageSwapComplete(f.$elem); 1157 f.doneCallback(); 1158 return 1159 }; 1160 m.src = h; 1161 f.currentZoomLevel = f.options.zoomLevel; 1162 f.options.maxZoomLevel = false;
1163 if (f.options.zoomType == "lens") { 1164 f.flexibleZoomLens.css({ 1165 backgroundImage: "url('" + g + "')" 1166 }) 1167 } 1168 if (f.options.zoomType == "window") { 1169 f.FlexibleZoomWindow.css({ 1170 backgroundImage: "url('" + g + "')" 1171 }) 1172 } 1173 if (f.options.zoomType == "inner") { 1174 f.FlexibleZoomWindow.css({ 1175 backgroundImage: "url('" + g + "')" 1176 }) 1177 } 1178 f.currentImage = g; 1179 if (f.options.imageCrossfade) { 1180 var k = f.$elem; 1181 var l = k.clone(); 1182 f.$elem.attr("src", h); 1183 f.$elem.after(l); 1184 l.stop(true).fadeOut(f.options.imageCrossfade, function() { 1185 c(this).remove() 1186 }); 1187 f.$elem.width("auto").removeAttr("width"); 1188 f.$elem.height("auto").removeAttr("height"); 1189 k.fadeIn(f.options.imageCrossfade); 1190 if (f.options.tint && f.options.zoomType != "inner" && f.options.zoomType != "lens") { 1191 var j = f.zoomTintImage; 1192 var i = j.clone(); 1193 f.zoomTintImage.attr("src", g); 1194 f.zoomTintImage.after(i); 1195 i.stop(true).fadeOut(f.options.imageCrossfade, function() { 1196 c(this).remove() 1197 }); 1198 j.fadeIn(f.options.imageCrossfade); 1199 f.zoomTint.css({ 1200 height: f.$elem.height() 1201 }); 1202 f.zoomTint.css({ 1203 width: f.$elem.width() 1204 }) 1205 } 1206 f.flexibleZoomContainer.css("height", f.$elem.height()); 1207 f.flexibleZoomContainer.css("width", f.$elem.width()); 1208 if (f.options.zoomType == "inner") { 1209 if (!f.options.constrainType) { 1210 f.zoomWrap.parent().css("height", f.$elem.height()); 1211 f.zoomWrap.parent().css("width", f.$elem.width()); 1212 f.FlexibleZoomWindow.css("height", f.$elem.height()); 1213 f.FlexibleZoomWindow.css("width", f.$elem.width()) 1214 } 1215 } 1216 if (f.options.imageCrossfade) { 1217 f.zoomWrap.css("height", f.$elem.height()); 1218 f.zoomWrap.css("width", f.$elem.width()) 1219 } 1220 } else { 1221 f.$elem.attr("src", h); 1222 if (f.options.tint && f.options.zoomType != "lens") { 1223 f.zoomTintImage.attr("src", g); 1224 f.zoomTintImage.attr("height", f.$elem.height()); 1225 f.zoomTintImage.css({ 1226 height: f.$elem.height() 1227 }); 1228 f.zoomTint.css({ 1229 height: f.$elem.height() 1230 }) 1231 } 1232 f.flexibleZoomContainer.css("height", f.$elem.height()); 1233 f.flexibleZoomContainer.css("width", f.$elem.width()); 1234 if (f.options.imageCrossfade) { 1235 f.zoomWrap.css("height", f.$elem.height()); 1236 f.zoomWrap.css("width", f.$elem.width()) 1237 } 1238 } 1239 if (f.options.constrainType) { 1240 if (f.options.constrainType == "height") { 1241 f.flexibleZoomContainer.css("height", f.options.constrainSize); 1242 f.flexibleZoomContainer.css("width", "auto"); 1243 if (f.options.imageCrossfade) { 1244 f.zoomWrap.css("height", f.options.constrainSize); 1245 f.zoomWrap.css("width", "auto"); 1246 f.constwidth = f.zoomWrap.width() 1247 } else { 1248 f.$elem.css("height", f.options.constrainSize); 1249 f.$elem.css("width", "auto"); 1250 f.constwidth = f.$elem.width() 1251 } 1252 if (f.options.zoomType == "inner") { 1253 f.zoomWrap.parent().css("height", f.options.constrainSize); 1254 f.zoomWrap.parent().css("width", f.constwidth); 1255 f.FlexibleZoomWindow.css("height", f.options.constrainSize); 1256 f.FlexibleZoomWindow.css("width", f.constwidth) 1257 } 1258 if (f.options.tint && f.options.zoomType != "lens") { 1259 f.tintContainer.css("height", f.options.constrainSize); 1260 f.tintContainer.css("width", f.constwidth); 1261 f.zoomTint.css("height", f.options.constrainSize); 1262 f.zoomTint.css("width", f.constwidth); 1263 f.zoomTintImage.css("height", f.options.constrainSize); 1264 f.zoomTintImage.css("width", f.constwidth) 1265 } 1266 } 1267 if (f.options.constrainType == "width") { 1268 f.flexibleZoomContainer.css("height", "auto"); 1269 f.flexibleZoomContainer.css("width", f.options.constrainSize); 1270 if (f.options.imageCrossfade) { 1271 f.zoomWrap.css("height", "auto"); 1272 f.zoomWrap.css("width", f.options.constrainSize); 1273 f.constheight = f.zoomWrap.height() 1274 } else { 1275 f.$elem.css("height", "auto"); 1276 f.$elem.css("width", f.options.constrainSize); 1277 f.constheight = f.$elem.height() 1278 } 1279 if (f.options.zoomType == "inner") { 1280 f.zoomWrap.parent().css("height", f.constheight); 1281 f.zoomWrap.parent().css("width", f.options.constrainSize); 1282 f.FlexibleZoomWindow.css("height", f.constheight); 1283 f.FlexibleZoomWindow.css("width", f.options.constrainSize) 1284 } 1285 if (f.options.tint && f.options.zoomType != "lens") { 1286 f.tintContainer.css("height", f.constheight); 1287 f.tintContainer.css("width", f.options.constrainSize); 1288 f.zoomTint.css("height", f.constheight); 1289 f.zoomTint.css("width", f.options.constrainSize); 1290 f.zoomTintImage.css("height", f.constheight); 1291 f.zoomTintImage.css("width", f.options.constrainSize) 1292 } 1293 } 1294 } 1295 }, 1296 doneCallback: function() { 1297 var f = this; 1298 if (f.options.loadingIcon) { 1299 f.spinner.hide() 1300 } 1301 f.nzOffset = f.$elem.offset(); 1302 f.nzWidth = f.$elem.width(); 1303 f.nzHeight = f.$elem.height(); 1304 f.currentZoomLevel = f.options.zoomLevel; 1305 f.widthRatio = f.largeWidth / f.nzWidth; 1306 f.heightRatio = f.largeHeight / f.nzHeight; 1307 if (f.options.zoomType == "window") { 1308 if (f.nzHeight < f.options.FlexibleZoomWindowWidth / f.widthRatio) { 1309 lensHeight = f.nzHeight 1310 } else {
1311 lensHeight = String((f.options.FlexibleZoomWindowHeight / f.heightRatio)) 1312 } 1313 if (f.options.FlexibleZoomWindowWidth < f.options.FlexibleZoomWindowWidth) { 1314 lensWidth = f.nzWidth 1315 } else { 1316 lensWidth = (f.options.FlexibleZoomWindowWidth / f.widthRatio) 1317 } 1318 if (f.flexibleZoomLens) { 1319 f.flexibleZoomLens.css("width", lensWidth); 1320 f.flexibleZoomLens.css("height", lensHeight) 1321 } 1322 } 1323 }, 1324 getCurrentImage: function() { 1325 var f = this; 1326 return f.zoomImage 1327 }, 1328 getGalleryList: function() { 1329 var f = this; 1330 f.gallerylist = []; 1331 if (f.options.gallery) { 1332 c("#" + f.options.gallery + " a").each(function() { 1333 var g = ""; 1334 if (c(this).data("zoom-image")) { 1335 g = c(this).data("zoom-image") 1336 } else { 1337 if (c(this).data("image")) { 1338 g = c(this).data("image") 1339 } 1340 } 1341 if (g == f.zoomImage) { 1342 f.gallerylist.unshift({ 1343 href: "" + g + "", 1344 title: c(this).find("img").attr("title") 1345 }) 1346 } else { 1347 f.gallerylist.push({ 1348 href: "" + g + "", 1349 title: c(this).find("img").attr("title") 1350 }) 1351 } 1352 }) 1353 } else { 1354 f.gallerylist.push({ 1355 href: "" + f.zoomImage + "", 1356 title: c(this).find("img").attr("title") 1357 }) 1358 } 1359 return f.gallerylist 1360 }, 1361 changeZoomLevel: function(g) { 1362 var f = this; 1363 f.scrollingLock = true; 1364 f.newvalue = parseFloat(g).toFixed(2); 1365 newvalue = parseFloat(g).toFixed(2); 1366 maxheightnewvalue = f.largeHeight / ((f.options.FlexibleZoomWindowHeight / f.nzHeight) * f.nzHeight); 1367 maxwidthtnewvalue = f.largeWidth / ((f.options.FlexibleZoomWindowWidth / f.nzWidth) * f.nzWidth); 1368 if (f.options.zoomType != "inner") { 1369 if (maxheightnewvalue <= newvalue) { 1370 f.heightRatio = (f.largeHeight / maxheightnewvalue) / f.nzHeight; 1371 f.newvalueheight = maxheightnewvalue; 1372 f.fullheight = true 1373 } else { 1374 f.heightRatio = (f.largeHeight / newvalue) / f.nzHeight; 1375 f.newvalueheight = newvalue; 1376 f.fullheight = false 1377 } 1378 if (maxwidthtnewvalue <= newvalue) { 1379 f.widthRatio = (f.largeWidth / maxwidthtnewvalue) / f.nzWidth; 1380 f.newvaluewidth = maxwidthtnewvalue; 1381 f.fullwidth = true 1382 } else { 1383 f.widthRatio = (f.largeWidth / newvalue) / f.nzWidth; 1384 f.newvaluewidth = newvalue; 1385 f.fullwidth = false 1386 } 1387 if (f.options.zoomType == "lens") { 1388 if (maxheightnewvalue <= newvalue) { 1389 f.fullwidth = true; 1390 f.newvaluewidth = maxheightnewvalue 1391 } else { 1392 f.widthRatio = (f.largeWidth / newvalue) / f.nzWidth; 1393 f.newvaluewidth = newvalue; 1394 f.fullwidth = false 1395 } 1396 } 1397 } 1398 if (f.options.zoomType == "inner") { 1399 maxheightnewvalue = parseFloat(f.largeHeight / f.nzHeight).toFixed(2); 1400 maxwidthtnewvalue = parseFloat(f.largeWidth / f.nzWidth).toFixed(2); 1401 if (newvalue > maxheightnewvalue) { 1402 newvalue = maxheightnewvalue 1403 } 1404 if (newvalue > maxwidthtnewvalue) { 1405 newvalue = maxwidthtnewvalue 1406 } 1407 if (maxheightnewvalue <= newvalue) { 1408 f.heightRatio = (f.largeHeight / newvalue) / f.nzHeight; 1409 if (newvalue > maxheightnewvalue) { 1410 f.newvalueheight = maxheightnewvalue 1411 } else { 1412 f.newvalueheight = newvalue 1413 } 1414 f.fullheight = true 1415 } else { 1416 f.heightRatio = (f.largeHeight / newvalue) / f.nzHeight; 1417 if (newvalue > maxheightnewvalue) { 1418 f.newvalueheight = maxheightnewvalue 1419 } else { 1420 f.newvalueheight = newvalue 1421 } 1422 f.fullheight = false 1423 } 1424 if (maxwidthtnewvalue <= newvalue) {
1425 f.widthRatio = (f.largeWidth / newvalue) / f.nzWidth; 1426 if (newvalue > maxwidthtnewvalue) { 1427 f.newvaluewidth = maxwidthtnewvalue 1428 } else { 1429 f.newvaluewidth = newvalue 1430 } 1431 f.fullwidth = true 1432 } else { 1433 f.widthRatio = (f.largeWidth / newvalue) / f.nzWidth; 1434 f.newvaluewidth = newvalue; 1435 f.fullwidth = false 1436 } 1437 } 1438 scrcontinue = false; 1439 if (f.options.zoomType == "inner") { 1440 if (f.nzWidth > f.nzHeight) { 1441 if (f.newvaluewidth <= maxwidthtnewvalue) { 1442 scrcontinue = true 1443 } else { 1444 scrcontinue = false; 1445 f.fullheight = true; 1446 f.fullwidth = true 1447 } 1448 } 1449 if (f.nzHeight > f.nzWidth) { 1450 if (f.newvaluewidth <= maxwidthtnewvalue) { 1451 scrcontinue = true 1452 } else { 1453 scrcontinue = false; 1454 f.fullheight = true; 1455 f.fullwidth = true 1456 } 1457 } 1458 } 1459 if (f.options.zoomType != "inner") { 1460 scrcontinue = true 1461 } 1462 if (scrcontinue) { 1463 f.zoomLock = 0; 1464 f.changeZoom = true; 1465 if (((f.options.FlexibleZoomWindowHeight) / f.heightRatio) <= f.nzHeight) { 1466 f.currentZoomLevel = f.newvalueheight; 1467 if (f.options.zoomType != "lens" && f.options.zoomType != "inner") { 1468 f.changeBgSize = true; 1469 f.flexibleZoomLens.css({ 1470 height: String((f.options.FlexibleZoomWindowHeight) / f.heightRatio) + "px" 1471 }) 1472 } 1473 if (f.options.zoomType == "lens" || f.options.zoomType == "inner") { 1474 f.changeBgSize = true 1475 } 1476 } 1477 if ((f.options.FlexibleZoomWindowWidth / f.widthRatio) <= f.nzWidth) { 1478 if (f.options.zoomType != "inner") { 1479 if (f.newvaluewidth > f.newvalueheight) { 1480 f.currentZoomLevel = f.newvaluewidth 1481 } 1482 } 1483 if (f.options.zoomType != "lens" && f.options.zoomType != "inner") { 1484 f.changeBgSize = true; 1485 f.flexibleZoomLens.css({ 1486 width: String((f.options.FlexibleZoomWindowWidth) / f.widthRatio) + "px" 1487 }) 1488 } 1489 if (f.options.zoomType == "lens" || f.options.zoomType == "inner") { 1490 f.changeBgSize = true 1491 } 1492 } 1493 if (f.options.zoomType == "inner") { 1494 f.changeBgSize = true; 1495 if (f.nzWidth > f.nzHeight) { 1496 f.currentZoomLevel = f.newvaluewidth 1497 } 1498 if (f.nzHeight > f.nzWidth) { 1499 f.currentZoomLevel = f.newvaluewidth 1500 } 1501 } 1502 } 1503 f.setPosition(f.currentLoc) 1504 }, 1505 closeAll: function() { 1506 if (self.FlexibleZoomWindow) { 1507 self.FlexibleZoomWindow.hide() 1508 } 1509 if (self.flexibleZoomLens) { 1510 self.flexibleZoomLens.hide() 1511 } 1512 if (self.zoomTint) { 1513 self.zoomTint.hide() 1514 } 1515 }, 1516 changeState: function(g) { 1517 var f = this; 1518 if (g == "enable") { 1519 f.options.zoomEnabled = true 1520 } 1521 if (g == "disable") { 1522 f.options.zoomEnabled = false 1523 } 1524 } 1525 }; 1526 c.fn.flexibleZoomEffect = function(f) { 1527 return this.each(function() { 1528 var g = Object.create(d); 1529 g.init(f, this); 1530 c.data(this, "flexibleZoomEffect", g) 1531 }) 1532 }; 1533 c.fn.flexibleZoomEffect.options = { 1534 zoomActivation: "hover", 1535 zoomEnabled: true, 1536 preloading: 1, 1537 zoomLevel: 1, 1538 scrollZoom: false, 1539 scrollZoomIncrement: 0.1, 1540 minZoomLevel: false, 1541 maxZoomLevel: false, 1542 easing: true,
1543 easingAmount: 12, 1544 lensSize: 200, 1545 FlexibleZoomWindowWidth: 400, 1546 FlexibleZoomWindowHeight: 400, 1547 FlexibleZoomWindowOffetx: 0, 1548 FlexibleZoomWindowOffety: 0, 1549 FlexibleZoomWindowPosition: 1, 1550 FlexibleZoomWindowBgColour: "#fff", 1551 lensFadeIn: false, 1552 lensFadeOut: false, 1553 debug: false, 1554 FlexibleZoomWindowFadeIn: false, 1555 FlexibleZoomWindowFadeOut: false, 1556 FlexibleZoomWindowAlwaysShow: false, 1557 zoomTintFadeIn: false, 1558 zoomTintFadeOut: false, 1559 borderSize: 0, 1560 showLens: true, 1561 borderColour: "#888", 1562 lensBorderSize: 1, 1563 lensBorderColour: "#000", 1564 lensShape: "square", 1565 zoomType: "window", 1566 containLensZoom: false, 1567 lensColour: "white", 1568 lensOpacity: 0.4, 1569 lenszoom: false, 1570 tint: false, 1571 tintColour: "#333", 1572 tintOpacity: 0.4, 1573 gallery: false, 1574 galleryActiveClass: "zoomGalleryActive", 1575 imageCrossfade: false, 1576 constrainType: false, 1577 constrainSize: false, 1578 loadingIcon: false, 1579 cursor: "default", 1580 responsive: true, 1581 onComplete: c.noop, 1582 onZoomedImageLoaded: function() {}, 1583 onImageSwap: c.noop, 1584 onImageSwapComplete: c.noop 1585 } 1586})(jQuery, window, document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.