function viewportWidth() {
	if(typeof document.width != 'undefined') {
		return document.width;
	}
	else if(typeof window.innerWidth != 'undefined') {
		return window.innerWidth;
	}
	else if(typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) {
		return document.documentElement.clientWidth;
	}
	else {
		return document.getElementsByTagName('body')[0].clientWidth;
	}
}

function fixWidth() {
	if(viewportWidth() < 1003) {
		document.getElementById('header').style.width = '1003px';
		document.getElementById('content').style.width = '1003px';
		document.getElementById('footer').style.width = '1003px';
	}
	else {
		document.getElementById('header').style.width = '100%';
		document.getElementById('content').style.width = '100%';
		document.getElementById('footer').style.width = '100%';
	}
}
