//window.onresize = findWindowDim;
function findWindowDim()
{
	var featureOffset=15; // cheater value to line up columns
	var footerspace= 5; //footerspace adds white space from the content to the footer
	var featuretop = 24; //featuretop accounts for the spacing  at the top of the feature pain
	var featurebottom = 0; //featurebottom accounts for the spacing  at the bottom of the feature pain
	var leftHeight = document.getElementById('leftcol').offsetHeight;
	var rightHeight = document.getElementById('rightcol').offsetHeight+document.getElementById('imageb').offsetHeight + featureOffset;
	var imageHeight = document.getElementById('imageb').offsetHeight;
	var footerHeight = document.getElementById('footer').offsetHeight;
	var mastheadHeight = document.getElementById('topmenu').offsetHeight+document.getElementById('header').offsetHeight;
	var objFooter = document.getElementById('footer');
	var objLeft = document.getElementById('leftcol');
	var objRight = document.getElementById('rightcol');
	var objSite = document.getElementById('site');
		 
	if (rightHeight > leftHeight ) {
		//extra content creates a taller viewing area
		footerTop = rightHeight + mastheadHeight +  featureOffset + featuretop - footerspace;
		footerTopPx = footerTop+"px";
		objFooter.style.top = footerTopPx;
		colH = rightHeight;
		colHPx = colH+"px";
		objLeft.style.height = colHPx;
		height = rightHeight + mastheadHeight + footerHeight + featuretop+featureOffset;
		objSite.style.height = height+'px';
	} else if (rightHeight < leftHeight) {
		footerTop = leftHeight + mastheadHeight + featureOffset + featuretop - footerspace;
		footerTopPx = footerTop+"px";
		objFooter.style.top = footerTopPx;
		colH = leftHeight - imageHeight - featureOffset;
		colHPx = colH+"px";
		objRight.style.height = colHPx;
		height = leftHeight + mastheadHeight + footerHeight + featuretop+featureOffset;
		objSite.style.height = height+'px';
		//alert('tallest:'+(rightHeight)+'new:'+(leftHeight));
	}
}
