strWWWDir = "http://www.yjmu.net/";

function fnGoMenu(strCode) {

	switch (strCode) {
		case 100:
			location.href = strWWWDir + "News/Notice/";
			break;
		case 110:
			location.href = strWWWDir + "News/Notice/";
			break;
		case 120:
			location.href = strWWWDir + "News/EventNews/";
			break;
		case 130:
			location.href = strWWWDir + "News/UpdateNews/";
			break;
		case 140:
			location.href = strWWWDir + "News/Product/";
			break;
		case 150:
			location.href = strWWWDir + "News/Paperzine/";
			break;
		//------------------------------------------------------------------ 

		case 200:
			location.href = strWWWDir + "GameIntro/Features/";
			break;
		case 210:
			location.href = strWWWDir + "GameIntro/Features/";
			break;
		case 220:
			location.href = strWWWDir + "GameIntro/Background/";
			break;
		case 230:
			location.href = strWWWDir + "GameIntro/Race/";
			break;
		case 240:
			location.href = strWWWDir + "GameIntro/Role/";
			break;
		case 250:
			location.href = strWWWDir + "GameIntro/Interface/";
			break;
		case 260:
			location.href = strWWWDir + "GameIntro/Basic/";
			break;
		//------------------------------------------------------------------ 

		case 300:
			location.href = strWWWDir + "GameData/System/Community.aspx";
			break;
				
		case 310:
			location.href = strWWWDir + "GameData/System/Community.aspx";
			break;
		case 311:
			location.href = strWWWDir + "GameData/System/Community.aspx";
			break;
		case 312:
			location.href = strWWWDir + "GameData/System/Mission.aspx";
			break;
		case 313:
			location.href = strWWWDir + "GameData/System/Pets.aspx";
			break;
		case 314:
			location.href = strWWWDir + "GameData/System/Guild.aspx";
			break;
		case 315:
			location.href = strWWWDir + "GameData/System/Transactions.aspx";
			break;
		case 316:
			location.href = strWWWDir + "GameData/System/Mix.aspx";
			break;
		case 317:
			location.href = strWWWDir + "GameData/System/Prestige.aspx";
			break;
		case 318:
			location.href = strWWWDir + "GameData/System/Raiders.aspx";
			break;
		case 319:
			location.href = strWWWDir + "GameData/System/Title.aspx";
			break;
	
		case 320:
			location.href = strWWWDir + "GameData/Job/";
			break;
		case 330:
			location.href = strWWWDir + "GameData/Life/";
			break;
		case 340:
			location.href = strWWWDir + "GameData/Underground/";
			break;
		case 350:
			location.href = strWWWDir + "GameData/Map/";
			break;
		case 360:
			location.href = strWWWDir + "GameData/PVP/Pvp.aspx";
			break;
		case 361:
			location.href = strWWWDir + "GameData/PVP/Pvp.aspx";
			break;
		case 362:
			location.href = strWWWDir + "GameData/PVP/Guild.aspx";
			break;
		case 363:
			location.href = strWWWDir + "GameData/PVP/Race.aspx";
			break;
		case 364:
			location.href = strWWWDir + "GameData/PVP/Siege.aspx";
			break;
		case 365:
			location.href = strWWWDir + "GameData/PVP/Overlord.aspx";
			break;
		//------------------------------------------------------------------ 
		case 400:
			window.open("http://www.facebook.com/pages/%E5%B8%9D%E7%8E%8B%E6%88%B0%E8%A8%98WEBZEN/221421504543262");
			break;
		case 410:
			window.open("http://www.facebook.com/pages/%E5%B8%9D%E7%8E%8B%E6%88%B0%E8%A8%98WEBZEN/221421504543262");
			break;
		case 420:
			window.open("http://forum.gamer.com.tw/B.php?bsn=08291");
			break;
		case 430:
			window.open("http://www.gamebase.com.tw/forum/5762/thread/ALL");
			break;

		//------------------------------------------------------------------    

		case 500:
			location.href = strWWWDir + "down.html";
			break;
		case 510:
			location.href = strWWWDir + "down.html";
			break;
		case 520:
			location.href = strWWWDir + "down/jl-2012.zip";
			break;
		case 530:
			location.href = strWWWDir + "down/yjmu-gj.zip";
			break;

		//------------------------------------------------------------------   
		case 600:
			location.href = strWWWDir + "Customer/Service/";
			break;
		case 610:
			location.href = strWWWDir + "Customer/Service/";
			break;
		case 620:
			window.open("http://www.wpark.com.tw/ServiceCenter/ASK/default.asp");
			break;
		case 630:
			location.href = strWWWDir + "Customer/Policy/";
			break;
		case 640:
			window.open("http://www.wpark.com.tw/ServiceCenter/FromDownload/");
			break;
		case 650:
			location.href = strWWWDir + "Customer/Block/";
			break;

		//------------------------------------------------------------------     

		case 700:
			window.open("https://ssl.wpark.com.tw/join/");
			break;
		case 710:
			window.open("https://ssl.wpark.com.tw/join/");
			break;
		case 720:
			window.open("https://ssl.wpark.com.tw/gameAccount/");
			break;
		case 730:
			window.open("https://ssl.wpark.com.tw/Member/");
			break;
		case 740:
			window.open("https://ssl.wpark.com.tw/gameAccount/");
			break;
		case 750:
			location.href = strWWWDir + "Member/ItemService/";
			break;
		case 760:
			window.open("https://ssl.wpark.com.tw/Item/PromotionList.asp");
			break;

		//------------------------------------------------------------------ 
		case 800:
			location.href = strWWWDir + "ItemMall/ItemList/";
			break;
		case 810:
			location.href = strWWWDir + "ItemMall/ItemList/";
			break;


		//------------------------------------------------------------------    
		case 900:
			location.href = strWWWDir + "default.aspx";
			break;

		//------------------------------------------------------------------   
		case 991:
			window.open(strWWWDir + "News/EventNews/readEventNews.aspx?seq=25");
			break;		


		//------------------------------------------------------------------   
		default:
			location.href = strWWWDir;
	}
}


function fnGoFamilySite(value) {
	if (value != "") {
		window.open(value, 'family', '');
	}
}

function addmylove() {
	window.external.AddFavorite("http://www.yjmu.net/", "Ôµ¾ÛÆæ¼£-¹Ù·½Í¬²½°æ±¾");
}


function chMapDiv(value) {
	try {
		for (var i = 1; i <= 12; i++) {
			if (i == value) {
				document.getElementById("map" + i).style.display = '';
				chFontColor(value);
			} else {
				document.getElementById("map" + i).style.display = 'none';
			}
		}
	}
	catch (e) { }
}

function chFontColor(value) {
	try {
		for (var j = 2; j <= 12; j++) {
			wo = document.getElementById("mapBtn" + j);
			ao = document.createAttribute('style');
			if (j == value) {
				ao.nodeValue = 'color:#cc6633';
				wo.setAttributeNode(ao);
			} else {
				ao.nodeValue = 'color:';
				wo.setAttributeNode(ao);
			}
		}
	}
	catch (e) { }
}
