var g_bubble;

function Bubble(div)
{
	if(div)
	{
		this.className="Bubble";
		this.html = div;
		div.objlnk = this;
	}

}

Bubble.prototype.editBubble = function(e,str)
{
	var x, y;
	if( e && e.target )
	{
		x = e.layerX;
		y = e.pageY;
	}
	else
	{
		x = event.clientX + document.body.scrollLeft;
		y = event.clientY + document.body.scrollTop;
	}
	
	writeIntoLayer(this.html,str);
	moveLayerTo(this.html,x,y+18);
	showLayer(this.html,true);
}

Bubble.prototype.hideBubble = function()
{
	showLayer(this.html,false);
}