//-->메인링크시작
function link(n){
//GNB 링크
	if(n==1){
		document.location.href = "/info/serviceInfo.html"; //클린박스 소개
	}else if(n==2){
		document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=1";
	}else if(n==3){
		document.location.href = "/buy/ticket_info.html";
	}else if(n==4){
		document.location.href = "/freezone/m_freefile.html";
	}else if(n==5){
		document.location.href = "/event/eventList.html";
	}else if(n==6){
		document.location.href = "/userinfo/my_download.html";
	}else if(n==8){
		document.location.href = "/entNews/index.html";
	}
}
//-->메인링크끝
//-->서브링크시작
function mainlink(n){
	//LNB 링크
	//클린박스
	//메인1의 링크 시작
	if(n==1){
		//클린박스 소개 => 서비스 소개
		document.location.href = "/info/serviceInfo.html?pageNum=1";
	}else if(n==2){
		//클린박스 소개 => 콘텐츠 소개
		document.location.href = "/info/contentsInfo.html?pageNum=2";
	}else if(n==3){
		//클린박스 소개 => 제휴 문의
		document.location.href = "/info/cooperation.html?pageNum=3";
	}else if(n==4){
		//파일다운로드 => 방송
		document.location.href = "/file/broadcasting_list.html?pageNum=1";
	}else if(n==5){
		//파일다운로드 => 영화
		document.location.href = "/file/cinema_list.html?pageNum=2";
	}else if(n==6){
		//파일다운로드 => 인기TOP100
		document.location.href = "/file/d_top100.html?pageNum=3";
	}else if(n==7){
		//파일다운로드 => 전체목록
		document.location.href = "/file/broadcasting_list_all.html?pageNum=4";
	}else if(n==8){
		document.location.href = "/buy/ticket_info.html?pageNum=1";
//		document.location.href = "/freezone/m_freefile.html?pageNum=1";
	}else if(n==9){
		document.location.href = "/buy/free_coupon.html?pageNum=2";
//		document.location.href = "/freezone/365_freefile.html?pageNum=2";
	}else if(n==10){
		document.location.href = "/buy/experience.html?pageNum=3";
//		document.location.href = "/event/eventList.html?pageNum=1";
	}else if(n==11){
		document.location.href = "/freezone/m_freefile.html?pageNum=1";
//		document.location.href = "/event/eventPrizeList.html?pageNum=2";
	}else if(n==12){
		document.location.href = "/freezone/365_freefile.html?pageNum=2";
//		document.location.href = "/userinfo/my_download.html?pageNum=1";
	}else if(n==13){
		document.location.href = "/event/eventList.html?pageNum=1";
//		document.location.href = "/userinfo/my_ticket.html?pageNum=2";
	}else if(n==14){
		document.location.href = "/event/eventPrizeList.html?pageNum=2";
//		document.location.href = "/userinfo/my_coupon.html?pageNum=3";
	}else if(n==15){
		document.location.href = "/userinfo/my_download.html?pageNum=1";
//		document.location.href = "/userinfo/my_zzim.html?pageNum=4";
	}else if(n==16){
		document.location.href = "/userinfo/my_ticket.html?pageNum=2";
//		document.location.href = "/buy/ticket_info.html?pageNum=1";
	}else if(n==17){
		document.location.href = "/userinfo/my_coupon.html?pageNum=3";
//		document.location.href = "/buy/free_coupon.html?pageNum=2";
	}else if(n==18){
		document.location.href = "/userinfo/my_zzim.html?pageNum=4";
//		document.location.href = "/notice/noticeList.html?pageNum=1";
	}
	else if(n==19){
		document.location.href = "/notice/noticeList.html?pageNum=1";
//		document.location.href = "/notice/faqList.html?pageNum=2";
	}else if(n==20){
		document.location.href = "/notice/faqList.html?pageNum=2";
	}else if(n==21){
		document.location.href = "/entNews/index_all.html?pageNum=1";
	}else if(n==22){
		document.location.href = "/entNews/movienews.html?pageNum=2";
	}else if(n==23){
		document.location.href = "/entNews/photonews.html?pageNum=3";
	}else if(n==24){
		document.location.href = "/entNews/schedule.html?pageNum=4";
	}
//메인5의 링크 끝
}


//-->메인2의 서브링크시작 (방송메뉴의 2뎁스메뉴 링크)
function sublink(n){
//LNB 2의 서브링크
//방송의 서브링크 시작
if(n==1){
	//방송 => 전체
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=1";
}else if(n==2){
	//방송 => 드라마
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=2&s_code=1";
}else if(n==3){
	//방송 => 연예오락
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=3&s_code=2";
}else if(n==4){
	//방송 => 시사//교양
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=4&s_code=3";
}else if(n==5){
	//방송 => 유아/어린이
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=5&s_code=5";
//영화의 서브링크 시작
}else if(n==6){
	//방송 => 유아/어린이
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=6&s_code=4";
//영화의 서브링크 시작
}else if(n==7){
	//영화 => 전체
	document.location.href = "/file/cinema_list.html?pageNum=2&subNum=1&s_code=all";
}else if(n==8){
	//영화 => 드라마//코믹
	document.location.href = "/file/cinema_list.html?pageNum=2&subNum=2&s_code=10";
}else if(n==9){
	//영화 => 액션//SF
	document.location.href = "/file/cinema_list.html?pageNum=2&subNum=3&s_code=11";
}else if(n==10){
	//영화 => 공포
	document.location.href = "/file/cinema_list.html?pageNum=2&subNum=4&s_code=12";
}else if(n==11){
	//영화 => 시리지관
	document.location.href = "/file/cinema_list.html?pageNum=2&subNum=5&s_code=13";
}else if(n==12){
	//방송 => 해외
	document.location.href = "/file/broadcasting_list.html?pageNum=1&subNum=7&s_code=7";
}

//영화의 서브링크 끝
//LNB 2의 서브링크 끝
}
//-->메인링크끝
