
//01. ·Î±×ÀÎ ¸Þ¼¼Áö È£ÃâÈÄ ·Î±×ÀÎÆäÀÌÁö ÀÌµ¿

function fnChkLogin(strLoginLocation){
	if(confirm("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù. ·Î±×ÀÎÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã°Ú½À´Ï±î?"))
		self.location=strLoginLocation;
}


//02.ÇÃ·¡½¬ ¿¬µ¿ ³×ºñ°ÔÀÌ¼Ç È£Ãâ ÇÔ¼ö

// °áÁ¦ ÆäÀÌÁö °æ·Î 
/** Å×½ºÆ® ¼­¹ö **/
//var strAgencyDir = "http://pcnew.webzen.co.kr/";
//var strPCBangDir = "http://devpcbang.webzen.co.kr/";

/** ½Ç ¼­¹ö **/
var strAgencyDir = "http://pcshop.webzen.co.kr/";
var strPCBangDir = "http://pcbang.webzen.co.kr/";

if (location.href.indexOf("http://dev") == 0) {
	strAgencyDir = "http://pcshop.webzen.co.kr/";
	strPCBangDir = "http://devpcbang.webzen.co.kr/";
}

function fnGoMenu(strCode) {
	var now = new Date()
	nowDate = now.getDate();
	nowMonth = now.getMonth()+1;
	nowYear = now.getYear();
	
	switch (strCode) {
	
		//PC¹æ °¡ÀÔÈ«º¸
		case 1000 :	// ´ë¸Þ´º
			location.href = strPCBangDir + "Member/Join/";
			break;
		case 1010 :	// °¡ÀÔ ¾È³»
			location.href = strPCBangDir + "Member/Join/";
			break;	
		case 1020 :	// °¡ÀÔ ½ÅÃ»
			location.href = strPCBangDir + "Member/Join/preJoinFrm.asp";
			break;
			
		//¸¶ÀÌÆäÀÌÁö
		case 2000 :
			fnPopMyPage("");
			break;	
		case 2010 :	// MY PC¹æ
			fnPopMyPage("");
			break;	
		case 2020 :	// È¸¿øÁ¤º¸º¯°æ
			location.href = strPCBangDir + "Mypage/Member/";
			break;	
		case 2030 :	// °í°´Áö¿øÃ³¸®ÇöÈ²
			location.href = strPCBangDir + "MyPage/InquiryState/";
			break;	
		case 2031 :	// ÃÑÆÇ¹®ÀÇ
			location.href = strPCBangDir + "MyPage/InquiryState/";
			break;
		case 2032 :	// PC¹æ ¹Ì³³ÀÚ ½Å°í
			location.href = strPCBangDir + "MyPage/NonPayment/";
			break;
			
		//¿ä±Ý¾È³» ¹× °áÁ¦
		case 3000 :
			location.href = strPCBangDir + "Payment/";
			break;														
		case 3010 :	// ÇÁ¸®¹Ì¾ö ÇýÅÃ ¾È³»
			location.href = strPCBangDir + "Payment/";
			break;
		case 3020 :	// °ÔÀÓ ¼Ò°³
			location.href = strPCBangDir + "AboutGame/MU/";
			break;			
		case 3021 :	// °ÔÀÓ ¼Ò°³ ¹Â
			location.href = strPCBangDir + "AboutGame/MU/";
			break;	
		case 3022 :	// °ÔÀÓ ¼Ò°³ ¹Â ºí·ç
			location.href = strPCBangDir + "AboutGame/MUBLUE/";
			break;
		case 3023 :	// °ÔÀÓ ¼Ò°³ ½ã
			location.href = strPCBangDir + "AboutGame/SUN/";			
			break;
		case 3024 :	// °ÔÀÓ ¼Ò°³ Çä½½¸®
			location.href = strPCBangDir + "AboutGame/Huxley/";
			break;																																							
		
		// °í°´ Áö¿ø
		case 4000 :
			location.href = strPCBangDir + "Customer/Inquiry/";
			break;		
		case 4010 :	// ÃÑÆÇ ¹®ÀÇ
			location.href = strPCBangDir + "Customer/Inquiry/";
			break;
		case 4020 :	// FAQ
			location.href = strPCBangDir + "Customer/FAQ/";
			break;
		case 4030 :	// PC¹æ ¹Ì³³ÀÚ ½Å°í
			location.href = strPCBangDir + "Customer/NonPayment/";
			break;
		
		// °øÁö & ÀÌº¥Æ®
		case 5000 :
			location.href = strPCBangDir + "HomeMenu/Notice/";
			break;
		case 5010 :	// °øÁö »çÇ×
			location.href = strPCBangDir + "HomeMenu/Notice/";
			break;	
		case 5020 : // ÀÌº¥Æ®
			location.href = strPCBangDir + "Event/Now/";
			break;		
		case 5021 : // ÁøÇàÁßÀÎ ÀÌº¥Æ®
			location.href = strPCBangDir + "Event/Now/";
			break;		
		case 5022 : // Áö³­ ÀÌº¥Æ®
			location.href = strPCBangDir + "Event/Past/";
			break;		
			
		//´Ù¿î·Îµå
		case 6000 :
			location.href = strPCBangDir + "Download/GameDown/";
			break;	
		case 6010 :	// Å¬¶óÀÌ¾ðÆ® ´Ù¿î·Îµå
			location.href = strPCBangDir + "Download/GameDown/";
			break;	
		case 6020 :	// °ÔÀÓÀÌ¹ÌÁö ´Ù¿î·Îµå
			location.href = strPCBangDir + "Download/GameImage/";
			break;
			
		//T¸Ó´Ï
		case 6500 :
			location.href = strPCBangDir + "Tmoney/";
			break;		
		case 6510 :	// T¸Ó´Ï °¡¸ÍÁ¡ °¡ÀÔ¾È³»
			location.href = strPCBangDir + "Tmoney/";
			break;
		case 6520 :	// T¸Ó´Ï ¹®ÀÇ
			location.href = strPCBangDir + "Tmoney/Inquiry.asp";
			break;
			
		//HomeMenu
		case 7010 :	// °øÁö»çÇ×
			location.href = strPCBangDir + "HomeMenu/Notice/";
			break;
		case 7020 :	// ¼³¹®Á¶»ç
			location.href = strPCBangDir + "HomeMenu/Poll/";
			break;	
		case 7030 :	// °³ÀÎº¸È£Á¤Ã¥
			location.href = strPCBangDir + "SiteInfo/policy.asp";
			break;	
		case 7040 :	// ÀÌ¿ë ¾à°ü
			location.href = strPCBangDir + "SiteInfo/agreement.asp";
			break;
		case 7050 :	// »çÀÌÆ®¸Ê
			location.href = strPCBangDir + "SiteInfo/sitemap.asp";
			break;	
		case 7060 :	// ´ÜÃàÅ° ÀÌ¿ë¾È
			location.href = strPCBangDir + "SiteInfo/hotkey.asp";
			break;	
		case 7070 :	// ·Î±×ÀÎ
			location.href = strPCBangDir + "Login/";
			break;
		case 7080 :	// ¾ÆÀÌµð/ºñ¹ø Ã£±â
			location.href = strPCBangDir + "Login/findFrm.asp";
			break;	
		case 7090 :	// ¾ÆÀÌµð Ã£±â
			location.href = strPCBangDir + "Login/findID.asp";
			break;	
		case 7100 :	// ºñ¹ø º¯°æ
			location.href = strPCBangDir + "Login/modifyPW.asp";
			break;										
			
		//¸ÞÀÎÆäÀÌÁö
		case 8010 :	// PC¹æ ÄíÆù
			//location.href = strPCBangDir + "Download/Coupon/";
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/Coupon/CouponListFrm.asp");
			break;	
		case 8020 :	// Å¬¶óÀÌ¾ðÆ® 
			location.href = strPCBangDir + "Download/GameDown/";
			break;	
		case 8030 :	// °ÔÀÓ ÀÌ¹ÌÁö
			location.href = strPCBangDir + "Download/GameImage/";
			break;		
		case 8040 :	// ÀÌº¥Æ®1
			location.href = strPCBangDir + "AboutGame/MUBLUE/";
			break;
		case 8050 :	// ÀÌº¥Æ®2
			location.href = strPCBangDir + "AboutGame/SUN/";
			break;	
		case 8060 :	// ÀÌº¥Æ®3
			location.href = strPCBangDir + "AboutGame/MU/";
			break;	
		case 8070 :	// T¸Ó´Ï
			location.href = strPCBangDir + "Tmoney/";
			break;	
		case 8080 :	// °ÔÀÓÁ¸119 ¼­ºñ½º
			location.href = strPCBangDir + "Customer/GameZone/";
			break;	
		case 8090 :	// ÀÌº¥Æ® Áö¿ø
			location.href = strPCBangDir + "Customer/EventSupport/";
			break;	
		case 8100 :	// ¸ÞÀÎ ÀÌº¥Æ® ÇÏ´Ü 1
			location.href = strPCBangDir + "Event/Now/viewNowEvent.asp?iS=20";
			break;
		case 8110 :	// ¸ÞÀÎ ÀÌº¥Æ® ÇÏ´Ü 2
			location.href = strPCBangDir + "Event/Now/viewNowEvent.asp?iS=18";
			//window.open("http://www.muonline.co.kr/News/Event/readEventNews.asp?intCurrentPage=1&chrSearchCode=TX&strSearchText=%2D&intBoardSeq=77");
			break;	
		case 8120 :	// ¸ÞÀÎ T¸Ó´Ï
			location.href = strPCBangDir + "TMoney/";
			break;
		
		//Äü¸Þ´º			
		case 9010 :	// °¡ÀÔ ¾È³»
			location.href = strPCBangDir + "Member/Join/";
			break;	
		case 9020 :	// »ó´ã ½ÅÃ»
			location.href = strPCBangDir + "Customer/Inquiry/";
			break;	
		case 9030 :	// ¿ä±Ý ¾È³»
			//location.href = strAgencyDir + "Payment/payGuid.asp";
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/GameShop/ShopGuideFrm.asp");
			break;		
		case 9040 :	// ÀÜ¿© ½Ã°£ ¾È³»
			//location.href = strAgencyDir + "Mypage/remainTimeSearch.asp";
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/MyPage/ProductUseList/ProductUseDeductWaitIngListFrm.asp");
			break;
		case 9050 :	// IP Á¢¼Ó »óÅÂ
			//location.href = strAgencyDir + "Mypage/remainTimeSearch.asp";
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/IPManage/IPManageMainFrm.asp");
			break;	
		case 9060 :	// ¼¼±Ý °è»ê¼­
			//location.href = strAgencyDir +"Mypage/Texaccount/taxAccountView.asp";
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/MyPage/TaxAccount/TaxAccountFrm.asp");
			break;	
		case 9900 :
			location.href = strPCBangDir;
			break;
			
		// ±âÅ¸
		case 10010 : // IP ±¸¸Å
			//alert(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/IPManage/IPManageMainFrm.asp");
			fnPopMyPage(strAgencyDir + "Main/Main_PCB.asp?AccessUrl=/IPManage/IPManageMainFrm.asp");
			break;
			
		//±âº»																																																																																		
		default :
			location.href = strPCBangDir;
	}
}		


