$(document).ready(function() {
        $('li.hasChildren').hover(function() {
            $(this).find('ul').toggle();
        })
})

