(function(B){B.fn.apdropmenu=function(H){var E=B.fn.apdropmenu,G=E.c,F=function(){var I=B(this),J=C(I);clearTimeout(J.sfTimer);I.showapdropmenuUl().siblings().hideapdropmenuUl()},D=function(){var I=B(this),K=C(I),J=E.op;clearTimeout(K.sfTimer);K.sfTimer=setTimeout(function(){J.retainPath=(B.inArray(I[0],J.$path)>-1);I.hideapdropmenuUl();if(J.$path.length&&I.parents(["li.",J.hoverClass].join("")).length<1){F.call(J.$path)}},J.delay)},C=function(I){var J=I.parents(["ul.",G.menuClass,":first"].join(""))[0];E.op=E.o[J.serial];return J};return this.each(function(){var I=this.serial=E.o.length;var K=B.extend({},E.defaults,H);K.$path=B("li."+K.pathClass,this).slice(0,K.pathLevels).each(function(){B(this).addClass([K.hoverClass,G.bcClass].join(" ")).filter("li:has(ul)").removeClass(K.pathClass)});E.o[I]=E.op=K;B("li:has(ul)",this)[(B.fn.hoverIntent&&!K.disableHI)?"hoverIntent":"hover"](F,D).each(function(){}).not("."+G.bcClass).hideapdropmenuUl();var J=B("a",this);J.each(function(L){var M=J.eq(L).parents("li");J.eq(L).focus(function(){F.call(M)}).blur(function(){D.call(M)})});K.onInit.call(this)}).each(function(){var I=[G.menuClass];if(E.op.dropShadows&&!(B.browser.msie&&B.browser.version<7)){I.push(G.shadowClass)}B(this).addClass(I.join(" "))})};var A=B.fn.apdropmenu;A.o=[];A.op={};A.IE7fix=function(){var C=A.op;if(B.browser.msie&&B.browser.version>6&&C.dropShadows&&C.animation.opacity!=undefined){this.toggleClass(A.c.shadowClass+"-off")}};A.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};A.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",dropShadows:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};B.fn.extend({hideapdropmenuUl:function(){var E=A.op,D=(E.retainPath===true)?E.$path:"";E.retainPath=false;var C=B(["li.",E.hoverClass].join(""),this).add(this).not(D).removeClass(E.hoverClass).find(">ul").hide().css("visibility","hidden");E.onHide.call(C);return this},showapdropmenuUl:function(){var E=A.op,D=A.c.shadowClass+"-off",C=this.addClass(E.hoverClass).find(">ul:hidden").css("visibility","visible");A.IE7fix.call(C);E.onBeforeShow.call(C);C.animate(E.animation,E.speed,function(){A.IE7fix.call(C);E.onShow.call(C)});return this}})})(jQuery);
