function launch_game(game) {
	GameRun(game);
}

function GameRun(game) {
	var game;
	var goUrl;

	var webServer = location.host,wwwServer,launcherServer;

	if (webServer == "mgjanggi.mgame.com") {
		wwwServer="http://mgwww.mgame.com";
		launcherServer = "http://mggstart.mgame.com";
	} else {
		wwwServer="http://www.mgame.com";
		launcherServer = "http://gstart.mgame.com";
	}

	if (getCookie("MGAME","") != null){
		str = launcherServer + "/launch/launch_" + game + ".mgame?goUrl=" + game;
		launch.location.replace(str);

	}else{
		var return_url = location.href;
		try
		{
			location.href=wwwServer+"/member/login_form_big.asp?tu=" + escape(return_url);
		}
		catch (e)
		{
			location.href=wwwServer+"/member/login_form_big.asp?tu=" + escape("http://janggi.mgame.com/");
		}
	}
}