(function(e,d,f){var g=e();e.fn.dropdownHover=function(h){g=g.add(this.parent());return this.each(function(){var n=e(this).parent(),m={delay:500,instantlyCloseOthers:true},l={delay:e(this).data("delay"),instantlyCloseOthers:e(this).data("close-others")},j=e.extend(true,{},m,h,l),k,i;n.hover(function(){if(b()){if(j.instantlyCloseOthers===true){g.removeClass("open")}d.clearTimeout(k);e(this).addClass("open")}},function(){if(b()){k=d.setTimeout(function(){n.removeClass("open")},j.delay)}});n.find(".dropdown-submenu").hover(function(){if(b()){d.clearTimeout(i)}e(this).children(".dropdown-menu").show()},function(){var o=e(this).children(".dropdown-menu");if(b()){i=d.setTimeout(function(){o.hide()},j.delay)}else{o.hide()}})})};var b=function(){return true};e(document).ready(function(){e('[data-hover="dropdown"]').dropdownHover();e('<div class="nav-collapse collapse" style="visibility:hidden;position:fixed" id="cwspear-is-awesome">.</div>').appendTo("body")});var a=".dropdown-submenu:hover>.dropdown-menu{display:none}";var c=document.createElement("style");c.type="text/css";if(c.styleSheet){c.styleSheet.cssText=a}else{c.appendChild(document.createTextNode(a))}e("head")[0].appendChild(c)})(jQuery,this);