
function centerInPage(topFiller, content, botFiller) {
var bf = document.getElementById(botFiller);
var tf = document.getElementById(topFiller);
var c = document.getElementById(content);

var h=window.innerHeight;
var ih=1;
if (c){
	ih=c.offsetHeight;
	var nh= ( (h-ih-1)/2);
	if(nh<0) {
	  nh=0;
	}
	bf.style.height= nh;
	bf.style.minHeight= nh;

	tf.style.height= nh;
	tf.style.minHeight= nh;
}

}

function resizeMe() {
	centerInPage("topFiller", "content", "bottomFiller");
}

if ( isNS) {
	resizeMe();
	window.onresize=resizeMe;
}


