$(document).ready( function() {
    $("#nav ul ul li ul").hide();
    $("#nav ul ul li").mouseover( function() {
        $("ul", this).show();
    }).mouseout(function() {
        $("ul", this).hide();
    });
});
