if (document.getElementById) {
	document.write('<style type="text/css">');
	document.write('body #di-backgroundimage {display: block; visibility: visible}');
	document.write('</style>');
}

function resize() {
	var backImage = document.getElementById('di-backgroundimage');
	if (backImage) {
		if (!backImage.aspectRatio) {
			if (backImage.offsetWidth && backImage.offsetHeight) {
				backImage.aspectRatio = backImage.offsetWidth / backImage.offsetHeight;
			} else {
				return;
			}
		}
		var w = window.innerWidth || document.documentElement.clientWidth;
		var h = window.innerHeight || document.documentElement.clientHeight;
		if ((w/h) > backImage.aspectRatio) {
			backImage.style.width = '100%';
			backImage.style.height = '';
		} else {
			backImage.style.width = '';
			backImage.style.height = '100%';
		}
	}
}
setInterval('resize()', 100);
