var brInfo = navigator.userAgent.toLowerCase();
var brType = "IE";
if (brInfo.indexOf("opera") != -1 && document.all) {
    brType = "OP";
} else {
    if (brInfo.indexOf("safari") != -1) {
        brType = "SF";
    } else {
        if (brInfo.indexOf("mozilla") != -1 && brInfo.indexOf("gecko") != -1) {
            brType = "MZ";
        } else {
            if (brInfo.indexOf("msie") != -1) {
                brType = "IE";
            }
        }
    }
}

/**
 * º» ½ºÅ©¸³Æ®´Â Äá³ª¹°´åÄÄ¿¡¼­ Á¦°øÇÏ´Â ÀÌ¹ÌÁö¸Ê ¼­ºñ½ºÀÇ ¼³Á¤À» ´ã´çÇÏ´Â ½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
 * ÇØ´ç º¯¼ö¸íÀÌ³ª ¿ÀºêÁ§Æ®¸íÀ» º¯°æÇÏ½Ã°Å³ª Àß¸øµÈ ¼³Á¤À¸·Î ÀÎÇÏ¿© ¸ÊÀÌ ³ªÅ¸³ªÁö ¾Ê´Â °æ¿ì°¡ 
 * ¹ß»ýÇÒ ¼ö ÀÖ»ç¿À´Ï ¼³Á¤¿¡ ÁÖÀÇ¸¦ ±â¿ï¿©ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.
 **/
