// mBubble, by Mark Willis. www.MarkWillis.co.uk 
// Extension of mFloat.

var MouseX = 0; var MouseY = 0; var mBOverit = 0;

mBviewportScan();
document.onmousemove = mBTrackingMousePosition;

function showBubble(bubbleTITLE, bubbleCONTENT){
var bubbleCONTENTrend = bubbleCONTENT.replace(/\[br\]/g, '<br />');
document.getElementById('mBubbleBlock').innerHTML = "<div class=\"mBubble-inside\"><b>" + bubbleTITLE + "</b><br />" + bubbleCONTENTrend + "</div>";
document.getElementById('mBubbleBlock').className = 'mBubble-on';
document.getElementById('mBubbleBlock').style.display = "block";
var x = 0; var y = 0;
if (MouseX)
	{
		x = MouseX;
		y = MouseY;
	}
else
	{
		x = window.event.clientX+document.documentElement.scrollLeft;
		y = window.event.clientY+document.documentElement.scrollTop;
	}
if(x + 350 > mFloatViewportWidth){x = x - 300;}
document.getElementById('mBubbleBlock').style.left = (x + 10) + "px";
document.getElementById('mBubbleBlock').style.top = (y + 10) + "px";
mBOverit = 1;
}

function clearBubble(){
document.getElementById('mBubbleBlock').innerHTML = '';
document.getElementById('mBubbleBlock').className = 'mBubble-off';
document.getElementById('mBubbleBlock').style.display = "none";
mBOverit = 0;
}