function ajax_showTooltip(id, e)
{

  var posx = 0;
  var posy = 0;
  if (!e) var e = window.event;
  if (e.pageX || e.pageY) {
    posx = e.pageX + document.body.scrollLeft + 15;
    posy = e.pageY + document.body.scrollTop - 100;
  }
  else if (e.clientX || e.clientY) {	
	  posx = e.clientX + document.documentElement.scrollLeft + 15;
    posy = e.clientY + document.documentElement.scrollTop;
  }
	
	ajax_tooltipObj = document.createElement('DIV');
	ajax_tooltipObj.className='overlib';
	ajax_tooltipObj.style.position = 'absolute';
	ajax_tooltipObj.style.left = posx + 'px';
	ajax_tooltipObj.style.top = posy + 'px';
	ajax_tooltipObj.id = 'ajax_tooltipObj';		
	document.body.appendChild(ajax_tooltipObj);
	
	ajax_loadContent('ajax_tooltipObj','inc/nicklinkki.php?id=' + id);
}

function ajax_hideTooltip() {
	document.body.removeChild(ajax_tooltipObj);
}
