<!--

var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = -20;
offsetY = 20;
var toolTipSTYLE="";
var tipTimer
function initToolTips()
{
  if(ns4||ns6||ie4)
  {
    if(ns4) toolTipSTYLE = document.toolTipLayer;
    else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
    else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
    if(ns4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";
    }
    document.onmousemove = moveToMouseLoc;
  }
}
function toolTip(msg, fg, bg)
{
  if(toolTip.arguments.length < 1) // hide
  {
    if(ns4) toolTipSTYLE.visibility = "hidden";
    else toolTipSTYLE.display = "none";
	clearTimeout (tipTimer)
  }
  else // show
  {
    if(!fg) fg = "#333333";
    if(!bg) bg = "#FFFFCC";
    var content =
    '<table border="0" cellspacing="0" cellpadding="0">' +
			'<tr height="7">' +
				'<td width="6" height="7"><img src="../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="7" border="0"></td>' +
				'<td height="7">' +
					'<table width="100%" border="0" cellspacing="0" cellpadding="0" height="6">' +
						'<tr height="7">' +
							'<td width="15"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="7" border="0"></td>' +
							'<td width="8"><img src="../../themes/sematree_ECS_v1/images/tooltip/point.gif" alt="" width="8" height="7" border="0"></td>' +
							'<td><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="7" border="0"></td>' +
						'</tr>' +
					'</table>' +
				'</td>' +
				'<td width="6" height="6"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="7" border="0"></td>' +
			'</tr>' +
			'<tr height="6">' +
				'<td width="6" height="6"><img src="../../themes/sematree_ECS_v1/images/tooltip/corner_01.gif" alt="" width="6" height="6" border="0"></td>' +
				'<td height="6" background="../../themes/sematree_ECS_v1/images/tooltip/corner_02.gif">' +
					'<table width="100%" border="0" cellspacing="0" cellpadding="0" height="6">' +
						'<tr height="1">' +
							'<td width="15" height="1"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="1" border="0"></td>' +
							'<td bgcolor="white" width="8" height="1"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="1" border="0"></td>' +
							'<td height="1"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="1" border="0"></td>' +
						'</tr>' +
						'<tr height="5">' +
							'<td width="15" height="5"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="5" border="0"></td>' +
							'<td width="8" height="5"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="5" border="0"></td>' +
							'<td height="5"><img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="5" border="0"></td>' +
						'</tr>' +
					'</table>' +
				'</td>' +
				'<td width="6" height="6"><img src="../../themes/sematree_ECS_v1/images/tooltip/corner_03.gif" alt="" width="6" height="6" border="0"></td>' +
			'</tr>' +
			'<tr>' +
				'<td width="6" background="../../themes/sematree_ECS_v1/images/tooltip/corner_04.gif">' +
					'<img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="6" height="1" border="0">' +
				'</td>' +
				'<td bgcolor="' + bg +'">' +
					'<font size="1" face="Arial">' + msg + '</font>' +
				'</td>' +
				'<td width="6" background="../../themes/sematree_ECS_v1/images/tooltip/corner_06.gif">' +
					'<img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="6" height="1" border="0">' +
				'</td>' +
			'</tr>' +
			'<tr height="6">' +
				'<td width="6" height="6"><img src="../../themes/sematree_ECS_v1/images/tooltip/corner_07.gif" alt="" width="6" height="6" border="0"></td>' +
				'<td height="6" background="../../themes/sematree_ECS_v1/images/tooltip/corner_08.gif">' +
					'<img src="../../themes/sematree_ECS_v1/images/tooltip/s.gif" alt="" width="1" height="6" border="0">' +
				'</td>' +
				'<td width="6" height="6"><img src="../../themes/sematree_ECS_v1/images/tooltip/corner_09.gif" alt="" width="6" height="6" border="0"></td>' +
			'</tr>' +
		'</table>'
    if(ns4)
    {
      toolTipSTYLE.document.write(content);
      toolTipSTYLE.document.close();
      tipTimer = setTimeout ("toolTipSTYLE.visibility='visible'", 200);
    }
    if(ns6)
    {
      document.getElementById("toolTipLayer").innerHTML = content;
      tipTimer = setTimeout ("toolTipSTYLE.display='block'", 200);
    }
    if(ie4)
    {
      document.all("toolTipLayer").innerHTML=content;
      tipTimer = setTimeout ("toolTipSTYLE.display='block'", 200);
    }
  }
}
function moveToMouseLoc(e)
{
  if(ns4||ns6)
  {
    x = e.pageX;
    y = e.pageY;
  }
  else
  {
    x = event.x + document.body.scrollLeft;
    y = event.y + document.body.scrollTop;
  }
  toolTipSTYLE.left = x + offsetX;
  toolTipSTYLE.top = y + offsetY;
  return true;
}

//-->