/* hafas_ecology_tooltip.js - Mini tooltip lib */
function e() {/* cool */
   var element = arguments[0];
   element = document.getElementById(element);
   return element;
   }

/* Tooltip for partsearch arrows including mouse over for ps icon */
var hafasTTip = {
   i:null,
   t:null,

   show: function (id)
      {
      a=e(id);
      t=e(id+'box');
      x=a.offsetLeft;
      y=a.offsetTop;
      while((a = a.offsetParent) != null){
         x += a.offsetLeft;
         y += a.offsetTop;
         }
      t.style.top = 1*y+20+'px';
      t.style.left = 1*x-20+'px';
      t.style.display = 'block';
      },

   hide: function (id){
      e(id+'box').style.display = 'none';
      }
   }

