PageSourceSearch

https://www.verhagengroup.com/mix/vendor/jquery.smoothZoom/jquery.smoothZoom.min.js

js verhagengroup.com collected 2026-10-09 00:52:26 UTC 38,927 bytes, 1 lines download raw bytes

1(()=>{function t(o){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(o)}!function(o,e,i){var s={width:"",height:"",initial_ZOOM:"",initial_POSITION:"",animation_SMOOTHNESS:5.5,animation_SPEED_ZOOM:5.5,animation_SPEED_PAN:5.5,zoom_MAX:800,zoom_MIN:"",zoom_SINGLE_STEP:!1,zoom_OUT_TO_FIT:!0,zoom_BUTTONS_SHOW:!0,pan_BUTTONS_SHOW:!0,pan_LIMIT_BOUNDARY:!0,pan_REVERSE:!1,reset_ALIGN_TO:"center center",reset_TO_ZOOM_MIN:!0,button_SIZE:18,button_SIZE_TOUCH_DEVICE:30,button_COLOR:"#FFFFFF",button_BG_COLOR:"#000000",button_BG_TRANSPARENCY:55,button_AUTO_HIDE:!1,button_AUTO_HIDE_DELAY:1,button_ALIGN:"bottom right",button_MARGIN:10,button_ROUND_CORNERS:!0,touch_DRAG:!0,mouse_DRAG:!0,mouse_WHEEL:!0,mouse_WHEEL_CURSOR_POS:!0,mouse_DOUBLE_CLICK:!0,background_COLOR:"#FFFFFF",border_SIZE:1,border_COLOR:"#000000",border_TRANSPARENCY:10,image_url:"",image_original_width:"",image_original_height:"",container:"",on_IMAGE_LOAD:"",on_ZOOM_PAN_UPDATE:"",on_ZOOM_PAN_COMPLETE:"",on_LANDMARK_STATE_CHANGE:"",use_3D_Transform:!0,responsive:!1,responsive_maintain_ratio:!0,max_WIDTH:"",max_HEIGHT:""};function n(t,e){var i=this;this.$elem=t;var n,r=o.extend({},s,e);if(this.sW=r.width,this.sH=r.height,this.init_zoom=r.initial_ZOOM/100,this.init_pos=r.initial_POSITION.replace(/,/g," ").replace(/\s{2,}/g," ").split(" "),this.zoom_max=r.zoom_MAX/100,this.zoom_min=r.zoom_MIN/100,this.zoom_single=a(r.zoom_SINGLE_STEP),this.zoom_fit=a(r.zoom_OUT_TO_FIT),this.zoom_speed=1+((0===r.animation_SPEED||r.animation_SPEED?r.animation_SPEED:r.animation_SPEED_ZOOM)+1)/20,this.zoom_show=a(r.zoom_BUTTONS_SHOW),this.pan_speed_o=0===r.animation_SPEED||r.animation_SPEED?r.animation_SPEED:r.animation_SPEED_PAN,this.pan_show=a(r.pan_BUTTONS_SHOW),this.pan_limit=a(r.pan_LIMIT_BOUNDARY),this.pan_rev=a(r.pan_REVERSE),this.reset_align=r.reset_ALIGN_TO.toLowerCase().split(" "),this.reset_to_zmin=a(r.reset_TO_ZOOM_MIN),this.bu_size=d?2*parseInt(r.button_SIZE_TOUCH_DEVICE/2):2*parseInt(r.button_SIZE/2),this.bu_color=r.button_COLOR,this.bu_bg=r.button_BG_COLOR,this.bu_bg_alpha=r.button_BG_TRANSPARENCY/100,this.bu_icon=r.button_ICON_IMAGE,this.bu_auto=a(r.button_AUTO_HIDE),this.bu_delay=1e3*r.button_AUTO_HIDE_DELAY,this.bu_align=r.button_ALIGN.toLowerCase().split(" "),this.bu_margin=r.button_MARGIN,this.bu_round=a(r.button_ROUND_CORNERS),this.touch_drag=a(r.touch_DRAG),this.mouse_drag=a(r.mouse_DRAG),this.mouse_wheel=a(r.mouse_WHEEL),this.mouse_wheel_cur=a(r.mouse_WHEEL_CURSOR_POS),this.mouse_dbl_click=a(r.mouse_DOUBLE_CLICK),this.ani_smooth=Math.max(1,(r.animation_SMOOTHNESS+1)/1.45),this.bg_color=r.background_COLOR,this.bord_size=r.border_SIZE,this.bord_color=r.border_COLOR,this.bord_alpha=r.border_TRANSPARENCY/100,this.container=r.container,this.image_url=r.image_url,this.image_width=r.image_original_width,this.image_height=r.image_original_height,this.responsive=a(r.responsive),this.maintain_ratio=a(r.responsive_maintain_ratio),this.w_max=r.max_WIDTH,this.h_max=r.max_HEIGHT,this.onLOAD=r.on_IMAGE_LOAD,this.onUPDATE=r.on_ZOOM_PAN_UPDATE,this.onZOOM_PAN=r.on_ZOOM_PAN_COMPLETE,this.onLANDMARK=r.on_LANDMARK_STATE_CHANGE,this._x,this._y,this._w,this._h,this._sc=0,this.rA=1,this.rF=1,this.rR=1,this.iW=0,this.iH=0,this.tX=0,this.tY=0,this.oX=0,this.oY=0,this.fX=0,this.fY=0,this.dX=0,this.dY=0,this.cX=0,this.cY=0,this.transOffX=0,this.transOffY=0,this.focusOffX=0,this.focusOffY=0,this.offX=0,this.offY=0,this._playing=!1,this._dragging=!1,this._onfocus=!1,this._moveCursor=!1,this._wheel=!1,this._recent="zoomOut",this._pinching=!1,this._landmark=!1,this._rA,this._centx,this._centy,this._onButton=!1,this._onHitArea=!1,this.cFlag={_zi:!1,_zo:!1,_ml:!1,_mr:!1,_mu:!1,_md:!1,_rs:!1,_nd:!1},this.$holder,this.$hitArea,this.$controls,this.$loc_cont,this.map_coordinates=[],this.locations=[],this.buttons=[],this.border=[],this.buttons_total=7,this.cButtId=0,this.pan_speed,this.auto_timer,this.ani_timer,this.ani_end,this.focusSpeed=this.reduction=.5,this.orig_style,this.mapAreas,this.icons,this.show_at_zoom,this.assetsLoaded=!1,this.zStep=0,this.sRed=300,this.use3D=r.use_3D_Transform&&l,d?(this.event_down="touchstart.sz",this.event_up="touchend.sz",this.event_move="touchmove.sz"):(this.event_down="mousedown.sz",this.event_up="mouseup.sz",this.event_move="mou
1semove.sz"),""==this.image_url)this.$image=t,this.id=this.$image.attr("id");else{var c=new Image;this.image_width&&(c.width=this.image_width),this.image_height&&(c.height=this.image_height),c.src=this.image_url,this.$image=o(c).appendTo(t)}this.setContainer(),this.$image.css("-moz-transform")&&_?(n=o('<div style="-moz-transform: translate(1px, 1px)"></div>'),this.$holder.append(n),this.fixMoz=1!==n.position().left,n.remove()):this.fixMoz=!1,this.$image.hide(),this.imgList=[{loaded:!1,src:""==this.image_url?this.$image.attr("src"):this.image_url}],o.each(this.imgList,(function(t){var e=new Image;o(e).bind("load",{id:t,self:i},i.loadComplete).bind("error",{id:t,self:i},i.loadComplete),e.src=i.imgList[t].src}))}function a(t){return!0===t||!(!t||"yes"!=(t=t.toLowerCase())&&"true"!=t)}n.prototype={loadComplete:function(t){var o=t.data.self,e=!0;o.imgList[t.data.id].loaded=!0;for(var i=0;i<o.imgList.length;i++)o.imgList[i].loaded||(e=!1);e&&(o.assetsLoaded=!0,""!==o.onLOAD&&o.onLOAD(),o.init())},init:function(){var t,e,s=(A=this).$image,n=A.sW,a=A.sH,r=(A.container,A.pan_show),l=A.zoom_show,u=A.$controls,m=A.buttons,p=A.cFlag,f=A.bu_align,g=A.bu_margin,b=A.$holder;A.orig_style=A.getStyle(),s.attr("galleryimg","no"),navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/)||(s.removeAttr("width"),s.removeAttr("height"));for(var v=s,w=[],x=0;x<5&&(v&&"BODY"!==v[0].tagName&&"HTML"!==v[0].tagName);x++)"none"==v.css("display")&&(v.css("display","block"),w.push(v)),v=v.parent();A.iW=s.width(),A.iH=s.height();for(x=0;x<w.length;x++)w[x].css("display","none");A.rF=A.rR=A.checkRatio(n,a,A.iW,A.iH,A.zoom_fit),0==A.zoom_min||0!=A.init_zoom?(""!=A.init_zoom?A.rA=A._sc=A.init_zoom:A.rA=A._sc=A.rF,0!=A.zoom_min&&(A.rF=A.zoom_min,A.reset_to_zmin&&(A.rR=A.zoom_min))):A.rF<A.zoom_min?(A.rF=A.zoom_min,A.reset_to_zmin&&(A.rR=A.zoom_min),A.rA=A._sc=A.zoom_min):A.rA=A._sc=A.rR,A._w=A._sc*A.iW,A._h=A._sc*A.iH,""==A.init_pos?(A._x=A.tX=(n-A._w)/2,A._y=A.tY=(a-A._h)/2):(A._x=A.tX=n/2-parseInt(A.init_pos[0])*A._sc,A._y=A.tY=a/2-parseInt(A.init_pos[1])*A._sc,A.oX=(A.tX-(n-A._w)/2)/(A._w/n),A.oY=(A.tY-(a-A._h)/2)/(A._h/a)),A.pan_limit&&!A._moveCursor&&A.init_zoom==A.rF||!A.mouse_drag||(s.css("cursor","move"),A.$hitArea.css("cursor","move")),_&&A.$image.css(c,"0 0"),A.use3D&&s.css({"-webkit-backface-visibility":"hidden","-webkit-perspective":1e3}),s.css({position:"absolute","z-index":2,left:"0px",top:"0px","-webkit-box-shadow":"1px 1px rgba(0,0,0,0)"}).hide().fadeIn(500,(function(){b.css("background-image","none")}));var A,y=(A=A).bu_size,z=50,O=Math.ceil(A.bu_size/4),$=y<16?50:0,Y=y-2;r?(t=l?parseInt(y+.85*y+3*Y+6+2*O):parseInt(3*Y+6+2*O),e=parseInt(3*Y+6+2*O)):l?(t=parseInt(y+2*O),e=parseInt(2*y+3*O),t=2*parseInt(t/2),e=2*parseInt(e/2)):(t=0,e=0);var H,F,X,I,W=(z-y)/2,D=t-2*(y-(r?2:0))-O-3,E=e/2-(y-(r?2:0))/2;"top"==f[0]?(F="top",I=g):"center"==f[0]?(F="top",I=parseInt((a-e)/2)):(F="bottom",I=g),"right"==f[1]?(H="right",X=g):"center"==f[1]?(H="right",X=parseInt((n-t)/2)):(H="left",X=g),u=o('<div style="position: absolute; '+H+":"+X+"px; "+F+": "+I+"px; width: "+t+"px; height: "+e+'px; z-index: 20;" class="noSel;">\t\t\t\t\t<div class="noSel controlsBg" style="position: relative; width: 100%; height: 100%; z-index: 1;">\t\t\t\t\t</div>\t\t\t\t</div>'),b.append(u);var T=u.find(".controlsBg");A.bu_round?h?T.css(h,($>0?4:5)+"px").css("background-color",A.bu_bg):A.roundBG(T,"cBg",t,e,$>0?4:5,375,A.bu_bg,A.bu_icon,1,$?50:0):T.css("background-color",A.bu_bg),T.css("opacity",A.bu_bg_alpha),m[0]={_var:"_zi",l:O,t:r?(e-2*y-6+2)/2:O,w:y,h:y,bx:-W,by:-W-$},m[1]={_var:"_zo",l:O,t:r?(e-2*y-6+2)/2+y+6-2:e-y-O,w:y,h:y,bx:-z-W,by:-W-$},m[2]={_var:A.pan_rev?"_ml":"_mr",l:D-Y-3,t:E,w:Y,h:Y,bx:-101-W,by:-1-W-$},m[3]={_var:A.pan_rev?"_mr":"_ml",l:D+Y+3,t:E,w:Y,h:Y,bx:-151-W,by:-1-W-$},m[4]={_var:A.pan_rev?"_md":"_mu",l:D,t:E+Y+3,w:Y,h:Y,bx:-201-W,by:-1-W-$},m[5]={_var:A.pan_rev?"_mu":"_md",l:D,t:E-Y-3,w:Y,h:Y,bx:-251-W,by:-1-W-$},m[6]={_var:"_rs",l:D,t:E,w:Y,h:Y,bx:-301-W,by:-1-W-$};for(x=0;x<7;x++){m[x].$ob=o('<div style="position: absolute; display: '+(x<2?l?"block":"none":r?"block":"none")+"; left: "+(m[x].l-1)+"px; top: "+(m[x].t-1)+"px; width: "+(m[x].w+2)+"px; height: "+(m[x].h+2)+"px; z-index:"+(x+1)+';" class="noSel">\t\t\t\t\t\t</div>').css("opacity",.7).bind((d?"":"mouseover.sz mouseout.sz ")+A.event_down,{id:x},(function(t){A._onfocus=!1,$this=o(this),"mouseover"==t.type?$this.css("opacity")>.5&&$this.css("opacity",1):"mouseout"==t.type?$this.css("opacity")>.5&&$this.css("opacity",.7):"mousedown"!=t.type&&"touchstart"!=t.type||(A.cButtId=t.data.id,A._onButton=!0,A._wheel=!1,$this.css("opacity")>.5&&($this.css("opacity",1),b.find("#"+m[A.cButtId]._var+"norm").hide(),b.find("#"+m[A.cButtId]._var+"over").show(),A.cButtId<=1&&A.zoom_single?p[m[A.cButtId]._var]||(A.sRed=300,p[m[A.cButtId]._var]=!0):A.cButtId<6?p[m[A.cButtId]._var]=!0:(p._rs=!0,A.rA=A.rR,"top"==A.reset_align[0]?A.fY=A.sH/2*(A.rA/2):"bottom"==A.reset_align[0]?A.fY=-A.sH/2*(A.rA/2):A.fY=0,"left"==A.reset_align[1]?A.fX=A.sW/2*(A.rA/2):"right"==A.reset_align[1]?A.fX=-A.sW/2*(A.rA/2):A.fX=0),A.focusOffX=A.focusOffY=0,A.changeOffset(!0,!0),A._playing||A.Animate()),t.preventDefault(),t.stopPropagation())}));var S=o('<div id="'+m[x]._var+'norm" style="position: absolute; left: 1px; top: 1px; width: '+m[x].w+"px; height: "+m[x].h+"px; "+(h||!A.bu_round?"background:"+A.bu_color:"")+'">\t\t\t\t\t</div>'),L=o('<div id="'+m[x]._var+'over" style="position: absolute; left: 0px; top: 0px; width: '+(m[x].w+2)+"px; height: "+(m[x].h+2)+"px; display: none; "+(h||!A.bu_round?"background:"+A.bu_color:"")+'">\t\t\t\t\t</div>');
1m[x].$ob.append(S,L),u.append(m[x].$ob),A.bu_round&&(h?(S.css(h,"2px"),L.css(h,"2px")):(A.roundBG(S,m[x]._var+"norm",m[x].w,m[x].h,2,425,A.bu_color,A.bu_icon,x+1,$?50:0),A.roundBG(L,m[x]._var+"over",m[x].w+2,m[x].h+2,2,425,A.bu_color,A.bu_icon,x+1,$?50:0)))}if(o(i).bind(A.event_up+A.id,{self:A},A.mouseUp),(A.mouse_drag&&!d||A.touch_drag&&d)&&(A.$holder.bind(A.event_down,{self:A},A.mouseDown),d&&o(i).bind(A.event_move+A.id,{self:A},A.mouseDrag)),A.mouse_dbl_click){var R,k,N=1;A.$holder.bind("dblclick.sz",(function(t){A.focusOffX=t.pageX-b.offset().left-A.sW/2,A.focusOffY=t.pageY-b.offset().top-A.sH/2,A.changeOffset(!0,!0),A._wheel=!1,A.rA<A.zoom_max&&-1==N&&R!=A.focusOffX&&k!=A.focusOffY&&(N=1),R=A.focusOffX,k=A.focusOffY,A.rA>=A.zoom_max&&1==N&&(N=-1),A.rA<=A.rF&&-1==N&&(N=1),N>0?(A.rA*=2,A.rA=A.rA>A.zoom_max?A.zoom_max:A.rA,p._zi=!0,clearTimeout(A.ani_timer),A._playing=!0,A.Animate(),p._zi=!1):(A.rA/=2,A.rA=A.rA<A.rF?A.rF:A.rA,p._zo=!0,clearTimeout(A.ani_timer),A._playing=!0,A.Animate(),p._zo=!1),t.preventDefault(),t.stopPropagation()}))}A.mouse_wheel&&b.bind("mousewheel.sz",{self:this},A.mouseWheel),A.bu_auto&&b.bind("mouseleave.sz",{self:this},A.autoHide),u.bind(A.event_down,(function(t){t.preventDefault(),t.stopPropagation()})),A.mouse_dbl_click&&u.bind("dblclick.sz",(function(t){t.preventDefault(),t.stopPropagation()})),o(".noSel").each((function(){this.onselectstart=function(){return!1}})),A.$holder=b,A.$controls=u,A.sW=n,A.sH=a,A.cBW=t,A.cBH=e,A.Animate()},setContainer:function(){var t=this,i=t.$image,s=t.bord_size,n=t.border,r=t.$holder;if(""==t.container&&""==t.image_url)r=t.$image.wrap('<div class="noSel smooth_zoom_preloader">\t\t\t\t\t</div>').parent();else if((r=""==t.image_url?o("#"+t.container):t.$elem).addClass("noSel smooth_zoom_preloader"),t.locations=[],t.$loc_cont=r.find(".landmarks"),t.$loc_cont[0]){var _=t.$loc_cont.children(".item");t.loc_clone=t.$loc_cont.clone(),t.show_at_zoom=parseInt(t.$loc_cont.data("show-at-zoom"),10)/100,t.allow_scale=a(t.$loc_cont.data("allow-scale")),t.allow_drag=a(t.$loc_cont.data("allow-drag")),_.each((function(){t.setLocation(o(this))}))}r.css({position:"relative",overflow:"hidden","text-align":"left","-moz-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none","user-select":"none","-webkit-touch-callout":"none","-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)","background-color":t.bg_color,"background-position":"center center","background-repeat":"no-repeat"}),t.$hitArea=o('<div style="position: absolute; z-index: 1; top: 0px; left: 0px; width: 100%; height: 100%;" ></div>').appendTo(r),t.getContainerSize(t.sW,t.sH,r,t.w_max,t.h_max),t.responsive&&o(e).bind("orientationchange.sz"+t.id+" resize.sz"+t.id,{self:t},t.resize);var c=t.sW,h=t.sH;r.css({width:c,height:h}),s>0&&(n[0]=o('<div style="position: absolute;\twidth: '+s+"px; height: "+h+"px;\ttop: 0px; left: 0px; z-index: 3; background-color: "+t.bord_color+';"></div>').css("opacity",t.bord_alpha),n[1]=o('<div style="position: absolute;\twidth: '+s+"px; height: "+h+"px;\ttop: 0px; left: "+(c-s)+"px; z-index: 4; background-color: "+t.bord_color+';"></div>').css("opacity",t.bord_alpha),n[2]=o('<div style="position: absolute;\twidth: '+(c-2*s)+"px; height: "+s+"px; top: 0px; left: "+s+"px; z-index: 5; background-color: "+t.bord_color+'; line-height: 1px;"></div>').css("opacity",t.bord_alpha),n[3]=o('<div style="position: absolute;\twidth: '+(c-2*s)+"px; height: "+s+"px; top: "+(h-s)+"px; left: "+s+"px; z-index: 6; background-color: "+t.bord_color+'; line-height: 1px;"></div>').css("opacity",t.bord_alpha),r.append(n[0],n[1],n[2],n[3])),null!=i.attr("usemap")&&(t.mapAreas=o("map[name='"+i.attr("usemap").split("#").join("")+"']").children("area"),t.mapAreas.each((function(e){var i=o(this);i.css("cursor","pointer"),t.mouse_drag&&i.bind(t.event_down,{self:t},t.mouseDown),t.mouse_wheel&&i.bind("mousewheel.sz",{self:t},t.mouseWheel),t.map_coordinates.push(i.attr("coords").split(","))}))),t.$holder=r,t.sW=c,t.sH=h},getContainerSize:function(t,o,e,i,s){""===t||0===t?t=""==this.image_url?Math.max(e.parent().width(),100):Math.max(e.width(),100):!isNaN(t)||String(t).indexOf("px")>-1?(t=this.oW=parseInt(t),this.responsive&&(t=Math.min(e.parent().width(),t))):t=String(t).indexOf("%")>-1?e.parent().width()*(t.split("%")[0]/100):100,0!==i&&""!==i&&(t=Math.min(t,i)),o=""===o||0===o?""==this.image_url?Math.max(e.parent().height(),100):Math.max(e.height(),100):!isNaN(o)||String(o).indexOf("px")>-1?this.oH=parseInt(o):String(o).indexOf("%")>-1?e.parent().height()*(o.split("%")[0]/100):100,0!==s&&""!==s&&(o=Math.min(o,s)),this.oW&&t!==this.oW&&this.oH&&this.maintain_ratio&&(o=t/(this.oW/this.oH)),this.sW=t,this.sH=o},setLocation:function(t){var e,i,s,n,r=this,h=t;if(c&&h.css(c,"0 0"),h.css({display:"block","z-index":2}),r.use3D&&h.css({"-webkit-backface-visibility":"hidden","-webkit-perspective":1e3}),e=h.outerWidth()/2,i=h.outerHeight()/2,s=h.data("position").split(","),n=null==(n=h.data("allow-scale"))?r.allow_scale:a(n),h.hasClass("mark")){h.find("img").css("vertical-align","bottom").width();o(h.children()[0]).css({position:"absolute",left:-h.width()/2,bottom:2*parseInt(h.css("padding-bottom"))});var l=h.find(".text");r.locations.push({ob:h,x:parseInt(s[0]),y:parseInt(s[1]),w2:e,h2:i,w2pad:e+(l[0]?parseInt(l.css("padding-left")):0),vis:!1,lab:!1,lpx:"0",lpy:"0",showAt:isNaN(h.data("show-at-zoom"))?r.show_at_zoom:parseInt(h.data("show-at-zoom"),10)/100,scale:n})}else if(h.hasClass("lable")){var d=h.data("bg-color"),u=h.data("bg-opacity"),m=o(h.eq(0).children()[0]).css({position:"absolute","z-index":2,left:-e,top:-i});if(r.locations.push({ob:h,x:parseInt(s[0]),y:parseInt(s[1]),w2:e,h2:i,w2pad:e,vis:!1,lab:!0,lpx:"0",lpy:"0",showAt:isNaN(h.data("show-at-zoom"))?r.show_at_zoom:parseInt(h.data("show-at-zoom"),10)/100,scale:n}),""!==d){d||(d="#000000",u=.7);var p=o('<div style="position: absolute; left: '+-e+"px; top: "+-i+"px; width: "+2*(e-parseInt(m.css("padding-left")))+"px; height:"+2*(i-parseInt(m.css("padding-top")))+"px; background-color: "+d+';"></div>').appendTo(h);u&&p.css("opacity",u)}}h.hide(),_&&h.css("opacity",0),r.allow_drag||h.bind(r.event_down,(function(t){t.stopPropagation()}))},getStyle:function(){var t=this.$image;return{prop_origin:[c,!1!==c&&void 0!==c?t.css(c):null],prop_transform:[_,!1!==_&&void 0!==_?t.css(_):null],position:["position",t.css("position")],"z-index":["z-index",t.css("z-index")],cursor:["cursor",t.css("cursor")],left
1:["left",t.css("left")],top:["top",t.css("top")],width:["width",t.css("width")],height:["height",t.css("height")]}},checkRatio:function(t,o,e,i,s){var n;return e==t&&i==o?n=1:e<t&&i<o?(n=t/e,s?n*i>o&&(n=o/i):(n*i<o&&(n=o/i),t/e!=o/i&&this.mouse_drag&&(this._moveCursor=!0,this.$image.css("cursor","move"),this.$hitArea.css("cursor","move")))):(n=t/e,s?(n*i>o&&(n=o/i),n<this.init_zoom&&this.mouse_drag&&(this._moveCursor=!0,this.$image.css("cursor","move"),this.$hitArea.css("cursor","move"))):(n*i<o&&(n=o/i),t/e!=o/i&&this.mouse_drag&&(this._moveCursor=!0,this.$image.css("cursor","move"),this.$hitArea.css("cursor","move")))),n},getDistance:function(t,o,e,i){return Math.sqrt(Math.abs((e-t)*(e-t)+(i-o)*(i-o)))},mouseDown:function(t){var e=t.data.self;if(e._onfocus=e._dragging=!1,e.cFlag._nd){if(e.fixMoz&&e.correctTransValue(),e.samePointRelease=!1,"mousedown"==t.type)e.stX=t.pageX,e.stY=t.pageY,e.offX=t.pageX-e.$holder.offset().left-e.$image.position().left,e.offY=t.pageY-e.$holder.offset().top-e.$image.position().top,o(i).bind(e.event_move+e.id,{self:e},e.mouseDrag);else{var s=t.originalEvent;s.targetTouches.length>1?(e._pinching=!0,e._rA=e.rA,e.dStart=e.getDistance(s.touches[0].pageX,s.touches[0].pageY,s.touches[1].pageX,s.touches[1].pageY)):(e.offX=s.touches[0].pageX-e.$holder.offset().left-e.$image.position().left,e.offY=s.touches[0].pageY-e.$holder.offset().top-e.$image.position().top,e.setDraggedPos(s.touches[0].pageX-e.$holder.offset().left-e.offX,s.touches[0].pageY-e.$holder.offset().top-e.offY,e._sc),e._recent="drag",e._dragging=!0)}e._onHitArea=!0}"mousedown"==t.type&&t.preventDefault()},mouseDrag:function(t){var o=t.data.self;if("mousemove"==t.type)return o.setDraggedPos(t.pageX-o.$holder.offset().left-o.offX,t.pageY-o.$holder.offset().top-o.offY,o._sc),o._recent="drag",o._dragging=!0,o._playing||o.Animate(),!1;if((o._dragging||o._pinching)&&t.preventDefault(),o._onHitArea){var e=t.originalEvent.touches;o._pinching||e.length>1?(o._pinching||(o._pinching=!0,o._rA=o.rA,e.length>1&&(o.dStart=o.getDistance(e[0].pageX,e[0].pageY,e[1].pageX,e[1].pageY))),e.length>1&&(o._centx=(e[0].pageX+e[1].pageX)/2,o._centy=(e[0].pageY+e[1].pageY)/2,o.focusOffX=o._centx-o.$holder.offset().left-o.sW/2,o.focusOffY=o._centy-o.$holder.offset().top-o.sH/2,o.changeOffset(!0,!0),o._wheel=!0,o._dragging=!1,o.zoom_single?o.sRed=300:(o.dEnd=o.getDistance(e[0].pageX,e[0].pageY,e[1].pageX,e[1].pageY),o.rA=o._rA*(o.dEnd/o.dStart),o.rA=o.rA>o.zoom_max?o.zoom_max:o.rA,o.rA=o.rA<o.rF?o.rF:o.rA),o._sc<o.rA?(o.cFlag._zo=!1,o.cFlag._zi=!0):(o.cFlag._zi=!1,o.cFlag._zo=!0),o._playing||o.Animate())):o._dragging&&e.length<2&&(o.setDraggedPos(e[0].pageX-o.$holder.offset().left-o.offX,e[0].pageY-o.$holder.offset().top-o.offY,o._sc),o._recent="drag",o._playing||o.Animate())}},mouseUp:function(t){var e=t.data.self;if(e._onButton)return e.$holder.find("#"+e.buttons[e.cButtId]._var+"norm").show(),e.$holder.find("#"+e.buttons[e.cButtId]._var+"over").hide(),6!==e.cButtId&&(e.cFlag[e.buttons[e.cButtId]._var]=!1),"touchend"==t.type&&e.buttons[e.cButtId].$ob.css("opacity")>.5&&e.buttons[e.cButtId].$ob.css("opacity",.7),e._onButton=!1,t.stopPropagation(),!1;
1e._onHitArea&&(e.mouse_drag||e.touch_drag)&&("mouseup"==t.type?(o(i).unbind(e.event_move+e.id),e.stX==t.pageX&&e.stY==t.pageY&&(e.samePointRelease=!0),e._recent="drag",e._dragging=!1,e._playing||e.Animate(),e._onHitArea=!1):(t.preventDefault(),e._dragging=!1,e._pinching?(e._pinching=!1,e._wheel=!1,e.cFlag._nd=!0,e.cFlag._zi=!1,e.cFlag._zo=!1):(e._recent="drag",e._playing||e.Animate()),e._onHitArea=!1))},mouseWheel:function(t,o){var e=t.data.self;return e._onfocus=e._dragging=!1,e.mouse_wheel_cur&&(e.focusOffX=t.pageX-e.$holder.offset().left-e.sW/2,e.focusOffY=t.pageY-e.$holder.offset().top-e.sH/2,e.changeOffset(!0,!0)),e._dragging=!1,o>0?e.rA!=e.zoom_max&&(e.zoom_single?e._wheel||(e.sRed=300):(e.rA*=o<1?1+.3*o:1.3,e.rA=e.rA>e.zoom_max?e.zoom_max:e.rA),e._wheel=!0,e.cFlag._zi=!0,clearTimeout(e.ani_timer),e._playing=!0,e.Animate(),e.cFlag._zi=!1):e.rA!=e.rF&&(e.zoom_single?e._wheel||(e.sRed=300):(e.rA/=o>-1?1+.3*-o:1.3,e.rA=e.rA<e.rF?e.rF:e.rA),e._wheel=!0,e.cFlag._zo=!0,clearTimeout(e.ani_timer),e._playing=!0,e.Animate(),e.cFlag._zo=!1),!1},autoHide:function(t){var o=t.data.self;clearTimeout(o.auto_timer),o.auto_timer=setTimeout((function(){o.$controls.fadeOut(600)}),o.bu_delay),o.$holder.bind("mouseenter.sz",(function(t){clearTimeout(o.auto_timer),o.$controls.fadeIn(300)}))},correctTransValue:function(){var t=this.$image.css("-moz-transform").toString().replace(")","").split(",");this.transOffX=parseInt(t[4]),this.transOffY=parseInt(t[5])},setDraggedPos:function(t,o,e){var i=this;""!==t&&(i.dX=t+i.transOffX,i.pan_limit?(i.dX=i.dX+e*i.iW<i.sW?i.sW-e*i.iW:i.dX,i.dX=i.dX>0?0:i.dX,e*i.iW<i.sW&&(i.dX=(i.sW-e*i.iW)/2)):(i.dX=i.dX+e*i.iW<i.sW/2?i.sW/2-e*i.iW:i.dX,i.dX=i.dX>i.sW/2?i.sW/2:i.dX)),""!==o&&(i.dY=o+i.transOffY,i.pan_limit?(i.dY=i.dY+e*i.iH<i.sH?i.sH-e*i.iH:i.dY,i.dY=i.dY>0?0:i.dY,e*i.iH<i.sH&&(i.dY=(i.sH-e*i.iH)/2)):(i.dY=i.dY+e*i.iH<i.sH/2?i.sH/2-e*i.iH:i.dY,i.dY=i.dY>i.sH/2?i.sH/2:i.dY))},Animate:function(){var t=this,o=.5;if(t.cFlag._nd=!0,t.ani_end=!1,t.cFlag._zi&&(t._wheel||t.zoom_single||(t.rA*=t.zoom_speed),t.rA>t.zoom_max&&(t.rA=t.zoom_max),t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="zoomIn",t._onfocus=t._dragging=!1),t.cFlag._zo&&(t._wheel||t.zoom_single||(t.rA/=t.zoom_speed),0!=t.zoom_min?t.rA<t.zoom_min&&(t.rA=t.zoom_min):t.rA<t.rF&&(t.rA=t.rF),t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="zoomOut",t._onfocus=t._dragging=!1),t.zoom_single&&!t.cFlag._rs&&("zoomIn"==t._recent?(t.sRed+=(10-t.sRed)/6,t.rA+=(t.zoom_max-t.rA)/(1/(t.pan_speed_o+1)*t.sRed+1)):"zoomOut"==t._recent&&(t.sRed+=(3-t.sRed)/3,t.rA+=(t.rF-t.rA)/((1/t.pan_speed_o+1)*t.sRed+1))),t.pan_speed=(Math.max(1,1+(t.sW+t.sH)/500)+t.pan_speed_o*t.pan_speed_o/4)/Math.max(1,t.rA/2),t.cFlag._ml&&(t.oX-=t.pan_speed,t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="left",t._onfocus=t._dragging=!1),t.cFlag._mr&&(t.oX+=t.pan_speed,t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="right",t._onfocus=t._dragging=!1),t.cFlag._mu&&(t.oY-=t.pan_speed,t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="up",t._onfocus=t._dragging=!1),t.cFlag._md&&(t.oY+=t.pan_speed,t.cFlag._nd=!1,t.cFlag._rs=!1,t._recent="down",t._onfocus=t._dragging=!1),t.cFlag._rs&&(t.oX+=(t.fX-t.oX)/8,t.oY+=(t.fY-t.oY)/8,t.cFlag._nd=!1,t._recent="reset",t._onfocus=t._dragging=!1),t.zoom_single&&"reset"!==t._recent?t._onfocus?t._sc+=(t.rA-t._sc)/t.reduction:t._sc=t.rA:t._sc+=(t.rA-t._sc)/(t.ani_smooth/(t._onfocus?t.reduction:1)),t._w=t._sc*t.iW,t._h=t._sc*t.iH,t._dragging&&(t.tX=t.dX,t.tY=t.dY,t.changeOffset(!0,!0)),"zoomIn"==t._recent?(t._w>t.rA*t.iW-o&&!t.zoom_single?(t.cFlag._nd&&(t.ani_end=!0),t._sc=t.rA):t._w>t.zoom_max*t.iW-o&&t.zoom_single&&(t.cFlag._nd&&(t.ani_end=!0),t._sc=t.rA=t.zoom_max),t.ani_end&&(t._w=t._sc*t.iW,t._h=t._sc*t.iH)):"zoomOut"==t._recent&&(t._w<t.rA*t.iW+o&&!t.zoom_single?(t.cFlag._nd&&(t.ani_end=!0),t._sc=t.rA):t._w<t.rF*t.iW+o&&t.zoom_single&&(t.cFlag._nd&&(t.ani_end=!0),t._sc=t.rA=t.rF),t.ani_end&&(t._w=t._sc*t.iW,t._h=t._sc*t.iH)),t.limitX=(t._w-t.sW)/(t._w/t.sW)/2,t.limitY=(t._h-t.sH)/(t._h/t.sH)/2,t._dragging||(t.pan_limit?(t.oX<-t.limitX-t.focusOffX&&(t.oX=-t.limitX-t.focusOffX),t.oX>t.limitX-t.focusOffX&&(t.oX=t.limitX-t.focusOffX),t._w<t.sW&&(t.tX=(t.sW-t._w)/2,t.changeOffset(!0,!1)),t.oY<-t.limitY-t.focusOffY&&(t.oY=-t.limitY-t.focusOffY),t.oY>t.limitY-t.focusOffY&&(t.oY=t.limitY-t.focusOffY),t._h<t.sH&&(t.tY=(t.sH-t._h)/2,t.changeOffset(!1,!0))):(t.oX<-t.limitX-t.focusOffX/t._w*t.sW-t.sW/2/(t._w/t.sW)&&(t.oX=-t.limitX-t.focusOffX/t._w*t.sW-t.sW/2/(t._w/t.sW)),t.oX>t.limitX-t.focusOffX/t._w*t.sW+t.sW/2/(t._w/t.sW)&&(t.oX=t.limitX-t.focusOffX/t._w*t.sW+t.sW/2/(t._w/t.sW)),t.oY<-t.limitY-t.focusOffY/t._h*t.sH-t.sH/(t._h/t.sH*2)&&(t.oY=-t.limitY-t.focusOffY/t._h*t.sH-t.sH/(t._h/t.sH*2)),t.oY>t.limitY-t.focusOffY/t._h*t.sH+t.sH/(t._h/t.sH*2)&&(t.oY=t.limitY-t.focusOffY/t._h*t.sH+t.sH/(t._h/t.sH*2)))),t._dragging||"drag"==t._recent||(t.tX=(t.sW-t._w)/2+t.focusOffX+t.oX*(t._w/t.sW),t.tY=(t.sH-t._h)/2+t.focusOffY+t.oY*(t._h/t.sH),1===t.ani_smooth&&(t.cFlag._nd=!0,t.ani_end=!0)),"zoomIn"==t._recent||"zoomOut"==t._recent||t.cFlag._rs?(t._x=t.tX,t._y=t.tY):(t._x+=(t.tX-t._x)/(t.ani_smooth/(t._onfocus?t.reduction:1)),t._y+=(t.tY-t._y)/(t.ani_smooth/(t._onfocus?t.reduction:1))),"left"==t._recent?(t._x<t.tX+o||1===t.ani_smooth)&&(t.cFlag._nd&&(t.ani_end=!0),t._recent="",t._x=t.tX):"right"==t._recent?(t._x>t.tX-o||1===t.ani_smooth)&&(t.cFlag._nd&&(t.ani_end=!0),t._recent="",t._x=t.tX):"up"==t._recent?(t._y<t.tY+o||1===t.ani_smooth)&&(t.cFlag._nd&&(t.ani_end=!0),t._recent="",t._y=t.tY):"down"==t._recent?(t._y>t.tY-o||1===t.ani_smooth)&&(t.cFlag._nd&&(t.ani_end=!0),t._recent="",t._y=t.tY):"drag"==t._recent&&(t._x+o>=t.tX&&t._x-o<=t.tX&&t._y+o>=t.tY&&t._y-o<=t.tY||1===t.ani_smooth)&&(t._onfocus&&(t._dragging=!1),t.cFlag._nd&&(t.ani_end=!0),t._recent="",t._x=t.tX,t._y=t.tY),t.cFlag._rs&&t._w+o>=t.rA*t.iW&&t._w-o<=t.rA*t.iW&&t.oX<=t.fX+o&&t.oX>=t.fX-o&&t.oY<=t.fY+o&&t.oY>=t.fY-o&&(t.ani_end=!0,t._recent="",t.cFlag._rs=!1,t.cFlag._nd=!0,t._x=t.tX,t._y=t.tY,t._sc=t.rA,t._w=t._sc*t.iW,t._h=t._sc*t.iH),t.rA==t.rF&&t.iW*t.rA<=t.sW&&t.iH*t.rA<=t.sH){if
1(t.buttons[1].$ob.css("opacity")>.5&&t.rA>=t.rF&&(""==t.init_zoom||t.rA<t.init_zoom)&&(""==t.zoom_min||t.rA<t.zoom_min)){t.pan_limit&&t._moveCursor&&!t._moveCursor&&(t.$image.css("cursor","default"),t.$hitArea.css("cursor","default"));for(var e=1;e<(t.pan_limit&&!t._moveCursor?t.buttons_total:2);e++)t.buttons[e].$ob.css({opacity:.4}),t._wheel=!1,t.$holder.find("#"+t.buttons[e]._var+"norm").show(),t.$holder.find("#"+t.buttons[e]._var+"over").hide()}}else if(t.buttons[1].$ob.css("opacity")<.5){t._moveCursor&&t.mouse_drag&&(t.$image.css("cursor","move"),t.$hitArea.css("cursor","move"));for(e=1;e<t.buttons_total;e++)t.buttons[e].$ob.css("opacity",.7)}t.rA==t.zoom_max?t.buttons[0].$ob.css("opacity")>.5&&(t.buttons[0].$ob.css("opacity",.4),t._wheel=!1,t.$holder.find("#"+t.buttons[0]._var+"norm").show(),t.$holder.find("#"+t.buttons[0]._var+"over").hide()):t.buttons[0].$ob.css("opacity")<.5&&t.buttons[0].$ob.css("opacity",.7),_?t.$image.css(_,"translate("+t._x.toFixed(14)+"px,"+t._y.toFixed(14)+"px) scale("+t._sc+")"):t.$image.css({left:t._x,top:t._y,width:t._w,height:t._h}),t.$loc_cont&&t.updateLocations(t._x,t._y,t._sc,t.locations),!_&&t.map_coordinates.length>0&&t.updateMap(),t.ani_end&&!t._dragging&&"drag"!=t._recent?(t._playing=!1,t._recent="",t.cX=(-t._x+t.sW/2)/t.rA,t.cY=(-t._y+t.sH/2)/t.rA,t.onUPDATE&&t.onUPDATE(t.getZoomData(),!1),t.onZOOM_PAN&&t.onZOOM_PAN(t.getZoomData()),clearTimeout(t.ani_timer)):(t._playing=!0,t.onUPDATE&&t.onUPDATE(t.getZoomData(),!0),t.ani_timer=setTimeout((function(){t.Animate()}),28))},updateLocations:function(t,e,i,s){""!==this.onLANDMARK&&(i>=this.show_at_zoom?this._landmark||(this._landmark=!0,this.onLANDMARK(!0)):this._landmark&&(this._landmark=!1,this.onLANDMARK(!1)));for(var n=0;n<s.length;n++){var a,r,c=s[n].x*i+t,h=s[n].y*i+e;i>=s[n].showAt?(s[n].scale&&_?(a=s[n].w2pad*this._sc,r=s[n].h2*this._sc):(a=s[n].w2pad,r=s[n].h2),c>-a&&c<this.sW+a&&(h>-r&&h<this.sH+r&&s[n].lab||h>0&&h<this.sH+2*r&&!s[n].lab)?s[n].vis||(s[n].vis=!0,_?s[n].ob.stop().css("display","block").animate({opacity:1},300):s[n].ob.show()):s[n].vis&&(s[n].vis=!1,_?s[n].ob.stop().animate({opacity:0}
1,200,(function(){o(this).hide()})):s[n].ob.hide())):s[n].vis&&(s[n].vis=!1,_?s[n].ob.stop().animate({opacity:0},200,(function(){o(this).hide()})):s[n].ob.hide()),(c!==s[n].lpx||h!==s[n].lpy&&s[n].vis)&&(_?s[n].ob.css(_,"translate("+c.toFixed(14)+"px,"+h.toFixed(14)+"px)"+(s[n].scale?" scale("+this._sc+")":"")):s[n].ob.css({left:c,top:h})),s[n].lpx=c,s[n].lpy=h}},roundBG:function(t,e,i,s,n,a,r,_,c,h){t.append(o('<div class="bgi'+e+'" style="background-position:'+-(a-n)+"px "+(-(25-n)-h)+'px"></div>\t\t\t\t<div class="bgh'+e+'"></div>\t\t\t\t<div class="bgi'+e+'" style="background-position:'+-a+"px "+(-(25-n)-h)+"px; left:"+(i-n)+'px"></div>\t\t\t\t<div class="bgi'+e+'" style="background-position:'+-(a-n)+"px "+(-25-h)+"px; top:"+(s-n)+'px"></div>\t\t\t\t<div class="bgh'+e+'" style = "top:'+(s-n)+"px; left:"+n+'px"></div>\t\t\t\t<div class="bgi'+e+'" style="background-position:'+-a+"px "+(-25-h)+"px; top:"+(s-n)+"px; left:"+(i-n)+'px"></div>\t\t\t\t<div class="bgc'+e+'"></div>')),o(".bgi"+e).css({position:"absolute",width:n,height:n,"background-image":"url("+_+")","background-repeat":"no-repeat","-ms-filter":"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)",filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)",zoom:1}),o(".bgh"+e).css({position:"absolute",width:i-2*n,height:n,"background-color":r,left:n}),o(".bgc"+e).css({position:"absolute",width:i,height:s-2*n,"background-color":r,top:n,left:0})},changeOffset:function(t,o){t&&(this.oX=(this.tX-(this.sW-this._w)/2-this.focusOffX)/(this._w/this.sW)),o&&(this.oY=(this.tY-(this.sH-this._h)/2-this.focusOffY)/(this._h/this.sH))},updateMap:function(){var t=this,e=0;t.mapAreas.each((function(){for(var i=[],s=0;s<t.map_coordinates[e].length;s++)i[s]=t.map_coordinates[e][s]*t._sc;i=i.join(","),o(this).attr("coords",i),e++}))},haltAnimation:function(){clearTimeout(this.ani_timer),this._playing=!1,this._recent=""},destroy:function(){var t=this;if(t.assetsLoaded){for(prop in t.haltAnimation(),t.orig_style)!1!==t.orig_style[prop][0]&&void 0!==t.orig_style[prop][0]&&("width"===t.orig_style[prop][0]||"height"===t.orig_style[prop][0]?0!==parseInt(t.orig_style[prop][1])&&t.$image.css(t.orig_style[prop][0],t.orig_style[prop][1]):t.$image.css(t.orig_style[prop][0],t.orig_style[prop][1]));clearTimeout(t.auto_timer),o(i).unbind(".sz"+t.id),o(e).unbind(".sz"+t.id),t.$holder.unbind(".sz"),t.$controls=void 0}else t.$image.show();""==t.container?""==t.image_url?(t.$image.insertBefore(t.$holder),void 0!==t.$holder&&t.$holder.remove()):(t.$elem.empty(),t.$loc_cont[0]&&t.$elem.append(t.loc_clone)):(t.$image.insertBefore(t.$holder),t.$holder.empty(),t.$image.wrap(t.$holder),t.$loc_cont[0]&&t.$holder.append(t.loc_clone)),t.$elem.removeData("smoothZoom"),t.$holder=void 0,t.Buttons=void 0,t.op=void 0,t.$image=void 0},focusTo:function(t){var o=this;o.assetsLoaded&&(void 0===t.zoom||""===t.zoom||0==t.zoom?t.zoom=o.rA:t.zoom/=100,o._onfocus=!0,t.zoom>o.rA&&o.rA!=o.zoom_max?(o.rA=t.zoom,o.rA=o.rA>o.zoom_max?o.zoom_max:o.rA):t.zoom<o.rA&&o.rA!=o.rF&&(o.rA=t.zoom,o.rA=o.rA<o.rF?o.rF:o.rA),o.transOffX=o.transOffY=0,o.setDraggedPos(void 0===t.x||""===t.x?"":-t.x*o.rA+o.sW/2,void 0===t.y||""===t.y?"":-t.y*o.rA+o.sH/2,o.rA),o.reduction=t.speed?t.speed/10:o.focusSpeed,o._recent="drag",o._dragging=!0,o._playing||o.Animate())},zoomIn:function(t){this.buttons[0].$ob.trigger(this.event_down,{id:0})},zoomOut:function(t){this.buttons[1].$ob.trigger(this.event_down,{id:1})},moveRight:function(t){this.buttons[2].$ob.trigger(this.event_down,{id:2})},moveLeft:function(t){this.buttons[3].$ob.trigger(this.event_down,{id:3})},moveUp:function(t){this.buttons[4].$ob.trigger(this.event_down,{id:4})},moveDown:function(t){this.buttons[5].$ob.trigger(this.event_down,{id:5})},Reset:function(t){this.buttons[6].$ob.trigger(this.event_down,{id:6})},getZoomData:function(t){return{normX:(-this._x/this.rA).toFixed(14),normY:(-this._y/this.rA).toFixed(14),normWidth:this.iW,normHeight:this.iH,scaledX:-this._x.toFixed(14),scaledY:-this._y.toFixed(14),scaledWidth:this._w,scaledHeight:this._h,centerX:(-this._x.toFixed(14)+this.sW/2)/this.rA,centerY:(-this._y.toFixed(14)+this.sH/2)/this.rA,ratio:this.rA}},addLandmark:function(t){if(this.$loc_cont){for(var e=t.length,i=0;i<e;i++){var s=o(t[i]);this.$loc_cont.append(s),this.setLocation(s)}e>0&&this.updateLocations(this._x,this._y,this._sc,this.locations)}},attachLandmark:function(t){if(this.$loc_cont){for(var e=t.length,i=0;i<e;i++)this.setLocation(t[i]instanceof jQuery?t[i]:o("#"+t[i]));e>0&&this.updateLocations(this._x,this._y,this._sc,this.locations)}},removeLandmark:function(t){if(this.$loc_cont){if(t)for(var o=t.length,e=0;e<o;e++)for(var i=0;i<this.locations.length;i++)(t[e]instanceof jQuery&&this.locations[i].ob[0]==t[e][0]||!(t[e]instanceof jQuery)&&this.locations[i].ob.attr("id")==t[e])&&(this.locations[i].ob.remove(),this.locations.splice(i,1),i--);else this.locations.length>0&&(this.locations[this.locations.length-1].ob.remove(),this.locations.pop());o>0&&this.updateLocations(this._x,this._y,this._sc,this.locations)}},refreshAllLandmarks:function(){var t=this,e=t.$loc_cont.children(".item");t.show_at_zoom=parseInt(t.$loc_cont.data("show-at-zoom"),10)/100,t.allow_scale=a(t.$loc_cont.data("allow-scale")),t.allow_drag=a(t.$loc_cont.data("allow-drag"));for(var i=0;i<t.locations.length;i++){var s=!1;e.each((function(){t.locations[i].ob[0]==o(this)[0]&&(s=!0)})),s||(t.locations.splice(i,1),i--)}e.each((function(){for(var e=!1,i=0;i<t.locations.length;i++)if(t.locations[i].ob[0]==o(this)[0]){e=!0;break}e||t.setLocation(o(this))})),this.updateLocations(this._x,this._y,this._sc,this.locations)},resize:function(t){var o;if(t.data){t.preventDefault();var e=(o=t.data.self).$holder.parent().width(),i=o.$holder.parent().height();o.oW&&(e=Math.min(e,o.oW)),o.sW=e,o.oH?o.oW&&o.maintain_ratio&&(o.sH=e/(o.oW/o.oH
1)):o.sH=i}else o=this,t.width&&(o.sW=t.width),t.height&&(o.sH=t.height),t.max_WIDTH&&(o.w_max=t.max_WIDTH),t.max_HEIGHT&&(o.h_max=t.max_HEIGHT);0!==o.w_max&&""!==o.w_max&&(o.sW=Math.min(o.sW,o.w_max)),0!==o.h_max&&""!==o.h_max&&(o.sH=Math.min(o.sH,o.h_max)),o.$holder.css({width:o.sW,height:o.sH}),o.bord_size>0&&(o.border[0].height(o.sH),o.border[1].css({height:o.sH,left:o.sW-o.bord_size}),o.border[2].width(o.sW-2*o.bord_size),o.border[3].css({width:o.sW-2*o.bord_size,top:o.sH-o.bord_size})),"center"==o.bu_align[1]&&o.$controls.css("left",parseInt((o.sW-o.cBW)/2)),"center"==o.bu_align[0]&&o.$controls.css("top",parseInt((o.sH-o.cBH)/2)),o.rF=o.rR=o.checkRatio(o.sW,o.sH,o.iW,o.iH,o.zoom_fit),0==o.zoom_min&&o.rA<o.rF&&(o.rA=o.rF),o.focusTo({x:o.cX,y:o.cY,zoom:"",speed:10})}},o.fn.smoothZoom=function(e){for(var i=this.length,s=0;s<i;s++){var a=o(this[s]),r=a.data("smoothZoom");if(r){if("getZoomData"==e)return r[e].apply(r,Array.prototype.slice.call(arguments,1));r[e]&&r[e].apply(r,Array.prototype.slice.call(arguments,1))}else"object"!==t(e)&&e||a.data("smoothZoom",new n(a,e))}if("getZoomData"!==e)return this};var r=function(o,e,i){function s(t){m.cssText=t}function n(o,e){return t(o)===e}function a(t,o){for(var e in t)if(m[t[e]]!==i)return"pfx"!=o||t[e];return!1}function r(t,o,e){var s=t.charAt(0).toUpperCase()+t.substr(1),r=(t+" "+g.join(s+" ")+s).split(" ");return n(o,"string")||n(o,"undefined")?a(r,o):function(t,o,e){for(var s in t){var a=o[t[s]];if(a!==i)return!1===e?t[s]:n(a,"function")?a.bind(e||o):a}return!1}(r=(t+" "+b.join(s+" ")+s).split(" "),o,e)}var _,c,h={},l=e.documentElement,d="modernizr",u=e.createElement(d),m=u.style,p=" -webkit- -moz- -o- -ms- ".split(" "),f="Webkit Moz O ms",g=f.split(" "),b=f.toLowerCase().split(" "),v={},w=[],x=w.slice,A=function(t,o,i,s){var n,a,r,_=e.createElement("div"),c=e.body,h=c||e.createElement("body");if(parseInt(i,10))for(;i--;)(r=e.createElement("div")).id=s?s[i]:d+(i+1),_.appendChild(r);return n=["&#173;","<style>",t,"</style>"].join(""),_.id=d,(c?_:h).innerHTML+=n,h.appendChild(_),c||(h.style.background="",l.appendChild(h)),a=o(_,t),c?_.parentNode.removeChild(_):h.parentNode.removeChild(h),!!a},y={}.hasOwnProperty;c=n(y,"undefined")||n(y.call,"undefined")?function(t,o){return o in t&&n(t.constructor.prototype[o],"undefined")}:function(t,o){return y.call(t,o)},Function.prototype.bind||(Function.prototype.bind=function(t){var o=this;if("function"!=typeof o)throw new TypeError;var e=x.call(arguments,1);return function i(){if(this instanceof i){var s=function(){};s.prototype=o.prototype;var n=new s,a=o.apply(n,e.concat(x.call(arguments)));return Object(a)===a?a:n}return o.apply(t,e.concat(x.call(arguments)))}});var z,O,$,Y;z=[,["@media (",p.join("touch-enabled),("),d,")","{#touch{top:9px;position:absolute}}"].join(""),["@media (",p.join("transform-3d),("),d,")","{#csstransforms3d{left:9px;position:absolute;height:3px;}}"].join("")],O=[,"touch","csstransforms3d"],$=z.join(""),A($,(function(t,i){for(var s=e.styleSheets[e.styleSheets.length-1],n=(s&&(s.cssRules&&s.cssRules[0]?s.cssRules[0].cssText:s.cssText),t.childNodes),a={};Y--;)a[n[Y].id]=n[Y];h.touch="ontouchstart"in o||o.DocumentTouch&&e instanceof DocumentTouch||9===(a.touch&&a.touch.offsetTop),h.csstransforms3d=9===(a.csstransforms3d&&a.csstransforms3d.offsetLeft)&&3===a.csstransforms3d.offsetHeight}),Y=O.length,O);for(var H in v.touch=function(){return h.touch}
1,v.borderradius=function(){return r("borderRadius")},v.csstransforms=function(){return!!r("transform")},v.csstransforms3d=function(){var t=!!r("perspective");return t&&"webkitPerspective"in l.style&&(t=h.csstransforms3d),t},v)c(v,H)&&(_=H.toLowerCase(),h[_]=v[H](),w.push((h[_]?"":"no-")+_));return s(""),u=null,h._version="2.5.3",h._prefixes=p,h._domPrefixes=b,h._cssomPrefixes=g,h.testProp=function(t){return a([t])},h.testAllProps=r,h.testStyles=A,h.prefixed=function(t,o,e){return o?r(t,o,e):r(t,"pfx")},h}(this,this.document),_=r.prefixed("transform"),c=r.prefixed("transformOrigin"),h=r.prefixed("borderRadius"),l=r.csstransforms3d,d=r.touch}(jQuery,window,document),function(t){function o(o){var e=o||window.event,i=[].slice.call(arguments,1),s=0,n=0,a=0;return(o=t.event.fix(e)).type="mousewheel",e.wheelDelta&&(s=e.wheelDelta/120),e.detail&&(s=-e.detail/3),a=s,void 0!==e.axis&&e.axis===e.HORIZONTAL_AXIS&&(a=0,n=-1*s),void 0!==e.wheelDeltaY&&(a=e.wheelDeltaY/120),void 0!==e.wheelDeltaX&&(n=-1*e.wheelDeltaX/120),i.unshift(o,s,n,a),(t.event.dispatch||t.event.handle).apply(this,i)}var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var i=e.length;i;)t.event.fixHooks[e[--i]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],o,!1);else this.onmousewheel=o},teardown:function(){if(this.remove_eventListener)for(var t=e.length;t;)this.remove_eventListener(e[--t],o,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)})();

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.