	var URL = "../cn/";
	var HOME = "../cn/";

	function OpenWin(url){
	Openwidnow = window.open(url,"Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");
	}

	function OpenWin_size(url){
	Openwidnow_size = window.open(url,"Openwindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=820,height=700");
	}
	
	
	function M00(rnum){ // 메인으로(로고)
		if(rnum == 0){
			location.href = URL+"index.php";	    // 메인으로(로고)
		}				
	}


	function M01(rnum){ // pro 제품소개
		if(rnum == 0){
			location.href = URL+"pro01.php";       //product line
		}
		if(rnum == 1){
			location.href = URL+"pro01.php";       //product line
		}
		if(rnum == 2){
			location.href = URL+"pro01.php?ss[2]=1";       //chip
		}
//		if(rnum == 21){
//			location.href = URL+"sub_view.php?fp_name=pro/pro02&pn=1&sn=2&sn2=1";       //chip
//		}
//		if(rnum == 22){
//			location.href = URL+"sub_view.php?fp_name=pro/pro02_2&pn=1&sn=2&sn2=1";       //chip
//		}
//		if(rnum == 23){
//			location.href = URL+"sub_view.php?fp_name=pro/pro02_3&pn=1&sn=2&sn2=1";       //chip
//		}
		
		if(rnum == 3){
			location.href = URL+"pro01.php?ss[2]=2";       //module
		}	
		if(rnum == 4){
			location.href = URL+"pro01.php?ss[2]=3";       //evb
		}	
		if(rnum == 5){
			location.href = URL+"pro01.php?ss[2]=4";       //a.k
		}
		if(rnum == 6){
			location.href = URL+"pro01.php?ss[2]=5";       //accessories
		}
		if(rnum == 7){
			Openwidnow = window.open("http://www.wizwiki.net","Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");       //open market
		}
	}
	


	function M02(rnum){ // tech 기술소개
		if(rnum == 0){
			location.href = URL+"tech01.php";       //개요
		}
		if(rnum == 1){
			location.href = URL+"tech01.php";       //개요
		}
		if(rnum == 2){
			location.href = URL+"tech02.php";       //로드맵
		}
		if(rnum == 3){
			location.href = URL+"tech03.php";       //하드웨어
		}
		if(rnum == 4){
			location.href = URL+"tech04.php";       //ioffroad,top
		}
		if(rnum == 5){
			location.href = URL+"tech05.php";       //ipv6
		}
		if(rnum == 6){
			location.href = URL+"tech06.php";       //공인기술력
		}	
	}
	
	
	function M03(rnum){ // qna 기술Q&A
		if(rnum == 0){
			location.href = "../rg4_board/list.php?bbs_code=cn_qna";       //qna
		}
		if(rnum == 1){
			location.href = "../rg4_board/list.php?bbs_code=cn_qna";       //qna
		}
		if(rnum == 2){
			location.href = "../rg4_board/list.php?bbs_code=cn_faq";       //자주 묻는 질문
		}		
		if(rnum == 3){
			location.href = "../rg4_board/list.php?bbs_code=cn_eforum";       //e-forum
		}
	}
	
	
	function M04(rnum){ // library 자료실 
		if(rnum == 0){
			location.href = URL+"library04.php";       //신규업데이트
		}
		if(rnum == 1){
			location.href = URL+"library04.php";       //신규업데이트
		}
		if(rnum == 2){
			location.href = "../rg4_board/list.php?bbs_code=cn_pds";       //자료실
		}	
		if(rnum == 3){
			location.href = "../rg4_board/list.php?bbs_code=cn_bbs1";       //적용사례
		}	
		if(rnum == 4){
			location.href = "../rg4_board/list.php?bbs_code=cn_rohs";       //rohs
		}	
		//if(rnum == 5){
		//	location.href = "../rg4_board/list.php?bbs_code=cn_edu";       //교육
		//}	
		if(rnum == 5){
			location.href = "../rg4_board/list.php?bbs_code=cn_letter";       //뉴스레터
		}		
	}
	
	
	function M05(rnum){ // distri 국내대리점 
		if(rnum == 0){
			location.href = URL+"distri01.php?ss[2]=1";       //국내대리점
		}
		if(rnum == 1){
			location.href = URL+"distri01.php?ss[2]=1";       //asia
		}
		if(rnum == 2){
			location.href = URL+"distri01.php?ss[2]=2";       //europe
		}
		if(rnum == 3){
			location.href = URL+"distri01.php?ss[2]=3";       //north america
		}
		if(rnum == 4){
			location.href = URL+"distri01.php?ss[2]=4";       //south america
		}
		if(rnum == 5){
			location.href = URL+"distri01.php?ss[2]=5";       //africa
		}
		if(rnum == 6){
			location.href = URL+"distri01.php?ss[2]=6";       //oceania
		}
	}
	
	
	function M06(rnum){ // partner 파트너쉽
		if(rnum == 0){
			location.href = "../rg4_board/list.php?bbs_code=cn_sol";       //솔루션 프로바이더
		}
		if(rnum == 2){
			location.href = "../rg4_board/list.php?bbs_code=cn_sol";       //솔루션 프로바이더
		}
		if(rnum == 1){
			location.href = URL+"partner02.php";       //overview
		}
	}
	
	
	//function M07(rnum){ // blog 블로그
		//if(rnum == 0){
			//location.href = URL+"blog01.php";       //파워블로그
		//}
		//if(rnum == 1){
			//location.href = URL+"blog01.php";       //파워블로그
		//}
		//if(rnum == 2){
			//location.href = URL+"../rg4_board/list.php?bbs_code=cn_bbs2";      //커뮤니티
		//}
	//}
	
	
	function M07(rnum){ // company 회사소개
		if(rnum == 0){
			location.href = URL+"company01.php";       //회사개요
		}
		if(rnum == 1){
			location.href = URL+"company01.php";       //회사개요
		}
		if(rnum == 2){
			location.href = URL+"../rg4_board/list.php?bbs_code=cn_news";       //뉴스
		}
		if(rnum == 3){
			location.href = URL+"company03.php";       //연혁
		}
		if(rnum == 4){
			location.href = URL+"company04.php";       //조직구성
		}
		if(rnum == 5){
			location.href = URL+"company05.php";       //투자정보
		}
		if(rnum == 6){
			location.href = URL+"company06.php";       //찾아오시는길
		}
	}

	function M09(rnum){ // member 회원
		if(rnum == 0){
			location.href = URL+"login.php";       //로그인
		}
		if(rnum == 1){
			location.href = URL+"login.php";       //로그인
		}
		if(rnum == 2){
			location.href = URL+"join.php";       //회원가입
		}
		if(rnum == 3){
			location.href = URL+"login.php?logout&ret_url=../cn/";       //로그아웃
		}
		if(rnum == 4){
			location.href = URL+"myinfo.php";       //회원정보
		}
	}

	function M10(rnum){ // sitemap 사이트맵
		if(rnum == 0){
			location.href = URL+"sitemap01.php";       //사이트맵
		}
		if(rnum == 1){
			location.href = URL+"sitemap01.php";       //사이트맵
		}
	}
	
	
	function M11(rnum){ // tag 
		if(rnum == 0){
			location.href = URL+"tag01.php";       //tag
		}
		if(rnum == 1){
			location.href = URL+"tag01.php";       //tag
		}
	}
	
	
	function M12(rnum){ // rss
		if(rnum == 0){
			location.href = URL+"rss01.php";       //rss
		}
		if(rnum == 1){
			location.href = URL+"rss01.php";       //rss
		}
	}
	
	
	function add(rnum){ // top
		if(rnum == 1){
			location.href = URL+"login.php";       //login
		}
		if(rnum == 2){
			location.href = URL+"join.php";       //join
		}
		
		if(rnum == 4){
			location.href = URL+"login.php?logout&ret_url=../cn/";       //logout
		}
		if(rnum == 5){
			location.href = URL+"myinfo.php";       //info
		}
	}
	
	
	function Lan(rnum){ // 언어
		if(rnum == 0){
			location.href = "../en";       //english
		}	
		if(rnum == 1){
			location.href = "../cn";       //chinese
		}
		if(rnum == 2){
			//alert("Under Construction!!");
			location.href = "../jp";       //japanese
		}
		if(rnum == 3){
			location.href = "../kr";       //korean
		}	
	}
	
	
	function Dow(rnum){
		var Openwidnow
		if(rnum == 0){
			Openwidnow = window.open("http://www.wizwiki.net","Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");  //open market
		}
		if(rnum == 1){
			Openwidnow = window.open("http://www.ewiznet.co.kr","Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");       //e-sale
		}
		if(rnum == 2){
			Openwidnow = window.open("http://www.ewiznet.com","Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");       //e-sale
		}
		if(rnum == 3){
			Openwidnow = window.open("http://cn.ewiznet.com","Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");       //e-sale
		}
		if(rnum == 4){
			Openwidnow = window.open("#", "Openwindow","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes");       //e-sale
		}
	}
	

	function BN(rnum){ // 메인배너
		if(rnum == 0){
			location.href = URL+"../rg4_board/list.php?bbs_code=cn_pds";       //data
		}	
		if(rnum == 1){
			location.href = URL+"blog01.php";       //bloger
		}
		if(rnum == 2){
			location.href = URL+"../rg4_board/list.php?bbs_code=cn_qna";       //qna
		}
	}



	function product(rnum){ // 메인롤링 상품링크
		if(rnum == 1){
			location.href = URL+"pro02.php?&ss[2]=2&page=1&num=184";       //W610wi
		}	
		if(rnum == 2){
			location.href = URL+"pro02.php?&page=1&num=100";       //wiz200web
		}
		if(rnum == 3){
			location.href = URL+"pro02.php?&page=1&num=91";       //wiz812mj
		}
	}


	function Sum0(rnum){ // 하단롤링 상품링크
		if(rnum == 1){
			location.href = URL+"pro02.php?&page=1&num=77";       //wiz830mj
		}	
		if(rnum == 2){
			location.href = URL+"pro02.php?&page=1&num=26";       //w5300
		}
		if(rnum == 3){
			location.href = URL+"pro02.php?&page=1&num=21";       //wiz100sr
		}
	}