$(document).ready(function() { 
	  var $winheight = $(window).height();
//	  var $footerheight = $("#footer").height();
	 $columnheight = $winheight - 50;
	$("#mainColumn").css({ height:$columnheight });
});

$(window).load(function() {
	  var $winwidth = $(window).width();
//	  var $imagewidth = $("#bg-image-wrapper img").width();
	 $newpos = $winwidth - 2000;
	 $finalpos = $newpos / 2;
	$("#bg-image-wrapper").css({ position:"fixed", top:"0px", left: $finalpos });
	$("#bg-image-wrapper img").fadeIn(1000);
});

$(window).bind("resize", function() { 
	  var $winwidth = $(window).width();
	  var $winheight = $(window).height();
//	  var $imagewidth = $("#bg-image-wrapper img").width();
//	  var $footerheight = $("#footer").height();
	 $newpos = $winwidth - 2000;
	 $finalpos = $newpos / 2;
	 
	 $columnheight = $winheight - 50;
	 
	$("#bg-image-wrapper").css({ position:"fixed", top:"0", left: $finalpos });
	$("#mainColumn").css({ height:$columnheight });
});