$(function(){
    //expand header
    $('#btn_more').click(function(){
        var quotes = $('.quotesContainer');
        if(quotes.hasClass('active')){

            quotes.animate({height: '320px'}, 1500).removeClass('active');
            $(this).css({background : "transparent url(images/btn_more-trans.png) no-repeat 0 0"});
        } else {
            $('.header').css({height : '100%'});
            quotes.animate({height: '660px'}, 1500).addClass('active');
            $(this).css({background : "transparent url(images/btn_less-trans.png) no-repeat 0 0"});
        }
    });
    $(window).bind("load", resizeWindow);
    $(window).bind("resize", resizeWindow);
});

function resizeWindow(e){
    var width = document.body.clientWidth || window.innerWidth;
    if(width < 1085)
        $('.logo').css({display: 'none'});
    else
        $('.logo').css({display: 'block'});
}