$(document).ready(function(){
    $("#menu ul").css('display', 'none').addClass('submenu');
    $("#menu li:has(ul)").addClass('celho');
    
    $("#menu li").hover(function(){
        $("ul", this).fadeIn(400);
        $(this).addClass('over');
    }, function(){
        $("ul", this).fadeOut(600);
        $(this).removeClass('over');
    });
    $('#sellingua').hover(function(){
        $(this).animate({
            width: "126px"
        }, {
            queue: false,
            duration: 300
        });
    }, function(){
        $(this).animate({
            width: "86px"
        }, {
            queue: false,
            duration: 500
        });
    });
    $('#slais').flash({
        swf: 'slideshow.swf',
        height: 500,
        width: 960,
        params: {
            wmode: 'transparent',
            allowFullScreen: 'true'
        }
    });
    $('#emhome').flash({
        swf: 'anno_dominibis.swf',
        height: 408,
        width: 960,
        params: {
            wmode: 'transparent'
        }
    });
    
    $('#fla_filosofia').flash({
        swf: 'emo.swf',
        height: 408,
        width: 960,
        params: {
            wmode: 'transparent'
        },
        flashvars: {
            pagina_attiva: 'filosofia',
            lingua: 'ita'
        }
    });
    $('.emailinput').css('display', 'none');
});
