var server_url = 'http://heva.windyzone.com';
var cdn_url = 'http://windybeta.xcdnplus.co.kr/';

function fnGoToWeb(gameName, errCode)
{
	location.href = server_url + "/index.ws";
}

function fnStart(a,b,c,d,e,j)
{

	if(a == "" || a == "error" || a == "undefined" || a == "null") {
		alert('게임을 실행하기 위해서는 먼저 로그인을 하셔야 합니다');
		return ;
	}

	if(j<12) {
		alert('12세 이상만 플레이 가능 합니다.');
		return;
	}

	//ActiveX Control Check
	if ("undefined" != typeof(document.all("WZIFLauncher")) && null != document.all("WZIFLauncher").object) {
		// The control is installed
	}
	else
	{
		// The control is not installed
		alert("먼저 ActiveX 컨트롤을 설치해야 합니다.");
		return ;
	}

    WZIFLauncher.attachEvent("GoToWeb", fnGoToWeb);

	var f = '1';
	var g = '1';
	var h = '1';
	var i = '1';

    WZIFLauncher.Start(c,d,a,b,e,f,g,h,i);
}


function GoGame(a,b,c,d,e)
{

	if(a == "" || a == "error" || a == "undefined") {
		alert('게임을 실행하기 위해서는 먼저 로그인을 하셔야 합니다');
		return ;
	}

	//ActiveX Control Check
	if ("undefined" != typeof(document.all("WZIFLauncher")) && null != document.all("WZIFLauncher").object) {
		// The control is installed
	}
	else
	{
		// The control is not installed
		alert("먼저 ActiveX 컨트롤을 설치해야 합니다.");
		return ;
	}


    WZIFLauncher.attachEvent("GoToWeb", fnGoToWeb);

	var f = '1';
	var g = '1';
	var h = '1';
	var i = '1';

    WZIFLauncher.Start(c,d,a,b,e,f,g,h,i);
}

//document.write ("<OBJECT ID='WZIFLauncher' CLASSID='CLSID:EF48A09C-6D35-4DF0-99A2-C0D7DCF4D507' width='0' height='0' codebase='http://windybeta.xcdnplus.co.kr/windydev/sd/common/cab/service/1032/WZMngrAx.cab#version=1,0,3,2'></OBJECT>");
document.write ("<OBJECT  ID='WZIFLauncher' CLASSID='CLSID:559E87DD-406C-43C9-BE70-3C902331CA6B' width='0' height='0' codebase='"+cdn_url+"windydev/sd/common/cab/service/1044/WZMngrAx.cab#version=1,0,4,4'></OBJECT>");




