$(window).load(function() {
 var e = $('#wrapper-background');
 var f =  $(window);
  if(e.height() < f.height()) {
	  $("#wrapper-background").css({ height : "100%" });
	  $("#footer").css({ position : "absolute", bottom : "0" });
  } else {
     $("#wrapper-background").css({ height : "auto" });
	 $("#footer").css({ position : "relative" });
}
});

$(window).resize(function() {
 var e = $('#wrapper-background');
 var f =  $(window);
  if(e.height() < f.height()) {
		//window.location.href = window.location.href;
	  $("#wrapper-background").css({ height : "100%" });
	  $("#footer").css({ position : "absolute", bottom : "0" });
  } else {
		//window.location.href = window.location.href;
     $("#wrapper-background").css({ height : "auto" });
	 $("#footer").css({ position : "relative" });
}
});
