	function getInternetExplorerVersion()
	// Returns the version of Internet Explorer or a -1
	// (indicating the use of another browser).
	{
	  var rv = -1; // Return value assumes failure.
	  if (navigator.appName == 'Microsoft Internet Explorer')
	  {
		var ua = navigator.userAgent;
		var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if (re.exec(ua) != null)
		  rv = parseFloat( RegExp.$1 );
	  }
	  return rv;
	}
	function fixContentSize() {
		var c = $('row4');
		var p = $('refpoint');

		// reset
		p.show();
		c.style.bottom = 'auto';
		c.style.height = 'auto';
		$('row4').style.height = 'auto';
		
		var contentHeight = Position.cumulativeOffset(c)[1] + c.getHeight() + 53;

		var ver = getInternetExplorerVersion();
		var extraHeight = ver <= 6 && ver > 0 ? 16 : 0;

		var h = Position.cumulativeOffset(p)[1];
		if (contentHeight < h) {
			$('content').style.height = (h + extraHeight) + 'px';
			c.style.height = (h - (53 - extraHeight) - Position.cumulativeOffset(c)[1]) + 'px';
			$('row4_cell').style.height = c.style.height;
		} else { 
			$('content').style.height = contentHeight + 'px';
			$('row4_cell').style.height = $('row4').getHeight() + 'px';
		};

		p.hide();
	}
	window.onload = fixContentSize;
	window.onresize = fixContentSize;