window.onresize = myResize;

intThreshold=810;
function myResize(){
	intBackgroundWidth=document.getElementById("contentbackground").clientWidth;

	if (document.all){
		intBrowserWidth=document.body.clientWidth;
	}else{
		intBrowserWidth=window.innerWidth;
		intBrowserWidth=intBrowserWidth-16;
	}

	if(intBrowserWidth<intThreshold){
		document.getElementById("content").style.width=intThreshold+'px';
	}else{
		document.getElementById("content").style.width=intBrowserWidth+'px';
	}


	if(intBackgroundWidth<intThreshold){
		document.getElementById("contentbackground").style.width=intThreshold+'px';
	}
}


myResize();
