
//old function
function expandEcon(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != "none" ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}



var expanded = false;
function toggleExpanding(container, contents, originalHeight, toggle)
{
  if (!expanded)
  {
    //alert('not expanded')
    Effect.BlindDown(container, { restoreAfterFinish: false, duration: 0.5, scaleFrom: 100, scaleTo: contents.offsetHeight / container.offsetHeight * 100 });
    expanded = true;
    toggle.innerHTML = '<br><img src="/places/images/collapse.gif" width="73" height="16" alt="Collapse" border="0">';
  }
  else
  {
    //alert(contents.offsetHeight / container.offsetHeight * 100)
    Effect.BlindDown(container, { restoreAfterFinish: false, duration: 0.5, scaleFrom: 100, scaleTo: originalHeight / container.offsetHeight * 100 });
    expanded = false;
    document.location.hash = 'contents_top';
    toggle.innerHTML = '<br><img src="/places/images/expand.gif" width="114" height="16"  border="0" alt="Expand for more">';
  }  
} 

function showExpandingNav()
{
  if (expanding_contents.offsetHeight > 300)
    //alert('show nav more than 300');
    expanding_nav.style.display = 'block';
  else
  {
    //alert('dont show becuase text is short');
    expanding_nav.style.display = 'none';
    expanding_frame.style.height = expanding_contents.offsetHeight + "px";
  }
}
//-->
