$(document).ready(function(){$("#nav").nmcDropDown({show:{height:"show",opacity:"show"}});$("#sidebarNav").nmcDropDown({trigger:"click",submenu_selector:"p",show:{height:"show"},hide:{height:"hide"}})});(function(b){b.fn.nmcDropDown=function(a){var d=b.extend({},b.fn.nmcDropDown.defaults,a);return this.each(function(){menu=b(this);submenus=menu.children("li:has("+d.submenu_selector+")");if(d.fix_IE){menu.css("z-index",51).parents().each(function(c){if(b(this).css("position")=="relative"){b(this).css("z-index",(c+52))}});submenus.children(d.submenu_selector).css("z-index",50)}over=function(){b(this).addClass(d.active_class).children(d.submenu_selector).animate(d.show,d.show_speed);return false};out=function(){b(this).removeClass(d.active_class).children(d.submenu_selector).animate(d.hide,d.hide_speed);return false};if(d.trigger=="click"){submenus.toggle(over,out).children(d.submenu_selector).hide()}else{if(b().hoverIntent){submenus.hoverIntent({interval:d.show_delay,over:over,timeout:d.hide_delay,out:out}).children(d.submenu_selector).hide()}else{submenus.hover(over,out).children(d.submenu_selector).hide()}}})};b.fn.nmcDropDown.defaults={trigger:"hover",active_class:"open",submenu_selector:"ul",show:{opacity:"show"},show_speed:300,show_delay:50,hide:{opacity:"hide"},hide_speed:200,hide_delay:100,fix_IE:true}})(jQuery);(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);
