//대메뉴
function fn_home()
{
	top.location.href = "/";
}
function fn_news()
{
	top.location.href = "/news/";
}
function fn_gameinfo()
{
	top.location.href = "/gameinfo/";
}
function fn_cartoon()
{
	top.location.href = "/cartoon/";
}
function fn_movie()
{
	top.location.href = "/movie/";
}
function fn_community()
{
	top.location.href = "/community/";
}
function fn_fun()
{
	top.location.href = "/fun/";
}
function fn_gallery()
{
	top.location.href = "/gallery/";
}
function fn_userrk01()
{
	top.location.href = "/main/user_list.php";
}
function fn_userrk02()
{
	top.location.href = "/main/user_list.php";
}




/*뉴스센터*/
function fn_news01() //실시간정보
{
	top.location.href = "/board/list.php?category=101";
}
function fn_news02() //취재
{
//	top.location.href = "/news/category102.php"; // 디자인을 보여드리기 위해 임의로 만들어 놓은 파일 입니다.
	top.location.href = "/board/list.php?category=102"; //원래 게시판 주소
}
function fn_news03() //기획/특집
{
//    top.location.href = "/news/category115.php";// 디자인을 보여드리기 위해 임의로 만들어 놓은 파일 입니다.
	top.location.href = "/board/list.php?category=115"; //원래 게시판 주소
}
function fn_news04() //인터뷰
{
	top.location.href = "/board/list.php?category=103";
}
function fn_news05() //칼럼
{
	top.location.href = "/board/list.php?category=116";
}
function fn_news06() //포토_동영상
{
	top.location.href = "/board/list.php?category=104";
}
function fn_news07() //지난톱기사
{
	top.location.href = "/board/list.php?category=117";
}
function fn_news08() //게임행사히스토리
{
	top.location.href = "/news/game_eventpage.php";
}

/*게임정보*/
function fn_gameinfo01() //게임가이드
{
	top.location.href = "/gameinfo/guidelist.php";
}
function fn_gameinfo02() //리뷰
{
	top.location.href = "/board/list.php?category=404";
//	top.location.href = "/gameinfo/review.php";

}
function fn_gameinfo03() //프리뷰&체험기
{
    top.location.href = "/board/list.php?category=410";
}
function fn_gameinfo04() //공략&기행
{
	top.location.href = "/board/list.php?category=305";
}
function fn_gameinfo05() //게임스크린
{
//	top.location.href = "/gameinfo/screen.php";
	top.location.href = "/board/list.php?category=409";
}
function fn_gameinfo06() //게임캘린더
{
	top.location.href = "/gameinfo/calendar.php";
}


/*연재/카툰*/
function fn_cartoon01() //스페셜 칼럼
{
	top.location.href = "/cartoon/special.php";
}
function fn_cartoon02() //연재
{
	top.location.href = "/cartoon/serial.php";
}
function fn_cartoon03() //카툰
{
    top.location.href = "/cartoon/cartoon.php";
}
function fn_cartoon04() //지난연재/기획
{
	top.location.href = "/cartoon/lastserial.php";
}

/*동영상존*/
function fn_movie01() //최신영상
{
//	top.location.href = "/movie/newmovie.php";
	top.location.href = "/board/list.php?category=5001";
}
function fn_movie02() //환상의 플레이
{
//	top.location.href = "/movie/category408.php";// 디자인을 보여드리기 위해 임의로 만들어 놓은 파일 입니다.
	top.location.href = "/board/list.php?category=408"; // 원래디자인
}
function fn_movie03() //동영상공략
{
  top.location.href = "/board/list.php?category=403";
}
function fn_movie04() //게임예고편
{
	top.location.href = "/board/list.php?category=307";
}

/*커뮤니티*/
function fn_community01() //게임후기
{
	top.location.href = "/board/list.php?category=207"; // 원래디자인
//	top.location.href = "/community/category207.php";// 디자인을 보여드리기 위해 임의로 만들어 놓은 파일 입니다.
}
function fn_community02() //게이머평점&한줄평
{
	top.location.href = "/community/gamer.php?category=1";
}
function fn_community03() //게이머발언대
{
//	top.location.href = "/community/category203.php";// 디자인을 보여드리기 위해 임의로 만들어 놓은 파일 입니다.
	top.location.href = "/board/list.php?category=203";
}
function fn_community04() //자유게시판
{
	top.location.href = "/board/list.php?category=607";
}
function fn_community05() //출동!타이거클럽
{
//	top.location.href = "/community/tigerclub.php";
	top.location.href = "/board/list.php?category=611";
}
function fn_community06() //게이머평점 순위
{
	top.location.href = "/community/gamer_ranking.php";
}
function fn_community07() //게임 잡담
{
	top.location.href = "/board/list.php?category=613";
}
function fn_community08() //HW
{
	top.location.href = "/board/list.php?category=614";
}

