function resize()
	{
	var wrapper=document.getElementById("wrapper");
	var content=document.getElementById("content");
	var windowHeight=0;
	if (typeof(window.innerHeight)=="number") windowHeight=window.innerHeight; //Non-IE
	if (document.documentElement&&document.documentElement.clientHeight) windowHeight=document.documentElement.clientHeight; //IE 6+ in 'standards compliant mode'
	if (document.body&&document.body.clientHeight) windowHeight=document.body.clientHeight; //IE 4 compatible
	content.style.height="auto";
	if (document.getElementById("side-bar")==null)
		{
		content.style.borderLeftStyle="none";
		if (wrapper.scrollHeight+240<windowHeight) content.style.height=content.scrollHeight+windowHeight-wrapper.scrollHeight-240+"px";
		}
		else
		{
		var sidebar=document.getElementById("side-bar");
		sidebar.style.height="auto";
		if (sidebar.scrollHeight<content.scrollHeight)
			{
			content.style.borderLeftStyle="solid";
			sidebar.style.borderRightStyle="none";
			}
			else
			{
			content.style.borderLeftStyle="none";
			sidebar.style.borderRightStyle="solid";
			}
		if (wrapper.scrollHeight+240<windowHeight)
			{
			if (sidebar.scrollHeight>content.scrollHeight)
				{
				sidebar.style.height=sidebar.scrollHeight+windowHeight-wrapper.scrollHeight-240+"px";
				content.style.height="auto";
				}
				else
				{
				content.style.height=content.scrollHeight+windowHeight-wrapper.scrollHeight-240+"px";
				sidebar.style.height="auto";
				}
			}
		}
	}

