// ツールチップ制御クラス.
function ToolTip()
{
	this.isDisplay = false;

	// メッセージ表示クラス.
	// msg				メッセージ.
	this.Show = function(msg)
	{
		var html = ""
		var styletop = parseInt(currentDocument.ActiveMouseY) - parseInt(document.getElementById("map").style.top);
		
		if (document.getElementById("geoMap").style.visibility == "hidden")
		{
			toolTip.UnShow();
			return;
		}
		
		document.getElementById("dragImage").style.cursor ="pointer";
		
		if (document.getElementById("tooltipArea").innerHTML.length == 0)
		{
			html += "<div id='tooltipWindow' style='BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 3px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 3px; Z-INDEX: 13; LEFT: " + (currentDocument.ActiveMouseX + 10) + "px; VISIBILITY: visible; PADDING-BOTTOM: 3px; BORDER-LEFT: gray 1px solid; LINE-HEIGHT: 14px; PADDING-TOP: 3px; BORDER-BOTTOM: gray 1px solid; LETTER-SPACING: 1px; POSITION: absolute; TOP:" + styletop + "px; BACKGROUND-COLOR: #ffffcc;font-size: 12px; font-family: 'ＭＳ ゴシック', 'ＭＳ Ｐゴシック', Osaka-等幅, Osaka, 平成角ゴシック;'>";
			html += msg + "</div>";
			
			document.getElementById("tooltipArea").innerHTML = html;
		}
		else
		{
			document.getElementById("tooltipWindow").style.top = styletop;
			document.getElementById("tooltipWindow").style.left = (currentDocument.ActiveMouseX + 10);
		}
		
		window.status = "";
		
		toolTip.isDisplay = true;
		
		return true;
	}
	
	// 非表示.
	this.UnShow = function()
	{
		document.getElementById("dragImage").style.cursor ="url(MapForm/img/BeforePanHand.cur), move";
		
		document.getElementById("tooltipArea").innerHTML = "";
		window.status = '';
		toolTip.isDisplay = false;
		return true;
	}
}

