function showTip(theID, theTip) {
 var curleft = 0;
 var curtop = 0;
 tipObj = document.getElementById('theTip');
 obj = document.getElementById(theID);
 if (obj.offsetParent) {
  while (obj.offsetParent) {
   curleft += obj.offsetLeft;
   curtop += obj.offsetTop;
   obj = obj.offsetParent;
  }
 }
 obj = document.getElementById(theID);
 curwidth = obj.offsetWidth;
 curleft += curwidth;
 myTip = document.getElementById(theTip).innerHTML;
 tipObj.innerHTML = myTip;
 tipObj.style.top = curtop;
 tipObj.style.left = curleft + 1;
 tipObj.style.visibility = 'visible';
}

function showTipLeft(theID, theTip) {
 var curleft = 0;
 var curtop = 0;
 tipObj = document.getElementById('theTip');
 obj = document.getElementById(theID);
 if (obj.offsetParent) {
  while (obj.offsetParent) {
   curleft += obj.offsetLeft;
   curtop += obj.offsetTop;
   obj = obj.offsetParent;
  }
 }
 obj = document.getElementById(theID);
 myTip = document.getElementById(theTip).innerHTML;
 tipObj.innerHTML = myTip;
 tipObj.style.top = curtop;
 tipObj.style.left = curleft -250;
 tipObj.style.visibility = 'visible';
}
 
function hideTip () {
 tipObj = document.getElementById('theTip');
 tipObj.innerHTML = '';
 tipObj.style.visibility = 'hidden';
}

function init() {
  window.resizeTo(740, 490);
  document.body.style.overflow = 'hidden';
}

function asppaol (url) {
    url = this;
    links = document.getElementById ? document.getElementById("asppNav") : document.all.asppNav;
    links.src = "data/assp.html";
    links.src = url;
    return false;
}

function changeLinks() {
    for (i = 0; i<document.links.length ; i++ ) {
        url = document.links[i].href;
        if (url.indexOf("aol://") > 0){
            document.links[i].onclick = asppaol;
        } else {
            document.links[i].target ="_blank";
        }
    }
}
