var server_url = 'http://getamped2.windyzone.com';
var cdn_url = 'http://windybeta.xcdnplus.co.kr/';

function fnGoToWeb(gameName, errCode)
{
	location.href = server_url + "/index.ws";
}

//Real 전용
function fnStart(a,b,c,d,e,j)
{
	//LayerAlert('게임은 오후2시부터 이용하실수 있습니다', 'http://windygame.nefficient.co.kr/web/board/basic/images/btn_pop_confirm.gif');
	//return;
	GoGame(a,b,c,d,e,j);
}

//Mirror 전용
function fnStartMirror(a,b,c,d,e,j)
{
	GoGame(a,b,c,d,e,j);
}


function GoGame(a,b,c,d,e,j)
{
	
	if(a == "" || a == "error" || a == "undefined") {
		LayerAlert('게임을 실행하기 위해서는 먼저 로그인을 하셔야 합니다', 'http://windygame.nefficient.co.kr/web/board/basic/images/btn_pop_confirm.gif');
		return ;
	}
	
	
	//if(j<12) {
	//	LayerAlert('12세 미만의 고객님들은 이용하실 수 없습니다', 'http://windygame.nefficient.co.kr/web/board/basic/images/btn_pop_confirm.gif');
	//	return;
//	}	
	
	//겟앰프드2 CBT 전용 런쳐 클릭률 체크 함수입니다.
	GoClickInfo('L'); 
	//겟앰프드2 CBT 전용 런쳐 클릭률 체크 함수입니다. 
	
	//ActiveX Control Check
	if ("undefined" != typeof(document.all("WZIFLauncher")) && null != document.all("WZIFLauncher").object) {
		// The control is installed
	}
	else
	{
		// The control is not installed
		LayerAlert('먼저 ActiveX 컨트롤을 설치해야 합니다.', 'http://windygame.nefficient.co.kr/web/board/basic/images/btn_pop_confirm.gif');
		return ;
	}


    WZIFLauncher.attachEvent("GoToWeb", fnGoToWeb);

	//alert(a);
	//alert(b);
	//alert(c);
	//alert(d);
	//alert(e);
	//alert(j);
//	var e = '1';
	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>");