function CongConfig() {
    this.BaseServicePath = "http://www.congnamul.com/CongImageMapService/";
    this.ImageResourcePath = "http://www.congnamul.com/CongImageMapService/";
     /***************************************************************
	 * Á¶°¢ ¸ÊÀÇ Á¶°¢ ÀÌ¹ÌÁöÀÇ width¿Í height
	 ***************************************************************/
	 this.StaticWidth = "256";
	 this.StaticHeight = "256";
	 
	 this.CoordinateType = "congnamul"; 
	 
	 
	 /***************************************************************
	 * ¸Ê »óÇÏÁÂ¿ìÀÇ ¸¶ÁøÀ» ¼³Á¤ÇÑ´Ù. ´ÜÀ§´Â px
	 ***************************************************************/
	 this.marginTop = 0;
	 this.marginLeft = 0;
	 this.marginRight = 0;
	 this.marginBottom = 0;
	 
    /***************************************************************
	 * È­¸é »çÀÌÁî¿¡ µû¶ó¼­ ¸Ê ÀÌ¹ÌÁö¸¦ ¸®»çÀÌÁî ÇÒ °ÍÀÎÁö ¿©ºÎ
	 * - true : ¸®»çÀÌÁî °¡´É
	 * - false : ¸®»çÀÌÁî ¾ÈµÊ
	 ***************************************************************/
    this.MapResizable = true;
    /***************************************************************
	 * Ä¿¸Çµå Å¸ÀÔ
	 * - 0 : È®´ë/Ãà¼Ò ¸ðµå
	 * - 1 : ÀÌµ¿ ¸ðµå
	 ***************************************************************/
    this.CmdType = 1;
    /***************************************************************
	 * 	AJAXÀÇ Cross Domain¹®Á¦¸¦ ÇØ°á ÇÏ±â À§ÇØ¼­ Proxy ServiceÀÇ ÁÖ¼Ò¸¦ ³Ö¾îÁØ´Ù.
	 * Proxy´Â ¸ÊÀ» »ç¿ëÇÏ´Â ¼­¹ö¿Í °°Àº µµ¸ÞÀÎ »ó¿¡ ³õ¿©ÀÖ¾î¾ß¸¸ ÇÑ´Ù.  
	 * (2006.7.20 Ãß°¡)
	 ***************************************************************/
    this.ProxyServiceUrl = this.BaseServicePath + "proxyservice.jsp";
    /***************************************************************
	 * 	±âº» ºó ÆäÀÌÁö
	 ***************************************************************/
    this.BlankPage = this.ImageResourcePath + "blank.html";
    
    /***************************************************************
	 * Äá³ª¹°¿¡¼­ Á¦°øÇÏ´Â POI Á¤º¸¿¡ ´ëÇÑ ¼­ºñ½º¸¦ »ç¿ëÇÒ °ÍÀÎÁö ¿©ºÎ (Tooltip)
	 ***************************************************************/
    this.ViewPOIService = true;
    /***************************************************************
	 * Áöµµ ÀÌµ¿½Ã Áß½É ÁÂÇ¥¿¡ ´ëÇÑ ÁÖ¼Ò°ªÀ» °¡Á®¿Ã °ÍÀÎÁö ¿©ºÎ (2006.7.21 Ãß°¡)
	 ***************************************************************/
    this.AddressServiceFlag = false;
    /***************************************************************
	 * ÅøÆÁÀÌ º¸¿©Áú¶§ È¿°ú¸¦ »ç¿ëÇÒÁö ¿©ºÎ (2006.8.29 Ãß°¡)
	 ***************************************************************/
	this.TooltipEventFlag = true;

    /***************************************************************
	 * ³ªÄ§¹Ý Ç¥½Ã ¿©ºÎ
	 * - true : º¸ÀÓ
	 * - false : ¼û±è
	 ***************************************************************/
    this.ViewMapCompassFlag = false;
    /***************************************************************
	 * ÀÚ ¸ð¾çÀÇ °Å¸® ÃøÁ¤±â Ç¥½Ã ¿©ºÎ
	 * - true : º¸ÀÓ
	 * - false : ¼û±è
	 ***************************************************************/
    this.ViewMapStatusFlag = false;
    /***************************************************************
	 * ÀÎµ¦½º¸Ê Ç¥½Ã ¿©ºÎ
	 * - 0 : ¼û±è
	 * - 1 : º¸ÀÌ±â
	 * - 2 : ¹Ì´Ï¸¶ÀÌÁî
	 ***************************************************************/
    this.ViewIndexMapMode = 0;
    /***************************************************************
	 * ¸Ê ·Îµù ÀÌ¹ÌÁö Ç¥½Ã ¿©ºÎ
	 ***************************************************************/
    this.CongnamulMapLoadingFlag = false;
    /***************************************************************
	 * ¸Ê ÀÌ¹ÌÁö ·Îµù½Ã ³ªÅ¸³ª´Â È­¸é Áß¾ÓÀÇ ¸Þ½ÃÁö ¹× ÀÌ¹ÌÁö
	 ***************************************************************/
    this.LoadingMessage = "<table border=0 width=100% height=100%>\n<tr>\n<td valign=middle align=center>\n<table borde=0>\n<tr>\n<td bgcolor=#ffffff style='border:4px solid #bbbbbb;'>\n<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='250' height='100'>\n<param name='movie' value='" + this.ImageResourcePath + "defaultimg/start_loading.swf'>\n<param name='quality' value='high'>\n<embed src='" + this.ImageResourcePath + "defaultimg/start_loading.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='250' height='100'></embed>\n</object>\n</td>\n</tr>\n</table>\n</td>\n</tr>\n</table>";
    /***************************************************************
	 * ¸Ê ÀÌ¹ÌÁö ·Îµù ½ÇÆÐ½Ã ³ªÅ¸³ª´Â È­¸é Áß¾ÓÀÇ ¸Þ½ÃÁö ¹× ÀÌ¹ÌÁö
	 ***************************************************************/
    this.FailMessage = "<table border=0 width=100% height=100%>\n<tr>\n<td valign=middle align=center bgcolor='#ffffff'>\n<table border=0>\n<tr>\n<td>\n<font style='font-family:\uad74\ub9bc;font-size:9pt;'>\n\uc8c4\uc1a1\ud569\ub2c8\ub2e4.<BR>\n\ubd88\ud3b8\uc744 \ub4dc\ub824 \uc8c4\uc1a1\ud569\ub2c8\ub2e4.</font><BR><BR>\n<center><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='250' height='100'>\n<param name='movie' value='" + this.ImageResourcePath + "defaultimg/start_loading.swf'>\n<param name='quality' value='high'>\n<embed src='" + this.ImageResourcePath + "defaultimg/start_loading.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='250' height='100'></embed>\n</object></center>\n</td>\n</tr>\n</table>\n</td>\n</tr>\n</table>";
    /***************************************************************
	 * ¸¶¿ì½º ¿À¸¥ÂÊ ¹öÆ° ¶Ç´Â ´õºíÅ¬¸¯¿¡ ÀÇÇØ¼­ È£ÃâµÇ´Â ¸Þ´º
	 ***************************************************************/
    this.ContextMenuFlag = false;
    /***************************************************************
	 * ¾î¶² ¸¶¿ì½º ÀÌº¥Æ®¿¡ ´ëÇØ¼­ ¸Þ´º°¡ ³ªÅ¸³ª°Ô ÇÒ °ÍÀÎÁö ¿©ºÎ
	 * - 0 : ´õºíÅ¬¸¯	// »ç¿ë¾ÈÇÔ
	 * - 1 : ¿À¸¥ÂÊ ¸¶¿ì½º Å¬¸¯, µðÆúÆ®·Î »ç¿ë
	 ***************************************************************/
    this.ContextMenuEvent = 1;
    /***************************************************************
	 * ¸Þ´º Åõ¸íµµ Á¶Àý (0.0~1.0 »çÀÌÀÇ °ª)
	 ***************************************************************/
    this.ContextMenuOpacity = 1;
    /***************************************************************
	 * ¸Þ´º ³Êºñ
	 ***************************************************************/
    this.ContextMenuWidth = "150px";
    /***************************************************************
	 * ¸Þ´º ³ôÀÌ
	 ***************************************************************/
    this.ContextMenuHeight = "170px";
    /***************************************************************
	 * ¸Þ´º ³»¿ë ±¸¼º, URLÀÌ µé¾î¿À¸é IFrameÀ¸·Î È£ÃâÇÏ°í, 
	 * HTMLÅÂ±×¸¦ ³ÖÀ¸¸é ÇØ´ç ÅÂ±×·Î º¸¿©Áü
	 ***************************************************************/
	this.ContextMenuContent = this.BaseServicePath + "ctxmenu.html";

    /***************************************************************
	 *  °Å¸®°è»ê, ¸éÀû°è»ê, ¶óÀÎ.. ¸¶¿ì½º µå·¡±× ¾×¼ÇÀÇ »ç¿ë ¿©ºÎ.
	 ***************************************************************/
	this.CanvasDragFlag = true;
	/***************************************************************
	 * ½Éº¼ÀÇ URL¿¬°á ¹æ½Ä, 
	 * true : ÀÌº¥Æ®·Î Àü´Þ
	 * false : Å¬¶óÀÌ¾ðÆ® ÀÚÃ¼¿¡¼­ ÆäÀÌÁö ¿¬°á
	 ***************************************************************/
	this.IsSymbolLink = true;
	
	/***************************************************************
	 * ¸ÊÀÇ ¿ëµµ¿¡ µû¶ó ¸¶¿ì½º ÈÙ ÀÌº¥Æ®ÀÇ »ç¿ë¿©ºÎ¸¦ Ã¼Å© ÇÑ´Ù.
	 * DEFAULT : ¸¶¿ì½º ÈÙ È®´ë, Ãà¼Ò »ç¿ë
	 * PRINT : ¸¶¿ì½º ÈÙ È®´ë, Ãà¼Ò »ç¿ë¾ÈÇÔ
	 ***************************************************************/
	this.MapUses = "DEFAULT";

    /***************************************************************
	 * ÁöµµÀÇ ÇÏ¾á ºÎºÐÀ» Ã¤¿ö ³Ö¾îÁÙ ÀÌ¹ÌÁö
	 ***************************************************************/
	this.MapTileImageUrl = this.ImageResourcePath + "defaultimg/congbg.gif";
}
var CongnamulMapConfig = new CongConfig();
