// JavaScript Document

onload=function() {
	var h;
	var t;
	var CM;
	mh = getH('middle-bgrd-4')
	mt = getT('middle-bgrd-4')
	mtot = mh + mt;
	lh = getH('left-side')
	lt = getT('left-side')
	ltot = lh + lt;
	
// determine which has greater total height, side bar or middle bgrnd and determine final height of middle container from greatest of the two.

	if (ltot > mtot) {
		CM = getS('middle-bgrd-4')
		CM.height = lh -40 + 'px';  // make middle backgrnd same height as side bar, if shorter
		final = ltot;
	}else{
		final = mtot;
	}
	CM = getS('mid-container');
	CM.height = final + 20 + 'px';
//	h = getH('mid-container');
//	t = getT('mid-container');
	CM = getS('footer');
//	CM.top = h + t  + 'px';
	CM.display = 'block';
	
//	posshow('footer','mid-container');
}
