var bioArray = new Array();

function retrieveBio(name) {
  return bioArray[name];
}

function biohover(heading) {
  return true;
  var headelem = document.getElementById(heading);
  var bio = document.getElementById('biocontainer');
  var obj = headelem;
  var curleft = curtop = overallHeight = scrollBottom = 0;
  if (obj.offsetParent) {
    do {
      curleft += obj.offsetLeft;
      curtop += obj.offsetTop;
      overallHeight = obj.scrollHeight;
    } while (obj = obj.offsetParent);
  }

  var newdiv = document.createElement('div');
  newdiv.setAttribute('id',heading + 'div');
  newdiv.className = 'biodivclass';
  newdiv.innerHTML = retrieveBio(heading);

  curleft += headelem.offsetWidth;
  // Minor aesthetic adjustments
  curleft += 5;
  curtop  -= 7;
  newdiv.style.left = curleft+'px';
  newdiv.style.top = curtop+'px';
  bio.appendChild(newdiv);
  var bioHeight = newdiv.offsetHeight;
  var bioBottom = bioHeight + curtop;

  var topOfView = 0;
  if (typeof(window.pageYOffset) == 'number' ) {
      topOfView = window.pageYOffset;
  } else if ( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
      topOfView = document.body.scrollTop;
  } else if (document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
      topOfView = document.documentElement.scrollTop;
  }

  var browserHeight = 0;
  if (typeof(window.innerHeight) == 'number' ) {
      browserHeight = window.innerHeight;
  } else if (document.documentElement && document.documentElement.clientHeight) {
      browserHeight = document.documentElement.clientHeight;
  } else if (document.body) {
      browserHeight = document.body.clientHeight;
  }
  var bottomOfView = topOfView + browserHeight;
  if (bioBottom > bottomOfView) {
    curtop = curtop - (bioBottom - bottomOfView);
    newdiv.style.top = curtop+'px';
  }
  return true;
}

function biokill(heading) {
  return true;
  var divelem = document.getElementById(heading + 'div');
  var bio = document.getElementById('biocontainer');
  bio.removeChild(divelem);
  return true;
}

