/*! * hoverIntent v1.8.0 // 2014.06.29 // jQuery v1.9.1+ * http://cherne.net/brian/resources/jquery.hoverIntent.html * * You may use hoverIntent under the terms of the MIT license. Basically that * means you are free to use hoverIntent as long as this header is left intact. * Copyright 2007, 2014 Brian Cherne */ (function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:6,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.sqrt((o-f)*(o-f)+(s-e)*(s-e))t?i+t:t}function a(n,t){return Math.round((/%/.test(n)?("x"===t?g.width():ni())/100:1)*parseInt(n,10))}function vi(n,t){return n.get("photo")||n.get("photoRegex").test(t)}function yi(n,t){return n.get("retinaUrl")&&i.devicePixelRatio>1?t.replace(n.get("photoRegex"),n.get("retinaSuffix")):t}function pi(n){"contains"in u[0]&&!u[0].contains(n.target)&&n.target!==d[0]&&(n.stopPropagation(),u.focus())}function ot(n){ot.str!==n&&(u.add(d).removeClass(ot.str).addClass(n),ot.str=n)}function di(t){v=0;t&&t!==!1&&"nofollow"!==t?(c=n("."+et).filter(function(){var i=n.data(this,p),r=new vt(this,i);return r.get("rel")===t}),v=c.index(r.el),-1===v&&(c=c.add(r.el),v=c.length-1)):c=n(r.el)}function rt(i){n(t).trigger(i);k.triggerHandler(i)}function pt(i){var e,f;if(!at){if(e=n(i).data(p),r=new vt(i,e),di(r.get("rel")),!it){it=lt=!0;ot(r.get("className"));u.css({visibility:"hidden",display:"block",opacity:""});l=o(h,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");y.css({width:"",height:""}).append(l);w=ti.height()+ui.height()+y.outerHeight(!0)-y.height();b=ii.width()+ri.width()+y.outerWidth(!0)-y.width();nt=l.outerHeight(!0);tt=l.outerWidth(!0);var c=a(r.get("initialWidth"),"x"),v=a(r.get("initialHeight"),"y"),g=r.get("maxWidth"),ut=r.get("maxHeight");r.w=Math.max((g!==!1?Math.min(c,a(g,"x")):c)-tt-b,0);r.h=Math.max((ut!==!1?Math.min(v,a(ut,"y")):v)-nt-w,0);l.css({width:"",height:r.h});s.position();rt(tr);r.get("onOpen");oi.add(fi).hide();u.focus();r.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",pi,!0),k.one(li,function(){t.removeEventListener("focus",pi,!0)}));r.get("returnFocus")&&k.one(li,function(){n(r.el).focus()})}f=parseFloat(r.get("opacity"));d.css({opacity:f===f?f:"",cursor:r.get("overlayClose")?"pointer":"",visibility:"visible"}).show();r.get("closeButton")?bt.html(r.get("close")).appendTo(y):bt.appendTo("
");nr()}}function wi(){u||(si=!1,g=n(i),u=o(h).attr({id:p,"class":n.support.opacity===!1?e+"IE":"",role:"dialog",tabindex:"-1"}).hide(),d=o(h,"Overlay").hide(),wt=n([o(h,"LoadingOverlay")[0],o(h,"LoadingGraphic")[0]]),ut=o(h,"Wrapper"),y=o(h,"Content").append(fi=o(h,"Title"),ei=o(h,"Current"),ct=n('