/*펀&조이*/
function fn_fun01() //나도한표
{
	top.location.href = "/fun/vote.php";
}

function fn_fun01w() //나도한표
{
	window.open("/fun/vote.php", '', '');
}

function fn_fun02() //강추/비추
{
	top.location.href = "/board/list.php?category=608";
}
function fn_fun03() //wish list
{
	top.location.href = "/board/list.php?category=610";
}
function fn_fun04() //좋은글
{
	top.location.href = "/board/list.php?category=609";
}
function fn_fun05() //세상이야기
{
	top.location.href = "/board/list.php?category=601";  //원래 게시판
	//top.location.href = "/fun/story.php";

}

/*갤러리*/
function fn_gallery01() //게임
{
//	top.location.href = "/gallery/category501.php";
	top.location.href = "/board/list.php?category=501";
}
function fn_gallery02() //유머_깜찍
{
//	top.location.href = "/gallery/category504.php";
	top.location.href = "/board/list.php?category=504";
}
function fn_gallery03() //스타_연예인
{
//	top.location.href = "/gallery/category506.php";
	top.location.href = "/board/list.php?category=506";
}
function fn_gallery04() //얼짱_몸짱
{
//	top.location.href = "/gallery/category505.php";
	top.location.href = "/board/list.php?category=505";
}
function fn_gallery05() //디카_폰카
{
//	top.location.href = "/gallery/category507.php";
	top.location.href = "/board/list.php?category=507";
}
function fn_gallery06() //동영상_플래시
{
//	top.location.href = "/gallery/category508.php";
	top.location.href = "/board/list.php?category=508";
}




/*ETC*/
function fn_idpw() //아이디패스워드검색
{
	top.location.href = "/member/idpwsearch.php";
}
function fn_join() //회원가입
{
    var x = Math.round(Math.random()*1000000)
	top.location.href = "/user/prejoin.php?id="+x;
}
function fn_myinfo() //내정보
{
	top.location.href = "/member/myinfo.php";
}
function fn_infomidify() //내정보수정
{
	top.location.href = "/member/myinfomodify.php";
}
function fn_infomodify02() //나의정보수정 팝업
{
	window.open('/popup/pop_myinfo.php' , 'pop01' , 'width=477,height=325');
}
function fn_notice() //공지사항
{
	top.location.href = "/board/list.php?category=901";
}
function fn_event() //이벤트
{
	top.location.href = "/event/index.php";
}
function fn_guide() //tig가이드
{
	top.location.href = "/guide/index.php";
}
function fn_levelquestion() //tig가이드
{
	top.location.href = "/board/view.php?id=41459&category=7001";
}
function fn_ask() //질문/문의
{
	top.location.href = "/ask/list.php";
}
function fn_iconshop() //아이콘샵
{
	top.location.href = "/iconshop/iconshop.php";
}
function fn_sitemap() //사이트맵
{
	top.location.href = "/main/sitemap.php";
}
function fn_company() //회사소개
{
	top.location.href = "/main/company.php";
}
function fn_contract() //이용약관
{
	top.location.href = "/main/contract.php";
}

function fn_contract() //이용약관
{
	top.location.href = "/main/contract.php";
}

function fn_person() //개인정보보호정책
{
	top.location.href = "/main/newperson.php";
}

function fn_advertise() //광고
{
	top.location.href = "/main/advertise.php";
}
function fn_faq() // FAQ
{
	top.location.href = "/board/list.php?category=7001";
}
function fn_RSS() // RSS
{
	top.location.href = "/main/RSS.php";
}
// 새창 //
function fn_sitemapw() //사이트맵
{
	window.open("/main/sitemap.php", "", "");
}
function fn_companyw() //회사소개
{
	window.open("/main/company.php", "", "");
}
function fn_contractw() //이용약관
{
	window.open("/main/contract.php", "", "");
}

