﻿//-->메인링크시작
function link(n){
//GNB 링크
//클린박스
    if (n == 1) {
        document.location.href = "../Introduce/Introduce.aspx";

    } else if (n == 2) {
        document.location.href = "../FileDownload/BroadList.aspx";

    } else if (n == 3) {
        document.location.href = "../BuyFlatSum/PayGuide.aspx";

    } else if (n == 4) {
        document.location.href = "../FreeZone/FreeZoneMonthly.aspx";

    } else if (n == 5) {
        document.location.href = "../Event/EventList.aspx";


    } else if (n == 6) {
        document.location.href = "../Mypage/DownLoadHistory.aspx";

    }
    else if (n == 8) {
    document.location.href = "../News/NewsList.aspx";
    }
}
//-->메인링크끝
//-->서브링크시작
function mainlink(n){
//LNB 링크
//클린박스

//서비스소개
    if (n == 1) {
        document.location.href = "../Introduce/Introduce.aspx";

    } else if (n == 2) {
        document.location.href = "../Introduce/ContentsGuide.aspx";

    } else if (n == 3) {
        document.location.href = "../Introduce/AskCooperation.aspx";


        //파일다운로드의 링크시작
    } else if (n == 4) {
        document.location.href = "../FileDownload/BroadList.aspx";

    } else if (n == 5) {
        document.location.href = "../FileDownload/MovieList.aspx";

    } else if (n == 6) {
        document.location.href = "../FileDownload/Top100List.aspx";

    } else if (n == 7) {
        document.location.href = "../FileDownload/BroadAllList.aspx";
    } //정액권구매의 링크 시작
    else if (n == 8) { //상품안내
        document.location.href = "../BuyFlatSum/PayGuide.aspx";
    } else if (n == 9) { //쿠폰등록
        document.location.href = "../BuyFlatSum/FreeCoupon.aspx";
    } else if (n == 10) {  //체험신청
        document.location.href = "../BuyFlatSum/Trial.aspx";
        //무료존의 링크시작
    } else if (n == 11) {//이달의 무료작
        document.location.href = "../FreeZone/FreeZoneMonthly.aspx";
        //365무료관
    } else if (n == 12) {
        document.location.href = "../FreeZone/FreeZone365.aspx";
    } else if (n == 13) {//진행이벤트
        document.location.href = "../Event/EventList.aspx";
    } else if (n == 14)//당첨자 발표
    {
        document.location.href = "../Event/EventPrizeList.aspx";
    }
    //이용내역의 링크시작
    else if (n == 15) {//다운로드 내역
        document.location.href = "../Mypage/DownloadHistory.aspx";
    } else if (n == 16) { //구매내역
        document.location.href = "../Mypage/OrderList.aspx";
    } else if (n == 17) {//쿠폰내역
        document.location.href = "../Mypage/CouponList.aspx";
    }
    else if (n == 18) {//찜리스트
        document.location.href = "../Mypage/ZzimList.aspx";
    }
    else if (n == 19) {//공지사항
        document.location.href = "../Notice/RetrieveNoticeList.aspx";
    }
    else if (n == 20) {
        document.location.href = "../FAQ/RetrieveFAQList.aspx";
    }
    else if (n == 21) {
    document.location.href = "../News/NewsList.aspx";
    }

}


//-->메인2의 서브링크시작 (방송메뉴의 2뎁스메뉴 링크)
function sublink(n){
//LNB 2의 서브링크
//방송의 서브링크 시작
if(n==1){
document.location.href =  "../FileDownload/BroadList.aspx";

}else if(n==2){
document.location.href ="../FileDownload/BroadList.aspx?Section=1";

}else if(n==3){
document.location.href = "../FileDownload/BroadList.aspx?Section=2";

}else if(n==4){
document.location.href = "../FileDownload/BroadList.aspx?Section=3";

}else if(n==5){
document.location.href = "../FileDownload/BroadList.aspx?Section=5";
//방송의 서브링크 끝

}else if (n==6){
document.location.href = "../FileDownload/BroadList.aspx?Section=4";
}
//영화의 서브링크 시작
else if(n==7){
document.location.href =  "../FileDownload/MovieList.aspx";

}else if(n==8){
document.location.href =  "../FileDownload/MovieList.aspx?Section=10";

}else if(n==9){
document.location.href ="../FileDownload/MovieList.aspx?Section=11";

}else if(n==10){
document.location.href =  "../FileDownload/MovieList.aspx?Section=12";

}else if(n==11){
document.location.href = "../FileDownload/MovieList.aspx?Section=13";
}

//영화의 서브링크 끝
}

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