$(document).ready(function(){function d(){if(b<a.width()){var c=a.width()-b+240;$("header").css({"margin-left":c+"px"});$("section").css({"margin-left":c+"px"});$("footer").css({"margin-left":c+"px"})}else{$("header").css({"margin-left":"240px"});$("section").css({"margin-left":"240px"});$("footer").css({"margin-left":"240px"})}}function c(){var b=a.width();var c=a.height();var d=$(window).width();var e=$(window).height();var f=d/b;var g=e/c;var h=g*b;var i=f*c;a.css({width:Math.round(h)+"px",height:e+"px"})}var a=$("#background-image");var b=a.width();c();d();$(window).resize(function(){c();d()})})
