// #####################################################################
    
    // ADJUST VARIOUS BG SIZES
    function adjustBgSize() {
        // MIN WIDTH
        var minWidth = 960;
        
        // BG IMAGE
        var bgImage = $('#background img:first');
        
        // WINDOW RATIO
        var winRatio = $(window).width()/$(window).height();
        var imgRatio = (bgImage.width()/bgImage.height());
        
        // ADJUST WIDTH + HEIGHT
        if (winRatio > imgRatio) {
        	//if ($(window).width() > minWidth) {
            	bgImage.css('width', $(window).width() + 'px');
            	bgImage.css('height', $(window).width()/imgRatio + 'px');
            	bgImage.css('top', (($(window).height() - bgImage.height())/2) +'px');
            	bgImage.css('left', '0px');
            //}
        } else {
        	//if ($(window).width() > minWidth) {
            	bgImage.css('height', $(window).height() + 'px');
            	bgImage.css('width', $(window).height()*imgRatio + 'px');
            	bgImage.css('left', (($(window).width() - bgImage.width())/2) +'px');
            	bgImage.css('top', '0px');
            //}
        }
        
    }
    jQuery(window).resize(function() {
        adjustBgSize();
    });
    jQuery(window).load(function() {
        adjustBgSize();
        $('#background img:first').fadeIn(500);
    });
        
    // #####################################################################




