function adjustLayout()
{
	// Get natural heights
	var Height1 = xHeight("rightcol");
	var Height2 = xHeight("article");
	var Height3 = xHeight("subnav");

	// Find the maximum height
	var maxHeight =
		Math.max(Height3, Math.max(Height1, Height2));

	// If rightcol is longer, assign maximum height to article div
	if (maxHeight > Height2)
	{
		xHeight("article", maxHeight+40);
	}

	// This is just to remind IE about the padding on article that it keeps screwing up
	if (document.getElementById('article'))
	{
		document.getElementById('article').style.paddingLeft='20.1%';  // For some reason 20% doesn't work but 20.1 does???  
	}	
	
}
window.onload = function()
{
	//xAddEventListener(window, "resize", adjustLayout, false);
	adjustLayout();
	
	externalLinks();
}







// Below is a bunch of stuff I've tried at variois stages of development

/*	
	// Looks like the Search text area is making IE crash when the rightcol gets to narrow
	var WidthRightCol = xWidth("rightcol");
	if (WidthRightCol < 760)
	{
		document.getElementById('rightcol').style.clear='left';
	}

	// Get Width because (thanks to IE barfing at % padding) we are mixing px with %
	var WidthArticle = xWidth("article");
	
	// Set the left padding for the rightcol (based on the width of article)
	WidthArticle = WidthArticle+10;
	//alert(WidthArticle);
	
	if (document.getElementById('article'))
	{
		document.getElementById('rightcol').style.paddingLeft=WidthArticle+'px';
		document.getElementById('article').style.paddingLeft='20.1%';
	}
*/