function getWindowWidth() {
	var windowWidth = 0;
	if (typeof(window.innerWidth) == 'number') {
		windowWidth  = window.innerWidth;
	}
	else {
		if (document.documentElement && document.documentElement.clientWidth) {
			windowWidth = document.documentElement.clientWidth;
		}
		else {
			if (document.body && document.body.clientWidth) {
				windowWidth  = document.body.clientWidth;
			}
		}
	}
	return windowWidth;
}
	
function setBody() {
	if (document.getElementById) {
		var windowWidth = getWindowWidth();
		var contentElement = document.getElementById('body');
		contentElement.style.position = 'absolute';
		if (windowWidth > 824) {
			contentElement.style.left = ((windowWidth -1024) / 2) + 'px';
		} else {
			contentElement.style.left = ((824 -1024) / 2) + 'px';
		}
	}
}
		
function preloadImages() {
	var d=document; if(d.images){ if(!d.p) d.p=new Array();
	var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}
