function Balloon( ObjectID ) {
	this.ObjectID = ObjectID;
	this.createBalloon();
}

Balloon.prototype.init = function() {
	var Object = this.Balloon;
	$(document).mousemove(function(e){
		if ( Object.style.display != 'none' ) {
			Object.style.top = ( e.pageY - 60 ) + 'px';
			Object.style.left = ( e.pageX - 75 ) + 'px';
		}
	});
}

Balloon.prototype.open = function( Text ) {
	this.Balloon.style.display = 'block';
	this.Balloon.innerHTML = Text;
}

Balloon.prototype.close = function() {
	this.Balloon.style.display = 'none';
}

Balloon.prototype.createBalloon = function() {
	var Balloon = document.createElement( 'div' );
	Balloon.id = this.ObjectID;
	
	var Body = document.getElementsByTagName( 'body' ).item( 0 );
	Body.appendChild( Balloon );
	
	this.Balloon = document.getElementById( this.ObjectID );
	
	if ( this.Balloon === null )
		throw 'Balloon not found';
	
	this.init();
}
