// ±Û·Î¹ú ¸Þ´º 

function toggle_gnbover( idx )
{
	var obj;	

	for (var z=1; z<7; z++){
		try {
			obj = document.getElementById('gmsub_20' + z);				
		
			if (z == idx){			    
				obj.style.display="block";
			} else {
				obj.style.display="none";
			}
		} catch(e){
		}
	}
	onGnb(idx);
	return;
}	

function setMenu(idx)
{
	for ( mg=1; mg <= 7; mg++ ) 
	{
		if ( idx != mg ) 
		{
			MM_swapImage("g_menu_0" + mg + "1" ,"","newimages/menu/gnb_menu0"+mg+"1.gif",1);
		}
	}
	MM_swapImage("g_menu_0" + idx +"1","","newimages/menu/gnb_menu0"+idx+"2.gif",1);
	toggle_gnbover2(idx);
}
function setSubMenu(mObj, fileNm)
{
	MM_swapImage(mObj,"","newimages/menu/"+fileNm+".gif",1);
}
function toggle_gnbover2( idx )
{
	var obj;	

	for (var z=1; z<=7; z++){
		try {
			obj = document.getElementById('gmsub_20' + z);				
	
			if (z == idx){			    
				obj.style.display="block";
			} else {
				obj.style.display="none";
			}
		} catch(e){
			return;
			//alert(e);
		}
	}
}
//function onGnb( idx ) 
//{
//	for ( i=1 ; i <=6 ; i++ )
//	{
//		obj = document.getElementById( "gm_0" + i );
//		
//		if ( i == idx )
//		{
//			if ( obj.style.backgroundImage != "url(/pijin/gongtong/gnb_menu0" + i + "2.gif)")
//			{
//				obj.style.backgroundImage = "url(/pijin/gongtong/gnb_menu0" + i + "2.gif)";
//			}
//		}
//		else
//		{
//			if ( obj.style.backgroundImage != "url(/pijin/gongtong/gnb_menu0" + i + "1.gif)")
//			{
//				obj.style.backgroundImage = "url(/pijin/gongtong/gnb_menu0" + i + "1.gif)";
//			}
//		}
//
//		
//	}
//	
//	
//}

// ¸ÞÀÎ È­¸é ½Ç½Ã°£¼ö¿ÂÁ¤º¸/¹Ù´Ù ¸¶¿ì½º ÀÌº¥Æ® Ã³¸®
function DisplayMenu(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("menu" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("menu" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }


// ¸ÞÀÎ È­¸é °øÁö»çÇ×¿Ü ¸¶¿ì½º ÀÌº¥Æ® Ã³¸®
function DisplayNotice(index) {
        for (i=1; i<=6; i++)
        if (index == i) {
        thisMenu = eval("notice" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("notice" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
	
// ¸ÞÀÎ È­¸é ÇØ¾ç¼ö»ê¼Óº¸¿Ü ¸¶¿ì½º ÀÌº¥Æ® Ã³¸®
function Displayboard(index) {
        for (i=1; i<=6; i++)
        if (index == i) {
        thisMenu = eval("board" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("board" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }
				
// ¸ÞÀÎ È­¸é ½Ç½Ã°£¼ö¿ÂÁ¤º¸/¹Ù´Ù ¸¶¿ì½º ÀÌº¥Æ® Ã³¸®
function Displaysearch(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("search" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("search" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }

// ¸ÞÀÎ È­¸é °¢Áö¿ª»ç¹«¼Ò ¸¶¿ì½º ÀÌº¥Æ® Ã³¸®
function Displaymap(index) {
        for (i=1; i<=2; i++)
        if (index == i) {
        thisMenu = eval("map" + index + ".style");
        thisMenu.display = "";
        } 
        else {
        otherMenu = eval("map" + i + ".style"); 
        otherMenu.display = "none"; 
        }
        }


