$(document).ready(function(){
    $(".menu ul li").hover(
        function () {
            $(this).find('ul').fadeIn("300");
        },
        function () {
            $(this).find('ul').fadeOut("200");
        });
});

function isset(variable_name) {
    try {
        if (typeof(eval(variable_name)) != 'undefined')
            if (eval(variable_name) != null)
                return true;
    } catch(e) { }
    return false;
}