﻿/*  javascript:gotoPage('page') */

// initial link
//rootValue = "#"
rootValue = "http://"
rootImage = "http://www.inferna.co.kr/eng_web/index.php"

// index page
pagehome = "http://www.inferna.co.kr/eng_web/index.php";

// first menu
page01 = rootValue + "www.inferna.co.kr/eng_web/";

// second menu
page02 = "#";
page0201 = "#";


// banner	target = self
banner_3  = rootImage + "beta/beta_tester_OKjoin1.php";		// 베타테스터 모집 신청

function gotoPage(page,target){
	//alert(page);
	if (eval(page) == ""){
		if (page == "")	{
			alert("준비중입니다.");
		}else{
		    alert("준비중입니다!");
		}

	}else if(page == "" || page == ""){ //타겟
		open(eval(page), 'sam_blank');

	}else if(page == "banner_3 "){ //팝업
		on_chk=window.open(eval(page),'step','width=470,height=350,top=0,left=0,scrollbars=no,resizable=no,status=no');
		on_chk.focus();

	}else{
		if (eval(page) == "/"){
			parent.location.href = eval(page);
		}else{
			location.href = eval(page);
		}
	}
}

// mainpage baaner
function banner1(){
		location.replace("http://www.inferna.co.kr/board/notice/board_view.php?table=notice&id=153");
}

function banner2(){
		location.replace("http://www.inferna.co.kr/eng_web/down/down_image.php?type=2");
}

function banner3(){
		location.replace("http://www.inferna.co.kr/board/notice/board_view.php?table=notice&id=153");
}
function banner4(){
		location.replace("http://www.inferna.co.kr/event/3rd_cbt/main.htm");
}
function banner5(){
		location.replace("http://www.inferna.co.kr/event/3rd_cbt/main.htm");
}

// main go
function inferna_main() {
	location.replace("http://www.inferna.co.kr/eng_web/game/game_guide.php");
}

// sub | game news
function sub_1(flag) {
	if (flag ==  "1"){
		location.replace("/eng_web/board/notice/board_list.php");
	}
	else if (flag ==  "2"){
		location.replace("/eng_web/board/event/board_list.php");
	}
	else if (flag ==  "3"){
		window.open('/eng_web/beta/beta_tester_OKjoin1.php','betaTater','width=470,height=350,left=10,top=10');
	}
}

// sub | game intro
function sub_2(flag) {
	if (flag ==  "1"){
		location.replace("/eng_web/game/game_guide.php");
	}
	else if (flag ==  "2"){
		location.replace("/eng_web/game/game_system_wedding.php");
	}
	else if (flag ==  "3"){
		location.replace("/eng_web/game/area_info.php");
	}
	else if (flag ==  "4"){
		location.replace("/eng_web/game/job_default.php");
	}
	else if (flag ==  "5"){
		location.replace("/eng_web/game/skill_fighter.php");
	}
	else if (flag ==  "6"){
		location.replace("/eng_web/game/game_quest.php");
	}
	else if (flag ==  "7"){
		location.replace("/eng_web/game/mob_list.php");
	}
	
	else if (flag ==  "8"){
		location.replace("/eng_web/game/game_info.php");
	}
}

// sub | community
function sub_3(flag) {
	if (flag ==  "1"){
		location.replace("/eng_web/board/bug/board_list.php");
	}
	else if (flag ==  "2"){
		location.replace("/eng_web/board/bug/board_list.php");
	}
	else if (flag ==  "3"){
		location.replace("/eng_web/board/onevsone/board_list.php");
	}
}


// sub | data room
function sub_4(flag) {
	if (flag ==  "1"){
		location.replace("/eng_web/down/down_game.php");
	}
	else if (flag ==  "2"){
		location.replace("/eng_web/down/down_movie.php");
	}
	else if (flag ==  "3"){
		location.replace("/eng_web/down/down_image.php?type=2");
	}
}


// footer popup
function pop_personal(){
	window.open("/footer/footer_personal.php", "popup", "width=600, height=500, scrollbars=no, toolbars=no, status=yes, resizable=no");
}
function pop_use(){
	window.open("/footer/footer_use.php", "popup", "width=600, height=500, scrollbars=no, toolbars=no, status=yes, resizable=no");
}
function pop_cash(){
	window.open("/footer/footer_cash.php", "popup", "width=600, height=500, scrollbars=no, toolbars=no, status=yes, resizable=no");
}
function pop_partner(){
	window.open("/footer/footer_partner.php", "popup", "width=600, height=500, scrollbars=no, toolbars=no, status=yes, resizable=no");
}


// new update
function update_1(){
    location.replace("http://www.inferna.co.kr/eng_web/game/game_system_wedding.php");
}
function update_2(){
    location.replace("http://www.inferna.co.kr/eng_web/game/area_info.php");
}
function update_3(){
    location.replace("http://www.inferna.co.kr/eng_web/game/job_default.php");
}


// game START
function gamestart(){
	location.replace("http://www.inferna.co.kr/eng_web/down/down_game.php");
       //window.open('/beta/beta_tester_OKjoin1.php', 'popup', 'width=470, height=350');
}

function gameSTART(){
	location.replace("http://www.inferna.co.kr/eng_web/down/down_game.php");
}


// main go website
function toplink_ko(){
		location.replace("http://www.inferna.co.kr/");
}

function toplink_eng() {
	location.replace("http://www.inferna.co.kr/eng_web/game/game_guide.php");
}
function toplink_jp() {
	location.replace("http://www.inferna.co.kr/jp_web/game/game_guide.php");
}
function toplink_ch() {
	location.replace("http://www.inferna.co.kr/cn_web/game/game_guide.php");
}


//quick menu
function quick1(){
		location.replace("http://www.inferna.co.kr/eng_web/game/game_info.php");
}

function quick2(){
		location.replace("http://www.inferna.co.kr/eng_web/down/down_image.php");
}
function quick3(){
		location.replace("http://www.inferna.co.kr/eng_web/down/down_movie.php");
}