<!--
var thisapp=navigator.appName;
var thisversion=navigator.appVersion;
var thisappcodename=navigator.appCodeName;


function Host(){
	var Dns;
	Dns = location.href;
	Dns = Dns.split("//");
	Dns = Dns[1].substr(0,Dns[1].indexOf("/"));
	return Dns;
}

var Host;
var http;
var https;
Host = Host();

switch(Host) {

case 'www.rohan.co.kr': 
	http = "http://www.rohan.co.kr";
	https = "https://secure.rohan.co.kr";
	break;
case 'secure.rohan.co.kr': 
	http = "http://www.rohan.co.kr";
	https = "https://secure.rohan.co.kr";
	break;
case 'testadmin.rohan.co.kr':
	http = "http://testadmin.rohan.co.kr";
	https = "https://testsecure.rohan.co.kr";
	break;
case 'testsecure.rohan.co.kr': 
	http = "http://testadmin.rohan.co.kr";
	https = "https://testsecure.rohan.co.kr";
	break;
default: 
	http = "http://www.rohan.co.kr";
	https = "https://secure.rohan.co.kr";
	break;
}



if (thisapp=="Microsoft Internet Explorer"){
		var appBr = document.all;
}else if (thisapp=="Netscape"){
		var appBr = document.layers;
}

var client_url = "http://rohan1.cachenet.com/rohanclient/RohanOnline.rar";
var clienttest_url = "http://rohan1.cachenet.com/rohanclient/RohanOnlineTest.rar";

//ºê¶ó¿ìÀúÃ¼Å©
function IE_Ver()
{
	if(navigator.appName.match(/Explorer/i))
	{
		return navigator.appVersion.match(/MSIE \d+.\d+/)[0].split(" ")[1];
	}
	else return 0;
}


