function doOnload() {
	findDimensions ();
}

function findDimensions () {
	var x,y;
	
	if (self.innerHeight) {
		x = self.innerWidth;
		y = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) {
		// Explorer 6 Strict Mode
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	} else if (document.body) { 
		// other Explorers
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	
	var iwidth=1155;
	var iheight=740;
	var modX = x/iwidth;
	var modY = y/iheight;
	
	if (modX>modY) {
		iwidth=(iwidth*modX);
		iheight=(iheight*modX);
	} else {
		iwidth=(iwidth*modY);
		iheight=(iheight*modY);
	}
	
	document.getElementById ("bgImage").setAttribute("width",iwidth);
	document.getElementById ("bgImage").setAttribute("height",iheight);
}
