/*! SmartMenus jQuery Plugin - v1.0.1 - March 1, 2025 * # * Copyright Vasil Dinkov, Vadikom Web Ltd. # Licensed MIT */(function(t){"function"==typeof define&&amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof exports?exports=t(require("jquery")):t(jQuery)})(function($){function initMouseDetection(t){var e=".smartmenus_mouse";if(mouseDetectionEnabled||t)mouseDetectionEnabled&&t&&($(document).unbind(e),mouseDetectionEnabled=!1);else{var i=!0,s=null;$(document).bind(getEventsNS([["mousemove",function(t){var e={x:pagex,y:pagey,timeStamp:(new Date).getTime()};if(s){var o=abs(s.x-e.x),a=abs(s.y-e.y);if((o>0||a>0)&&2>=o&&2>=a&&300>=timestamp&&(mouse=!0,i)){var n=$(target).closest("a");is("a")&&$.each(menuTrees,function(){return $.contains(this.$root[0],n[0])?(itementer({currentTarget:n[0]}),!1):void 0}),i=!1}}s=e}],[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut",function(t){isTouchEvent(originalevent)&&(mouse=!1)}]],e)),mouseDetectionEnabled=!0}}function isTouchEvent(t){return!/^(4|mouse)$/.test(pointertype)}function getEventsNS(t,e){e||(e="");var i={};return $.each(t,function(t,s){i[s[0].split(" ").join(e+" ")+e]=s[1]}),i}var menuTrees=[],IE=!!createpopup,mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=requestanimationframe||function(t){return setTimeout(t,1e3/60)},cancelAnimationFrame=cancelanimationframe||function(t){clearTimeout(t)};return $.SmartMenus=function(t,e){this.$root=$(t),opts=e,rootid="",accessidprefix="",this.$subArrow=null,activateditems=[],visiblesubmenus=[],showtimeout=0,hidetimeout=0,scrolltimeout=0,clickactivated=!1,focusactivated=!1,zindexinc=0,idinc=0,this.$firstLink=null,this.$firstSub=null,disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,csstransforms3d="perspective"in style||"webkitPerspective"in style,wascollapsible=!1,init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){menuhideall()})},destroy:function(){for(;length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(t){var e=this;if(!t){push(this),rootid=((new Date).getTime()+random()+"").replace(/\D/g,""),accessidprefix="sm-"+rootid+"-",this.$hasclass("sm-rtl")&&(righttoleftsubmenus=!0);var i=".smartmenus";this.$data("smartmenus",this).attr("data-smartmenus-id",rootid).dataSM("level",1).bind(getEventsNS([["mouseover focusin",$.proxy(rootover,this)],["mouseout focusout",$.proxy(rootout,this)],["keydown",$.proxy(rootkeydown,this)]],i)).delegate("a",getEventsNS([["mouseenter",$.proxy(itementer,this)],["mouseleave",$.proxy(itemleave,this)],["mousedown",$.proxy(itemdown,this)],["focus",$.proxy(itemfocus,this)],["blur",$.proxy(itemblur,this)],["click",$.proxy(itemclick,this)]],i)),i+=rootid,hideonclick&&$(document).bind(getEventsNS([["touchstart",$.proxy(doctouchstart,this)],["touchmove",$.proxy(doctouchmove,this)],["touchend",$.proxy(doctouchend,this)],["click",$.proxy(docclick,this)]],i)),$(window).bind(getEventsNS([["resize orientationchange",$.proxy(winresize,this)]],i)),subindicators&&(this.$subArrow=$("").addClass("sub-arrow"),subindicatorstext&&this.$html(subindicatorstext)),initMouseDetection()}if(this.$firstSub=this.$find("ul").each(function(){menuinit($(this))}).eq(0),this.$firstLink=this.$find("a").eq(0),markcurrentitem){var s=/(index|default)\.[^#\?\/]*/i,o=/#.*/,a=replace(s,""),n=replace(o,"");this.$find("a").each(function(){var t=replace(s,""),i=$(this);(t==a||t==n)&&(addclass("current"),markcurrenttree&&parentsuntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})}wascollapsible=iscollapsible()},destroy:function(t){if(!t){var e=".smartmenus";this.$removedata("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").unbind(e).undelegate(e),e+=rootid,$(document).unbind(e),$(window).unbind(e),subindicators&&(this.$subArrow=null)}menuhideall();var i=this;this.$find("ul").each(function(){var t=$(this);datasm("scroll-arrows")&&datasm("scroll-arrows").remove(),datasm("shown-before")&&((submenusminwidth||submenusmaxwidth)&&css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),datasm("scroll-arrows")&&datasm("scroll-arrows").remove(),css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(attr("id")||"").indexOf(accessidprefix)&&removeattr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("ie-shim").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$find("has-submenu").each(function(){var t=$(this);0==attr("id").indexOf(accessidprefix)&&removeattr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),subindicators&&this.$find("sub-arrow").remove(),markcurrentitem&&this.$find("current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$remove(),this.$disableOverlay=null),splice($.inArray(this,menuTrees),1))},disable:function(t){if(!disabled){if(menuhideall(),!t&&!ispopup&&this.$is(":visible")){var e=this.$offset();this.$disableOverlay=$('

').css({position:"absolute",top:top,left:left,width:this.$outerwidth(),height:this.$outerheight(),zIndex:getstartzindex(!0),opacity:0}).appendTo(body)}disabled=!0}},docClick:function(t){return this.$touchScrollingSub?(this.$touchScrollingSub=null,void 0):((length&&!$.contains(this.$root[0],target)||$(target).is("a"))&&menuhideall(),void 0)},docTouchEnd:function(){if(lasttouch){if(!(!length||void 0!==lasttouch.x2&&lasttouch.x1!=lasttouch.x2||void 0!==lasttouch.y2&&lasttouch.y1!=lasttouch.y2||target&&$.contains(this.$root[0],target))){hidetimeout&&(clearTimeout(hidetimeout),hidetimeout=0);var t=this;hidetimeout=setTimeout(function(){menuhideall()},350)}lasttouch=null}},docTouchMove:function(t){if(lasttouch){var e=touches[0];lasttouch.x2=pagex,lasttouch.y2=pagey}},docTouchStart:function(t){var e=touches[0];lasttouch={x1:pagex,y1:pagey,target:target}},enable:function(){disabled&&(this.$disableOverlay&&(this.$remove(),this.$disableOverlay=null),disabled=!1)},getClosestMenu:function(t){for(var e=$(t).closest("ul");datasm("in-mega");)e=parent().closest("ul");return e[0]||null},getHeight:function(t){return getoffset(t,!0)},getOffset:function(t,e){var i;"none"==css("display")&&(i={position:t[0]position,visibility:t[0]visibility},css({position:"absolute",visibility:"hidden"}).show());var s=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),o=s&&(e?height||top:width||left);return o||0===o||(o=e?t[0].offsetHeight:t[0].offsetWidth),i&&hide().css(i),o},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$css("z-index"))),isNaN(e)?1:e},getTouchPoint:function(t){return touches&&touches[0]||changedtouches&&changedtouches[0]||t},getViewport:function(t){var e=t?"Height":"Width",i=documentelement["client"+e],s=window["inner"+e];return s&&(i=min(i,s)),i},getViewportHeight:function(){return getviewport(!0)},getViewportWidth:function(){return getviewport()},getWidth:function(t){return getoffset(t)},handleEvents:function(){return!disabled&&iscsson()},handleItemEvents:function(t){return handleevents()&&!islinkinmegamenu(t)},isCollapsible:function(){return"static"==this.$css("position")},isCSSOn:function(){return"block"==this.$css("display")},isFixed:function(){var t="fixed"==this.$css("position");return t||this.$parentsuntil("body").each(function(){return"fixed"==$(this).css("position")?(t=!0,!1):void 0}),t},isLinkInMegaMenu:function(t){return $(getclosestmenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||nomouseover||iscollapsible()},itemActivate:function(t,e){var i=closest("ul"),s=datasm("level");if(s>1&&(!activateditems[s-2]||activateditems[s-2][0]!=datasm("parent-a")[0])){var o=this;$(parentsuntil("[data-smartmenus-id]","ul").get().reverse()).add(i).each(function(){itemactivate($(this).dataSM("parent-a"))})}if((!iscollapsible()||e)&&menuhidesubmenus(activateditems[s-1]&&activateditems[s-1][0]==t[0]?s:s-1),activateditems[s-1]=t,this.$triggerhandler("smapi",t[0])!==!1){var a=datasm("sub");a&&(istouchmode()||!showonclick||clickactivated)&&menushow(a)}},itemBlur:function(t){var e=$(currenttarget);handleitemevents(e)&&this.$triggerhandler("smapi",e[0])},itemClick:function(t){var e=$(currenttarget);if(handleitemevents(e)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==closest("ul")[0])return this.$touchScrollingSub=null,stoppropagation(),!1;if(this.$triggerhandler("smapi",e[0])===!1)return!1;var i=$(target).is("sub-arrow"),s=datasm("sub"),o=s?2==datasm("level"):!1;if(s&&!is(":visible")){if(showonclick&&o&&(clickactivated=!0),itemactivate(e),is(":visible"))return focusactivated=!0,!1}else if(iscollapsible()&&i)return itemactivate(e),menuhide(s),!1;return showonclick&&o||hasclass("disabled")||this.$triggerhandler("smapi",e[0])===!1?!1:void 0}},itemDown:function(t){var e=$(currenttarget);handleitemevents(e)&&datasm("mousedown",!0)},itemEnter:function(t){var e=$(currenttarget);if(handleitemevents(e)){if(!istouchmode()){showtimeout&&(clearTimeout(showtimeout),showtimeout=0);var i=this;showtimeout=setTimeout(function(){itemactivate(e)},showonclick&&1==closest("ul").dataSM("level")?1:showtimeout)}this.$triggerhandler("smapi",e[0])}},itemFocus:function(t){var e=$(currenttarget);handleitemevents(e)&&(!focusactivated||istouchmode()&&datasm("mousedown")||length&&activateditems[length-1][0]==e[0]||itemactivate(e,!0),this.$triggerhandler("smapi",e[0]))},itemLeave:function(t){var e=$(currenttarget);handleitemevents(e)&&(istouchmode()||(e[0].blur(),showtimeout&&(clearTimeout(showtimeout),showtimeout=0)),removedatasm("mousedown"),this.$triggerhandler("smapi",e[0]))},menuHide:function(t){if(this.$triggerhandler("smapi",t[0])!==!1&&(stop(!0,!0),"none"!=css("display"))){var e=function(){css("z-index","")};iscollapsible()?collapsiblehidefunction?call(this,t,e):hide(collapsiblehideduration,e):hidefunction?call(this,t,e):hide(hideduration,e),datasm("ie-shim")&&datasm("ie-shim").remove().css({"-webkit-transform":"",transform:""}),datasm("scroll")&&(menuscrollstop(t),css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).unbind(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),datasm("parent-a").removeClass("highlighted").attr("aria-expanded","false"),attr({"aria-expanded":"false","aria-hidden":"true"});var i=datasm("level");splice(i-1,1),splice($.inArray(t,visiblesubmenus),1),this.$triggerhandler("smapi",t[0])}},menuHideAll:function(){showtimeout&&(clearTimeout(showtimeout),showtimeout=0);for(var t=ispopup?1:0,e=length-1;e>=t;e--)menuhide(visiblesubmenus[e]);ispopup&&(this.$stop(!0,!0),this.$is(":visible")&&(hidefunction?call(this,this.$root):this.$hide(hideduration),this.$datasm("ie-shim")&&this.$datasm("ie-shim").remove())),activateditems=[],visiblesubmenus=[],clickactivated=!1,focusactivated=!1,zindexinc=0,this.$triggerhandler("smapi")},menuHideSubMenus:function(t){for(var e=length-1;e>=t;e--){var i=activateditems[e].dataSM("sub");i&&menuhide(i)}},menuIframeShim:function(t){IE&&overlapcontrolsinie&&!datasm("ie-shim")&&datasm("ie-shim",$("").attr({src:"javascript:0",tabindex:-9}).css({position:"absolute",top:"auto",left:"0",opacity:0,border:"0"}))},menuInit:function(t){if(!datasm("in-mega")){hasclass("mega-menu")&&find("ul").dataSM("in-mega",!0);for(var e=2,i=t[0];(i=parentnode)!=this.$root[0];)e++;var s=prevall("a").eq(-1);length||(s=prevall().find("a").eq(-1)),addclass("has-submenu").dataSM("sub",t),datasm("parent-a",s).dataSM("level",e).parent().dataSM("sub",t);var o=attr("id")||accessidprefix+ ++idinc,a=attr("id")||accessidprefix+ ++idinc;attr({id:o,"aria-haspopup":"true","aria-controls":a,"aria-expanded":"false"}),attr({id:a,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),subindicators&&s[subindicatorspos](this.$clone())}},menuPosition:function(t){var e,i,s=datasm("parent-a"),o=closest("li"),a=parent(),n=datasm("level"),r=getwidth(t),h=getheight(t),u=offset(),l=left,c=top,d=getwidth(s),m=getheight(s),p=$(window),f=scrollleft(),v=scrolltop(),S=getviewportwidth(),b=getviewportheight(),g=parent().is("[data-sm-horizontal-sub]")||2==n&&!hasclass("sm-vertical"),M=righttoleftsubmenus&&!is("[data-sm-reverse]")||!righttoleftsubmenus&&is("[data-sm-reverse]"),w=2==n?mainmenusuboffsetx:submenussuboffsetx,T=2==n?mainmenusuboffsety:submenussuboffsety;if(g?(e=M?d-r-w:w,i=bottomtotopsubmenus?-h-T:m+T):(e=M?w-r:d-w,i=bottomtotopsubmenus?m-T-h:T),keepinviewport){var y=l+e,I=c+i;if(M&&f>y?e=g?f-y+e:d-w:!M&&y+r>f+S&&(e=g?f+S-r-y+e:w-r),g||(b>h&&I+h>v+b?i+=v+b-h-I:(h>=b||v>I)&&(i+=v-I)),g&&(I+h>v+b+.49||v>I)||!g&&h>b+.49){var x=this;datasm("scroll-arrows")||datasm("scroll-arrows",$([$('')[0],$('')[0]]).bind({mouseenter:function(){datasm("scroll").up=$(this).hasClass("scroll-up"),menuscroll(t)},mouseleave:function(e){menuscrollstop(t),menuscrollout(t,e)},"mousewheel DOMMouseScroll":function(t){preventdefault()}}).insertAfter(t));var C=".smartmenus_scroll";datasm("scroll",{y:csstransforms3d?0:i-m,step:1,itemH:m,subH:h,arrowDownH:getheight(datasm("scroll-arrows").eq(1))}).bind(getEventsNS([["mouseover",function(e){menuscrollover(t,e)}],["mouseout",function(e){menuscrollout(t,e)}],["mousewheel DOMMouseScroll",function(e){menuscrollmousewheel(t,e)}]],C)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:e+(parseInt(css("border-left-width"))||0),width:r-(parseInt(css("border-left-width"))||0)-(parseInt(css("border-right-width"))||0),zIndex:css("z-index")}).eq(g&&bottomtotopsubmenus?0:1).show(),isfixed()&&css({"touch-action":"none","-ms-touch-action":"none"}).bind(getEventsNS([[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp",function(e){menuscrolltouch(t,e)}]],C))}}css({top:"auto",left:"0",marginLeft:e,marginTop:i-m}),menuiframeshim(t),datasm("ie-shim")&&datasm("ie-shim").css({zIndex:css("z-index"),width:r,height:h,marginLeft:e,marginTop:i-m})},menuScroll:function(t,e,i){var s,o=datasm("scroll"),a=datasm("scroll-arrows"),n=up?upend:downend;if(!e&&momentum){if(momentum*=.92,s=momentum,.5>s)return menuscrollstop(t),void 0}else s=i||(e||!scrollaccelerate?scrollstep:floor(step));var r=datasm("level");if(activateditems[r-1]&&activateditems[r-1].dataSM("sub")&&activateditems[r-1].dataSM("sub").is(":visible")&&menuhidesubmenus(r-1),o.y=up&&o.y>=n||!up&&n>=o.y?o.y:abs(n-o.y)>s?o.y+(up?s:-s):n,add(datasm("ie-shim")).css(csstransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(up&&o.y>downend||!up&&o.y0;datasm("scroll-arrows").eq(i?0:1).is(":visible")&&(datasm("scroll").up=i,menuscroll(t,!0))}preventdefault()},menuScrollOut:function(t,e){mouse&&(/^scroll-(up|down)/.test((relatedtarget||"").className)||(t[0]==relatedtarget||$.contains(t[0],relatedtarget))&&getclosestmenu(relatedtarget)==t[0]||datasm("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(t,e){if(mouse&&!/^scroll-(up|down)/.test(classname)&&getclosestmenu(target)==t[0]){menuscrollrefreshdata(t);var i=datasm("scroll"),s=$(window).scrollTop()datasm("parent-a").offset()itemh;datasm("scroll-arrows").eq(0).css("margin-top",s).end().eq(1).css("margin-top",s+getviewportheight()arrowdownh).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var e=datasm("scroll"),i=$(window).scrollTop()datasm("parent-a").offset()itemh;csstransforms3d&&(i=-(parseFloat(css("margin-top"))-i)),$.extend(e,{upEnd:i,downEnd:i+getviewportheight()subh})},menuScrollStop:function(t){return scrolltimeout?(cancelAnimationFrame(scrolltimeout),scrolltimeout=0,datasm("scroll").step=1,!0):void 0},menuScrollTouch:function(t,e){if(e=originalevent,isTouchEvent(e)){var i=gettouchpoint(e);if(getclosestmenu(target)==t[0]){var s=datasm("scroll");if(/(start|down)$/test(type))menuscrollstop(t)?(preventdefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,menuscrollrefreshdata(t),$.extend(s,{touchStartY:pagey,touchStartTime:timestamp});else if(/move$/test(type)){var o=void 0!==touchy?touchy:touchstarty;if(void 0!==o&&o!=pagey){this.$touchScrollingSub=t;var a=pagey>o;void 0!==up&&up!=a&&$.extend(s,{touchStartY:pagey,touchStartTime:timestamp}),$.extend(s,{up:a,touchY:pagey}),menuscroll(t,!0,abs(pagey-o))}preventdefault()}else void 0!==touchy&&((momentum=15*pow(abs(touchstarty)/(touchstarttime),2))&&(menuscrollstop(t),menuscroll(t),preventdefault()),delete touchy)}}},menuShow:function(t){if((datasm("beforefirstshowfired")||(datasm("beforefirstshowfired",!0),this.$triggerhandler("smapi",t[0])!==!1))&&this.$triggerhandler("smapi",t[0])!==!1&&(datasm("shown-before",!0).stop(!0,!0),!is(":visible"))){var e=datasm("parent-a");if((keephighlighted||iscollapsible())&&addclass("highlighted"),iscollapsible())removeclass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(css("z-index",zindexinc=(zindexinc||getstartzindex())+1),(submenusminwidth||submenusmaxwidth)&&(css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),submenusminwidth&&css("min-width",submenusminwidth),submenusmaxwidth)){var i=getwidth(t);css("max-width",submenusmaxwidth),i>getwidth(t)&&removeclass("sm-nowrap").css("width",submenusmaxwidth)}menuposition(t),datasm("ie-shim")&&datasm("ie-shim").insertBefore(t)}var s=function(){css("overflow","")};iscollapsible()?collapsibleshowfunction?call(this,t,s):show(collapsibleshowduration,s):showfunction?call(this,t,s):show(showduration,s),attr("aria-expanded","true"),attr({"aria-expanded":"true","aria-hidden":"false"}),push(t),this.$triggerhandler("smapi",t[0])}},popupHide:function(t){hidetimeout&&(clearTimeout(hidetimeout),hidetimeout=0);var e=this;hidetimeout=setTimeout(function(){menuhideall()},t?1:hidetimeout)},popupShow:function(t,e){if(!ispopup)return alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'),void 0;if(hidetimeout&&(clearTimeout(hidetimeout),hidetimeout=0),this.$datasm("shown-before",!0).stop(!0,!0),!this.$is(":visible")){this.$css({left:t,top:e}),menuiframeshim(this.$root),this.$datasm("ie-shim")&&this.$datasm("ie-shim").css({zIndex:this.$css("z-index"),width:getwidth(this.$root),height:getheight(this.$root),left:t,top:e}).insertBefore(this.$root);var i=this,s=function(){i.$css("overflow","")};showfunction?call(this,this.$root,s):this.$show(showduration,s),visiblesubmenus[0]=this.$root}},refresh:function(){destroy(!0),init(!0)},rootKeyDown:function(t){if(handleevents())switch(keycode){case 27:var e=activateditems[0];if(e){menuhideall(),e[0].focus();var i=datasm("sub");i&&menuhide(i)}break;case 32:var s=$(target);if(is("a")&&handleitemevents(s)){var i=datasm("sub");i&&!is(":visible")&&(itemclick({currentTarget:target}),preventdefault())}}},rootOut:function(t){if(handleevents()&&!istouchmode()&&target!=this.$root[0]&&(hidetimeout&&(clearTimeout(hidetimeout),hidetimeout=0),!showonclick||!hideonclick)){var e=this;hidetimeout=setTimeout(function(){menuhideall()},hidetimeout)}},rootOver:function(t){handleevents()&&!istouchmode()&&target!=this.$root[0]&&hidetimeout&&(clearTimeout(hidetimeout),hidetimeout=0)},winResize:function(t){if(handleevents()){if(!("onorientationchange"in window)||"orientationchange"==type){var e=iscollapsible();wascollapsible&&e||(length&&activateditems[length-1][0].blur(),menuhideall()),wascollapsible=e}}else if(this.$disableOverlay){var i=this.$offset();this.$css({top:top,left:left,width:this.$outerwidth(),height:this.$outerheight()})}}}}),$datasm=function(t,e){return e?data(t+"_smartmenus",e):data(t+"_smartmenus")},$removedatasm=function(t){return removedata(t+"_smartmenus")},$smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return call(args),each(function(){var t=$(this).data("smartmenus");t&&t[method]&&t[method].apply(t,args)})}var dataOpts=data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}return each(function(){new $.SmartMenus(this,$.extend({},$defaults,options,dataOpts))})},$defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"prepend",subIndicatorsText:"+",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,e){fadeout(200,e)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,e){slidedown(200,e)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,e){slideup(200,e)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,overlapControlsInIE:!0},$});