//03. footer ÆÐ¹Ð¸® »çÀÌÆ® ÀÌµ¿ ÇÔ¼ö
function fnGoFamilySite(strUrl) {
	if (strUrl != "") {
		window.open(strUrl);
	}
}

 //ÇÇ¾¾¹æ Ã£±â ÆË¾÷(2007.10.09 ±Ç¼ø¿ë)
 function fnPopFindPCBang(){
	fnOpenWindow('/Common/PCSearch/findPCBang.asp','wnPCList','width=675,height=168,scrollbars=yes');
}

//ÆË¾÷Ã¢À» »çÀÌÁî¿¡ ¸Â°Ô ¶ç¿î´Ù (2007.10.09 ±Ç¼ø¿ë)
function fnOpenWindow(strUrl, strWinName, strFeature) {
	window.open(strUrl, strWinName, strFeature);
}

// ºô¸µ ¸¶ÀÌÆäÀÌÁö ÆË¾÷ ¶ç¿ò(2010.04.20 ÀÌ¼±Èñ)
function fnPopMyPage(strUrl){
	var popWidth = screen.width - 18;
	var popHeight = screen.availHeight - 43;
	
	if(strUrl == ""){
		strUrl = strAgencyDir + "Main/Main_PCB.asp";
	}
	
	if ( frmPayment.chkLogin.value == "True" ) {
		FN_Open_Window_Resize(strUrl,"IBSPCBang", 1024, 768, "no");
	}else{
		location.href = strPCBangDir + "Login/";
	}
}

// ºô¸µ ÆË¾÷ ¶ç¿ò(2010.05.11 ÀÌ¼±Èñ)
function FN_Open_Window_Resize(p_strUrl, p_strTargetWindow, p_intWidth, p_intHeight, p_strResize)
{
	var p_Return = null;
	var f_WinL = (screen.width/2) - (p_intWidth/2);
	var f_WinT = (screen.height/2) - (p_intHeight/2);
	
	var retWin = window.open (p_strUrl, p_strTargetWindow ,'toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable='+p_strResize+',copyhistory=no,width=' + p_intWidth +',height=' + p_intHeight + ', top=' + f_WinT +', left= ' + f_WinL + "'" );

	return retWin;
}
