").after(""),f.find("img").length?f.find("img").one("load",function(){setTimeout(function(){f.find("img").addClass("loaded").trigger("mousemove",1)},1)}).each(function(){this.complete&&c(this).load()}):setTimeout(function(){f.trigger("mousemove",1)},1),f.parents(".img-pan-container").on("mousemove touchmove MSPointerMove pointermove",function(e,n){var t=c(this);e.preventDefault();var i=t.height(),o=t.width(),r=-1!==e.type.indexOf("touch"),a=-1!==e.type.indexOf("pointer")?e.originalEvent:r?e.originalEvent.touches[0]||e.originalEvent.changedTouches[0]:e,m=[n?0:a.pageY-t.offset().top,n?0:a.pageX-t.offset().left];u=[Math.round((f.outerHeight(!0)-i)*(m[0]/i)),Math.round((f.outerWidth(!0)-o)*(m[1]/o))]}).find(".resize iframe").each(function(){c(this.contentWindow||this).on("resize",function(){f.trigger("mousemove",1)})}),e&&clearInterval(e),e=setInterval(function(){_tweenTo(f[0],"top",-u[0],5e3),_tweenTo(f[0],"left",-u[1],5e3)},16.6))})},c(document).ready(function(){c(".map-content .img-wrapper").imagePanning()})}(jQuery)