var BkgAspectRatio = 1025 / 750;

function FixBkgImage () {
	var w = 0;
	var h = 0;
	
	if (window.innerWidth) {
		w = window.innerWidth;
		h = window.innerHeight;
	} else if (document.documentElement && document.documentElement.clientWidth) {
		w = document.documentElement.clientWidth;
		h = document.documentElement.clientHeight;
	} else {
		w = document.body.clientWidth;
		h = document.body.clientHeight;
	}
	
	var winAspectRatio = w / h;
	
	document.getElementById ("BkgImage").className = (winAspectRatio > BkgAspectRatio ? 'wide' : 'high');
}
