// JavaScript Document

function showBubble(e, txt)
{
   var bubble = document.getElementById("BubbleDiv");
   var btxt = document.getElementById("BubbleTxt");
//   alert(bubble);
   while(btxt.firstChild)
      btxt.removeChild(btxt.firstChild);
   btxt.innerHTML = txt;
//   bubble.style.top = e.pageY;
//   bubble.style.left = e.pageX+10;
   var pos = getMousePos(e);
   bubble.style.top = pos[1]+"px";
   bubble.style.left = (pos[0]+10)+"px";
   bubble.style.visibility = "visible";
}

function hideBubble(e)
{
   var bubble = document.getElementById("BubbleDiv");
   bubble.style.visibility = "hidden";
}

function moveBubble(e)
{
   var bubble = document.getElementById("BubbleDiv");
//   bubble.style.top = e.pageY;
//   bubble.style.left = e.pageX+10;
   var pos = getMousePos(e);
   bubble.style.top = pos[1]+"px";
   bubble.style.left = (pos[0]+10)+"px";
}

function PlaceBubbleHere()
{
   document.write('<div ID="BubbleDiv" style="position:absolute;top:0px;left:0px; visibility: hidden;z-index:10;" align="right">\n'+
	   '  <span id="BubbleTxt" style="background-color:#FFFFCC;border:1px solid #000000;font-family:verdana; font-size:10px;"></span>\n'+
         '</div>\n');
}

