function dumpobj(obj) { 
	document.body.appendChild(document.createElement("BR"));
	document.body.appendChild(document.createElement("BR"));
	for(var prop in obj) { 
		var str = prop + ": " + obj[prop]; 
		document.body.appendChild(document.createTextNode(str)); 
		document.body.appendChild(document.createElement("BR")); 
	} 
	document.body.appendChild(document.createElement("BR"));
	document.body.appendChild(document.createElement("BR"));
}

function setHeight() {
	var x,y;
	if (self.innerHeight) {
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) {
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	
	h=Math.round((y-566)/2);
	if (h<0) h=0;
	
	document.getElementById('sitecontainer').style.marginTop=h+"px";
	$.get("/ajax/setMargin.cfm",{marginTop:h});	
}

window.onload = setHeight;
window.onresize = setHeight;