function fn_contractw() //이용약관
{
	window.open("/main/contract.php", "", "");
}

function fn_personw() //개인정보보호정책
{
	window.open("/main/newperson.php", "", "");
}

function fn_advertisew() //광고
{
	window.open("/main/advertise.php", "", "");
}
function fn_faqw() // FAQ
{
	window.open("/board/list.php?category=7001", "", "");
}



/*팝업*/
function fn_report(type, id, category, item) //신고하기
{
	window.open('/popup/report.php?type=' + type + '&id=' + id + '&category=' + category + '&item=' + item , 'pop01' , 'width=450,height=485');
}
function fn_notify() //제보하기
{
	window.open('/popup/pop_notify_new.php', 'pop01' , 'width=450,height=540');
}
function fn_notify_new(){  //제보하기
	window.open('/popup/pop_notify_new.php', 'pop01' , 'width=450,height=540');
}
function fn_discussion() //토론제안
{
	window.open('/popup/pop_discussion.php', 'pop01' , 'width=465,height=560');
}

// 질문/건의
function fn_Question()
{
    top.location.href = "/board/list.php?category=903";
}

function fn_quest() //퀘스트 제안
{
	window.open('/popup/pop_notify.php?type=2', 'pop_quest' , 'width=465,height=560');
}
function fn_out() //회원탈퇴
{
	window.open('/popup/pop_out.php' , 'pop01' , 'width=300,height=200');
}
function fn_resell(no) //아이콘되팔기
{
	window.open('/iconshop/resell.php?iid=' + no , 'pop01' , 'width=350,height=190');
}
function fn_buy(iid) //아이콘구매
{
	window.open('/popup/pop_buy.php?iid=' + iid , 'pop01' , 'width=350,height=190');
}
function fn_lack() //아이콘구매시 자격미달
{
	window.open('/popup/pop_lack.php' , 'pop01' , 'width=270,height=180');
}

function fn_authFail() //아이콘구매시 실명인증 안한 경우
{
	if(confirm("실명인증이 필요한 서비스입니다. 이동하시겠습니까?")) {
		location.href = "../member/auth_check.php";
	}
	return;
}

function fn_full() //아이콘 꽉 찬 상태
{
	window.open('/popup/pop_full.php' , 'pop01' , 'width=270,height=210');
}
function fn_joinafter() //회원가입후
{
	window.open('/popup/pop_joinafter.php?nickname=' + document.input_joinadd.nickname.value , 'pop01' , 'width=320,height=190');
}

function fn_idcheck() //아이디 중복검사
{
	var f = document.input_form;
	if (!f.loginid.value)
	{
		alert('아이디를 입력하세요');
		f.loginid.focus();
	}
	else
		window.open('/popup/pop_idcheck.php?loginid=' + f.loginid.value , 'pop01' , 'width=385,height=300');
	return false;
}

function fn_idcheckno() //아이디 중복검사 다른 아이디 사용
{
	window.open('/popup/pop_idcheckno.php' , 'pop01' , 'width=385,height=300');
}


function fn_nickcheck() //닉네임 중복검사 ok
{
	var f = document.input_form;
	if (!f.nickname.value)
	{
		alert('닉네임을 입력하세요');
		f.nickname.focus();
	}

	else if (CheckSpecialNick(f.nickname.value)==1)
	{
	  alert('닉네임에 특수문자나 공백을 사용할 수 없습니다.');
	  f.nickname.value="";
	  f.nickname.focus();

	}

	else
		window.open('/popup/pop_nickcheck.php?nickname=' + f.nickname.value , 'pop01' , 'width=385,height=320');
	return false;
}

function fn_nickcheckno() //닉네임 중복검사 다른 닉사용
{
	window.open('/popup/pop_nickcheckno.php' , 'pop01' , 'width=385,height=320');
}

function fn_add() //추가정보 입력
{
	window.open('/popup/pop_addinput.php' , 'pop01' , 'width=350,height=180');
}

function fn_number() //주민등록검색
{
	var f = document.input_form;
	if (!f.mn1.value || !f.mn2.value)
	{
		alert('주민등록번호를 입력하세요');
		f.mn1.focus();
	}
	else
		window.open('/popup/pop_number.php?mn=' + f.mn1.value + f.mn2.value , 'pop01' , 'width=300,height=180');
	return false;
}

