<\/div>").appendTo(t.zoomContainer).click(function(){t.$elem.trigger("click")});t.zoomWindowContainer=n("
").addClass("zoomWindowContainer").css("width",t.options.zoomWindowWidth);t.zoomWindow.wrap(t.zoomWindowContainer);t.options.zoomType=="lens"&&t.zoomLens.css({backgroundImage:"url('"+t.imageSrc+"')"});t.options.zoomType=="window"&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});t.options.zoomType=="inner"&&t.zoomWindow.css({backgroundImage:"url('"+t.imageSrc+"')"});t.$elem.bind("touchmove",function(n){var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind("touchmove",function(n){t.options.zoomType=="inner"&&t.showHideWindow("show");var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)});t.zoomContainer.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&t.options.zoomType!="inner"&&t.showHideTint("hide")});t.$elem.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&t.options.zoomType!="inner"&&t.showHideTint("hide")});t.options.showLens&&(t.zoomLens.bind("touchmove",function(n){var i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0];t.setPosition(i)}),t.zoomLens.bind("touchend",function(){t.showHideWindow("hide");t.options.showLens&&t.showHideLens("hide");t.options.tint&&t.options.zoomType!="inner"&&t.showHideTint("hide")}));t.$elem.bind("mousemove",function(n){t.overWindow==!1&&t.setElements("show");(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.bind("mousemove",function(n){t.overWindow==!1&&t.setElements("show");(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.zoomType!="inner"&&t.zoomLens.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.tint&&t.options.zoomType!="inner"&&t.zoomTint.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.options.zoomType=="inner"&&t.zoomWindow.bind("mousemove",function(n){(t.lastX!==n.clientX||t.lastY!==n.clientY)&&(t.setPosition(n),t.currentLoc=n);t.lastX=n.clientX;t.lastY=n.clientY});t.zoomContainer.add(t.$elem).mouseenter(function(){t.overWindow==!1&&t.setElements("show")}).mouseleave(function(){t.scrollLock||t.setElements("hide")});t.options.zoomType!="inner"&&t.zoomWindow.mouseenter(function(){t.overWindow=!0;t.setElements("hide")}).mouseleave(function(){t.overWindow=!1});t.options.zoomLevel!=1;t.minZoomLevel=t.options.minZoomLevel?t.options.minZoomLevel:t.options.scrollZoomIncrement*2;t.options.scrollZoom&&t.zoomContainer.add(t.$elem).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(i){t.scrollLock=!0;clearTimeout(n.data(this,"timer"));n.data(this,"timer",setTimeout(function(){t.scrollLock=!1},250));var r=i.originalEvent.wheelDelta||i.originalEvent.detail*-1;return i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault(),r/120>0?t.currentZoomLevel>=t.minZoomLevel&&t.changeZoomLevel(t.currentZoomLevel-t.options.scrollZoomIncrement):t.options.maxZoomLevel?t.currentZoomLevel<=t.options.maxZoomLevel&&t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement):t.changeZoomLevel(parseFloat(t.currentZoomLevel)+t.options.scrollZoomIncrement),!1})},setElements:function(n){var t=this;if(!t.options.zoomEnabled)return!1;n=="show"&&t.isWindowSet&&(t.options.zoomType=="inner"&&t.showHideWindow("show"),t.options.zoomType=="window"&&t.showHideWindow("show"),t.options.showLens&&t.showHideLens("show"),t.options.tint&&t.options.zoomType!="inner"&&t.showHideTint("show"));n=="hide"&&(t.options.zoomType=="window"&&t.showHideWindow("hide"),t.options.tint||t.showHideWindow("hide"),t.options.showLens&&t.showHideLens("hide"),t.options.tint&&t.showHideTint("hide"))},setPosition:function(n){var t=this;if(!t.options.zoomEnabled)return!1;if(t.nzHeight=t.$elem.height(),t.nzWidth=t.$elem.width(),t.nzOffset=t.$elem.offset(),t.options.tint&&t.options.zoomType!="inner"&&(t.zoomTint.css({top:0}),t.zoomTint.css({left:0})),t.options.responsive&&!t.options.scrollZoom&&t.options.showLens&&(lensHeight=t.nzHeight
t.nzHeight-t.zoomLens.height()/2-t.options.lensBorderSize*2,t.Eloppos=t.mouseLeft<0+t.zoomLens.width()/2,t.Eroppos=t.mouseLeft>t.nzWidth-t.zoomLens.width()/2-t.options.lensBorderSize*2),t.options.zoomType=="inner"&&(t.Etoppos=t.mouseTopt.nzHeight-t.nzHeight/2/t.heightRatio,t.Eloppos=t.mouseLeft<0+t.nzWidth/2/t.widthRatio,t.Eroppos=t.mouseLeft>t.nzWidth-t.nzWidth/2/t.widthRatio-t.options.lensBorderSize*2),t.mouseLeft<=0||t.mouseTop<0||t.mouseLeft>t.nzWidth||t.mouseTop>t.nzHeight){t.setElements("hide");return}t.options.showLens&&(t.lensLeftPos=String(t.mouseLeft-t.zoomLens.width()/2),t.lensTopPos=String(t.mouseTop-t.zoomLens.height()/2));t.Etoppos&&(t.lensTopPos=0);t.Eloppos&&(t.windowLeftPos=0,t.lensLeftPos=0,t.tintpos=0);t.options.zoomType=="window"&&(t.Eboppos&&(t.lensTopPos=Math.max(t.nzHeight-t.zoomLens.height()-t.options.lensBorderSize*2,0)),t.Eroppos&&(t.lensLeftPos=t.nzWidth-t.zoomLens.width()-t.options.lensBorderSize*2));t.options.zoomType=="inner"&&(t.Eboppos&&(t.lensTopPos=Math.max(t.nzHeight-t.options.lensBorderSize*2,0)),t.Eroppos&&(t.lensLeftPos=t.nzWidth-t.nzWidth-t.options.lensBorderSize*2));t.options.zoomType=="lens"&&(t.windowLeftPos=String(((n.pageX-t.nzOffset.left)*t.widthRatio-t.zoomLens.width()/2)*-1),t.windowTopPos=String(((n.pageY-t.nzOffset.top)*t.heightRatio-t.zoomLens.height()/2)*-1),t.zoomLens.css({backgroundPosition:t.windowLeftPos+"px "+t.windowTopPos+"px"}),t.changeBgSize&&(t.nzHeight>t.nzWidth?(t.options.zoomType=="lens"&&t.zoomLens.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvalueheight+"px "+t.largeHeight/t.newvalueheight+"px"})):(t.options.zoomType=="lens"&&t.zoomLens.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"}),t.zoomWindow.css({"background-size":t.largeWidth/t.newvaluewidth+"px "+t.largeHeight/t.newvaluewidth+"px"})),t.changeBgSize=!1),t.setWindowPostition(n));t.options.tint&&t.options.zoomType!="inner"&&t.setTintPosition(n);t.options.zoomType=="window"&&t.setWindowPostition(n);t.options.zoomType=="inner"&&t.setWindowPostition(n);t.options.showLens&&(t.fullwidth&&t.options.zoomType!="lens"&&(t.lensLeftPos=0),t.zoomLens.css({left:t.lensLeftPos+"px",top:t.lensTopPos+"px"}))},showHideWindow:function(n){var t=this;n=="show"&&(t.isWindowActive||(t.options.zoomWindowFadeIn?t.zoomWindow.stop(!0,!0,!1).fadeIn(t.options.zoomWindowFadeIn):t.zoomWindow.show(),t.isWindowActive=!0));n=="hide"&&t.isWindowActive&&(t.options.zoomWindowFadeOut?t.zoomWindow.stop(!0,!0).fadeOut(t.options.zoomWindowFadeOut):t.zoomWindow.hide(),t.isWindowActive=!1)},showHideLens:function(n){var t=this;n=="show"&&(t.isLensActive||(t.options.lensFadeIn?t.zoomLens.stop(!0,!0,!1).fadeIn(t.options.lensFadeIn):t.zoomLens.show(),t.isLensActive=!0));n=="hide"&&t.isLensActive&&(t.options.lensFadeOut?t.zoomLens.stop(!0,!0).fadeOut(t.options.lensFadeOut):t.zoomLens.hide(),t.isLensActive=!1)},showHideTint:function(n){var t=this;n=="show"&&(t.isTintActive||(t.options.zoomTintFadeIn?t.zoomTint.css({opacity:t.options.tintOpacity}).animate().stop(!0,!0).fadeIn("slow"):(t.zoomTint.css({opacity:t.options.tintOpacity}).animate(),t.zoomTint.show()),t.isTintActive=!0));n=="hide"&&t.isTintActive&&(t.options.zoomTintFadeOut?t.zoomTint.stop(!0,!0).fadeOut(t.options.zoomTintFadeOut):t.zoomTint.hide(),t.isTintActive=!1)},setLensPostition:function(){},setWindowPostition:function(t){var i=this;if(isNaN(i.options.zoomWindowPosition))i.externalContainer=n("#"+i.options.zoomWindowPosition),i.externalContainerWidth=i.externalContainer.width(),i.externalContainerHeight=i.externalContainer.height(),i.externalContainerOffset=i.externalContainer.offset(),i.windowOffsetTop=i.externalContainerOffset.top,i.windowOffsetLeft=i.externalContainerOffset.left;else switch(i.options.zoomWindowPosition){case 1:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=+i.nzWidth;break;case 2:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.options.zoomWindowHeight/2-i.nzHeight/2)*-1,i.windowOffsetLeft=i.nzWidth);break;case 3:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-i.options.borderSize*2;i.windowOffsetLeft=i.nzWidth;break;case 4:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth;break;case 5:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-i.options.borderSize*2;break;case 6:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=i.nzHeight,i.windowOffsetLeft=(i.options.zoomWindowWidth/2-i.nzWidth/2+i.options.borderSize*2)*-1);break;case 7:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=0;break;case 8:i.windowOffsetTop=i.nzHeight;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 9:i.windowOffsetTop=i.nzHeight-i.zoomWindow.height()-i.options.borderSize*2;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 10:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.options.zoomWindowHeight/2-i.nzHeight/2)*-1,i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1);break;case 11:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 12:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=(i.zoomWindow.width()+i.options.borderSize*2)*-1;break;case 13:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=0;break;case 14:i.options.zoomWindowHeight>i.nzHeight&&(i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1,i.windowOffsetLeft=(i.options.zoomWindowWidth/2-i.nzWidth/2+i.options.borderSize*2)*-1);break;case 15:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=i.nzWidth-i.zoomWindow.width()-i.options.borderSize*2;break;case 16:i.windowOffsetTop=(i.zoomWindow.height()+i.options.borderSize*2)*-1;i.windowOffsetLeft=i.nzWidth;break;default:i.windowOffsetTop=i.options.zoomWindowOffety;i.windowOffsetLeft=i.nzWidth}i.isWindowSet=!0;i.windowOffsetTop=i.windowOffsetTop+i.options.zoomWindowOffety;i.windowOffsetLeft=i.windowOffsetLeft+i.options.zoomWindowOffetx;i.zoomWindow.css({top:i.windowOffsetTop});i.zoomWindow.css({left:i.windowOffsetLeft});i.options.zoomType=="inner"&&(i.zoomWindow.css({top:0}),i.zoomWindow.css({left:0}));i.windowLeftPos=String(((t.pageX-i.nzOffset.left)*i.widthRatio-i.zoomWindow.width()/2)*-1);i.windowTopPos=String(((t.pageY-i.nzOffset.top)*i.heightRatio-i.zoomWindow.height()/2)*-1);i.Etoppos&&(i.windowTopPos=0);i.Eloppos&&(i.windowLeftPos=0);i.Eboppos&&(i.windowTopPos=(i.largeHeight/i.currentZoomLevel-i.zoomWindow.height())*-1);i.Eroppos&&(i.windowLeftPos=(i.largeWidth/i.currentZoomLevel-i.zoomWindow.width())*-1);i.fullheight&&(i.windowTopPos=0);i.fullwidth&&(i.windowLeftPos=0);(i.options.zoomType=="window"||i.options.zoomType=="inner")&&(i.zoomLock==1&&(i.widthRatio<=1&&(i.windowLeftPos=0),i.heightRatio<=1&&(i.windowTopPos=0)),i.largeHeighti.nzWidth?(i.options.zoomType=="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):(i.options.zoomType!="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.windowLeftPos+"px "+i.windowTopPos+"px"}),i.scrollingLock=!1,i.loop=!1):(i.changeBgSize&&(i.nzHeight>i.nzWidth?(i.options.zoomType=="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):(i.options.zoomType!="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"})),i.changeBgSize=!1),i.zoomWindow.css({backgroundPosition:i.xp+"px "+i.yp+"px"}))},16))):(i.changeBgSize&&(i.nzHeight>i.nzWidth?(i.options.zoomType=="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"}),i.zoomWindow.css({"background-size":i.largeWidth/i.newvalueheight+"px "+i.largeHeight/i.newvalueheight+"px"})):(i.options.zoomType=="lens"&&i.zoomLens.css({"background-size":i.largeWidth/i.newvaluewidth+"px "+i.largeHeight/i.newvaluewidth+"px"}),i.largeHeight/i.newvaluewidth<\/div>'),r.$elem.after(r.spinner));r.options.onImageSwap(r.$elem);u.onload=function(){r.largeWidth=u.width;r.largeHeight=u.height;r.zoomImage=i;r.zoomWindow.css({"background-size":r.largeWidth+"px "+r.largeHeight+"px"});r.zoomWindow.css({"background-size":r.largeWidth+"px "+r.largeHeight+"px"});r.swapAction(t,i);return};u.src=i},swapAction:function(t,i){var r=this,u=new Image,f,e,o,s;u.onload=function(){r.nzHeight=u.height;r.nzWidth=u.width;r.options.onImageSwapComplete(r.$elem);r.doneCallback();return};u.src=t;r.currentZoomLevel=r.options.zoomLevel;r.options.maxZoomLevel=!1;r.options.zoomType=="lens"&&r.zoomLens.css({backgroundImage:"url('"+i+"')"});r.options.zoomType=="window"&&r.zoomWindow.css({backgroundImage:"url('"+i+"')"});r.options.zoomType=="inner"&&r.zoomWindow.css({backgroundImage:"url('"+i+"')"});r.currentImage=i;r.options.imageCrossfade?(f=r.$elem,e=f.clone(),r.$elem.attr("src",t),r.$elem.after(e),e.stop(!0).fadeOut(r.options.imageCrossfade,function(){n(this).remove()}),r.$elem.width("auto").removeAttr("width"),r.$elem.height("auto").removeAttr("height"),f.fadeIn(r.options.imageCrossfade),r.options.tint&&r.options.zoomType!="inner"&&(o=r.zoomTintImage,s=o.clone(),r.zoomTintImage.attr("src",i),r.zoomTintImage.after(s),s.stop(!0).fadeOut(r.options.imageCrossfade,function(){n(this).remove()}),o.fadeIn(r.options.imageCrossfade),r.zoomTint.css({height:r.$elem.height()}),r.zoomTint.css({width:r.$elem.width()})),r.zoomContainer.css("height",r.$elem.height()),r.zoomContainer.css("width",r.$elem.width()),r.options.zoomType=="inner"&&(r.options.constrainType||(r.zoomWrap.parent().css("height",r.$elem.height()),r.zoomWrap.parent().css("width",r.$elem.width()),r.zoomWindow.css("height",r.$elem.height()),r.zoomWindow.css("width",r.$elem.width()))),r.options.imageCrossfade&&(r.zoomWrap.css("height",r.$elem.height()),r.zoomWrap.css("width",r.$elem.width()))):(r.$elem.attr("src",t),r.options.tint&&(r.zoomTintImage.attr("src",i),r.zoomTintImage.attr("height",r.$elem.height()),r.zoomTintImage.css({height:r.$elem.height()}),r.zoomTint.css({height:r.$elem.height()})),r.zoomContainer.css("height",r.$elem.height()),r.zoomContainer.css("width",r.$elem.width()),r.options.imageCrossfade&&(r.zoomWrap.css("height",r.$elem.height()),r.zoomWrap.css("width",r.$elem.width())));r.options.constrainType&&(r.options.constrainType=="height"&&(r.zoomContainer.css("height",r.options.constrainSize),r.zoomContainer.css("width","auto"),r.options.imageCrossfade?(r.zoomWrap.css("height",r.options.constrainSize),r.zoomWrap.css("width","auto"),r.constwidth=r.zoomWrap.width()):(r.$elem.css("height",r.options.constrainSize),r.$elem.css("width","auto"),r.constwidth=r.$elem.width()),r.options.zoomType=="inner"&&(r.zoomWrap.parent().css("height",r.options.constrainSize),r.zoomWrap.parent().css("width",r.constwidth),r.zoomWindow.css("height",r.options.constrainSize),r.zoomWindow.css("width",r.constwidth)),r.options.tint&&(r.tintContainer.css("height",r.options.constrainSize),r.tintContainer.css("width",r.constwidth),r.zoomTint.css("height",r.options.constrainSize),r.zoomTint.css("width",r.constwidth),r.zoomTintImage.css("height",r.options.constrainSize),r.zoomTintImage.css("width",r.constwidth))),r.options.constrainType=="width"&&(r.zoomContainer.css("height","auto"),r.zoomContainer.css("width",r.options.constrainSize),r.options.imageCrossfade?(r.zoomWrap.css("height","auto"),r.zoomWrap.css("width",r.options.constrainSize),r.constheight=r.zoomWrap.height()):(r.$elem.css("height","auto"),r.$elem.css("width",r.options.constrainSize),r.constheight=r.$elem.height()),r.options.zoomType=="inner"&&(r.zoomWrap.parent().css("height",r.constheight),r.zoomWrap.parent().css("width",r.options.constrainSize),r.zoomWindow.css("height",r.constheight),r.zoomWindow.css("width",r.options.constrainSize)),r.options.tint&&(r.tintContainer.css("height",r.constheight),r.tintContainer.css("width",r.options.constrainSize),r.zoomTint.css("height",r.constheight),r.zoomTint.css("width",r.options.constrainSize),r.zoomTintImage.css("height",r.constheight),r.zoomTintImage.css("width",r.options.constrainSize))))},doneCallback:function(){var n=this;n.options.loadingIcon&&n.spinner.hide();n.nzOffset=n.$elem.offset();n.nzWidth=n.$elem.width();n.nzHeight=n.$elem.height();n.currentZoomLevel=n.options.zoomLevel;n.widthRatio=n.largeWidth/n.nzWidth;n.heightRatio=n.largeHeight/n.nzHeight;n.options.zoomType=="window"&&(lensHeight=n.nzHeightmaxheightnewvalue&&(newvalue=maxheightnewvalue),newvalue>maxwidthtnewvalue&&(newvalue=maxwidthtnewvalue),maxheightnewvalue<=newvalue?(t.heightRatio=t.largeHeight/newvalue/t.nzHeight,t.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,t.fullheight=!0):(t.heightRatio=t.largeHeight/newvalue/t.nzHeight,t.newvalueheight=newvalue>maxheightnewvalue?maxheightnewvalue:newvalue,t.fullheight=!1),maxwidthtnewvalue<=newvalue?(t.widthRatio=t.largeWidth/newvalue/t.nzWidth,t.newvaluewidth=newvalue>maxwidthtnewvalue?maxwidthtnewvalue:newvalue,t.fullwidth=!0):(t.widthRatio=t.largeWidth/newvalue/t.nzWidth,t.newvaluewidth=newvalue,t.fullwidth=!1));scrcontinue=!1;t.options.zoomType=="inner"&&(t.nzWidth>=t.nzHeight&&(t.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,t.fullheight=!0,t.fullwidth=!0)),t.nzHeight>t.nzWidth&&(t.newvaluewidth<=maxwidthtnewvalue?scrcontinue=!0:(scrcontinue=!1,t.fullheight=!0,t.fullwidth=!0)));t.options.zoomType!="inner"&&(scrcontinue=!0);scrcontinue&&(t.zoomLock=0,t.changeZoom=!0,t.options.zoomWindowHeight/t.heightRatio<=t.nzHeight&&(t.currentZoomLevel=t.newvalueheight,t.options.zoomType!="lens"&&t.options.zoomType!="inner"&&(t.changeBgSize=!0,t.zoomLens.css({height:String(t.options.zoomWindowHeight/t.heightRatio)+"px"})),(t.options.zoomType=="lens"||t.options.zoomType=="inner")&&(t.changeBgSize=!0)),t.options.zoomWindowWidth/t.widthRatio<=t.nzWidth&&(t.options.zoomType!="inner"&&t.newvaluewidth>t.newvalueheight&&(t.currentZoomLevel=t.newvaluewidth),t.options.zoomType!="lens"&&t.options.zoomType!="inner"&&(t.changeBgSize=!0,t.zoomLens.css({width:String(t.options.zoomWindowWidth/t.widthRatio)+"px"})),(t.options.zoomType=="lens"||t.options.zoomType=="inner")&&(t.changeBgSize=!0)),t.options.zoomType=="inner"&&(t.changeBgSize=!0,t.nzWidth>t.nzHeight&&(t.currentZoomLevel=t.newvaluewidth),t.nzHeight>t.nzWidth&&(t.currentZoomLevel=t.newvaluewidth)));t.setPosition(t.currentLoc)},closeAll:function(){self.zoomWindow&&self.zoomWindow.hide();self.zoomLens&&self.zoomLens.hide();self.zoomTint&&self.zoomTint.hide()},changeState:function(n){var t=this;n=="enable"&&(t.options.zoomEnabled=!0);n=="disable"&&(t.options.zoomEnabled=!1)}};n.fn.elevateZoom=function(i){return this.each(function(){var r=Object.create(t);r.init(i,this);n.data(this,"elevateZoom",r)})};n.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:!0,preloading:1,zoomLevel:1,scrollZoom:!1,scrollZoomIncrement:.1,minZoomLevel:!1,maxZoomLevel:!1,easing:!1,easingAmount:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:!1,lensFadeOut:!1,debug:!1,zoomWindowFadeIn:!1,zoomWindowFadeOut:!1,zoomWindowAlwaysShow:!1,zoomTintFadeIn:!1,zoomTintFadeOut:!1,borderSize:4,showLens:!0,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:!1,lensColour:"white",lensOpacity:.4,lenszoom:!1,tint:!1,tintColour:"#333",tintOpacity:.4,gallery:!1,galleryActiveClass:"zoomGalleryActive",imageCrossfade:!1,constrainType:!1,constrainSize:!1,loadingIcon:!1,cursor:"default",responsive:!0,onComplete:n.noop,onZoomedImageLoaded:function(){},onImageSwap:n.noop,onImageSwapComplete:n.noop}}(jQuery,window,document)