(function(A){A.fn.hoverIntent=function(I,J){var C={sensitivity:7,interval:100,timeout:0};C=A.extend(C,J?{over:I,out:J}:I);var B,E,D,F;var K=function(M){B=M.pageX;E=M.pageY};var G=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);if((Math.abs(D-B)+Math.abs(F-E))<C.sensitivity){A(N).unbind("mousemove",K);N.hoverIntent_s=1;return C.over.apply(N,[M])}else{D=B;F=E;N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}};var H=function(M,N){N.hoverIntent_t=clearTimeout(N.hoverIntent_t);N.hoverIntent_s=0;return C.out.apply(N,[M])};var L=function(O){var M=jQuery.extend({},O);var N=this;if(N.hoverIntent_t){N.hoverIntent_t=clearTimeout(N.hoverIntent_t)}if(O.type=="mouseenter"){D=M.pageX;F=M.pageY;A(N).bind("mousemove",K);if(N.hoverIntent_s!=1){N.hoverIntent_t=setTimeout(function(){G(M,N)},C.interval)}}else{A(N).unbind("mousemove",K);if(N.hoverIntent_s==1){N.hoverIntent_t=setTimeout(function(){H(M,N)},C.timeout)}}};return this.bind("mouseenter",L).bind("mouseleave",L)}})(jQuery);(function(A){A.fn.superfish=function(F){var G=A.fn.superfish,D=G.c,H=A(['<span class="',D.arrowClass,'"> &#187;</span>'].join("")),I=function(){var L=A(this),K=C(L);clearTimeout(K.sfTimer);L.showSuperfishUl().siblings().hideSuperfishUl()},E=function(){var M=A(this),L=C(M),K=G.op;clearTimeout(L.sfTimer);L.sfTimer=setTimeout(function(){K.retainPath=(A.inArray(M[0],K.$path)>-1);M.hideSuperfishUl();if(K.$path.length&&M.parents(["li.",K.hoverClass].join("")).length<1){I.call(K.$path)}},K.delay)},C=function(L){var K=L.parents(["ul.",D.menuClass,":first"].join(""))[0];G.op=G.o[K.serial];return K},J=function(K){K.addClass(D.anchorClass).append(H.clone())};return this.each(function(){var K=this.serial=G.o.length;var L=A.extend({},G.defaults,F);L.$path=A("li."+L.pathClass,this).slice(0,L.pathLevels).each(function(){A(this).addClass([L.hoverClass,D.bcClass].join(" ")).filter("li:has(ul)").removeClass(L.pathClass)});G.o[K]=G.op=L;A("li:has(ul)",this)[(A.fn.hoverIntent&&!L.disableHI)?"hoverIntent":"hover"](I,E).each(function(){if(L.autoArrows){J(A(">a:first-child",this))}}).not("."+D.bcClass).hideSuperfishUl();var M=A("a",this);M.each(function(O){var N=M.eq(O).parents("li");M.eq(O).focus(function(){I.call(N)}).blur(function(){E.call(N)})});L.onInit.call(this)}).each(function(){var K=[D.menuClass];if(G.op.dropShadows&&!(A.browser.msie&&A.browser.version<7)){K.push(D.shadowClass)}A(this).addClass(K.join(" "))})};var B=A.fn.superfish;B.o=[];B.op={};B.IE7fix=function(){var C=B.op;if(A.browser.msie&&A.browser.version>6&&C.dropShadows&&C.animation.opacity!=undefined){this.toggleClass(B.c.shadowClass+"-off")}};B.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};B.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};A.fn.extend({hideSuperfishUl:function(){var D=B.op,C=(D.retainPath===true)?D.$path:"";D.retainPath=false;var E=A(["li.",D.hoverClass].join(""),this).add(this).not(C).removeClass(D.hoverClass).find(">ul").hide().css("visibility","hidden");D.onHide.call(E);return this},showSuperfishUl:function(){var D=B.op,E=B.c.shadowClass+"-off",C=this.addClass(D.hoverClass).find(">ul:hidden").css("visibility","visible");B.IE7fix.call(C);D.onBeforeShow.call(C);C.animate(D.animation,D.speed,function(){B.IE7fix.call(C);D.onShow.call(C)});return this}})})(jQuery);
