$(document).ready(
    function() {
        $('.hasSub').hover(
            function() { 
                $(this).find('div').show(); }, 
                function() { 
                    $(this).find('div').hide() 
                }
            );
    }
);

