/******************************************************************************
 * ¸ÞÀÎ ¹× ¼­ºê¸ÞÀÎ ÅÇ¹öÆ° ½ºÅ©¸³Æ® : 2008-10-9 *
******************************************************************************/


function tablayers(menu,n) {
	var totalcount;
	
	/* ¸ÞÀÎ */
	if (menu == "newsList") {
		totalcount = 5;
	}
	if (menu == "commList") {
		totalcount = 5;
	}
	if (menu == "focusList") {
		totalcount = 4;
	}
	
	/* ´º½º */
	if (menu == "nsHRList") {
		totalcount = 5;
	}
	if (menu == "nsFPList") {
		totalcount = 3;
	}
	if (menu == "nsMTList") {
		totalcount = 4;
	}
	if (menu == "nsPhoto") {
		totalcount = 3;
	}
	
	/* ºÐ¾ç¸ô */
	if (menu == "byList") {
		totalcount = 5;
	}
	if (menu == "byMap") {
		totalcount = 3;
	}
	if (menu == "byIbju") {
		totalcount = 5;
	}
	if (menu == "byJunList") {
		totalcount = 3;
	}
	if (menu == "byRecoList") {
		totalcount = 3;
	}
	
	/* ¸Å¹° */
	if (menu == "mmKind01") {
		totalcount = 3;
	}
	if (menu == "mmKind02") {
		totalcount = 3;
	}
	if (menu == "mmList") {
		totalcount = 11;
	}
	
	/* ¾ÆÆÄÆ® */
	if (menu == "atMTList") {
		totalcount = 4;
	}
	if (menu == "atFMList") {
		totalcount = 2;
	}
	if (menu == "atBAList") {
		totalcount = 4;
	}

	/* Àç°³¹ßÀç°ÇÃà */
	if (menu == "rdList") {
		totalcount = 4;
	}
	if (menu == "rdMap") {
		totalcount = 5;
	}
	if (menu == "rdGraph") {
		totalcount = 3;
	}
	
	/* ÁÖÅÃ¿ø·ë */
	if (menu == "hsSearch") {
		totalcount = 3;
	}
	
	/* ¿ÀÇÇ½ºÅÚÁÖ»óº¹ÇÕ */
	if (menu == "otList") {
		totalcount = 3;
	}
	if (menu == "otMTList") {
		totalcount = 2;
	}
	if (menu == "otHBList") {
		totalcount = 3;
	}
	
	/* »ó°¡»ó±Ç */
	if (menu == "stGraph") {
		totalcount = 3;
	}
	
	/* ¿ÀÇÇ½º°øÀå */
	if (menu == "ofMap") {
		totalcount = 4;
	}
	
			
	for(var i = 1; i < totalcount; i++) {
		obj = document.getElementById(menu+i);
		title = document.getElementById("tab_" + menu + "_"+i);
			
		if ( n == i ) {
			obj.style.display = "block";
			title.className = "mtabover";
		} else {
			obj.style.display = "none";
			title.className = "mtab";
		}
	}
}





/* ºÐ¾ç¸ô ºÐ¾ç´ëÀü */
function clickshow(num) {
	menu=eval("document.all.byMatchList.style");
	if (num == 1) {
		if (menu.display=="block") {
			menu.display="none";
			document.getElementById("showBtn").src = "http://image.r114.co.kr/images/r114/2005/item/szz_s_open.gif";
		} else {
			menu.display="block";
			document.getElementById("showBtn").src = "http://image.r114.co.kr/images/r114/2005/item/szz_s_close.gif";
		}
	}
}






function tablayers_sub(menu,n) {
	var totalcount;
	
	/* ¾ÆÆÄÆ®½Ã¼¼¼­ºê¸é */
	if (menu == "donginfo") {
		totalcount = 3;
	}
	if (menu == "planMap") {
		totalcount = 5;
	}
	if (menu == "headMap") {
		totalcount = 3;
	}
	
	if (menu == "subWay") {
		totalcount = 6;
	}
	
	if (menu == "danjiPht") {
		totalcount = 3;
	}
	if (menu == "royalInfo") {
		totalcount = 3;
	}
	
	if (menu == "siseInfo") {
		totalcount = 3;
	}
	
	/* ¸Å¹° */
	if (menu == "mjw") {
		totalcount = 4;
	}

	if (menu == "memulHeadMap") {
		totalcount = 5;
	}

	if (menu == "memulHeadMapAc") {
		totalcount = 3;
	}

	if (menu == "memulPlanMap") {
		totalcount = 2;
	}

	if (menu == "Sale_planMap") {
		totalcount = 3;
	}
	
	/* ºÐ¾ç¸ô */
	if (menu == "byPlanMap") {
		totalcount = 4;
	}
	
			
	for(var i = 1; i < totalcount; i++) {
		obj = document.getElementById(menu+i);
		title = document.getElementById("tab_" + menu + "_"+i);
			
		if ( n == i ) {
			obj.style.display = "block";
			title.className = "mtaboverSub";
		} else {
			obj.style.display = "none";
			title.className = "mtabSub";
		}
	}
}

