//-----MENU
function menua(num)
{
	if(num == '1'){
		location.href= "/INTRO/intro_01.asp";
	}
	else if(num == "02"){
		location.href= "/INTRO/intro_02.asp";
	}
	else if(num == "03"){
		location.href= "/INTRO/daejangkeum_06.asp";
	}
	else if(num == "04"){
		location.href= "/INTRO/intro_03.asp";
	}
	else if(num == "05"){
		location.href= "/INTRO/intro_04.asp";
	}
	else if(num == "06"){
		location.href= "/INTRO/intro_05.asp";
	}
	else if(num == "07"){
		location.href= "/INTRO/intro_06.asp";
	}
	else if(num == "08"){
		location.href= "/INTRO/intro_07.asp";
	}
}

function menuh(num)
{
	if(num == '1'){
		location.href= "/COMPETITION/competition_01.asp";
	}
	else if(num == "02"){
		location.href= "/COMPETITION/competition_02.asp";
	}
	else if(num == "03"){
		location.href= "/COMPETITION/competition_03.asp";
	}
	else if(num == "04"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_08_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_10_BOARD";
	}
	else if(num == "06"){
		location.href= "#";
	}
}

function menub(num)
{
	if(num == '1'){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_04_BOARD";
	}
	else if(num == "02"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_04_BOARD";
	}
	else if(num == "03"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_05_BOARD";
	}
}

function menuc(num)
{
	if(num == '1'){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_01_BOARD";
	}
	else if(num == "02"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_02_BOARD";
	}
	else if(num == "03"){
		location.href= "/BOARD/list.asp?Table_Code=ZB_02_BOARD";
	}
	else if(num == "04"){
		location.href= "/BOARD/list.asp?Table_Code=ZB_01_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_01_BOARD";
	}
	else if(num == "06"){
		location.href= "/GALLERY/list.asp?Table_Code=ZC_01_BOARD";
	}
	else if(num == "07"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_09_BOARD";
	}
}

function menud(num)
{
	if(num == '1'){
		location.href= "/ABOUT/join.asp";
	}
	else if(num == "02"){
		location.href= "/ABOUT/join_list.asp";
	}
	else if(num == "03"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_09_BOARD";
	}
	else if(num == "04"){
		location.href= "/BOARD/list.asp?Table_Code=ZB_03_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_02_BOARD";
	}
}

function menue(num)
{
	if(num == '1'){
		location.href= "/ABOUT/certificate_01.asp";
	}
	else if(num == "02"){
		location.href= "/morgue/list.asp?Table_code=ZD_03_BOARD";
	}
	else if(num == "03"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_06_BOARD";
	}
	else if(num == "04"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_07_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_06_BOARD";
	}
}

function menuf(num)
{
	if(num == '1'){
		location.href= "/ABOUT/asi_01.asp";
	}
	else if(num == "02"){
		location.href= "/ABOUT/asi_02.asp";
	}
	else if(num == "03"){
		location.href= "/ABOUT/asi_03.asp";
	}
	else if(num == "04"){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_03_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_07_BOARD";
	}
	else if(num == "06"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_05_BOARD";
	}
}

function menug(num)
{
	if(num == '1'){
		location.href= "/NOTICE/list.asp?Table_Code=ZA_08_BOARD";
	}
	else if(num == "02"){
		location.href= "/BOARD/list.asp?Table_Code=ZB_04_BOARD";
	}
	else if(num == "03"){
		location.href= "/BOARD/list.asp?Table_Code=ZB_05_BOARD";
	}
//	else if(num == "04"){
//		location.href= "/GALLERY/list.asp?Table_Code=ZC_04_BOARD";
//	}
	else if(num == "05"){
		location.href= "/GALLERY/list.asp?Table_Code=ZC_05_BOARD";
	}
}

function menui(num)
{
	if(num == '1'){
		location.href= "/daejangkeum/daejangkeum_01.asp";
	}
	else if(num == "02"){
		location.href= "/daejangkeum/daejangkeum_02.asp";
	}
	else if(num == "03"){
		location.href= "/daejangkeum/daejangkeum_03.asp";
	}
	else if(num == "04"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_11_BOARD";
	}
	else if(num == "05"){
		location.href= "/MORGUE/list.asp?Table_Code=ZD_12_BOARD";
	}
}


//-----TOP ICON
function topicon(num)
{
	
	if(num == "01"){									// HOME
		location.href = "/main.asp";
	}
	else if(num == "02"){								// LOGIN
		location.href= "/LOGIN/login.asp";
	}
	else if(num == "03"){								// SITEMAP
		location.href= "/ABOUT/sitemap.asp";
	}
	else if(num == "04"){								// CONTACT
		location.href= "/INTRO/intro_07.asp";
	}
	else if(num == "05"){								// LOGOUT
		location.href= "/LOGIN/logout.asp";
	}
}

//-----LEFT BANNER
function banner(num)
{
	
	if(num == "01"){
		var print = "http://world-wine.co.kr/";
		window.open(print, '', 'width=800, height=600, top=50, left=50,toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,scrollbars=1');
	}
	else if(num == "02"){
		var print = "http://www.corvinwine.co.kr";
		window.open(print, '', 'width=800, height=600, top=50, left=50,toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,scrollbars=1');
	}
	else if(num == "03"){
		var print = "http://www.timberzone.co.kr/";
		window.open(print, '', 'width=800, height=600, top=50, left=50,toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,scrollbars=1');
	}
	else if(num == "04"){
		location.href= "/MOVIE/movie.asp";
	}
}



if (document.images) 
{
	icon_01_on = new Image ();	
	icon_01_on.src = "/images/company/sub_06/icon_01_on.gif";
	icon_01_off= new Image ();	
	icon_01_off.src = "/images/company/sub_06/icon_01_off.gif";
	
	icon_01_on = new Image ();	
	icon_01_on.src = "/images/company/sub_06/icon_01_on.gif";
	icon_01_off= new Image ();	
	icon_01_off.src = "/images/company/sub_06/icon_01_off.gif";
}

function swap_img(imgid,imgnew) 
{   
	if (document.images) 
	{
        	 document.images[imgid].src=eval(imgnew + ".src");   
	}
}