//ÁØºñ ¸Þ¼¼Áö
function alertmsg(){alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");return ;}


//±Û¾²±â ¿¬´Þ¾Æ ¾²±â ¹æÁö
function wait_msg(sval){
	alert(sval + "ºÐ ÈÄ¿¡ ±ÛÀ» ÀÛ¼º ÇÏ½Ç¼ö ÀÖ½À´Ï´Ù.");return ;
}



//½Ã½ºÅÛÁ¤º¸
var systemobj;
systemobj = "<form name='userspec' method='post'>"
systemobj = systemobj + "<object  ID='UserInfo' classid='clsid:C6C4466F-F933-402D-BCD5-3B15964690A4' codebase='"+http+"/component/ynk_system_info.CAB#Version=1,0,0,3' width='0' height='0' style='display:none'></object>"
systemobj = systemobj + "</form>"
function get_sysinfo() {
	try{		
    var cpu = userspec.UserInfo.GetCPU();
	var os = userspec.UserInfo.GetOS();
	var memory = userspec.UserInfo.GetMemory();
	var grphic = userspec.UserInfo.GetGraphic();
	var sound = userspec.UserInfo.GetSound();
	appBr.sys_os.innerHTML = os;
	appBr.sys_cpu.innerHTML = cpu;
	appBr.sys_memory.innerHTML = memory;
	appBr.sys_grphic.innerHTML = grphic;
	appBr.sys_sound.innerHTML = sound;

	parent.appBr.sys_view.style.display = "";

	}catch(e){
		alert('ActiveX°¡ ÀÚµ¿ ¼³Ä¡°¡ µÇÁö ¾Ê¾Ò½À´Ï´Ù.');
		parent.appBr.sys_view.style.display = "none";
		return;
	}
}


//·Î±×ÀÎ
function login_check() {
	if (!document.login.strID.value) {
		alert('ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strID.focus();
		return false;
	}
	if (document.login.strID.value == "¾ÆÀÌµð") {
		alert('ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strID.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(document.login.strID.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		document.login.strID.focus();
		return false;
	}
    if (!document.login.strPwd.value) {
		alert('¾ÏÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strPwd.focus();
		return false;
	}
	if (document.login.strPwd.value == "ÆÐ½º¿öµå") {
		alert('¾ÏÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strPwd.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(document.login.strPwd.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		document.login.strPwd.focus();
		return false;
	}
	document.login.action=https + "/login/eventCheck.asp";	
	return true;
}


//5È¸ Æ²¸² ·Î±×ÀÎ
function login_check1() {
	if (!document.login.strID.value) {
		alert('ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strID.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(document.login.strID.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		document.login.strID.focus();
		return false;
	}
    if (!document.login.strPwd.value) {
		alert('¾ÏÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		document.login.strPwd.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(document.login.strPwd.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		document.login.strPwd.focus();
		return false;
	}

	if (document.login.Answer.value=="")
	{
		alert("Áú¹®ÀÇ Á¤´äÀ» ³Ö¾î ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		document.login.Answer.focus();
		return false;
	}
	document.login.action=https+"/login/eventCheck.asp";	
	return true;
}

//·Î´õ ·Î±×ÀÎ ·Î±×ÀÎ ÈÄ Ä³½ÃÃæÀü ÆäÀÌÁö·Î ÀÌµ¿
function login_check_loder(frm) {
	if (!frm.strID.value) {
		alert('ID¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.strID.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(frm.strID.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		frm.strID.focus();
		return false;
	}
    if (!frm.strPwd.value) {
		alert('¾ÏÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		frm.strPwd.focus();
		return false;
	}
	//Ãß°¡
	if (intcheckTF(frm.strPwd.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		frm.strPwd.focus();
		return false;
	}
	frm.action=https + "/login/eventCheck.asp";	
	return true;
}

//document.onunload = logout();
function logout(){
	document.location.href = "/logout.html";
}

/* È®ÀåÀÚ Ã¼Å©, gif, jpg ¸¸ °¡´É */
function validImageExt(filename) {
	filename = filename.toLowerCase();
	if(filename.match(".gif")!=null || filename.match(".jpg")!=null || filename.match(".bmp")!=null) return true;
	else return false;
}

//¸ÞÀÎÀ¸·Î
function gomain(){
	//alert("Rohan ¸ÞÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÕ´Ï´Ù.");
	document.location.href = "/";
}

//°Ô½ÃÆÇ °Ë»ö³»¿ë
function checkValue(frm,frmsel){
	if (frmsel != ""){
		if (frmsel.value == "")
		{alert("°Ë»öÁ¶°ÇÀ» ¼±ÅÃÇÏ¼¼¿ä");
		frmsel.focus();
		return false;
		}
	}

	if (frm.value == "")
	{alert("°Ë»ö³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä");
	frm.focus();
	return false;
	}
	//Ãß°¡
	if (intcheckTF(frm.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		frm.focus();
		return false;
	}
}

//°Ô½ÃÆÇ °Ë»ö³»¿ë
function checkValue_one(frm,frmsel){

	if (frm.value == "")
	{alert("°Ë»ö³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä");
	frm.focus();
	return false;
	}
	//Ãß°¡
	if (intcheckTF(frm.value)){
		alert("ÀÔ·ÂÇÏ½Å ´Ü¾îÁß¿¡ Æ¯¼ö±âÈ£°¡ µé¾î°¡ ÀÖ½À´Ï´Ù.\nÆ¯¼ö±âÈ£´Â ÀÛ¼ºÇÏ½Ç¼ö ¾ø½À´Ï´Ù.");
		frm.focus();
		return false;
	}
}

//ÀÌ¸ÞÀÏ
function getFormValue(obj) {
	var i, v=null;
	if(!obj) return null;
	if(!obj.type && obj[0] && obj[0].type) obj.type=obj[0].type;
	switch(obj.type) {
	case 'select': 
	case 'select-one': 
	case 'select-multiple': 
		if(obj.options.length<=0) return null;
		return obj.options[obj.selectedIndex].value;
	case 'radio':
		var o=obj.form ? obj.form[obj.name] : obj;
		for(i=0;i<o.length;i++)
			if(o[i].checked) return o[i].value;
		return null;
	case 'hidden': break;
	case 'text': break;
	case 'textarea': break;
	case 'file': break;
	default: 
		alert("getFormValue() : obj.type="+obj.type+", obj.id="+obj.id+", obj.name"+obj.name);
		if(typeof obj.type!='undefined') aa.aa();
		return null;
		}
	return obj.value;
	}

	var hp = new Array();
	hp[0] = new Array(0,"011","017");
	hp[1] = new Array(1,"016","019");
	hp[2] = new Array(2,"018");


//ÇÚÆù°ü·Ã
function mobilsel1(frm,intval){
	for (m=frm.options.length-1;m>0;m--){
		frm.options[m]=null
	}

	for (i=1;i<hp[intval].length;i++)
	{
		frm.options[i] = new Option(hp[intval][i],hp[intval][i]);
	}
	frm.options[0] = null;
}
//ÇÚÆù°ü·Ã
function mobilsel2(frm,intval){

	var intval_tmp;
	if(intval == ""){intval_tmp = "011"} else {intval_tmp = intval;}
	
	if(intval_tmp != ""){
		for (m=frm.options.length-1;m>0;m--){
			frm.options[m]=null
		}
	}

	if(intval_tmp != ""){
		for(i=0;i<hp.length;i++){
			for(j=0;j<=hp[i].length;j++){
				if(hp[i][j] == intval)
				{
					intval_tmp = hp[i][0];
					break;
				}
			}
		}
	}

	if(intval_tmp > -1){
		for (i=1;i<hp[intval_tmp].length;i++)
		{
			frm.options[i] = new Option(hp[intval_tmp][i],hp[intval_tmp][i]);
			if (hp[intval_tmp][i] == intval)
			{
				frm.options[i].selected=true;
				frm.options[i].style.background = "#613218";
				frm.options[i].style.color = "#FFFFFF";
			}
		}
		frm.options[0] = null;
	}
	
}

//¼ýÀÚ¸¸À» ±âÀÔ¹Þ°Ô ÇÏ´Â ¹æ¹ý
function only_number()
       {
         if((event.keyCode<48)||(event.keyCode>57))
          event.returnValue=false;
       }


//ÀÎ ±ÝÁö
function intcheck(){
if((event.keyCode==34)){event.returnValue=false;}
if((event.keyCode==37)){event.returnValue=false;}
if((event.keyCode==39)){event.returnValue=false;}
if((event.keyCode==59)){event.returnValue=false;}
if((event.keyCode==61)){event.returnValue=false;}
if((event.keyCode==45)){event.returnValue=false;}
}

function intchecktext(){
if((event.keyCode==34)){event.returnValue=false;}
if((event.keyCode==37)){event.returnValue=false;}
if((event.keyCode==39)){event.returnValue=false;}
if((event.keyCode==61)){event.returnValue=false;}
}

function intcheckTF(sval){
	var i = 0;
	for(m=0;m<sval.length;m++){
		if((sval.charCodeAt(m)==37)){i++;}
		if((sval.charCodeAt(m)==39)){i++;}
		if((sval.charCodeAt(m)==59)){i++;}
		if((sval.charCodeAt(m)==61)){i++;}
	}
	if ( i > 0 ){	return true	;}
	else{	return false	;}

}

//sms±×·ì ½ºÆäÀÌ½º¹Ù ¸·±â
function intcheckgroup(){
if((event.keyCode==32)){event.returnValue=false;}
if((event.keyCode==34)){event.returnValue=false;}
if((event.keyCode==37)){event.returnValue=false;}
if((event.keyCode==39)){event.returnValue=false;}
if((event.keyCode==61)){event.returnValue=false;}
}

//¿µ¹® ¼ýÀÚ¸¸ ÀÔ·Â ¹Þ±â
function checkEnNum(){
	
	if (!event.shiftKey){
		if (event.keyCode == 8 || event.keyCode == 16){
			return;
		}else if ( ((event.keyCode<48)||(event.keyCode>57)) && ((event.keyCode < 64) || (event.keyCode > 91)) && ((event.keyCode<96)||(event.keyCode>105)) ){
			event.returnValue=false;
		}
	}
	else{
		event.returnValue=false;
	}
	
}
//È¸¿ø°¡ÀÔ½Ã ÀÎ Ã¼Å©
function intcheckjoin(){
	if((event.keyCode<48)||((event.keyCode>57)&&(event.keyCode<95))||(event.keyCode>122)){event.returnValue=false;}
}

//Ä³¸¯ÅÍ¸í º¯°æ½Ã
function intcheckjoinChar(){
	if( (event.keyCode<48) || (event.keyCode>122) )	{
		event.returnValue=false;
	}	else if (((event.keyCode>57)&&(event.keyCode<65)) || ((event.keyCode>90)&&(event.keyCode<97)))	{
		event.returnValue=false;
	}	else	{
		// alert(event.keyCode);
	}
}

function intcheckJO(sval){
	var i = 0;
	for(m=0;m<sval.length;m++){
		if((sval.charCodeAt(m)<48)||((sval.charCodeAt(m)>57)&&(sval.charCodeAt(m)<95))||(sval.charCodeAt(m)>122)){i++;}
	}
	if ( i > 0 ){	return true	;}
	else{	return false	;}

}


//textarea¿¡ ÅÇ±â´É ³Ö±â
function blockKey(item){
    if(event.keyCode==9) {
      item.focus();
      space = "    ";
      item.selection=document.selection.createRange();
      item.selection.text=space;
      event.returnValue = false;  
    }  
}

//textareaÀÇ ±æÀÌÁ¦ÇÑ
function textCounter(theField,theCharCounter,maxChars,maxPerLine) {
	var strTemp = "";
	var strCharCounter = 0;
	for (var i = 0; i < theField.value.length; i++)	{
		var strChar = theField.value.substring(i, i + 1);
		if (strChar == '\n') {
			strTemp += strChar;
			strCharCounter = 1;
		} else if (strCharCounter == maxPerLine) {
			strTemp += '\n' + strChar;
			strCharCounter = 1;
		} else {
			strTemp += strChar;
			strCharCounter ++;
		}
	}
	if (maxChars - strTemp.length < 1) {
			alert("±ÛÀÚ¼ö´Â "+maxChars+" ÀÚ¸¦ ³ÑÀ»¼ö ¾ø½À´Ï´Ù.");
			theCharCounter.value = strTemp.length;
			return;
	}else{
		theCharCounter.value = strTemp.length;
	}
}


//¾ÆÀÌµðÃ¼Å©
function check_id(strID){
		setWinSize(400,210);
		idcheck = window.open(https + "/join/confirm_id.html?strID=" + document.member_regist.strID.value, "_blank", "scrollbars=no,width="+400+", height="+190+", top="+WindowTop+", left="+WindowLeft);
}

//´Ð³×ÀÓÃ¼Å©
function check_nickname(nickname){
		setWinSize(400,200);
		window.open(https + "/join/confirm_nic.html?strNickname=" + document.member_regist.strNickname.value, "_blank", "scrollbars=no,width="+400+", height="+200+", top="+WindowTop+", left="+WindowLeft);
}



//°Ô½ÃÆÇ ÀÌ¹ÌÁö Á¶Àý
function resizeImages(frameObj) {

    var widthMax = 440;

	if (typeof(appBr.entryFrame[0]) != "undefined"){
		imgwidth = appBr.entryFrame[0].style.width.replace("px","")
		imgheight = appBr.entryFrame[0].style.height.replace("px","")

		if (imgwidth > widthMax)
		{
				appBr.entryFrame[0].style.height=imgheight * (widthMax / imgwidth);
				appBr.entryFrame[0].style.width=widthMax;
				appBr.entryFrame[1].style.width=420;
		}

	}else{

		if (typeof(appBr.entryFrame) != "undefined"){
				imgwidth = appBr.entryFrame.style.width.replace("px","")
				imgheight = appBr.entryFrame.style.height.replace("px","")

				if (imgwidth > widthMax)
				{
						appBr.entryFrame.style.height=imgheight * (widthMax / imgwidth);
						appBr.entryFrame.style.width=widthMax;
				}
		}
	}
}

//°Ô½ÃÆÇ ÀÌ¹ÌÁö Á¶Àý
function onBody(){
	resizeImages(entryFrame);
}


//°Ô½ÃÆÇ ÀÌ¹ÌÁö ¶ç¿ì±â
var imgObj = new Image();
function showImgWin(num) {
	imgObj.src = num;
	setTimeout("createImgWin(imgObj)", 100);
}

function createImgWin(imgObj) {
	if (! imgObj.complete) {
		setTimeout("createImgWin(imgObj)", 100);
		return;
	}

	setWinSize(imgObj.width, imgObj.height);
	var w = imgObj.width + 18;
	var h = imgObj.height + 3;


	imageWin = window.open("", "imageWin", "width=" + w + ",height=" + h + ", top="+WindowTop+", left="+WindowLeft + ",scrollbars=yes");
	imageWin.document.write("<html><title>www.rohan.co.kr--ÀÌ¹ÌÁöº¸±â</title><script>window.status='ÀÌ¹ÌÁöº¸±â'</script><body style='margin:0'>");
	imageWin.document.write("<img src='" + imgObj.src + "' onselectstart='return false;' oncontextmenu='return false;' style='cursor:hand;' onClick='self.close();'>");
	imageWin.document.write("</body><html>");

}

function showOriginalImg(imgurl){
	window.open('/include/img_view.asp?imgurl='+imgurl,'','width=800,height=500,toolbar=no,directories=no,menubar=no,resizable=yes,status=yes,location=no,scrollbars=yes,left=0,top=0');
}


//¿ìÆí¹øÈ£
function Zipcode_search() {
	setWinSize(416, 200);
	post = window.open(https + "/join/confirm_addres.html", "_blank", "scrollbars=yes,width="+416+", height="+200+", top="+WindowTop+", left="+WindowLeft);
}


//GM¿¡°Ô¸Þ¼¼Áöº¸³»±â
function GmMessage(sType,strTypenum,ru, finalCheck) {
	setWinSize(350, 400);
	gmmessages_send = void(window.open('gm_message.html?sType='+sType+'&num='+strTypenum+'&ru='+ru+'&finalCheck='+finalCheck,'','width=350,height=400, top='+WindowTop+', left='+WindowLeft+', scrollbars=no, toolbar=no, statusbar=no'))
}

//url¹Þ¾Æ¼­ »õÃ¢ ¶ç¿ì±â
function openwin(url,w, h, sr, to, ba) {
	setWinSize(w, h);
	open_win = void(window.open(url,'','width='+w+',height='+h+', top='+WindowTop+', left='+WindowLeft+', scrollbars='+sr+', toolbar='+to+', statusbar='+ba+''))
}

//µå¶óÀÌºê »õÃ¢
function drive(url){
	down = window.open(url);
}

//»çÀÌÁîÁ¶Àý
function setWinSize(width_, height_) {
	WindowLeft = (screen.width - width_)/2;
	WindowTop = (screen.height - height_)/2;
}
//±æµå¸¶Å©
function guildmark(){
	setWinSize(580, 850);
	window.open("/guild/guildmark_list.asp", "_blank", "scrollbars=no,width=580, height=850, top="+WindowTop+", left="+WindowLeft);
}


//Ãß°¡µÊ
//Ä³½¬ÃæÀüÀÌ¿ë¹æ¹ý
function payuseopen(){
	setWinSize(580, 850);
	window.open(https + "/mypage/cash_point_use.html", "_blank", "scrollbars=no,width=580, height=850, top="+WindowTop+", left="+WindowLeft);
}

function cashgo(form,YY,MM,t,p){
	form.target = t;
	form.action = p// + '&YY='+YY+'&MM='+MM;
	form.submit();
}
//Ãß°¡µÊ




//ÀÚµ¿ÄÄ¸¶Âï±â
function WonAmount(NumV) {
 Num = NumV.toString(); // ¹®ÀÚ¿­·Î ¹Ù²Þ
 
 var count     = 0;
 var temp      = "";
 var resultWon = "";
 var oneChar   = "";
 
 for (var ch = Num.length-1; ch >= 0; ch--) { // 543,21 ·Î ¹Ù²Þ
  oneChar = Num.charAt(ch);

  if (count == 3) {
   temp += ",";
   temp += oneChar;
   count = 1;
   
   continue;
  } else {
   temp += oneChar;
   count ++;
  }
 }
 

 for (var ch = temp.length-1; ch >= 0; ch--) { // 12,345 ·Î ¹Ù²Þ
  oneChar = temp.charAt(ch);
  resultWon += oneChar;
 }

	return resultWon;
}   



//»çÀÌÆ® Á¦ÀÚ¸®¿¡
function f_ChkRefresh() {
	try {
		if ( event.keyCode == 116 ) {
			event.keyCode = 0;
			event.returnValue = 0;
			event.cancelBubble = 0;
			self.location.reload();
		}		
	}
	catch(x) {			
	}
}


if ( !document.onkeydown )
	document.onkeydown = f_ChkRefresh;



function golegend(url)
{
	if (url == "menu8_9"){document.location.href = http + "/warshipzone/regend/legend_item02.html";}
}



function ClientDownload(version,server,cdnname)
{
	if(isLogin)
	{
		//////////////////////////////
		//Ç®¹öÀü º»¼­¹ö¿ë
		//////////////////////////////		
		if((version=="full")&&(server=="real")&&(cdnname=="cdnetworks")){
			window.open(http + "/pds/RohanClientCdnetworks.asp?strServer=0","client","width=600, height=437");
			return;
		}
		
		//////////////////////////////
		//Ç®¹öÀü Å×½ºÆ®¼­¹ö¿ë
		//////////////////////////////		
		if((version=="full")&&(server=="test")&&(cdnname=="cdnetworks")){
			window.open(http + "/pds/RohanClientCdnetworks.asp?strServer=1","client","width=600, height=437");
			return;
		}
	
		//////////////////////////////
		//¼öµ¿ÆÐÄ¡ º»¼­¹ö¿ë
		//////////////////////////////
		if((version=="manual")&&(server=="real")&&(cdnname=="cdnetworks")){
			window.open(http + "/pds/rohan_client_cdnetworks.asp?strServer=4","client","width=600, height=437");
			return;
		}
	
		//////////////////////////////
		//¼öµ¿ÆÐÄ¡ Å×½ºÆ®¼­¹ö¿ë
		//////////////////////////////
		if((version=="manual")&&(server=="test")&&(cdnname=="cdnetworks")){
			window.open(http + "/pds/rohan_client_cdnetworks.asp?strServer=5","client","width=600, height=437");
			return;
		}
	}
	else
	{
		alert("·Î±×ÀÎ ÈÄ ´Ù¿î·Îµå ÁøÇàÀÌ °¡´ÉÇÕ´Ï´Ù.");
		return;
		
	}
}

//¸Þ´º ÇÃ·¡½¬¿¡¼­ ¹ÞÀ½
function menuGo(url){
	var go = document.location;
	//¸ÞÀÎ
	if (url == "gomain") {go.href = http + "/main.html";}
	//´Ù¿î·Îµå
	if(url == "download"){goLeftMenu("pds",'1')}
	if(url == "download01"){ClientDownload('full','real','cdnetworks')}
	if(url == "download02"){ClientDownload('full','test','cdnetworks')}
	
	//»õ¼Ò½Ä
	if (url == "1_0_1") {goLeftMenu("news",'1')} //°øÁö»çÇ×
	if (url == "1_1_1") {goLeftMenu("news",'1')} //°øÁö»çÇ×
	if (url == "1_2_1") {goLeftMenu("news",'2')} //¾÷µ¥ÀÌÆ®
	if (url == "1_3_1") {goLeftMenu("news",'3')} //ÀÌº¥Æ®
	if (url == "1_4_1") {goLeftMenu("news",'4')} //¹Ì¸®º¸´Â ·ÎÇÑ
	
	//°ÔÀÓ°¡ÀÌµå
	if (url == "2_0_1") {goLeftMenu("guide",'0')} //°¡ÀÌµå ÀÎµ¦½º
	if (url == "2_1_1") {goLeftMenu("guide",'1')} //±âº»½Ã½ºÅÛ
	if (url == "2_2_1") {goLeftMenu("guide",'15')} //¾ÆÀÌÅÛ
	if (url == "2_3_1") {goLeftMenu("guide",'26')} //Ä³¸¯ÅÍ
	if (url == "2_4_1") {goLeftMenu("guide",'28')} //Áö¿ª/npc
	if (url == "2_5_1") {goLeftMenu("guide",'30')} //Äù½ºÆ®
	if (url == "2_6_1") {goLeftMenu("guide",'29')} //¸ó½ºÅÍ
	
	//·©Å·ranker
	if (url == "3_0_1") {goLeftMenu("ranker",'1')} //Ä»Ä¿°ø¹æ
	if (url == "3_1_1") {goLeftMenu("ranker",'1')} //¸í¿¹pvp
	if (url == "3_2_1") {goLeftMenu("ranker",'2')} //¿¤·¹¸àÅ»·©Å·
	if (url == "3_3_1") {goLeftMenu("ranker",'3')} //Å¸¿î°ø¹æ·©Å·
	if (url == "3_4_1") {goLeftMenu("ranker",'4')} //±æµå·©Å·
	
	//Ä¿¹Â´ÏÆ¼
	if (url == "4_0_1") {goLeftMenu("community",'1')} //À¯Àú°Ô½ÃÆÇ
	if (url == "4_1_1") {goLeftMenu("community",'1')} //À¯Àú°Ô½ÃÆÇ
	if (url == "4_2_1") {goLeftMenu("community",'2')} //½ºÅ©¸°¼¦°Ô½ÃÆÇ
	if (url == "4_3_1") {goLeftMenu("community",'3')} //·ÎÇÑ¼Ò¼³
	if (url == "4_4_1") {goLeftMenu("community",'4')} //Å×½ºÆ®°Ô½ÃÆÇ
	if (url == "4_5_1") {goLeftMenu("community",'5')} //Á¦º¸°Ô½ÃÆÇ
	
	//ÀÚ·á½Ç
	if (url == "5_0_1") {goLeftMenu("pds",'1')} //Å¬¶óÀÌ¾ðÆ® ´Ù¿î·Îµå
	if (url == "5_1_1") {goLeftMenu("pds",'1')} //Å¬¶óÀÌ¾ðÆ® ´Ù¿î·Îµå
	if (url == "5_2_1") {goLeftMenu("pds",'2')} //ost
	if (url == "5_3_1") {goLeftMenu("pds",'3')} //µ¿¿µ»ó
	if (url == "5_4_1") {goLeftMenu("pds",'4')} //¿ùÆäÀÌÆÛ
	
	//·ÎÇÑ¼¥
	if (url == "6_0_1") {goLeftMenu("shop",'1')}	//¾ÆÀÌÅÛ¸ô ¸ÞÀÎ
	if (url == "6_1_1") {goLeftMenu("shop",'1')}	//¾ÆÀÌÅÛ¸ô
	if (url == "6_2_1") {goLeftMenu("shop",'10')}	//Ä³½ÃÃæÀü
	if (url == "6_3_1") {goLeftMenu("shop",'16')}				//ÄíÆùµî·Ï
	if (url == "6_4_1") {goLeftMenu("shop",'17')}	//R-¼­ºñ½º
	if (url == "6_5_1") {goLeftMenu("shop",'21')}		//ºÎ°¡¼­ºñ½º

	
	//°í°´¼¾ÅÍ
	if (url == "7_0_1") {goLeftMenu("support",'1')} //°í°´¼¾ÅÍ
	if (url == "7_1_1") {goLeftMenu("support",'2')} //faq
	if (url == "7_2_1") {goLeftMenu("support",'3')} //1:1¹®ÀÇ
	if (url == "7_3_1") {goLeftMenu("support",'4')} //¹®ÀÇÈ®ÀÎ
	if (url == "7_4_1") {goLeftMenu("support",'5')} //½Å°íÁ¢¼ö
		
}


//ÆäÀÌÁö ÀÌµ¿
function goLeftMenu(depth1, depth2){
	var go = document.location;
	if (depth1 == "news") //»õ¼Ò½Ä
	{
		if(depth2 == 1) go.href = http + "/news/notice_list.html"; 	//°øÁö»çÇ×
		if(depth2 == 2) go.href = http + "/news/update_list.html"; 	//¾÷µ¥ÀÌÆ®
		if(depth2 == 3) go.href = http + "/news/event_list.html"; 	//ÀÌº¥Æ®
		if(depth2 == 4) go.href = http + "/news/preview_list.html"; //¹Ì¸®º¸´Â ·ÎÇÑ
	}	
	else if (depth1 == "guide") //°¡ÀÌµå
	{
        if(depth2 == 0) go.href = http + "/guide/guideMain.aspx";		//°¡ÀÌµå ÀÎµ¦½º
		if(depth2 == 1) go.href = http + "/guide/guide.aspx?sc=A01";		//±âº»½Ã½ºÅÛ	¼³Ä¡ ¹× Ä³¸¯ÅÍ »ý¼º
		if(depth2 == 2) go.href = http + "/guide/guide.aspx?sc=A02";		//±âº»½Ã½ºÅÛ	ÀÎÅÍÆäÀÌ½º
		if(depth2 == 3) go.href = http + "/guide/guide.aspx?sc=A03";		//±âº»½Ã½ºÅÛ	¿É¼Ç
		if(depth2 == 4) go.href = http + "/guide/guide.aspx?sc=A04";		//±âº»½Ã½ºÅÛ	´ÜÃàÅ°
		if(depth2 == 5) go.href = http + "/guide/guide.aspx?sc=A05";		//±âº»½Ã½ºÅÛ	¸Ê(Áöµµ)
		if(depth2 == 6) go.href = http + "/guide/guide.aspx?sc=A06";		//±âº»½Ã½ºÅÛ	Ä£±¸Ã£±â
		if(depth2 == 7) go.href = http + "/guide/guide.aspx?sc=A07";		//±âº»½Ã½ºÅÛ	±æµå
		if(depth2 == 9) go.href = http + "/guide/guide.aspx?sc=A08";		//±âº»½Ã½ºÅÛ	¹ÙÀÎµå ½ºÅæ
		if(depth2 == 10) go.href = http + "/guide/guide.aspx?sc=A09";	//±âº»½Ã½ºÅÛ	Äù½ºÆ®
		if(depth2 == 11) go.href = http + "/guide/guide.aspx?sc=A10";	//±âº»½Ã½ºÅÛ	»ý»ê&Á¦ÀÛ
		if(depth2 == 12) go.href = http + "/guide/guide.aspx?sc=A11";	//±âº»½Ã½ºÅÛ	Å¸¿î°ø¹æÀü
		if(depth2 == 13) go.href = http + "/guide/guide.aspx?sc=A12";	//±âº»½Ã½ºÅÛ	¾ÆÀÌÅÛ ÀçÈ°¿ë
		if(depth2 == 14) go.href = http + "/guide/guide.aspx?sc=A13";	//±âº»½Ã½ºÅÛ	¸í¿¹ PVP		
		if(depth2 == 15) go.href = http + "/guide/guide.aspx?sc=B01";	//¾ÆÀÌÅÛ	¾ÆÀÌÅÛ±âº»Á¤º¸
		if(depth2 == 16) go.href = http + "/guide/guide.aspx?sc=B02";	//¾ÆÀÌÅÛ	¾ÆÀÌÅÛÁ¶ÇÕ
		if(depth2 == 17) go.href = http + "/guide/guide.aspx?sc=B03";	//¾ÆÀÌÅÛ	ÀÎÃ¦Æ®
		if(depth2 == 18) go.href = http + "/guide/guide.aspx?sc=B04";	//¾ÆÀÌÅÛ	¼ÒÄÏ
		if(depth2 == 19) go.href = http + "/guide/guide.aspx?sc=B05";	//¾ÆÀÌÅÛ	Å»°Í/Æê
		if(depth2 == 21) go.href = http + "/guide/guide.aspx?sc=B06";	//¾ÆÀÌÅÛ	°³ÀÎ»óÁ¡
		if(depth2 == 22) go.href = http + "/guide/guide.aspx?sc=B07";	//¾ÆÀÌÅÛ	¾ÆÀÌÅÛ°Å·¡
		if(depth2 == 23) go.href = http + "/guide/guide.aspx?sc=B08";	//¾ÆÀÌÅÛ	ÀºÇà
		if(depth2 == 24) go.href = http + "/guide/guide.aspx?sc=B09";	//¾ÆÀÌÅÛ	°­È­
		if(depth2 == 25) go.href = http + "/guide/item.aspx";			//¾ÆÀÌÅÛ	¾ÆÀÌÅÛ¸®½ºÆ®
		if(depth2 == 26) go.href = http + "/guide/char.aspx";	        //Ä³¸¯ÅÍ	Á¾Á·/Á÷¾÷
		if(depth2 == 27) go.href = http + "/guide/skill.aspx";			//Ä³¸¯ÅÍ	½ºÅ³
		if(depth2 == 28) go.href = http + "/guide/map.aspx";			//Áö¿ª
		if(depth2 == 29) go.href = http + "/guide/monster.aspx";		//¸ó½ºÅÍ
		if(depth2 == 30) go.href = http + "/guide/quest.aspx";			//Äù½ºÆ®
		if(depth2 == 31) window.open(https + '/game/web/pingmall/guide.html','BadugiGuide','directories=no,menubar=no,status=no,location=no,scrollbars=no,width=900,height=600,top=0'); //±âº»½Ã½ºÅÛ ·ÎÇÑ ¹ÙµÏÀÌ
		if(depth2 == 32) go.href = http + "/guide/guide.aspx?sc=A15";	//±âº»½Ã½ºÅÛ »ç³Éµµ¿ì¹Ì	
        if(depth2 == 33) go.href = http + "/guide/guide.aspx?sc=A16";	//±âº»½Ã½ºÅÛ ¿ìÆí½Ã½ºÅÛ	
        if(depth2 == 34) go.href = http + "/guide/guide.aspx?sc=A17";	//±âº»½Ã½ºÅÛ »ç³Éµµ¿ì¹Ì Äù½ºÆ®
	}	
	else if (depth1 == "ranker") //·©Ä¿°ø¹æ
	{
		if(depth2 == 1) go.href = http + "/Ranker/PVPRanking.html";							//¸í¿¹PVP ·©Å·
		if(depth2 == 2) go.href = http + "/Ranker/ElementalRanking.html";							//¿¤·¹¸àÅ»´øÀü ·©Å·
		if(depth2 == 3) go.href = http + "/Ranker/townlist.html";				//Å¸¿î°ø¹æ ·©Å·
		if(depth2 == 4) go.href = http + "/Ranker/all_list.html";			//±æµå ·©Å·
	}		
	else if (depth1 == "community") //Ä¿¹Â´ÏÆ¼
	{
		if(depth2 == 1) go.href = http + "/community/server/server_list.html";	//À¯Àú°Ô½ÃÆÇ
		if(depth2 == 2) go.href = http + "/community/screenshot/list.html";	//À¯Àú½ºÅ©¸°¼¦
		if(depth2 == 3) go.href = http + "/community/novel/list.html";		//·ÎÇÑ ¼Ò¼³
		if(depth2 == 4) go.href = http + "/community/server/testserver_list.html";	//Å×½ºÆ®°Ô½ÃÆÇ
		if(depth2 == 5) go.href = http + "/community/server/serverReport_list.html";	//Á¦º¸°Ô½ÃÆÇ
	}	
	else if (depth1 == "pds") //´Ù¿î·Îµå
	{
		if(depth2 == 1) go.href = http + "/pds/pds_client.html";	//Å¬¶óÀÌ¾ðÆ®
		if(depth2 == 2) go.href = http + "/pds/pds_ost.html";		//OST
		if(depth2 == 3) go.href = http + "/pds/pds_mov.html";		//µ¿¿µ»ó
		if(depth2 == 4) go.href = http + "/pds/pds_wall.html";		//¿ùÆäÀÌÆÛ
	}		
	else if (depth1 == "payment") //»óÇ°°áÁ¦
	{
		if(depth2 == 1) go.href = https + "/payment/payment_01.html";	//°ÔÀÓ°áÁ¦	¿ä±Ý¾È³»
		if(depth2 == 2) go.href = https + "/payment/payment_02.html";	//°ÔÀÓ°áÁ¦	°ÔÀÓ»óÇ° ±¸¸Å
		if(depth2 == 3) go.href = https + "/payment/payment_03.html";	//°ÔÀÓ°áÁ¦	°áÁ¦ ³»¿ª
		if(depth2 == 4) go.href = https + "/cash/cash_06.html";			//Ä³½ÃÃæÀü	ÀÌ¿ë ¾È³»
		if(depth2 == 5) go.href = https + "/cash/cash_01.html";			//Ä³½ÃÃæÀü	Ä³½Ã ÃæÀüÇÏ±â
		if(depth2 == 6) go.href = https + "/cash/cash_02.html";			//Ä³½ÃÃæÀü	ÃæÀü ³»¿ª
		if(depth2 == 7) go.href = https + "/cash/cash_03.html";			//Ä³½ÃÃæÀü	ÁöÃâ ³»¿ª
		if(depth2 == 8) go.href = https + "/cash/cash_07.html";			//Ä³½ÃÃæÀü	È¯ºÒ ½ÅÃ»
		if(depth2 == 9) go.href = https + "/cash/cash_08.html";			//Ä³½ÃÃæÀü	³» °¡»ó °èÁÂ
		if(depth2 == 10) go.href = https + "/payment/Rcube/Rcube.html";	//R-Å¥ºê
		if(depth2 == 17) go.href = https + "/payment/rTong/RTong.html";	//R-Tong
		if(depth2 == 11) go.href = https + "/payment/rChip/RChip.html";	//R-Ä¨
		if(depth2 == 12) go.href = https + "/payment/append/append_05.html";	//ºÎ°¡¼­ºñ½º	¼­ºñ½º ¾È³»
		if(depth2 == 13) go.href = https + "/payment/append/append_01.html";	//ºÎ°¡¼­ºñ½º	ºÎ°¡¼­ºñ½º ÀÌ¿ë
		if(depth2 == 14) go.href = https + "/payment/append/append_history_01.html";	//ºÎ°¡¼­ºñ½º	ÀÌ¿ë ³»¿ª
		if(depth2 == 15) go.href = https + "/payment/payment_04.html";	//ÄíÆù µî·Ï	·ÎÇÑ ÄíÆù µî·Ï
		if(depth2 == 16) go.href = https + "/payment/payment_05.html";	//ÄíÆù µî·Ï	¾ÆÀÌÅÛ ÄíÆù µî·Ï
		if(depth2 == 18) go.href = https + "/mypage/mypage_secure_001.html";	//¾È½É·Î±×ÀÎ	»ç¿ë ¾È³»
		if(depth2 == 19) go.href = https + "/mypage/mypage_secure_002.html";	//¾È½É·Î±×ÀÎ	¾È½É ·Î±×ÀÎ ¼³Á¤
		if(depth2 == 20) go.href = https + "/mypage/siren/siren_01.html";	//¸íÀÇµµ¿ë ¹æÁö	»ç¿ë ¾È³»
		if(depth2 == 21) go.href = https + "/mypage/siren/siren.html";		//¸íÀÇµµ¿ë ¹æÁö	¸íÀÇµµ¿ë¹æÁö ¼³Á¤
		if(depth2 == 22) go.href = https + "/mypage/siren/siren_02.html";	//¸íÀÇµµ¿ë ¹æÁö	¸íÀÇµ¿¿ë¹æÁö °ü¸®
		if(depth2 == 23) go.href = https + "/mypage/siren/siren_03.html";	//¸íÀÇµµ¿ë ¹æÁö	ÀÌ¿ë ³»¿ª
	}
	else if (depth1 == "shop") //¼¥
	{
		if(depth2 == 1) go.href = https + "/Shop/ItemMall/main.html"; //¾ÆÀÌÅÛ¸ô_¸ÞÀÎ
		if(depth2 == 2) go.href = https + "/Shop/ItemMall/List.html?category=1"; //¾ÆÀÌÅÛ¸ô_¼ºÀåÇü ¾ÆÀÌÅÛ
		if(depth2 == 3) go.href = https + "/Shop/ItemMall/List.html?category=2"; //¾ÆÀÌÅÛ¸ô_ÆíÀÇ¼º ¾ÆÀÌÅÛ
		if(depth2 == 4) go.href = https + "/Shop/ItemMall/List.html?category=3"; //¾ÆÀÌÅÛ¸ô_°­È­Çü ¾ÆÀÌÅÛ
		if(depth2 == 24) go.href = https + "/Shop/ItemMall/List.html?category=7"; //¾ÆÀÌÅÛ¸ô_°­È­Çü Ä³¸¯ÅÍ
		if(depth2 == 5) go.href = https + "/Shop/ItemMall/List.html?category=4"; //¾ÆÀÌÅÛ¸ô_Æê ¾ÆÀÌÅÛ
		if(depth2 == 25) go.href = https + "/Shop/ItemMall/List.html?category=6"; //¾ÆÀÌÅÛ¸ô_ÄÚ½ºÆ­ ¾ÆÀÌÅÛ
		if(depth2 == 26) go.href = https + "/Shop/ItemMall/List.html?category=5"; //¾ÆÀÌÅÛ¸ô_ÆÐÅ°Áö ¾ÆÀÌÅÛ
		if(depth2 == 27) go.href = https + "/Shop/ItemMall/List.html?category=8"; //Å×½ºÆ®¼­¹ö Àü¿ë ¾ÆÀÌÅÛ
		if(depth2 == 6) go.href = https + "/Shop/ItemMall/Basket.html"; //¾ÆÀÌÅÛ¸ô_Àå¹Ù±¸´Ï
		if(depth2 == 7) go.href = https + "/Shop/ItemMall/WishList.html"; //¾ÆÀÌÅÛ¸ô_°ü½É»óÇ°
		if(depth2 == 8) go.href = https + "/Shop/ItemMall/History.html"; //¾ÆÀÌÅÛ¸ô_¾ÆÀÌÅÛ °áÁ¦³»¿ª
		if(depth2 == 9) go.href = https + "/Shop/ItemMall/Guide.html";	//¾ÆÀÌÅÛ¸ô_ÀÌ¿ë¾È³»
		if(depth2 == 10) go.href = https + "/Shop/cash/cash_01.html";	//Ä³½ÃÃæÀü_Ä³½ÃÃæÀü
		if(depth2 == 11) go.href = https + "/Shop/cash/cash_02.html";	//Ä³½ÃÃæÀü_ÃæÀü³»¿ª
		if(depth2 == 12) go.href = https + "/Shop/cash/cash_03.html";	//Ä³½ÃÃæÀü_ÁöÃâ³»¿ª
		if(depth2 == 13) go.href = https + "/Shop/cash/icash_07.html";	//Ä³½ÃÃæÀü_È¯ºÒ½ÅÃ»
		if(depth2 == 14) go.href = https + "/Shop/cash/cash_08.html"; //Ä³½ÃÃæÀü_³»°¡»ó°èÁÂ
		if(depth2 == 15) go.href = https + "/Shop/cash/cash_06.html"; //Ä³½ÃÃæÀü_ÀÌ¿ë¾È³»
		if(depth2 == 16) go.href = https + "/Shop/coupon.html"; //ÄíÆùµî·Ï
		if(depth2 == 17) go.href = https + "/Shop/Rcube.html";	//R¼­ºñ½º_Rcube
		if(depth2 == 18) go.href = https + "/Shop/RTong.html";	///R¼­ºñ½º_Rtong
		if(depth2 == 19) go.href = https + "/Shop/RChip.html"; //R¼­ºñ½º_Rchip
		if(depth2 == 20) window.open(https + '/Shop/append/index.html', 'UWin', 'left=100,top=100,width=800,height=778,scrollbars=no,resizable=no,statusbar=no'); //ºÎ°¡¼­ºñ½º_ÀÌ¿ë¾È³»
		if(depth2 == 21) go.href = https + "/Shop/append/append_01.html";	//ºÎ°¡¼­ºñ½º_Ä³¸¯ÅÍ ¼­ºñ½º
		if(depth2 == 22) go.href = https + "/Shop/RLogin/RLogin.html";		//ºÎ°¡¼­ºñ½º_¾È½É·Î±×ÀÎ
		if(depth2 == 23) go.href = https + "/Shop/append/iappend_history.html";	//ºÎ°¡¼­ºñ½º_ÀÌ¿ë³»¿ª
	}
	
		
	else if (depth1 == "support") //°í°´¼¾ÅÍ
	{
		if(depth2 == 1) go.href = http + "/support/support_main.html";		//°í°´¼¾ÅÍ¸ÞÀÎ
		if(depth2 == 2) go.href = http + "/support/faq_list.html";			//FAQ
		if(depth2 == 3) go.href = http + "/support/help_request.html";		//1:1¹®ÀÇ
		if(depth2 == 4) go.href = http + "/support/help_check.html";		//¹®ÀÇÈ®ÀÎ
		if(depth2 == 5) go.href = http + "/support/police_account.html";	//½Å°íÁ¢¼ö	°èÁ¤µµ¿ë ½Å°í
		if(depth2 == 6) go.href = http + "/support/police_lost.html";		//»ç°í½Å°í(1:1¹®ÀÇ¿ë)
	}	
	else if (depth1 == "mypage") //¸¶ÀÌ·ÎÇÑ
	{
		if(depth2 == 1) go.href = https + "/mypage/mypage_info_ch.html";	//°³ÀÎÁ¤º¸ º¯°æ		
		if(depth2 == 2) go.href = https + "/mypage/mypage_pw.html";			//ºñ¹Ð¹øÈ£ º¯°æ
		if(depth2 == 3) go.href = https + "/mypage/friend/friend_01.html";	//³»Ä£±¸ ¸®½ºÆ®
		if(depth2 == 4) go.href = https + "/mypage/blackpoint/blackpoint_list.html";	//Á¦Àç ³»¿ª	
		if(depth2 == 5) go.href = https + "/mypage/mypage_leave.html";		//È¸¿øÅ»Åð		
		if(depth2 == 6) go.href = https + "/mypage/mypage_leave_cancel.html";	//È¸¿ø Å»Åð Ãë¼Ò
		if(depth2 == 7) go.href = https + "/mypage/BattleRohan_List.html";	//°èÁ¤¿¬µ¿
		if(depth2 == 14) go.href =  https + "/mypage/mypage_leave_cancel.html";	//È¸¿ø Å»Åð Ãë¼Ò
		if(depth2 == 15) go.href = https + "/mypage/BattleRohan_Log.html";	//·ÎÇÑ/¹èÆ²·ÎÇÑ ¿¬µ¿	¿¬µ¿ µ¿ÀÇ ³»¿ª
		if(depth2 == 16) go.href = https + "/join/join_mem_first.html";		//È¸¿ø°¡ÀÔ
		if(depth2 == 17) go.href = https + "/join/join_mem_id.html";			//¾ÆÀÌµð Ã£±â
		if(depth2 == 18) go.href = https + "/join/join_mem_pw.html";			//ºñ¹Ð¹øÈ£ Ã£±â
		if(depth2 == 19) go.href = https + "/mypage/mypage_secure_001.html";	//¾È½É·Î±×ÀÎ	»ç¿ë ¾È³»
		if(depth2 == 20) go.href = https + "/mypage/mypage_secure_002.html";	//¾È½É·Î±×ÀÎ	¾È½É ·Î±×ÀÎ ¼³Á¤
	}
	else if (depth1 == "member") //¸ÞÀÎ »óÇ°°áÁ¦
	{
		if(depth2 == 1) go.href = https + "/Payment/payment_02.html";	//°ÔÀÓ°áÁ¦
		if(depth2 == 2) go.href = https + "/Payment/payment_05.html";	//ÄíÆùµî·Ï
		if(depth2 == 3) go.href = https + "/Payment/Rcube/Rcube.html";	//·ÎÇÑ ÃßÃ·»óÀÚ
		if(depth2 == 4) go.href = https + "/Payment/Rchip/Rchip.html";			//À¥Æ÷ÀÎÆ®
	}
	else if (depth1 == "policy") //¸ÞÀÎ »óÇ°°áÁ¦
	{
		if(depth2 == 1) go.href = http + "/policy/rules.html";	//¿î¿µÁ¤Ã¥
		if(depth2 == 2) go.href = http + "/policy/personal.html";	//°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
		if(depth2 == 3) go.href = http + "/policy/sitipulation.html";	//ÀÌ¿ë¾à°ü
		if(depth2 == 4) go.href = http + "/policy/cashrules.html";			//Ä³½Ã¿î¿µÁ¤Ã¥
	}
	else
	{
		go.href = http + "/main.html";
	}
}



//º»ÀÎ ¸¶Å©
function bonin_mark(){
	setWinSize(300, 270);
	window.open(http + "/popup/bonin_hp.html", "_blank", "scrollbars=no,toolbar=no,menubar=no,status=no,width=300,height=270, top="+WindowTop+", left="+WindowLeft);
	return;
}


//Áö¿¥ºí·¯±×
function gmdiary(){
	setWinSize(865, 700);
	window.open(http + "/gmdiary/index.asp", "_blank", "scrollbars=yes,toolbar=yes,menubar=yes,status=yes,width=865,height=700, top="+WindowTop+", left="+WindowLeft);
	return;
}


//¸íÀÇµµ¿ë
function sirengo(){
	setWinSize(674, 550);
	win = window.open('about:blank', 'siren', 'scrollbars=no,status=no, width=674, height=550, top='+WindowTop+', left='+WindowLeft);
	document.sirenform.action = "http://www.siren24.com/nmAlimi/nmv/nmvAuth.jsp";
	document.sirenform.target = "siren";
	document.sirenform.prvd_user_id.value = "YNK005";
	document.sirenform.submit();
}
document.write ("<form name=sirenform><input type=hidden method=post name='prvd_user_id' value=''></form>");



function eventopen9(){
	setWinSize(600, 400);
	window.open("/event/sms/sms.html", "_blank", "scrollbars=no,width=600, height=400, top="+WindowTop+", left="+WindowLeft);
}


//¿¹ÆÇ È®ÀÎ
function winOday(){
	setWinSize(370, 600);
	window.open('/popup/event1_0313_popup.html', '_blank', 'scrollbars=no,width=370, height=600, top=100, left=100');
}

//ÇÁ·¹ÀÓ Å©±â ÀÚµ¿Á¶Á¤
function iframeCheck(na) {
   eval("var PF = "+na+".document.body");
   var CF = document.all[na];
   CF.style.height = PF.scrollHeight + (PF.offsetHeight - PF.clientHeight);
   CF.style.width = PF.scrollWidth + (PF.offsetWidth - PF.clientWidth);
}

//
function TswGo(){
	window.open("http://login.rohan.co.kr/popup/TSW_toon.html", "TSW_toon", "directories=no,menubar=no,resizable=no,status=no,location=no,scrollbars=yes,width=460, height=600, top=10, left=10");	
}


/// ÀÔ·Â ¹®ÀÚ¿­ ¿ÞÂÊ °ø¹é Ã¼Å©
///2007-07-09 Àå¿µÈ£
function java_left_trim(a)
{
var search = 0;
while(a.charAt(search)==" ")
	{
	search = search+1;
	}

    a= a.substring(search,(a.length));
	return a;

}


function innerCallFlash(target, url, width, height, vars, id) {
	var _html = "";
	$("#mainMoviePlayer").empty();
	_html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  width='"+width+"' height='"+height+"' id='"+id+"' align='middle'>";
	_html += "<param name='allowScriptAccess' value='always' />";
	_html += "<param name='allowFullScreen' value='true' />";
	_html += "<param name='movie' value='"+url+"' />";
	_html += "<param name='FlashVars' value='"+vars+"' />";
	_html += "<param name='loop' value='true' />";
	_html += "<param name='menu' value='false' />";
	_html += "<param name='wmode' value='transparent' />";
	_html += "<param name='quality' value='high' />";
	_html += "<param name='base' value='.' />";
	_html += "<embed base='.' src='"+url+"' flashVars='"+vars+"' loop='true' wmode='transparent' quality='high' swLiveConnect='true' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' allowScriptAccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	_html += "</object>";
	
	$("#"+target).append(_html);
}

function callFlash(url, width, height, vars, id) {
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'  width='"+width+"' height='"+height+"' id='"+id+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' />");
	document.write("<param name='allowFullScreen' value='true' />");
	document.write("<param name='movie' value='"+url+"' />");
	document.write("<param name='menu' value='false' />");
	document.write("<param name='FlashVars' value='"+vars+"' />");
	document.write("<param name='loop' value='true' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='base' value='.' />");
	document.write("<embed base='.' src='"+url+"' flashVars='"+vars+"' loop='true' wmode='transparent' quality='high' swLiveConnect='true' width='"+width+"' height='"+height+"' name='"+id+"' align='middle' allowScriptAccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

function goPaFavorite(){
	var url = http + '/main.html';
	var title = '·ÎÇÑ, Systemholic online Rohan.';
	if (document.all){
		window.external.AddFavorite(url, title);
	}else if (window.sidebar){
		window.sidebar.addPanel(title, url, "");
	}
}
//-->
