function tooltip(clickElementId, displayElementId, title, content)
{
	this.clickElementId = clickElementId;
	this.displayElementId = displayElementId;
	this.title = title;
	this.content = content;
	this.initialize();
}

tooltip.prototype.clickElementId = null;
tooltip.prototype.displayElementId = null;
tooltip.prototype.title = null;
tooltip.prototype.content = null;

tooltip.prototype.initialize = function()
{
	var clickElement = document.getElementById(this.clickElementId);
	clickElement.onmouseover = new Function("var displayElement = document.getElementById(\"" + this.displayElementId + "\"); " + 
																					"displayElement.innerHTML = \"<h3>" + this.title + "</h3><p>" + this.content + "</p>\"; " +
																					"displayElement.style.display = \"block\";");
	clickElement.onmouseout = new Function("document.getElementById(\"" + this.displayElementId + "\").style.display = \"none\";");
}
