<!--
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Saul Salvatierra :: http://myarea.com.sapo.pt
with help from Ultimater :: http://ultimiacian.tripod.com  */

var theObj="";

function toolTip(prodDescr,me) {
  theObj=me;
  theObj.onmousemove=updatePos;

	  document.getElementById('toolTipBox').innerHTML= "<div id=\"tt_content\"><dd>" + prodDescr + "</dd></div><span id=\"tt_bottom\"></span><span id=\"a\"></span>";

  document.getElementById('toolTipBox').style.top = -500;
  document.getElementById('toolTipBox').style.display="block";
  window.onscroll=updatePos;
}

function updatePos() {
	
	var ev=arguments[0]?arguments[0]:event;
	var x=ev.clientX;
	var y=ev.clientY;	
	
	document.getElementById('toolTipBox').style.marginLeft = '-10px';
	document.getElementById('tt_bottom').style.backgroundRepeat = 'no-repeat';
	document.getElementById('tt_bottom').style.backgroundPosition = '10px -2px';
	
	var divHeight = document.getElementById('toolTipBox').offsetHeight;
	diffX=document.getElementById('container').offsetLeft;
	diffY=-(divHeight - document.documentElement.scrollTop);
	document.getElementById('toolTipBox').style.top  = y-20+diffY+(document.body.scrollTop)+ "px";
	document.getElementById('toolTipBox').style.left = x - 18 - diffX + "px";
	theObj.onmouseout=hideMe;
}

function hideMe() {
  document.getElementById('toolTipBox').style.display="none";
}
