﻿//top navigation link
function MenuRedirect(ch1,ch2) {
	var url="";
	if (ch1=='1')  {
		if (ch2=='1') url= "/info/search/search";
		else if (ch2=='2') alert('준비중입니다.');
		else if (ch2=='3') url= "/info/zone/"; 
		else if (ch2=='4') url= "/info/ranking/player"; 
		else if (ch2=='5') openPopup('/aioninfo/', 500, 500, 'aioninfo', 0, 0, true);
		else if (ch2=='6') url= "http://power.plaync.co.kr/aion/"; 
		else if (ch2=='7') url= "http://qna.plaync.co.kr/aion/"; 
		else url= "/info/search/search";
	} else if (ch1=='2') {
		if (ch2=='1') url= "/board/class1/list";
		else if (ch2=='2') url= "/board/server";
		else if (ch2=='3') url= "/board/free/list";
		else if (ch2=='4') url= "/board/image/list";
		else if (ch2=='5') url= "/board/discussion/list";
		else if (ch2=='6') url= "/board/proposal/list";
		else url= "/board/class";
	} else if (ch1=='3') {
		if (ch2=='1') url= "/legion/list";
		else if (ch2=='2') url= "/board/publicity/list";
		else if (ch2=='3') url= "/event/081111_master/game";
		else url= "/legion/list";
	}
	else if (ch1=='4') {
		if (ch2=='1') url= "/report/total/list";
		else if (ch2=='2') url= "/report/tag/main";
		else if (ch2=='3') url= "/report/today/all"; 
		else if (ch2=='4') url= "/board/tazz/list"; 
		else url= "/report/total/list";
	}
		else if (ch1=='5') {
		if (ch2=='1') url= "/board/notice/list";
		else if (ch2=='2') url= "/board/update/list";
		else if (ch2=='3') url= "/event/list";
		else url= "/board/notice/list";
	}
	if(url) window.location.href = url;
}


function goHome(){
	window.location.href="/";
}

function goPowerinfo(){
	window.location.href="http://power.plaync.co.kr/aion";
}

function goEnchant(){
	window.location.href="http://qna.plaync.co.kr/aion/";
}

function goServer(myurl, mywidth, myheight, isscroll) {
	//alert(myurl + ", " + mywidth + ", " + myheight + ", " + isscroll); 
	if (mywidth == "0" && myheight == "0") {
		if (isscroll == "0") {
			document.location.href = myurl;
		} else {
			window.open (myurl, "_blank");
		}
	} else {
		open_popup(myurl, mywidth, myheight, isscroll, "goServer");
	}
}

function goPreServ(){
	window.location.href="/event/081030_server/";
}

function goAionArticle(){
	window.location.href="/board/notice/view?articleID=27&category=101";
}
