function make_float(message)
{
  doSomething;
  document.getElementById('float').style.visibility = "visible";
  document.getElementById('float').innerHTML = message;
}

function make_float_bubble(message)
{
  offsetx = -5;
  offsety = 15;
  doSomething;
  document.getElementById('float').style.visibility = "visible";
  document.getElementById('float').style.background = "";
  tab_start = "<table cellspacing=0 cellpadding=0 border=0><tr><td colspan=3>";
  tab_start = tab_start + "<table cellspacing=0 cellpadding=0 width=100%><tr>";
  tab_start = tab_start + " <td width=26><img src=/furniture/bubble/tl.gif></td>";
  tab_start = tab_start + " <td><img src=/furniture/bubble/t.gif width=100% height=26></td>";
  tab_start = tab_start + " <td width=6><img src=/furniture/bubble/tr.gif></td>";
  tab_start = tab_start + " </tr></table>";
  tab_start = tab_start + "</td></tr>";
  tab_start = tab_start + "<td background=/furniture/bubble/l.gif height=100% width=6></td><td bgcolor=#FFFFE1>";
  tab_end = "</td><td width=6><img src=/furniture/bubble/r.gif height=100% width=6></td></tr>";
  tab_end = tab_end + "<tr><td><img src=/furniture/bubble/bl.gif width=6 height=5></td>";
  tab_end = tab_end + "<td><img src=/furniture/bubble/b.gif height=6 width=100%></td>";
  tab_end = tab_end + "<td background=/furniture/bubble/br.gif></td> </tr></table>";
  document.getElementById('float').innerHTML = tab_start + message + tab_end;
}

function remove_float(divNum)
{
  document.getElementById('float').style.visibility = "hidden";
  document.getElementById('float').innerHTML = "";
}


function doSomething(e)
{
	var posx = 0;
	var posy = 0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY)
	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY)
	{
		posx = e.clientX + document.body.scrollLeft;
		posy = e.clientY + document.body.scrollTop;
	}

	if(document.getElementById('float'))
	{
	  document.getElementById('float').style.left = posx + offsetx;
	  document.getElementById('float').style.top = posy +offsety;
	  document.getElementById('float').style.position = "absolute";
	}
}


// Bits below create:
//
//   the global mouse-movement trigger for the whole document 
//   the hidden div called "float"


document.onmousemove = doSomething;
document.write('<div id="float" style="visibility: hidden; position: absolute;"> </div>');
offsetx = 15;
offsety = 15;
