$(document).ready(function() {
    //var height_about = $(".about").height();
    //var height_articles = $(".articles").height();
    //var height_picture = $(".picture").height();
    //var height_movies = $(".movies").height();
    var height_services = $(".services").height();
    //var height_contact = $(".contact").height();
    //var height_come = $(".come").height();

    $(".about").css('height', '50px');
    $(".articles").css('height', '50px');
    $(".picture").css('height', '50px');
    $(".movies").css('height', '50px');
    $(".services").css('height', '50px');
    $(".contact").css('height', '50px');
    $(".come").css('height', '50px');
    //Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/

    //Remove outline from links
    $("a").click(function() {
        $(this).blur();
    });

    //When mouse rolls over
    $("#menu li").mouseover(function() {

        var s_high = "height_" + $(this).attr('class');
        var high = 0;
        switch (s_high) {
            case 'height_about': high = 50; break; //height_about + 30; break;
            case 'height_articles': high = 50; break;// height_articles + 30; break;
            case 'height_picture': high = 50; break;// height_picture + 30; break;
            case 'height_movies': high = 50; break;// height_movies + 30; break;
            case 'height_services': high = height_services + 30; break;
            case 'height_contact': high = 50; break; //height_contact + 30; break;
            case 'height_come': high = 50; break;// height_come + 30; break;
        }
        //if (high < 150)
          //  high = 150;
        $(this).stop().animate({ height: high }, { queue: false, duration: 600, easing: 'easeOutBounce' })
    });

    //When mouse is removed
    $("#menu li").mouseout(function() {
        $(this).stop().animate({ height: '45px' }, { queue: false, duration: 600, easing: 'easeOutBounce' })
    });

});
