﻿$(document).ready(function()
{
    var config = 
    {    
        sensitivity: 5,
        interval: 75,
        over: showSubMenu,
        timeout: 500,
        out: hideSubMenu
    };
    
    $("ul.menuItems li").hoverIntent( config );

    function showSubMenu() 
    {
        $(this).children(".level1").addClass("hover");       
        $(this).children("ul").slideDown(250);
    };
    
    function hideSubMenu() 
    {
        $(this).children(".level1").removeClass("hover");        
        $(this).children("ul").fadeOut(500);
    };
    
});
