var MIN_LEFT_POSITION = 205;
var X_OFFSET = 60; 

function getDivLeftPosition(div, offsetFromCenter) {
	var width = window.document.body.clientWidth;
	width = width - X_OFFSET;
	var pos = (width / 2) - offsetFromCenter;

	var browser=navigator.appName;
	if (browser == "Microsoft Internet Explorer") {
		pos = pos + 20;
	}

	if (pos < MIN_LEFT_POSITION) {
		pos = MIN_LEFT_POSITION;
	}
	div.style.left = pos;

	return pos;
}


function centerBodyBackgroundImage(bodyId, imageWidth) {
	var width = window.document.body.clientWidth;
	var xoffset = ((imageWidth/2) - (width/2)) * -1;
	// xoffset = xoffset - 1;
	var offsetStr = xoffset + "px -36px";
	document.getElementById("body").style.backgroundPosition = offsetStr;
}