// JavaScript Document
/*function balloon(text, id) {
	this.text = text;
	this.balloonID = id;
}

function balloon_manager() {
	this.balloons = new Array();
	
	this.AddBalloon = bmAddBalloon;
	this.GetBalloon = bmGetBalloon;
}

function bmGetBalloon(id) {
	var i = 0;
	
	while (i < this.balloons.length) && (this.balloons[i].balloonID != id)
		i++;
		
	if (i < this.balloons.length)
		return this.balloons[i];
	else
		return null;
}

function bmAddBalloon(text, id) {
	this.balloons[this.ballons.length] = new balloon(text, id);
}*/

function balloonClick(balloonID, show) {
	var balloon = document.getElementById("balloon_" + balloonID);
	
	//alert(balloon);
	
	if (balloon) {
		if (show)
			balloon.style.display = "block";
		else
			balloon.style.display = "none";
	}
}