// cross browser cross generational version of the W3C DOM method getElementById
// this allows us to easly perform the same task across diffent versions of browsers.
// we do an object test and not a version test this future proofs the function.
//==============================================================================
function getElementById(id) {
  if (document.getElementById) {
    return document.getElementById(id);
  } else if (document.all) {
    return eval("document.all." + id);
  } else if (document.layers) {
    return eval("document.layers." + id);
  } else{
    return null;
  }
}

function infoLink(theId,which,event){
  if(which=="over"){
    getElementById(theId).style.display="";
    drawBox(event,theId)
  } else {
    getElementById(theId).style.display="none";
  }
}

function drawBox(event,target) {
  var y = event.clientY;
  var scrollY = (window.pageYOffset) ? window.pageYOffset : document.body.scrollTop;
  getElementById(target).style.top = y + scrollY + 20 + "px";
}