function stretchPhoto() {
		
	var windowWidth = (document.documentElement) ? document.documentElement.clientWidth : document.body.clientWidth ;
	var windowHeight = (document.documentElement) ? document.documentElement.clientHeight : document.body.clientHeight ;
	var rel = 1280/ 1150;
			
	// resize the background image
	var imageClip = '0 ' + windowWidth + 'px ' + (windowHeight) + 'px 0';
	var newHeight = parseInt(windowWidth /rel);
	var newWidth = parseInt(windowHeight * rel);
		
	if (windowHeight <= 0 || !document.getElementById('background_image')) {
		return;
	}

	if (windowWidth >= 1280) {
	
		if (windowWidth / windowHeight > rel) { // screen wider than photo
			document.getElementById('background_image').style.clip = 'rect(' + imageClip + ')';
			document.getElementById('background_image').style.width = windowWidth + 'px';
			document.getElementById('background_image').style.height = newHeight + 'px';
			
		}
		else if (windowWidth / windowHeight < rel) { // screen smaller than photo
			document.getElementById('background_image').style.clip = 'rect(' + imageClip + ')';
			document.getElementById('background_image').style.width = newWidth + 'px';
			document.getElementById('background_image').style.height = windowHeight + 'px';
			
		}
		else {
			document.getElementById('background_image').style.clip = 'rect(' + imageClip + ')';
			document.getElementById('background_image').style.width = newWidth + 'px';
			document.getElementById('background_image').style.height = windowHeight + 'px';
		}
	}
}

