/*
	2004.10. 8 °­¿¬¿ì : ÅøÆÁÀ» º¸¿©ÁÖ±â À§ÇÑ ÀÚ¹Ù½ºÅ©¸³Æ®
	- ÃßÈÄ À©µµ¿ì¸¦ ¹þ¾î³ª´Â °æ¿ì¸¦ ÇØ°áÇÑ´Ù.
*/

var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var W3C = (document.getElementById)? true : false;
var toolTipLayerFontColor = 'black';
var toolTipLayerBGColor = 'white';

	// WriteInDiv : showTooltip ÇÔ¼ö¿¡¼­ »ç¿ëÇÑ´Ù.
	// Div ³»¿¡ ÅØ½ºÆ®¸¦ ¾´´Ù.
	function WriteInDiv( divName, text )  {
		if( NS4 )  {
			eval( divName + ".document.open()" );
			eval( divName + ".document.write(text)" );
			eval( divName + ".document.close()" );
		}
		if( W3C||IE4 )	eval( divName + ".innerHTML=text" );
	}

	function setToolTipFontBgColor( argFontColor, argBGColor )  {
		toolTipLayerFontColor = argFontColor;
		toolTipLayerBGColor = argBGColor;
	}

	// ½ÇÁ¦ »ç¿ëÇÏ´Â ÇÔ¼ö. Div ÀÌ¸§°ú ÅøÆÁ¿¡ ¾²ÀÏ ÅØ½ºÆ®¸¦ arg ·Î ¾´´Ù.
	function showTooltip( divName, text )  {
		WriteInDiv( divName, '<table border=1px solid; #000000 width=100% cellspacing=0 cellpadding=0><tr><td bgcolor="' + toolTipLayerBGColor + '"><font color="' + toolTipLayerFontColor + '">' + text + '</font></td></tr></table>' );
		if ( navigator.userAgent.indexOf("MSIE") < 0 ||
			(((navigator.appVersion.split('; '))[1].split(' '))[1]) < 5 ) return;

		eval( "document.all." + divName + ".style.display = ''" );
		//eval( "document.all." + divName + ".style.visibility = 'show'" );

		eval( "document.all." + divName + ".style.left = window.event.clientX + document.body.scrollLeft + 20" );
		eval( "document.all." + divName + ".style.top = window.event.clientY + document.body.scrollTop + 20" );
	}
	function hideTooltip( divName )  {
		eval( "document.all." + divName + ".style.display = 'none'" );
		//eval( "document.all." + divName + ".style.visibility = 'hidden'" );
	}