function fn_address() //주소검색
{
	window.open('/popup/pop_address.php' , 'pop01' , 'width=540,height=300 scrollbars=yes');
}
function fn_receive() //받은편지함
{
	window.open('/memo/list.php' , 'pop01' , 'width=480,height=600,scrollbars=yes');
}
function fn_send() //받은편지함
{
	window.open('/memo/list.php?mode=send' , 'pop01' , 'width=480,height=600,scrollbars=yes');
}
function fn_memo(uid) //쪽지보내기
{
	if ((uid.constructor == Object) || (uid.constructor == Array)) {
		var temp = new Array();
		for (var i in uid) {
			temp.push(i + '=' + encodeURIComponent(uid[i]));
		}
		var href = '/memo/write.php?' + temp.join('&');
	} else {
		var href = '/memo/write.php?uid=' + uid;
	}
	window.open(href , 'pop01' , 'width=490,height=450,scrollbars=yes');
}

function SendMemo(uid)	// SendMemo로 되어있는 곳이 있어서 fn_memo와의 호환성을 맞춤. smoon. 2011.03.17.
{
	fn_memo(uid);
}

function fn_recomuser() //추천인 검색
{
	var f = document.forms["input_form"];

	window.open('/popup/pop_recomuser.php?nickname=' + f.recomnick.value , 'pop01' , 'width=490,height=450,scrollbars=yes');
}


/* 요구르팅  */
function fn_yohome()
{
	location.href = "/yogurting/index.php";
}

function fn_subcategory(category, f) {
	location.href="list.php?category="+category+"&subcategory="+f.value;
}


/* 귀혼 */
function fn_home1()
{
	top.location.href = "http://hon.thisisgame.com";
}

function fn_hon01()
{
	location.href = "/board/list.php?category=3001";
}

function fn_hon02()
{
	location.href = "/board/list.php?category=3002";
}

function fn_hon03()
{
	location.href = "/board/list.php?category=3004";
}

function fn_hon04()
{
	location.href = "/board/list.php?category=3003";
}

function fn_hon05()
{
	location.href = "/board/list.php?category=3006";
}

function fn_hon06()
{
	location.href = "/board/list.php?category=3005";
}


function ViewRightUser2() {
	top.location.href = "/main/user_list.php?category=2";
}

function ViewRightUser1() {
	top.location.href = "/main/user_list.php";
}

function fn_aion01()
{
	location.href = "/board/list.php?category=701";
}

function fn_aion02()
{
	location.href = "/board/list.php?category=702";
}

function fn_aion03()
{
	location.href = "/board/list.php?category=703";
}

function fn_aion04()
{
	location.href = "/board/list.php?category=704";
}

function fn_aion05()
{
	location.href = "/board/list.php?category=705";
}

function fn_aion06()
{
	location.href = "/board/list.php?category=706";
}

function fn_aion07()
{
	location.href = "/board/list.php?category=707";
}

function fn_aion08()
{
	location.href = "/board/list.php?category=708";
}

function fn_aion09()
{
	location.href = "/board/list.php?category=709";
}

function fn_sc01()
{
	location.href = "/board/list.php?category=801";
}

function fn_sc02()
{
	location.href = "/board/list.php?category=802";
}

function fn_sc03()
{
	location.href = "/board/list.php?category=803";
}

function fn_sc04()
{
	location.href = "/board/list.php?category=804";
}

function fn_sc05()
{
	location.href = "/board/list.php?category=805";
}

function fn_sc06()
{
	location.href = "/board/list.php?category=806";
}

function fn_sc07()
{
	location.href = "/board/list.php?category=807";
}

function fn_sc08()
{
	location.href = "/board/list.php?category=808";
}

/* 아이온2 링크 */
function fn_aion2_01() { // 기획특집
	location.href = "/board/list.php?category=711";
}

function fn_aion2_02() { // 취재/인터뷰
	location.href = "/board/list.php?category=712";
}

function fn_aion2_03() { // 공식홈피소식
	location.href = "/board/list.php?category=713";
}

function fn_aion2_04() { // 카툰/연재
	location.href = "/aion2/cartoon.php";
}

function fn_aion2_05() { // 포토영상뉴스
	location.href = "/board/list.php?category=716";
}

