$(document).ready(function() {

	
	
	// set and adjust background
	
	$("img.bgImage").attr({
		width: getDocWidth()
	});
	
	$(window).bind("resize", function(){
		$("img.bgImage").attr({
			width: getDocWidth()
		});
	});
	
});





/**
 * get document height, NOT including scroll
 * 
 * @return int
 */
function getDocHeight() {
	return $(window).height() + parseInt($(this).scrollTop());
}



/**
 * get document width, including scroll
 * 
 * @return int
 */
function getDocWidth() {
	return $(window).width() + parseInt($(this).scrollLeft());
}
