  function hideAll() {
	for(i=1;document.getElementById('b' + i); i++) {
	  bbh = document.getElementById('b' + i);
	  //alert(bbh.offsetHeight);
	  if (bbl = document.getElementById(bbh.id + 'links')) {
	    bbl.style.display = 'none';
	  }
      if (bbh.offsetHeight > 25) { 
	    x = bbh.offsetHeight;
		bbs = bbh;
	    shrink();
	  }
	}    
  }
  
  function grow(height) {
   if (y < height) {
	  bbg.style.height = y + 'px';
	  y = y * 1.3;
	  setTimeout('grow(' + height + ')',0);
	}
	else {
	  bbg.style.height = height + 'px';
	  if (bbl = document.getElementById(bbg.id + 'links')) {
	    bbl.style.display = 'block';
	  }
	}
  }

  function shrink() {
   if (x > 25) {
	  bbs.style.height = x + 'px';
	  x = x / 1.3;
	  setTimeout("shrink()",0);
	}
	else {
	  bbs.style.height = 'auto'
	}
  }
  
  function show(bid,height) {
    hideAll();
	bbg = document.getElementById(bid);
    if (bbg.style.height == 'auto' | bbg.style.height == 0) { 
      y = 25;
	  grow(height) 
	}
  }
  
  function toggleLetter() {
    bbl = document.getElementById('extendedletter');
	//alert(bbl.style.display);
	if (!bbl.style.display | bbl.style.display == 'none') {
      bbl.style.display = 'block';
    } else {
      bbl.style.display = 'none';
	}
  }
