/* */
IE=(document.all)?1:0;
NS6=(document.getElementById)?1:0;
if (!IE && !NS6) {
	eval('event = ""');
}

document.write('<div nowrap id="tooltip" style="position:absolute; display:none; visibility:hidden;" class="tooltip"></div>');

function toolTip(owner,e,msg) {

	if (!IE && !NS6) {
		if (!msg) msg = '';
			window.status = msg;
		return true;
	}

	tipObj = document.getElementById("tooltip");
	if (e) {
		tipObj.innerHTML = msg;
		if (IE) {
			if (document.documentElement.clientHeight) {
				tipObj.style.top  = e.clientY + document.documentElement.scrollTop + 15;
				tipObj.style.left = e.clientX + document.documentElement.scrollLeft;
			}
			// :WARNING: consider case where document.body doesn't yet exist for IE
			else {
				tipObj.style.top  = e.clientY + document.body.scrollTop + 15;
				tipObj.style.left = e.clientX + document.body.scrollLeft;
			}
		} else {
			tipObj.style.top = e.pageY+15;
			tipObj.style.left= e.pageX;
		}
			
		tipObj.style.visibility='visible';
		tipObj.style.display='';
		owner.onmouseout = function(e) {hideToolTip(this, e);};
	}
	else tipObj.style.visibility='hidden';

	return true;
}

function hideToolTip(owner, e) {
	tipObj.style.display='none';
}
