/***
  author: shawn driscoll // lispwriter@gmail.com
  date: 12 dec 2005
**/
function show(obj_over,nXpos,nYpos) {
  
  ////
  // figure out the pop-up's x position in the document
  nClient = document.body.clientWidth;
  if(nClient < 820) {
    nFinalX = nXpos;
  }
  else {
    nFinalX = (nClient - 820) / 2 + nXpos;
  }

  ////
  // create the id string
  szId = obj_over.id + "_desc" + obj_over.id.substr(obj_over.id.length-1,1);
  
  ////
  // set position and visibility
  // positions are relative to top left corner of the web browser's document area
  obj_desc = document.getElementById(szId);
  obj_desc.style.position = "absolute";
  obj_desc.style.top = nYpos;
  //obj_desc.style.left = 100;
  //obj_desc.style.left = (window.innerWidth - 820) / 2 + nXpos;
  //obj_desc.style.left = document.body.scrollLeft;
  obj_desc.style.left = nFinalX;
  obj_desc.style.visibility = "visible";
}

function hide(obj_over) {
  ////
  // first create the id string
  szId = obj_over.id + "_desc" + obj_over.id.substr(obj_over.id.length-1,1);
  ////
  // now make it visible and position it below the object the user's mouse
  // is passing over.
  obj_desc = document.getElementById(szId);
  obj_desc.style.visibility = "hidden";
}

