//하병문 디자인 가구

//	var URL = "../";
	var URL = "http://www.koari.net/";
	var HOME = "http://www.koari.net/";
//	var HOME = "./";

	function OpenWin(url){
	Openwpagenow = window.open(url,"Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	}

	function OpenWin_size(url){
	Openwpagenow_size = window.open(url,"Openwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,wpageth=350,height=480");
	}
	
	
	function M00(rnum){ // 메인으로(로고)
		if(rnum == 0){
			location.href = URL+"index.php";	    // 메인으로(로고)
		}		
	}


	function M01(rnum){ // news
		if(rnum == 1){
			location.href = URL+"bbs/board.php?bo_table=news_01";      		// 연예
		}
		if(rnum == 2){
			location.href = URL+"bbs/board.php?bo_table=news_02";       	// 영화
		}
		if(rnum == 3){
			location.href = URL+"bbs/board.php?bo_table=news_03";       	// 음악
		}
		if(rnum == 4){
			location.href = URL+"bbs/board.php?bo_table=news_04";       	// 문화
		}
		if(rnum == 5){
			location.href = URL+"bbs/board.php?bo_table=news_05";       	// 포토
		}
		if(rnum == 6){
			location.href = URL+"news/news06.php?&pn=1&sn=6";       	// 랭킹
		}
	}
	
		
	
	function M02(rnum){ // CHANNER
		if(rnum == 1){
			location.href = URL+"bbs/board.php?bo_table=channer_01";	    	//  PRESS
		}
		if(rnum == 2){
			location.href = URL+"channer/channer02.php";	    	//  MAKING
		}
		if(rnum == 3){
			location.href = URL+"channer/channer03.php";	    	//  SPECIAL
		}
	}
	
	
	
	function M03(rnum){ // UCC
		if(rnum == 1){
			location.href = URL+"bbs/board.php?bo_table=ucc_01";	    	// ISSUE
		}
		if(rnum == 2){
			location.href = URL+"bbs/board.php?bo_table=ucc_02";	    	// Q&A
		}
		if(rnum == 3){
			location.href = URL+"gblog.index.php";	    	// DIARY
		}
		//커뮤니티 메인 메뉴 추가
		if(rnum == 4){
			location.href = URL+"ucc/community_main.php";	    	// 메인
		}
		//스타커뮤니티 메뉴 추가
		if(rnum == 5){
			location.href = URL+"ucc/star_community.php";	    	// 스타커뮤니티
		}
	}
	
	
	
	function M04(rnum){ // STAR
		if(rnum == 1){
			location.href = URL+"star/star01.php";	    // STAR SEARCH
		}
		if(rnum == 2){
			location.href = URL+"bbs/board.php?bo_table=star_02";	    // SCHEDULE
		}
		if(rnum == 3){
			location.href = URL+"bbs/board.php?bo_table=star_03";	    // FANLETTER
		}
		if(rnum == 4){
			location.href = URL+"star/star_main.php";	    // star main page
		}
	}
	
	
	
	function M05(rnum){ // 카달로그 신청하기
		if(rnum == 1){
			location.href = URL+"culture/culture01.php";	    	// 공연
		}
		if(rnum == 2){
			location.href = URL+"bbs/board.php?bo_table=culture_02";	    // 콘서트
		}
		if(rnum == 3){
			location.href = URL+"bbs/board.php?bo_table=culture_03";	    // 영화
		}
		if(rnum == 4){
			location.href = URL+"bbs/board.php?bo_table=culture_04";	    // 영화
		}
		if(rnum == 5 ){
			location.href = URL + "culture/culture_main.php"; 				//전체보기
		}
		if(rnum == 6 ){
			location.href = URL + "bbs/board.php?bo_table=culture_05"; 		//공연장정보
		}
	}
	
	
	
	function M06(rnum){ // shop
		if(rnum == 1){
			location.href = URL+"youngcart4/index.php";	    // 쇼핑몰  
		}
	}
	
	
	
	function add(rnum){ // add
		if(rnum == 1){
			location.href = URL+"bbs/board.php?bo_table=notice";	    // 공지사항
		}
	}
	
	
	
	function copy(rnum){ // 카피라이트 메뉴
		if(rnum == 1){
			location.href = URL+"youngcart4/shop/content.php?co_id=company";	    // 사이트소개
		}
		if(rnum == 2){
			location.href = URL+"youngcart4/shop/content.php?co_id=pr";	    // 광고문의
		}
		if(rnum == 3){
			location.href = URL+"youngcart4/shop/content.php?co_id=info";	    // 제휴안내
		}
		if(rnum == 4){
//			location.href = URL+"guide/guide05.php";	    // 문의사항
			location.href = "https://www.koari.net/guide/guide05.php";	    // 문의사항
		}
		if(rnum == 5){
			location.href = URL+"youngcart4/shop/content.php?co_id=guide";	    // 이용안내
		}
		if(rnum == 6){
			location.href = URL+"add/sitemap.php";	    // 이용안내
		}
		if(rnum == 7){
			location.href = URL+"guide/guide08.php";	    // 문의사항
		}
	}