App = {
    init: function() {
        var height = $(window).height() > $(document).height() ? $(window).height() : $(document).height();
        height = height - $('.menu .bottom').height();
        $('.menu').css('height', height+'px').css('padding-bottom', $('.menu .bottom').height() + 'px');
        $('.menu .bottom').css('bottom','0px').css('left', '0px');
    }
};
$(window).load(function(){
    App.init();
});
$(window).resize(function(){
    App.init();
});

$(document).ready(function(){

    $("img.a").hover(
        function() {
            $(this).stop().animate({
                "opacity": "0"
            }, "slow");
        },
        function() {
            $(this).stop().animate({
                "opacity": "1"
            }, "slow");
        });

});


