// With thanks to http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/

// JavaScript Document
    $(document).ready(function() {
      
      function addMega(){
        $(this).addClass("hovering");
        }

      function removeMega(){
        $(this).removeClass("hovering");
        }

//  megaConfig controls the delay before the dropdown appears (interval) as well as the timeout for when the dropdown disappears
//  Units are in milliseconds
//  Refer to hoverIntent documentation, http://plugins.jquery.com/project/hoverIntent, for more information

    var megaConfig = {
         interval: 200,
         sensitivity: 4,
         over: addMega,
         timeout: 500,
         out: removeMega
    };

    $("li.mega").hoverIntent(megaConfig)

      
    });