function fn_aion2_06() { // 자유게시판
	location.href = "/board/list.php?category=717";
}

function fn_aion2_07() { // 묻고 답하기
	location.href = "/board/list.php?category=718";
}

function fn_aion2_08() { // 아이온에게 바란다
	location.href = "/board/list.php?category=719";
}

function fn_aion2_09() { // 길드게시판
	location.href = "/board/list.php?category=720";
}

function fn_aion2_10() { // 이벤트/공지사항
	location.href = "/board/list.php?category=722";
}

function fn_aion2_11() { // 게이머발언대
	location.href = "/board/list.php?category=725";
}

function fn_aion2_12() { // 게임후기
	location.href = "/board/list.php?category=726";
}

function fn_aion2_13() { // 기자단 게시판
	location.href = "/board/list.php?category=724";
}

function fn_aion2_14() { // 최근게시물
	location.href = "/aion2/newboard.php";
}

function fn_aion2_15() { // 갤러리 이동
	open_nowin('/gallery/');
}

///////////////////////////////////////////////////
// 라그나로크 2
function fn_ro2_1() { // 기자단뉴스
	document.location = "/board/list.php?category=2601";
}

function fn_ro2_2() { // 베스트팁
	document.location = "/board/list.php?category=2602";
}

function fn_ro2_3() { // 업데이트소식
	document.location = "/board/list.php?category=2603";
}

function fn_ro2_4() { // 잡담게시판
	document.location = "/board/list.php?category=2604";
}

function fn_ro2_5() { // 노비스게시판
	document.location = "/board/list.php?category=2605";
}

function fn_ro2_6() { // 소드맨게시판
	document.location = "/board/list.php?category=2606";
}

function fn_ro2_7() { // 씨크룻게시판
	document.location = "/board/list.php?category=2607";
}

function fn_ro2_8() { // 씨프게시판
	document.location = "/board/list.php?category=2608";
}

function fn_ro2_9() { // 인첸터게시판
	document.location = "/board/list.php?category=2609";
}

function fn_ro2_10() { // 클라운게시판
	document.location = "/board/list.php?category=2610";
}

function fn_ro2_11() { // 묻고답하기
	document.location = "/board/list.php?category=2611";
}

function fn_ro2_12() { // 나만의팁
	document.location = "/board/list.php?category=2612";
}

function fn_ro2_13() { // 서버게시판
	document.location = "/board/list.php?category=2613";
}

function fn_ro2_14() { // 공략/기행기
	document.location = "/board/list.php?category=2614";
}

function fn_ro2_15() { // 연재/팬아트
	document.location = "/board/list.php?category=2615";
}

function fn_ro2_16() { // 동영상
	document.location = "/board/list.php?category=2616";
}

function fn_ro2_17() { // 유저스크린샷
	document.location = "/board/list.php?category=2617";
}

function fn_ro2_18() { // 길드모집/홍보
	document.location = "/board/list.php?category=2618";
}

function fn_ro2_19() { // 건의/제보/요청
	document.location = "/board/list.php?category=2619";
}

function fn_ro2_20() { // 왁자지껄토론광장
	document.location = "/ro2/vote.php?category=10";
}

function fn_ro2_21() { // 운영자소식
	document.location = "/board/list.php?category=2621";
}

function fn_ro2_22() { // RO2기자단게시판
	document.location = "/board/list.php?category=2622";
}

function fn_ro2_23() { // 게시판지기통합게시판
	document.location = "/board/list.php?category=2623";
}

function fn_ro2_24() { // 출첵게시판
	document.location = "/board/list.php?category=2624";
}

function fn_ro2_25() { // 공지사항/이벤트
	document.location = "/board/list.php?category=2625";
}

function fn_ro2_27() { // 게임정보공유
	document.location = "/board/list.php?category=2627";
}

function fn_ro2_28() { // 공지사항/이벤트
	document.location = "/board/list.php?category=2628";
}

function fn_ro2_29() { // 길드 자유게시판
	document.location = "/board/list.php?category=2629";
}

function fn_ro2_30() { // 친구해요
	document.location = "/board/list.php?category=2630";
}

function fn_rqm_ready() {
	alert("8월 29일에 오픈합니다!");
}

function questEvent(id) { //6주년 특별 퀘스트
	call("/event/questEvent.php?id=" + id);
}

