­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ !function($,window,document,undefined){"use strict";var fullscreenMap=undefined,fullscreenMapParent=undefined,touch=!1;$.imageMapProInitialized=function(t){},$.imageMapProEventHighlightedShape=function(t,i){},$.imageMapProEventUnhighlightedShape=function(t,i){},$.imageMapProEventClickedShape=function(t,i){},$.imageMapProEventOpenedTooltip=function(t,i){},$.imageMapProEventClosedTooltip=function(t,i){},$.imageMapProHighlightShape=function(t,i){var e=$('[data-shape-title="'+i+'"]').data("index"),s=instances[t].settings.spots[e];if(-1==instances[t].apiHighlightedShapes.indexOf(e)&&instances[t].apiHighlightedShapes.push(e),instances[t].connectedShapes[s.id])for(var a=0;a=e&&t<=e+a&&i>=s&&i<=s+n}function isPointInsidePolygon(t,i,e){for(var s=!1,a=0,n=e.length-1;ai!=r>i&&t<(l-o)*(i-h)/(r-h)+o&&(s=!s)}return s}function isPointInsideEllipse(t,i,e,s,a,n){return(t-e)*(t-e)/(a*a)+(i-s)*(i-s)/(n*n)<=1}function fitRectToScreen(t,i,e,s){return t<0&&(t=0),i<0&&(i=0),t>$(document).width()-e&&(t=$(document).width()-e),i>$(document).height()-s&&(i=$(document).height()-s),{x:t,y:i}}function shuffle(t){for(var i,e,s=t.length;0!==s;)e=Math.floor(Math.random()*s),i=t[s-=1],t[s]=t[e],t[e]=i;return t}function isMobile(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function lerp(t,i,e){return t*(1-e)+i*e}$.extend(Plugin.prototype,{init:function(){var t=this;t.parseSettings(),instances[this.settings.general.name]=this,this.id=100*Math.random();for(var i=0;i',1==parseInt(t.settings.zooming.enable_zooming,10)&&1==parseInt(t.settings.zooming.enable_navigator,10)&&(i+='
',i+=' ',i+=' ',i+='
',i+=' ',i+="
"),1==parseInt(t.settings.zooming.enable_zooming,10)&&1==parseInt(t.settings.zooming.enable_zoom_buttons,10)&&(i+='
',i+='
'),1==parseInt(t.settings.layers.enable_layers,10)){i+='
',i+='
',i+='
',i+=' ",i+="
"}i+=" ",i+='
',i+='
',i+='
',i+=' ',i+="
",i+="
",i+="
",i+="",t.root.html(i),t.wrap=t.root.find(".imp-wrap"),t.zoomWrap=t.root.find(".imp-zoom-wrap"),t.translateWrap=t.root.find(".imp-translate-wrap"),t.ui=t.wrap.find(".imp-ui"),t.root.addClass("imp-initialized"),t.root.attr("data-image-map-pro-id",t.settings.id),t.centerImageMap(),t.drawShapes(),t.addTooltips(),t.initFullscreen(),t.initZoom(),t.adjustSize(),t.initNavigator(),t.initLayers(),t.events(),t.APIEvents(),t.animateShapesLoop(),$.imageMapProInitialized(t.settings.general.name)}),$(window).off("resize."+this.settings.general.id+this.settings.runtime.is_fullscreen),$(window).on("resize."+this.settings.general.id+this.settings.runtime.is_fullscreen,function(){t.openedTooltips.length>0&&t.updateTooltipPosition(t.openedTooltips[t.openedTooltips.length-1]),t.resetZoomAndPan(),fullscreenMap&&fullscreenMap.adjustSize(),t.adjustNavigatorSize()})},parseSettings:function(){this.settings.general.image_url&&(this.settings.image.url=this.settings.general.image_url)},loadImage:function(t,i,e){t.complete&&t.naturalWidth!==undefined&&t.naturalHeight!==undefined?e():(i(),$(t).on("load",function(){$(t).off("load"),e()}))},centerImageMap:function(){1==parseInt(this.settings.general.center_image_map,10)&&this.wrap.css({margin:"0 auto"})},adjustSize:function(){var t=this;if(1==parseInt(t.settings.runtime.is_fullscreen,10)){var i=$(window).width()/$(window).height(),e=t.settings.general.width/t.settings.general.height;return e'),t.shapeContainer=t.wrap.find(".imp-shape-container");var s="",a=t.settings.general.width,n=t.settings.general.height;1==parseInt(t.settings.general.responsive,10)&&(a=t.settings.general.naturalWidth,n=t.settings.general.naturalHeight);var o='';for(i=0;i',s+=' ',s+=" "}if("custom"==h.default_style.icon_type&&h.default_style.icon_url.length>0&&(s+=''),1==parseInt(h.default_style.icon_shadow,10)){var g="";g+="width: "+h.width+"px;",g+="height: "+h.height+"px;",s+='
'}s+=""}else s+='
'),t.fullscreenTooltipsContainer=$('.imp-fullscreen-tooltips-container[data-image-map-id="'+t.settings.id+'"]'));for(var i="",e=0;e',i+='
',"plain-text"==n.tooltip_content.content_type){s="";i+='
'+n.tooltip_content.plain_text+"
"}else n.tooltip_content.squares_json?i+=$.squaresRendererRenderObject(n.tooltip_content.squares_json):i+=$.squaresRendererRenderObject(n.tooltip_content.squares_settings);i+=""}t.fullscreenTooltipsContainer.html(i)}else{for(i="",e=0;e',"top"==n.tooltip_style.position&&(i+='
'),"bottom"==n.tooltip_style.position&&(i+='
'),"left"==n.tooltip_style.position&&(i+='
'),"right"==n.tooltip_style.position&&(i+='
'),"plain-text"==n.tooltip_content.content_type){s="";i+='
'+n.tooltip_content.plain_text+"
"}else n.tooltip_content.squares_json?i+=$.squaresRendererRenderObject(n.tooltip_content.squares_json):i+=$.squaresRendererRenderObject(n.tooltip_content.squares_settings);i+=""}t.wrap.prepend(i)}},initFullscreen:function(){if(1==parseInt(this.settings.fullscreen.enable_fullscreen_mode,10)){var t="";t+="background: "+this.settings.fullscreen.fullscreen_button_color+"; ",t+="color: "+this.settings.fullscreen.fullscreen_button_text_color+"; ";var i='';1==parseInt(this.settings.runtime.is_fullscreen,10)&&(i='');var e="Go Fullscreen";1==parseInt(this.settings.runtime.is_fullscreen,10)&&(e="Close Fullscreen");var s="";"icon"==this.settings.fullscreen.fullscreen_button_type&&(s+=i),"text"==this.settings.fullscreen.fullscreen_button_type&&(s+=e),"icon_and_text"==this.settings.fullscreen.fullscreen_button_type&&(s+=i+" "+e);var a="";"icon"==this.settings.fullscreen.fullscreen_button_type&&(a+="imp-fullscreen-button-icon-only");var n="";n+='
',n+=s,n+="
",this.ui.append(n),1==parseInt(this.settings.runtime.is_fullscreen,10)&&($(window).scrollTop(0),fullscreenMap=this);var o=this.ui.find(".imp-fullscreen-button");1!=parseInt(this.settings.fullscreen.fullscreen_button_position,10)&&4!=parseInt(this.settings.fullscreen.fullscreen_button_position,10)||o.css({"margin-left":-o.outerWidth()/2}),1==parseInt(this.settings.fullscreen.start_in_fullscreen_mode,10)&&0==this.settings.runtime.is_fullscreen&&this.toggleFullscreen()}},initNavigator:function(){1==parseInt(this.settings.zooming.enable_zooming,10)&&1==parseInt(this.settings.zooming.enable_navigator,10)&&(this.uiNavigatorRoot=this.ui.find(".imp-ui-navigator-root"),this.uiNavigatorImage=this.ui.find(".imp-ui-navigator-window-image"),this.adjustNavigatorSize())},initLayers:function(){if(0!=parseInt(this.settings.layers.enable_layers,10)){for(var t=!1,i=0;i1||i.deltaY>0&&t.targetZoom0)return this.ix=i.x,this.iy=i.y,void(this.panningOnNavigator=!0);if(t.originalEvent.touches&&t.originalEvent.touches.length>1)return this.pinchInitial[0]={x:t.originalEvent.touches[0].pageX,y:t.originalEvent.touches[0].pageY},this.pinchInitial[1]={x:t.originalEvent.touches[1].pageX,y:t.originalEvent.touches[1].pageY},this.initialPanX=this.actualPanX,this.initialPanY=this.actualPanY,this.ix=(t.originalEvent.touches[0].pageX+t.originalEvent.touches[1].pageX)/2,this.iy=(t.originalEvent.touches[0].pageY+t.originalEvent.touches[1].pageY)/2,this.lastX=this.ix,this.lastY=this.iy,this.pinchInitialDistance=Math.sqrt(Math.pow(this.pinchInitial[1].x-this.pinchInitial[0].x,2)+Math.pow(this.pinchInitial[1].y-this.pinchInitial[0].y,2)),this.pinchInitialZoom=this.zoom,void(this.pinching=!0);this.panning||0!=$(t.target).closest(".imp-ui").length||(this.ix=i.x,this.iy=i.y,this.initialPanX=this.actualPanX,this.initialPanY=this.actualPanY,this.panning=!0)}},handleEventMove:function(t){if(!this.fullscreenTooltipVisible){var i=this.getEventRelativeCoordinates(t),e=this.matchShapeToCoords(i);if(1==parseInt(this.settings.zooming.enable_zooming,10)){if(this.panningOnNavigator){var s=((n=this.getEventCoordinates(t)).x-this.uiNavigatorRoot.offset().left)/this.navigatorRatio*this.targetZoom,a=(n.y-this.uiNavigatorRoot.offset().top)/this.navigatorRatio*this.targetZoom;return void this.panTo(s,a)}if(this.pinching)return this.pinch(t),void(this.didPan=!0);if(this.panning){var n=this.getEventCoordinates(t);return this.pan(n.x,n.y),void(this.didPan=!0)}}if(!this.isPointInsideVisibleTooltip(t)||0!=parseInt(this.settings.tooltips.sticky_tooltips,10)){if(1==$(t.target).closest(".imp-ui").length)return this.unhighlightAllShapes(),void("mouseover"==this.settings.tooltips.show_tooltips&&this.hideAllTooltips());-1!=e&&(this.didPan||(this.isShapeHighlighted(e)||(this.unhighlightAllShapes(),"mouseover"==this.settings.tooltips.show_tooltips&&this.hideAllTooltips(),this.highlightShape(e,!0)),"mouseover"==this.settings.tooltips.show_tooltips&&1==parseInt(this.settings.tooltips.enable_tooltips,10)&&1==parseInt(this.settings.spots[e].tooltip_style.enable_tooltip,10)&&this.showTooltip(e),this.openedTooltips.length>0&&1==parseInt(this.settings.tooltips.sticky_tooltips,10)&&"mouseover"==this.settings.tooltips.show_tooltips&&this.updateTooltipPosition(this.openedTooltips[this.openedTooltips.length-1],t))),-1==e&&(this.unhighlightAllShapes(),"mouseover"==this.settings.tooltips.show_tooltips&&this.hideAllTooltips())}}},handleEventEnd:function(t){if(1==parseInt(this.settings.zooming.enable_zooming,10)){if("mousewheel"==t.type)return t.deltaY>0&&this.zoomIn(t),void(t.deltaY<0&&this.zoomOut(t));if(this.panningOnNavigator&&(this.panningOnNavigator=!1),$(t.target).closest(".imp-ui-navigator-root").length>0){var i=this.getEventCoordinates(t),e=(i.x-this.uiNavigatorRoot.offset().left)/this.navigatorRatio*this.targetZoom,s=(i.y-this.uiNavigatorRoot.offset().top)/this.navigatorRatio*this.targetZoom;return void this.panTo(e,s)}if($(t.target).closest(".imp-ui-zoom-button").length>0)return void($(t.target).closest(".imp-ui-zoom-button-zoom-in").length>0?this.zoomIn():this.zoomOut());this.panning&&(this.panning=!1),this.pinching&&(this.pinching=!1)}if($(t.target).closest(".imp-fullscreen-button").length>0&&this.toggleFullscreen(),$(t.target).closest(".imp-ui-layer-switch-up").length>0)for(var a=0;a0){var n=this.settings.layers.layers_list[a-1].id;this.switchLayer(n);break}if($(t.target).closest(".imp-ui-layer-switch-down").length>0)for(a=0;a0&&1==parseInt(this.settings.tooltips.sticky_tooltips,10)&&"mouseover"==this.settings.tooltips.show_tooltips&&this.updateTooltipPosition(this.openedTooltips[this.openedTooltips.length-1],t)),this.performClickAction(a)),-1==a&&(this.hideAllTooltips(),this.didPan||this.unhighlightAllShapes()),t.originalEvent.touches&&0==t.originalEvent.touches.length&&(this.didPan=!1),t.originalEvent.touches||(this.didPan=!1)}},getEventRelativeCoordinates:function(t){var i,e;if("touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"touchcancel"==t.type){var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];i=s.pageX,e=s.pageY}else"mousedown"!=t.type&&"mouseup"!=t.type&&"mousemove"!=t.type&&"mouseover"!=t.type&&"mouseout"!=t.type&&"mouseenter"!=t.type&&"mouseleave"!=t.type||(i=t.pageX,e=t.pageY);return i-=this.zoomWrap.offset().left,e-=this.zoomWrap.offset().top,{x:i=i/(this.wrap.width()*this.zoom)*100,y:e=e/(this.wrap.height()*this.zoom)*100}},getEventCoordinates:function(t){var i,e;if("touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"touchcancel"==t.type){var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0];i=s.pageX,e=s.pageY}else"mousedown"!=t.type&&"mouseup"!=t.type&&"mousemove"!=t.type&&"mouseover"!=t.type&&"mouseout"!=t.type&&"mouseenter"!=t.type&&"mouseleave"!=t.type||(i=t.pageX,e=t.pageY);return{x:i,y:e}},matchShapeToCoords:function(t){for(var i=this.settings.spots.length-1;i>=0;i--)if(1!=parseInt(this.settings.layers.enable_layers,10)||parseInt(this.settings.spots[i].layerID,10)==parseInt(this.settings.runtime.layerID)){var e=this.settings.spots[i];if("poly"==e.type){var s=t.x/100*this.zoomWrap.width(),a=t.y/100*this.zoomWrap.height();if(isPointInsidePolygon(s=s*this.settings.general.naturalWidth/this.zoomWrap.width(),a=a*this.settings.general.naturalHeight/this.zoomWrap.height(),e.vs))return i}if("spot"==e.type){var n=e.width<44?44:e.width,o=e.height<44?44:e.height;n/=this.zoom,o/=this.zoom;var s=t.x/100*this.wrap.width(),a=t.y/100*this.wrap.height(),h=e.x/100*this.wrap.width()-n/2,l=e.y/100*this.wrap.height()-o/2,r=n,p=o;if(1==parseInt(e.default_style.icon_is_pin,10)&&1==parseInt(e.default_style.use_icon,10)&&(l-=o/2,e.height<44&&(l+=e.height/2)),isPointInsideRect(s,a,h,l,r,p))return i}if("rect"==e.type&&isPointInsideRect(t.x,t.y,e.x,e.y,e.width,e.height))return i;if("oval"==e.type)if(isPointInsideEllipse(s=t.x,a=t.y,e.x+e.width/2,e.y+e.height/2,h=e.width/2,l=e.height/2))return i;e.type}return-1},isPointInsideVisibleTooltip:function(t){for(var i=0;i0&&s.find("path").attr("style","fill:"+t.icon_fill)},highlightShape:function(t,i){var e=this.settings.spots[t];if(i&&""!=e.connected_to){var s=this.getIndexOfShapeWithID(e.connected_to);this.highlightShape(s,!0)}else{if(this.connectedShapes[e.id])for(var a=0;a'),$("#imp-temp-link").attr("href",s.actions.link),1==parseInt(s.actions.open_link_in_new_window,10)?$("#imp-temp-link").attr("target","_blank"):$("#imp-temp-link").removeAttr("target"),$("#imp-temp-link")[0].click()),"run-script"==s.actions.click&&eval(s.actions.script.replace("
","")),$.imageMapProEventClickedShape(this.settings.general.name,this.settings.spots[i].title)},showTooltip:function(t,i){var e=this.settings.spots[t];if(""==e.connected_to||1!=parseInt(e.use_connected_shape_tooltip,10)){if(-1==this.openedTooltips.indexOf(t)){if(this.openedTooltips.length>0&&this.hideAllTooltips(),-1==this.openedTooltips.indexOf(t)&&this.openedTooltips.push(t),"mobile-only"==this.settings.tooltips.fullscreen_tooltips&&isMobile()||"always"==this.settings.tooltips.fullscreen_tooltips){this.visibleFullscreenTooltip=$('.imp-fullscreen-tooltip[data-index="'+t+'"]'),this.visibleFullscreenTooltipIndex=t,this.fullscreenTooltipsContainer.show(),this.visibleFullscreenTooltip.show();var s=this;setTimeout(function(){s.visibleFullscreenTooltip.addClass("imp-tooltip-visible")},20),this.fullscreenTooltipVisible=!0,this.bodyOverflow=$("body").css("overflow"),$("body").css({overflow:"hidden"})}else{var a=this.wrap.find('.imp-tooltip[data-index="'+t+'"]');a.show(),setTimeout(function(){a.addClass("imp-tooltip-visible")},1),this.measureTooltipSize(t),this.updateTooltipPosition(t,i)}$.imageMapProEventOpenedTooltip(this.settings.general.name,this.settings.spots[t].title)}}else{var n=this.getIndexOfShapeWithID(e.connected_to);this.showTooltip(n)}},hideTooltip:function(t){if(-1==this.apiOpenedTooltips.indexOf(t)){var i=this.openedTooltips.indexOf(t);if(this.openedTooltips.splice(i,1),"mobile-only"==this.settings.tooltips.fullscreen_tooltips&&isMobile()||"always"==this.settings.tooltips.fullscreen_tooltips){var e=this;(s=this.fullscreenTooltipsContainer.find('.imp-fullscreen-tooltip[data-index="'+t+'"]')).removeClass("imp-tooltip-visible"),setTimeout(function(){e.fullscreenTooltipsContainer.hide(),s.hide()},200),this.fullscreenTooltipVisible=!1,$("body").css({overflow:this.bodyOverflow})}else{var s;(s=this.wrap.find('.imp-tooltip[data-index="'+t+'"]')).removeClass("imp-tooltip-visible"),setTimeout(function(){s.hide()},200)}$.imageMapProEventClosedTooltip(this.settings.general.name,this.settings.spots[t].title)}},hideAllTooltips:function(){for(var t=this.openedTooltips.slice(0),i=0;if&&(h+=f-(n+u+h)),o+m<0&&(l=l+o+m,o=-m),o+m+l>v&&(l+=v-(o+m+l))):(n<0&&(h+=n,n=0),n+h>d&&(h=d-n),o<0&&(l+=o,o=0),o+l>c&&(l=c-o)),"left"==r.tooltip_style.position&&(p=n-s-20,g=o+l/2-a/2),"right"==r.tooltip_style.position&&(p=n+h+20,g=o+l/2-a/2),"top"==r.tooltip_style.position&&(p=n+h/2-s/2,g=o-a-20),"bottom"==r.tooltip_style.position&&(p=n+h/2-s/2,g=o+l+20);var y={x:p,y:g};1==parseInt(this.settings.tooltips.constrain_tooltips,10)&&((y=fitRectToScreen(p+u,g+m,s,a)).x-=u,y.y-=m),1==parseInt(this.settings.runtime.is_fullscreen,10)&&(y.x+=u,y.y+=m),e.css({left:y.x,top:y.y})}},toggleFullscreen:function(){if(0==parseInt(this.settings.runtime.is_fullscreen,10)){$("body").addClass("imp-fullscreen-mode");var t=$.extend(!0,{},this.settings);t.runtime.is_fullscreen=1,t.id="999999",t.general.responsive=0;var i="";i+="background: "+this.settings.fullscreen.fullscreen_background,$("body").append('
'),$("#image-map-pro-"+t.id).imageMapPro(t),this.disableEvents(),fullscreenMapParent=this}else $("body").removeClass("imp-fullscreen-mode"),$("#imp-fullscreen-wrap").remove(),this.disableEvents(),fullscreenMapParent.events()},resetZoomAndPan:function(){this.zoom=1,this.targetZoom=1,this.targetPanX=0,this.targetPanY=0,this.actualPanX=0,this.actualPanY=0,this.redraw()},zoomIn:function(t){if(this.targetZoom1){var i=this.zoom/this.zoomMultiplier,e=0,s=0,a=this.wrap.width(),n=this.wrap.height();t?(e=t.pageX,s=t.pageY):(e=this.wrap.offset().left+a/2,s=this.wrap.offset().top+n/2),this.applyZoom(i,e,s)}},applyZoom:function(t,i,e){this.targetZoom=this.zoom,this.targetPanX=this.actualPanX,this.targetPanY=this.actualPanY,this.redraw(),t>this.maxZoomLevel&&(t=this.maxZoomLevel),t<1&&(t=1),this.targetZoom=t;var s=this.wrap.width(),a=this.wrap.height(),n=i-this.zoomWrap.offset().left,o=e-this.zoomWrap.offset().top,h=(s*this.targetZoom-s*this.zoom)/2,l=(a*this.targetZoom-a*this.zoom)/2,r=h*((s*this.zoom/2-n)/(s*this.zoom/2)),p=l*((a*this.zoom/2-o)/(a*this.zoom/2));this.targetPanX-=h,this.targetPanY-=l,this.targetPanX+=r,this.targetPanY+=p;for(var g=0;go?(this.actualPanX>-a&&(this.actualPanX=-a),this.actualPanXh?(this.actualPanY>-n&&(this.actualPanY=-n),this.actualPanY0&&(this.actualPanX=0),this.actualPanY>0&&(this.actualPanY=0),this.actualPanXh?(this.actualPanX>-n&&(this.actualPanX=-n),this.actualPanXl?(this.actualPanY>-o&&(this.actualPanY=-o),this.actualPanY0&&(this.actualPanX=0),this.actualPanY>0&&(this.actualPanY=0),this.actualPanXa?(this.targetPanX>-e&&(this.targetPanX=-e),this.targetPanXn?(this.targetPanY>-s&&(this.targetPanY=-s),this.targetPanY0&&(this.targetPanX=0),this.targetPanY>0&&(this.targetPanY=0),this.targetPanXc)&&(n=c,s(o,c)&&(n/=40)),s(o,c)&&(r/=40,g/=40,d/=40),r=Math[r>=1?"floor":"ceil"](r/n),g=Math[g>=1?"floor":"ceil"](g/n),d=Math[d>=1?"floor":"ceil"](d/n),p.settings.normalizeOffset&&this.getBoundingClientRect){var w=this.getBoundingClientRect();u=i.clientX-w.left,m=i.clientY-w.top}return i.deltaX=g,i.deltaY=d,i.deltaFactor=n,i.offsetX=u,i.offsetY=m,i.deltaMode=0,h.unshift(i,r,g,d),a&&clearTimeout(a),a=setTimeout(e,200),(t.event.dispatch||t.event.handle).apply(this,h)}}function e(){n=null}function s(t,i){return p.settings.adjustOldDeltas&&"mousewheel"===t.type&&i%120==0}var a,n,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var r=o.length;r;)t.event.fixHooks[o[--r]]=t.event.mouseHooks;var p=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=h.length;e;)this.addEventListener(h[--e],i,!1);else this.onmousewheel=i;t.data(this,"mousewheel-line-height",p.getLineHeight(this)),t.data(this,"mousewheel-page-height",p.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=h.length;e;)this.removeEventListener(h[--e],i,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(i){var e=t(i),s=e["offsetParent"in t.fn?"offsetParent":"parent"]();return s.length||(s=t("body")),parseInt(s.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(i){return t(i).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});