$(document).ready(function(){

    $('#quick_find').load('quick_find.php');

    $("a.c_nav").hover(
        
        function () {
            var $element = $(this);
            $element.addClass('hovered');
            setTimeout( function() {
                if ($element.hasClass('hovered')) {
                    $element.stop(true).next('div.child_n').slideDown(500);
                }
            }, 500 );
            
        },
        function () {
            $(this).removeClass('hovered');
        }
        );

    $("div.c_nav").hover(

        function () {

        },
        function () {
            
            $(this).stop(true).find('.child_n').not('.activePage').slideUp(750);
        }
        );

    for(x in grandFather){
        $(window).unfoldNav(grandFather[x]);
    }
});
