	
	//¼±ÅÃµÇ¾îÁø Ä«Å×°í¸® Áß ¸¶Áö¸· Ä«Å×°í¸® CallBack ÇÔ¼ö °¡ ½ÇÇàµÈ ÈÄ ·ÎµùÁß ·¹ÀÌ¾î Hide ½ÃÅ²´Ù.
	function SetCateThemeLoadingLayerHide(cate){

		if(_CateDataCnt > 7)
			_CateDataCnt = _CateDataCnt -1;
		_CateDataCnt = _CateDataCnt -1;

		//$("yeda").value = $("yeda").value + "\n _CateLastTheme : " + _CateDataCnt + "";

		if(_ISCateMenuClick == "Y")		{
			if($("poiLoadingLayer") != null) $("poiLoadingLayer").hide();
		}else{
			if(_CateDataCnt == 0){
				if($("poiLoadingLayer") != null) $("poiLoadingLayer").hide();
			}
		}
	}
	
	//°ø¿¬¸Ê (cp/ucc) ¿µ¿ª °Ë»ö
	function SelectAreaActSearch_Ajax(leftTopLon, leftTopLat, rightBottomLon, rightBottomLat, kind, top)
	{
		var callback = "";
		if(kind == "cp")
			callback = "ResultAreaSearchActCp_CallBack";
		else
			callback = "ResultAreaSearchActUcc_CallBack";
			
		ActMap_aspx.ResultAreaSearchAct(leftTopLon, leftTopLat, rightBottomLon, rightBottomLat, kind, top, eval(callback));
	}
	function ResultAreaSearchActCp_CallBack(res)
	{
		try{
			if(res.value.Tables[0].Rows.length > 0)
			{
				POIAddHandler("cate_cp", res, 0, 0);		
			}
			else
			{
				//if($("poiLoadingLayer") != null) $("poiLoadingLayer").hide();
			}
			SetCateThemeLoadingLayerHide("cp");
		}catch(ex){
			SetCateThemeLoadingLayerHide("cp");		
		}
	}
	function ResultAreaSearchActUcc_CallBack(res)
	{
		try
		{
			if(res.value.Tables[0].Rows.length > 0)
			{
				POIAddHandler("cate_ucc", res, 0, 0);		
			}
			
			SetCateThemeLoadingLayerHide("ucc");
		}catch(ex){
			SetCateThemeLoadingLayerHide("ucc");
		}
	}	
	//Å×¸¶ °Ë»ö

	var _themeCateName = "";
	function ResultThemeData_Ajax(sx, sy, ex, ey, pageNo, cateCode, top)
	{	
		//isThemeSearch = true;
		ActMap_aspx.ResultThemeData(sx, sy, ex, ey, pageNo, top, cateCode, ResultThemeData_CallBack);	
	}
	function ResultThemeData_CallBack(res)
	{
		try
		{
			if(res.value.Tables[0].Rows.length > 0)
			{
				//PrintHtmlHandler("Theme", res, 0);
				POIAddHandler(res.value.Tables[6].Rows[0]["cate"], res, 0);
			}
			SetCateThemeLoadingLayerHide(res.value.Tables[6].Rows[0]["cate"]);
		}catch(ex){
			SetCateThemeLoadingLayerHide(res.value.Tables[6].Rows[0]["cate"]);
		}
	}
	//»ç¿ëÀÚ Å×¸¶ °Ë»ö
	function ResultUserThemeData_Ajax(sx, sy, ex, ey, pageNo, cateCode, top) 
	{
		//isUserThemeSearch = true;
		ActMap_aspx.ResultUserThemeData(sx, sy, ex, ey, pageNo, top, cateCode, ResultUserThemeData_CallBack);	
	}
	function ResultUserThemeData_CallBack(res)
	{
		try
		{			
			if(res.value.Tables[0].Rows.length > 0)
			{
				POIAddHandler("userTheme", res, 0);
			}
			SetCateThemeLoadingLayerHide("usertheme");
		}catch(ex){
			SetCateThemeLoadingLayerHide("usertheme");
		}
	}
	
	function ResultActDataOne_Ajax(kind, pid) 
	{
		CATECODE = "99";
		isTotalSearch = true;
		
		ActMap_aspx.ResultActDataOne(kind, pid, ResultActDataOne_CallBack);	
	}
	function ResultActDataOne_CallBack(res)
	{
		
		try
		{
			if( res.value.Tables[0].Rows.length == 0 ) {
				SetNoResultMessage();
			} else {
				var tbl_kind = "";
				var kind = "";
				tbl_kind = res.value.Tables[0].Name;
				if( tbl_kind == "cpTable" ) {
					kind = "cp";
				} else if( tbl_kind == "uccTable" ) {
					kind = "ucc";
				}	
				PrintHtmlHandler(kind, res, 0);	
				POIAddHandler(kind, res, 0, 1); 
			}
		}
		catch(ex)
		{
		}
		finally
		{
			isTotalSearch = false;
		}
	}
	// ÅëÇÕ°Ë»ö 
	//kind, key,ar1,ar2,actDate,genere,sortVal, pageNo);
	function ResultActData_Ajax(kind, key, ar1, ar2, actDate, genere, sortVal, pageNo) 
	{
		CATECODE = "99";
		isTotalSearch = true;
		ActMap_aspx.ResultActData(kind, key, ar1, ar2, actDate, genere, sortVal, pageNo, ResultActData_CallBack);	
	}
	function ResultActData_CallBack(res)
	{
		try
		{
			document.getElementById("resultData").style.display = "";
			document.getElementById("searchIngMsg").style.display = "none";
			
			//ÀüÃ¼°Ë»öÀÏ½Ã			
			if( res.value.Tables.length > 2 ) {
				if( res.value.Tables[0].Rows.length == 0 && res.value.Tables[2].Rows.length == 0 ) {
					SetNoResultMessage();
				} else {
					if(res.value.Tables[0].Rows.length > 0)
					{
						PrintHtmlHandler("cp", res, 0);
						POIAddHandler("cp", res, 0, 0);
					}
					if(res.value.Tables[2].Rows.length > 0)
					{
						PrintHtmlHandler("ucc", res, 2);	 	
						POIAddHandler("ucc", res, 2, 0);
					}				
				}
			// CP/UCC ´ÜÀÏ °Ë»öÀÏ½Ã
			} else {
				if( res.value.Tables[0].Rows.length == 0 ) {
					SetNoResultMessage();
				} else {
					PrintHtmlHandler(res.value.Tables[0].Rows[0]["tbl_kind"], res, 0);	 	
					POIAddHandler(res.value.Tables[0].Rows[0]["tbl_kind"], res, 0, 0);
				}
			}
		}
		catch(ex)
		{
		}
		finally
		{
			isTotalSearch = false;
		}
	}
	
	