function TowerTeleportTo(num)
{
	var numbers = new Array();
	for (tti=0;tti<10;tti++)
	{
		numbers[tti] = new Object();
		numbers[tti].x = 14*16+8;
		numbers[tti].y = 269*16+8;
	}
	numbers[1].x = 14*16+8;
	numbers[1].y = 269*16+20;

	numbers[2].x = 14*16+8;
	numbers[2].y = 227*16+20;

	numbers[3].x = 208*16+8;
	numbers[3].y = 197*16+20;
	
	numbers[4].x = 194*16+8;
	numbers[4].y = 173*16+20;

	//freeze player movement
	g_upate_input_suspend = true;
	
	var numm = 160;//Math.floor(GetPersonSpriteset("beam0").images[0].width/2);
	var numm2 = 206;//Math.floor(GetPersonSpriteset("beam0").images[0].width/2);
	
	//spawn beam
	Queue_Command("SpawnUpBeam(entities[0].x-("+numm2+")*2-16+2,entities[0].y-("+numm+")*2+32, 1, 0, 2);", 8);
	Queue_Command("ClearBeams();SpawnUpBeam("+numbers[num].x+"-("+numm2+")*2-16+2,"+numbers[num].y+"-("+numm+")*2+32, 1, 0, 2, 8);", 16);
//change player position, but also change the map info (reset entities)
	Queue_Command("entities[0].x = "+numbers[num].x+";entities[0].y = "+numbers[num].y+";", 16);
	Queue_Command("g_upate_input_suspend = false;", 24);
	PlaySound(117);
}

var battle_zones = new Array()
var max_bzones = 63;
var max_bzone_enemies = 8;
for (i=0;i<max_bzones;i++)
{
	battle_zones[i] = new Array();
	for (j=0;j<max_bzone_enemies;j++)
	{
		battle_zones[i][j] = new Object();
		if (j>0)
		{
			battle_zones[i][j].x = 218;
			battle_zones[i][j].y = 218;
			battle_zones[i][j].name = "enemy1_legs1a";
			battle_zones[i][j].stage = 1;
			battle_zones[i][j].type = 1;
			battle_zones[i][j].ent_id = 1;
		}
		else
		{
			battle_zones[i][0].stages = 2;
			battle_zones[i][0].timer = 30;
			battle_zones[i][0].number = 5;
			battle_zones[i][0].target1 = -1;
			battle_zones[i][0].target2 = -1;
			battle_zones[i][0].wait=0;
		}
	}
}

battle_zones[0][0].stages = 3;
battle_zones[0][0].stimer = 30;
battle_zones[0][0].timer = 20;
battle_zones[0][0].number = 5;
battle_zones[0][0].target2 = "door5_1c";

battle_zones[0][1].x = 48;
battle_zones[0][1].y = 307;
battle_zones[0][1].type = 2;
battle_zones[0][1].name = "enemy1_legs_1a";

battle_zones[0][2].x = 49;
battle_zones[0][2].y = 309;
battle_zones[0][2].type = 2;
battle_zones[0][2].name = "mantis_legs_1b";

battle_zones[0][3].x = 54;
battle_zones[0][3].y = 307;
battle_zones[0][3].type = 2;
battle_zones[0][3].name = "enemy1_legs_2a";

battle_zones[0][4].x = 57;
battle_zones[0][4].y = 309;
battle_zones[0][4].type = 2;
battle_zones[0][4].name = "enemy1_legs_3a";

battle_zones[0][5].x = 58;
battle_zones[0][5].y = 311;
battle_zones[0][5].type = 2;
battle_zones[0][5].name = "enemy2_legs_1a";




battle_zones[1][0].stages = 5;
battle_zones[1][0].stimer = 20;
battle_zones[1][0].timer = 10;
battle_zones[1][0].number = 3;
battle_zones[1][0].target1 = "door5_2o";
battle_zones[1][0].target2 = "door5_3c";

battle_zones[1][1].x = 31;
battle_zones[1][1].y = 290;
battle_zones[1][1].type = 1;
battle_zones[1][1].name = "enemy1_legs_4a";

battle_zones[1][2].x = 31;
battle_zones[1][2].y = 293;
battle_zones[1][2].type = 1;
battle_zones[1][2].name = "enemy2_legs_2a";

battle_zones[1][3].x = 36;
battle_zones[1][3].y = 291;
battle_zones[1][3].type = 1;
battle_zones[1][3].name = "mantis_legs_2b";



battle_zones[2][0].stages = 2;
battle_zones[2][0].stimer = 20;
battle_zones[2][0].timer = 10;
battle_zones[2][0].number = 3;
battle_zones[2][0].target1 = -1;
battle_zones[2][0].target2 = -1;

battle_zones[2][1].x = 83;
battle_zones[2][1].y = 298;
battle_zones[2][1].type = 2;
battle_zones[2][1].name = "enemy2_legs_3a";

battle_zones[2][2].x = 84;
battle_zones[2][2].y = 296;
battle_zones[2][2].type = 2;
battle_zones[2][2].name = "enemy1_legs_5a";

battle_zones[2][3].x = 87;
battle_zones[2][3].y = 295;
battle_zones[2][3].type = 2;
battle_zones[2][3].name = "mantis_legs_3b";




battle_zones[3][0].stages = 1;
battle_zones[3][0].stimer = 20;
battle_zones[3][0].timer = 10;
battle_zones[3][0].number = 2;
battle_zones[3][0].target1 = -1;
battle_zones[3][0].target2 = -1;

battle_zones[3][1].x = 18;
battle_zones[3][1].y = 298;
battle_zones[3][1].type = 2;
battle_zones[3][1].name = "mantis_legs_4b";

battle_zones[3][2].x = 20;
battle_zones[3][2].y = 301;
battle_zones[3][2].type = 2;
battle_zones[3][2].name = "enemy2_legs_6a";



battle_zones[4][0].stages = 1;
battle_zones[4][0].stimer = 20;
battle_zones[4][0].timer = 10;
battle_zones[4][0].number = 2;
battle_zones[4][0].target1 = -1;
battle_zones[4][0].target2 = -1;

battle_zones[4][1].x = 181;
battle_zones[4][1].y = 287;
battle_zones[4][1].type = 3;
battle_zones[4][1].name = "umberdog_1a";

battle_zones[4][2].x = 187;
battle_zones[4][2].y = 287;
battle_zones[4][2].type = 3;
battle_zones[4][2].name = "umberdog_2a";



battle_zones[5][0].stages = 1;
battle_zones[5][0].stimer = 20;
battle_zones[5][0].timer = 10;
battle_zones[5][0].number = 3;
battle_zones[5][0].target1 = -1;
battle_zones[5][0].target2 = -1;

battle_zones[5][1].x = 183;
battle_zones[5][1].y = 300;
battle_zones[5][1].type = 2;
battle_zones[5][1].name = "mantis_legs_5b";

battle_zones[5][2].x = 186;
battle_zones[5][2].y = 299;
battle_zones[5][2].type = 2;
battle_zones[5][2].name = "mantis_legs_6b";

battle_zones[5][3].x = 189;
battle_zones[5][3].y = 301;
battle_zones[5][3].type = 2;
battle_zones[5][3].name = "enemy2_legs_4a";






battle_zones[6][0].stages = 5;
battle_zones[6][0].stimer = 20;
battle_zones[6][0].timer = 18;
battle_zones[6][0].number = 4;
battle_zones[6][0].target1 = "door5_5o";
battle_zones[6][0].target2 = "door5_4c";

battle_zones[6][1].x = 179;
battle_zones[6][1].y = 310;
battle_zones[6][1].type = 2;
battle_zones[6][1].name = "mantis_legs_7b";

battle_zones[6][2].x = 182;
battle_zones[6][2].y = 311;
battle_zones[6][2].type = 2;
battle_zones[6][2].name = "enemy2_legs_6a";

battle_zones[6][3].x = 184;
battle_zones[6][3].y = 308;
battle_zones[6][3].type = 2;
battle_zones[6][3].name = "mantis_legs_8b";

battle_zones[6][4].x = 185;
battle_zones[6][4].y = 311;
battle_zones[6][4].type = 2;
battle_zones[6][4].name = "enemy2_legs_5a";




battle_zones[7][0].stages = 1;
battle_zones[7][0].stimer = 20;
battle_zones[7][0].timer = 18;
battle_zones[7][0].number = 4;
battle_zones[7][0].target1 = -1;
battle_zones[7][0].target2 = -1;

battle_zones[7][1].x = 19;
battle_zones[7][1].y = 255;
battle_zones[7][1].type = 1;
battle_zones[7][1].name = "enemy1_legs_1a";

battle_zones[7][2].x = 21;
battle_zones[7][2].y = 245;
battle_zones[7][2].type = 1;
battle_zones[7][2].name = "enemy2_legs_1a";

battle_zones[7][3].x = 19;
battle_zones[7][3].y = 262;
battle_zones[7][3].type = 1;
battle_zones[7][3].name = "mantis_legs_1b";

battle_zones[7][4].x = 20;
battle_zones[7][4].y = 264;
battle_zones[7][4].type = 1;
battle_zones[7][4].name = "enemy2_legs_2a";




battle_zones[8][0].stages = 1;
battle_zones[8][0].stimer = 20;
battle_zones[8][0].timer = 18;
battle_zones[8][0].number = 1;
battle_zones[8][0].target1 = -1;
battle_zones[8][0].target2 = -1;

battle_zones[8][1].x = 57;
battle_zones[8][1].y = 275;
battle_zones[8][1].type = 5;
battle_zones[8][1].name = "umberdog_1a";






battle_zones[9][0].stages = 1;
battle_zones[9][0].stimer = 20;
battle_zones[9][0].timer = 18;
battle_zones[9][0].number = 2;
battle_zones[9][0].target1 = -1;
battle_zones[9][0].target2 = -1;

battle_zones[9][1].x = 62;
battle_zones[9][1].y = 254;
battle_zones[9][1].type = 2;
battle_zones[9][1].name = "enemy2_legs_3a";

battle_zones[9][2].x = 65;
battle_zones[9][2].y = 254;
battle_zones[9][2].type = 2;
battle_zones[9][2].name = "mantis_legs_2b";


battle_zones[10][0].stages = 3;
battle_zones[10][0].stimer = 20;
battle_zones[10][0].timer = 18;
battle_zones[10][0].number = 3;
battle_zones[10][0].target1 = "door5_7o";
battle_zones[10][0].target2 = "door5_6c";


battle_zones[10][1].x = 56;
battle_zones[10][1].y = 246;
battle_zones[10][1].type = 1;
battle_zones[10][1].name = "enemy1_legs_2a";

battle_zones[10][2].x = 57;
battle_zones[10][2].y = 247;
battle_zones[10][2].type = 1;
battle_zones[10][2].name = "enemy2_legs_4a";

battle_zones[10][3].x = 59;
battle_zones[10][3].y = 246;
battle_zones[10][3].type = 1;
battle_zones[10][3].name = "mantis_legs_3b";




battle_zones[11][0].stages = 1;
battle_zones[11][0].stimer = 20;
battle_zones[11][0].timer = 18;
battle_zones[11][0].number = 2;
battle_zones[11][0].target1 = -1;
battle_zones[11][0].target2 = -1;

battle_zones[11][1].x = 124;
battle_zones[11][1].y = 263;
battle_zones[11][1].type = 1;
battle_zones[11][1].name = "enemy2_legs_4a";

battle_zones[11][2].x = 126;
battle_zones[11][2].y = 262;
battle_zones[11][2].type = 1;
battle_zones[11][2].name = "mantis_legs_4b";


battle_zones[12][0].stages = 1;
battle_zones[12][0].stimer = 20;
battle_zones[12][0].timer = 18;
battle_zones[12][0].number = 2;
battle_zones[12][0].target1 = -1;
battle_zones[12][0].target2 = -1;

battle_zones[12][1].x = 144;
battle_zones[12][1].y = 271;
battle_zones[12][1].type = 5;
battle_zones[12][1].name = "guard_legs_1";

battle_zones[12][2].x = 145;
battle_zones[12][2].y = 275;
battle_zones[12][2].type = 5;
battle_zones[12][2].name = "umberdog_2a";

battle_zones[13][0].stages = 1;
battle_zones[13][0].stimer = 20;
battle_zones[13][0].timer = 18;
battle_zones[13][0].number = 1;
battle_zones[13][0].target1 = -1;
battle_zones[13][0].target2 = -1;

battle_zones[13][1].x = 144;
battle_zones[13][1].y = 257;
battle_zones[13][1].type = 5;
battle_zones[13][1].name = "guard_legs_2a";





battle_zones[14][0].stages = 4;
battle_zones[14][0].stimer = 20;
battle_zones[14][0].timer = 18;
battle_zones[14][0].number = 5;
battle_zones[14][0].target1 = "door5_9o";
battle_zones[14][0].target2 = "door5_8c";

battle_zones[14][1].x = 159;
battle_zones[14][1].y = 252;
battle_zones[14][1].type = 1;
battle_zones[14][1].name = "mantis_legs_5b";

battle_zones[14][2].x = 159;
battle_zones[14][2].y = 256;
battle_zones[14][2].type = 1;
battle_zones[14][2].name = "enemy1_legs_3a";

battle_zones[14][3].x = 164;
battle_zones[14][3].y = 250;
battle_zones[14][3].type = 1;
battle_zones[14][3].name = "mantis_legs_6b";

battle_zones[14][4].x = 164;
battle_zones[14][4].y = 253;
battle_zones[14][4].type = 1;
battle_zones[14][4].name = "enemy1_legs_4a";

battle_zones[14][5].x = 164;
battle_zones[14][5].y = 256;
battle_zones[14][5].type = 1;
battle_zones[14][5].name = "enemy2_legs_5a";


battle_zones[15][0].stages = 1;
battle_zones[15][0].stimer = 20;
battle_zones[15][0].timer = 18;
battle_zones[15][0].number = 2;
battle_zones[15][0].target1 = -1;
battle_zones[15][0].target2 = -1;

battle_zones[15][1].x = 183;
battle_zones[15][1].y = 251;
battle_zones[15][1].type = 1;
battle_zones[15][1].name = "enemy2_legs_6a";

battle_zones[15][2].x = 185;
battle_zones[15][2].y = 251;
battle_zones[15][2].type = 1;
battle_zones[15][2].name = "enemy1_legs_5a";




battle_zones[16][0].stages = 1;
battle_zones[16][0].stimer = 20;
battle_zones[16][0].timer = 18;
battle_zones[16][0].number = 1;
battle_zones[16][0].target1 = -1;
battle_zones[16][0].target2 = -1;

battle_zones[16][1].x = 195;
battle_zones[16][1].y = 247;
battle_zones[16][1].type = 3;
battle_zones[16][1].name = "umberdog_3";


battle_zones[17][0].stages = 1;
battle_zones[17][0].stimer = 20;
battle_zones[17][0].timer = 18;
battle_zones[17][0].number = 1;
battle_zones[17][0].target1 = -1;
battle_zones[17][0].target2 = -1;

battle_zones[17][1].x = 196;
battle_zones[17][1].y = 254;
battle_zones[17][1].type = 3;
battle_zones[17][1].name = "guard_legs_3a";



battle_zones[18][0].stages = 1;
battle_zones[18][0].stimer = 20;
battle_zones[18][0].timer = 18;
battle_zones[18][0].number = 4;
battle_zones[18][0].target1 = -1;
battle_zones[18][0].target2 = -1;

battle_zones[18][1].x = 183;
battle_zones[18][1].y = 267;
battle_zones[18][1].type = 1;
battle_zones[18][1].name = "enemy1_legs_6a";

battle_zones[18][2].x = 183;
battle_zones[18][2].y = 270;
battle_zones[18][2].type = 1;
battle_zones[18][2].name = "enemy2_legs_7a";

battle_zones[18][3].x = 185;
battle_zones[18][3].y = 265;
battle_zones[18][3].type = 1;
battle_zones[18][3].name = "mantis_legs_7b";

battle_zones[18][4].x = 185;
battle_zones[18][4].y = 268
battle_zones[18][4].type = 1;
battle_zones[18][4].name = "enemy1_legs_7";






battle_zones[19][0].stages = 1;
battle_zones[19][0].stimer = 20;
battle_zones[19][0].timer = 18;
battle_zones[19][0].number = 4;
battle_zones[19][0].target1 = -1;
battle_zones[19][0].target2 = -1;

battle_zones[19][1].x = 46;
battle_zones[19][1].y = 275;
battle_zones[19][1].type = 4;
battle_zones[19][1].name = "umberdog_4";

battle_zones[19][2].x = 51;
battle_zones[19][2].y = 255;
battle_zones[19][2].type = 4;
battle_zones[19][2].name = "eye1_legs_1";

battle_zones[19][3].x = 76;
battle_zones[19][3].y = 253;
battle_zones[19][3].type = 4;
battle_zones[19][3].name = "eye1_legs_2";

battle_zones[19][4].x = 79;
battle_zones[19][4].y = 257
battle_zones[19][4].type = 4;
battle_zones[19][4].name = "eye1_legs_3";









battle_zones[20][0].stages = 1;
battle_zones[20][0].stimer = 20;
battle_zones[20][0].timer = 18;
battle_zones[20][0].number = 3;
battle_zones[20][0].target1 = -1;
battle_zones[20][0].target2 = -1;

battle_zones[20][1].x = 22;
battle_zones[20][1].y = 229;
battle_zones[20][1].type = 5;
battle_zones[20][1].name = "umberdog_1a";

battle_zones[20][2].x = 31;
battle_zones[20][2].y = 236;
battle_zones[20][2].type = 1;
battle_zones[20][2].name = "enemy2_legs_1a";

battle_zones[20][3].x = 36;
battle_zones[20][3].y = 239;
battle_zones[20][3].type = 1;
battle_zones[20][3].name = "enemy1_legs_1a";



battle_zones[21][0].stages = 3;
battle_zones[21][0].stimer = 20;
battle_zones[21][0].timer = 18;
battle_zones[21][0].number = 4;
battle_zones[21][0].target1 = "door5_11o";
battle_zones[21][0].target2 = "door5_10c";

battle_zones[21][1].x = 31;
battle_zones[21][1].y = 224;
battle_zones[21][1].type = 1;
battle_zones[21][1].name = "mantis_legs_1b";

battle_zones[21][2].x = 31;
battle_zones[21][2].y = 229;
battle_zones[21][2].type = 1;
battle_zones[21][2].name = "enemy1_legs_2a";

battle_zones[21][3].x = 36;
battle_zones[21][3].y = 225;
battle_zones[21][3].type = 1;
battle_zones[21][3].name = "mantis_legs_2b";

battle_zones[21][4].x = 36;
battle_zones[21][4].y = 230;
battle_zones[21][4].type = 1;
battle_zones[21][4].name = "enemy2_legs_2a";


battle_zones[22][0].stages = 1;
battle_zones[22][0].stimer = 20;
battle_zones[22][0].timer = 18;
battle_zones[22][0].number = 1;
battle_zones[22][0].target1 = -1;
battle_zones[22][0].target2 = -1;

battle_zones[22][1].x = 53;
battle_zones[22][1].y = 231;
battle_zones[22][1].type = 5;
battle_zones[22][1].name = "guard_legs_1";


battle_zones[23][0].stages = 1;
battle_zones[23][0].stimer = 20;
battle_zones[23][0].timer = 18;
battle_zones[23][0].number = 3;
battle_zones[23][0].target1 = -1;
battle_zones[23][0].target2 = -1;

battle_zones[23][1].x = 15;
battle_zones[23][1].y = 215;
battle_zones[23][1].type = 1;
battle_zones[23][1].name = "enemy1_legs_3a";

battle_zones[23][2].x = 18;
battle_zones[23][2].y = 221;
battle_zones[23][2].type = 1;
battle_zones[23][2].name = "enemy2_legs_3a";

battle_zones[23][3].x = 21;
battle_zones[23][3].y = 217;
battle_zones[23][3].type = 1;
battle_zones[23][3].name = "mantis_legs_3b";



battle_zones[24][0].stages = 3;
battle_zones[24][0].stimer = 20;
battle_zones[24][0].timer = 18;
battle_zones[24][0].number = 4;
battle_zones[24][0].target1 = "door5_13o";
battle_zones[24][0].target2 = "door5_12c";

battle_zones[24][1].x = 31;
battle_zones[24][1].y = 213;
battle_zones[24][1].type = 1;
battle_zones[24][1].name = "enemy2_legs_4a";

battle_zones[24][2].x = 31;
battle_zones[24][2].y = 216;
battle_zones[24][2].type = 1;
battle_zones[24][2].name = "enemy1_legs_4a";

battle_zones[24][3].x = 36;
battle_zones[24][3].y = 214;
battle_zones[24][3].type = 1;
battle_zones[24][3].name = "enemy2_legs_5a";

battle_zones[24][4].x = 36;
battle_zones[24][4].y = 217;
battle_zones[24][4].type = 1;
battle_zones[24][4].name = "mantis_legs_4b";



battle_zones[25][0].stages = 1;
battle_zones[25][0].stimer = 20;
battle_zones[25][0].timer = 18;
battle_zones[25][0].number = 3;
battle_zones[25][0].target1 = -1;
battle_zones[25][0].target2 = -1;

battle_zones[25][1].x = 84;
battle_zones[25][1].y = 220;
battle_zones[25][1].type = 1;
battle_zones[25][1].name = "enemy2_legs_6a";

battle_zones[25][2].x = 81;
battle_zones[25][2].y = 231;
battle_zones[25][2].type = 1;
battle_zones[25][2].name = "enemy1_legs_5a";

battle_zones[25][3].x = 85;
battle_zones[25][3].y = 226;
battle_zones[25][3].type = 1;
battle_zones[25][3].name = "mantis_legs_5b";

battle_zones[26][0].stages = 1;
battle_zones[26][0].stimer = 20;
battle_zones[26][0].timer = 18;
battle_zones[26][0].number = 3;
battle_zones[26][0].target1 = -1;
battle_zones[26][0].target2 = -1;

battle_zones[26][1].x = 122;
battle_zones[26][1].y = 220;
battle_zones[26][1].type = 1;
battle_zones[26][1].name = "enemy2_legs_7a";

battle_zones[26][2].x = 123;
battle_zones[26][2].y = 218;
battle_zones[26][2].type = 1;
battle_zones[26][2].name = "mantis_legs_6b";

battle_zones[26][3].x = 128;
battle_zones[26][3].y = 227;
battle_zones[26][3].type = 1;
battle_zones[26][3].name = "enemy1_legs_6a";


battle_zones[27][0].stages = 1;
battle_zones[27][0].stimer = 20;
battle_zones[27][0].timer = 18;
battle_zones[27][0].number = 2;
battle_zones[27][0].target1 = -1;
battle_zones[27][0].target2 = -1;

battle_zones[27][1].x = 159;
battle_zones[27][1].y = 219;
battle_zones[27][1].type = 1;
battle_zones[27][1].name = "enemy1_legs_7";

battle_zones[27][2].x = 146;
battle_zones[27][2].y = 219;
battle_zones[27][2].type = 1;
battle_zones[27][2].name = "enemy2_legs_8a";



battle_zones[28][0].stages = 4;
battle_zones[28][0].stimer = 20;
battle_zones[28][0].timer = 18;
battle_zones[28][0].number = 4;
battle_zones[28][0].target1 = "door5_15o";
battle_zones[28][0].target2 = "door5_14c";

battle_zones[28][1].x = 159;
battle_zones[28][1].y = 225;
battle_zones[28][1].type = 1;
battle_zones[28][1].name = "enemy2_legs_9a";

battle_zones[28][2].x = 159;
battle_zones[28][2].y = 229;
battle_zones[28][2].type = 1;
battle_zones[28][2].name = "enemy1_legs_8";

battle_zones[28][3].x = 164;
battle_zones[28][3].y = 226;
battle_zones[28][3].type = 1;
battle_zones[28][3].name = "mantis_legs_7b";

battle_zones[28][4].x = 164;
battle_zones[28][4].y = 228;
battle_zones[28][4].type = 1;
battle_zones[28][4].name = "enemy2_legs_10a";


battle_zones[29][0].stages = 1;
battle_zones[29][0].stimer = 20;
battle_zones[29][0].timer = 18;
battle_zones[29][0].number = 1;
battle_zones[29][0].target1 = -1;
battle_zones[29][0].target2 = -1;

battle_zones[29][1].x = 205;
battle_zones[29][1].y = 227;
battle_zones[29][1].type = 5;
battle_zones[29][1].name = "guard_legs_2a";


battle_zones[30][0].stages = 1;
battle_zones[30][0].stimer = 20;
battle_zones[30][0].timer = 18;
battle_zones[30][0].number = 3;
battle_zones[30][0].target1 = -1;
battle_zones[30][0].target2 = -1;

battle_zones[30][1].x = 203;
battle_zones[30][1].y = 220;
battle_zones[30][1].type = 5;
battle_zones[30][1].name = "guard_legs_3a";

battle_zones[30][2].x = 178;
battle_zones[30][2].y = 219;
battle_zones[30][2].type = 5;
battle_zones[30][2].name = "umberdog_2a";

battle_zones[30][3].x = 189;
battle_zones[30][3].y = 221;
battle_zones[30][3].type = 5;
battle_zones[30][3].name = "umberdog_3";




battle_zones[31][0].stages = 1;
battle_zones[31][0].stimer = 20;
battle_zones[31][0].timer = 18;
battle_zones[31][0].number = 6;
battle_zones[31][0].target1 = -1;
battle_zones[31][0].target2 = -1;

battle_zones[31][1].x = 62;
battle_zones[31][1].y = 239;
battle_zones[31][1].type = 4;
battle_zones[31][1].name = "guard_legs_4";

battle_zones[31][2].x = 58;
battle_zones[31][2].y = 224;
battle_zones[31][2].type = 4;
battle_zones[31][2].name = "drone1_legs_1";

battle_zones[31][3].x = 64;
battle_zones[31][3].y = 224;
battle_zones[31][3].type = 4;
battle_zones[31][3].name = "drone1_legs_2";

battle_zones[31][4].x = 64;
battle_zones[31][4].y = 217;
battle_zones[31][4].type = 4;
battle_zones[31][4].name = "eye1_legs_1";

battle_zones[31][5].x = 87;
battle_zones[31][5].y = 211;
battle_zones[31][5].type = 4;
battle_zones[31][5].name = "drone1_legs_3";

battle_zones[31][6].x = 137;
battle_zones[31][6].y = 211;
battle_zones[31][6].type = 4;
battle_zones[31][6].name = "eye1_legs_2";
/*
battle_zones[31][7].x = 177;
battle_zones[31][7].y = 229;
battle_zones[31][7].type = 4;
battle_zones[31][7].name = "guard_legs_5";
*/

battle_zones[32][0].stages = 1;
battle_zones[32][0].stimer = 20;
battle_zones[32][0].timer = 18;
battle_zones[32][0].number = 4;
battle_zones[32][0].target1 = -1;
battle_zones[32][0].target2 = -1;

battle_zones[32][1].x = 182;
battle_zones[32][1].y = 239;
battle_zones[32][1].type = 4;
battle_zones[32][1].name = "umberdog_4";

battle_zones[32][2].x = 185;
battle_zones[32][2].y = 239;
battle_zones[32][2].type = 4;
battle_zones[32][2].name = "umberdog_5";


battle_zones[32][3].x = 193;
battle_zones[32][3].y = 211;
battle_zones[32][3].type = 4;
battle_zones[32][3].name = "eye1_legs_2";

battle_zones[32][4].x = 198;
battle_zones[32][4].y = 227;
battle_zones[32][4].type = 4;
battle_zones[32][4].name = "eye1_legs_3";


battle_zones[33][0].stages = 1;
battle_zones[33][0].stimer = 20;
battle_zones[33][0].timer = 18;
battle_zones[33][0].number = 1;
battle_zones[33][0].target1 = -1;
battle_zones[33][0].target2 = -1;

battle_zones[33][1].x = 209;
battle_zones[33][1].y = 188;
battle_zones[33][1].type = 5;
battle_zones[33][1].name = "guard_legs_1";


battle_zones[34][0].stages = 1;
battle_zones[34][0].stimer = 20;
battle_zones[34][0].timer = 18;
battle_zones[34][0].number = 1;
battle_zones[34][0].target1 = -1;
battle_zones[34][0].target2 = -1;

battle_zones[34][1].x = 199;
battle_zones[34][1].y = 178;
battle_zones[34][1].type = 5;
battle_zones[34][1].name = "umberdog_1a";





battle_zones[35][0].stages = 2;
battle_zones[35][0].stimer = 20;
battle_zones[35][0].timer = 18;
battle_zones[35][0].number = 4;
battle_zones[35][0].target1 = -1;
battle_zones[35][0].target2 = -1;

battle_zones[35][1].x = 159;
battle_zones[35][1].y = 189;
battle_zones[35][1].type = 1;
battle_zones[35][1].name = "enemy1_legs_1a";

battle_zones[35][2].x = 159;
battle_zones[35][2].y = 193;
battle_zones[35][2].type = 1;
battle_zones[35][2].name = "enemy2_legs_1a";

battle_zones[35][3].x = 164;
battle_zones[35][3].y = 188;
battle_zones[35][3].type = 1;
battle_zones[35][3].name = "enemy2_legs_2a";

battle_zones[35][4].x = 164;
battle_zones[35][4].y = 192;
battle_zones[35][4].type = 1;
battle_zones[35][4].name = "mantis_legs_1b";

battle_zones[36][0].stages = 1;
battle_zones[36][0].stimer = 20;
battle_zones[36][0].timer = 18;
battle_zones[36][0].number = 1;
battle_zones[36][0].target1 = -1;
battle_zones[36][0].target2 = -1;

battle_zones[36][1].x = 149;
battle_zones[36][1].y = 178;
battle_zones[36][1].type = 5;
battle_zones[36][1].name = "guard_legs_2a";


battle_zones[37][0].stages = 2;
battle_zones[37][0].stimer = 20;
battle_zones[37][0].timer = 18;
battle_zones[37][0].number = 7;
battle_zones[37][0].target1 = -1;
battle_zones[37][0].target2 = -1;

battle_zones[37][1].x = 83;
battle_zones[37][1].y = 187;
battle_zones[37][1].type = 1;
battle_zones[37][1].name = "mantis_legs_2b";

battle_zones[37][2].x = 84;
battle_zones[37][2].y = 191;
battle_zones[37][2].type = 1;
battle_zones[37][2].name = "enemy1_legs_2a";

battle_zones[37][3].x = 86;
battle_zones[37][3].y = 180;
battle_zones[37][3].type = 1;
battle_zones[37][3].name = "enemy1_legs_3a";

battle_zones[37][4].x = 87;
battle_zones[37][4].y = 188;
battle_zones[37][4].type = 1;
battle_zones[37][4].name = "enemy2_legs_3a";

battle_zones[37][5].x = 88;
battle_zones[37][5].y = 176;
battle_zones[37][5].type = 1;
battle_zones[37][5].name = "enemy2_legs_4a";

battle_zones[37][6].x = 91;
battle_zones[37][6].y = 185;
battle_zones[37][6].type = 1;
battle_zones[37][6].name = "mantis_legs_3b";

battle_zones[37][7].x = 93;
battle_zones[37][7].y = 174;
battle_zones[37][7].type = 1;
battle_zones[37][7].name = "mantis_legs_4b";



battle_zones[38][0].stages = 2;
battle_zones[38][0].stimer = 20;
battle_zones[38][0].timer = 18;
battle_zones[38][0].number = 4;
battle_zones[38][0].target1 = -1;
battle_zones[38][0].target2 = -1;

battle_zones[38][1].x = 62;
battle_zones[38][1].y = 173;
battle_zones[38][1].type = 1;
battle_zones[38][1].name = "enemy1_legs_4a";

battle_zones[38][2].x = 62;
battle_zones[38][2].y = 177;
battle_zones[38][2].type = 1;
battle_zones[38][2].name = "mantis_legs_5b";

battle_zones[38][3].x = 67;
battle_zones[38][3].y = 176;
battle_zones[38][3].type = 1;
battle_zones[38][3].name = "enemy1_legs_5a";

battle_zones[38][4].x = 68;
battle_zones[38][4].y = 177;
battle_zones[38][4].type = 1;
battle_zones[38][4].name = "enemy2_legs_5a";



battle_zones[39][0].stages = 3;
battle_zones[39][0].stimer = 20;
battle_zones[39][0].timer = 18;
battle_zones[39][0].number = 2;
battle_zones[39][0].target1 = -1;
battle_zones[39][0].target2 = -1;

battle_zones[39][1].x = 28;
battle_zones[39][1].y = 179;
battle_zones[39][1].type = 5;
battle_zones[39][1].name = "umberdog_2a";

battle_zones[39][2].x = 38;
battle_zones[39][2].y = 179;
battle_zones[39][2].type = 5;
battle_zones[39][2].name = "umberdog_3";





battle_zones[40][0].stages = 1;
battle_zones[40][0].stimer = 20;
battle_zones[40][0].timer = 18;
battle_zones[40][0].number = 1;
battle_zones[40][0].target1 = -1;
battle_zones[40][0].target2 = -1;

battle_zones[40][1].x = 16;
battle_zones[40][1].y = 188;
battle_zones[40][1].type = 5;
battle_zones[40][1].name = "guard_legs_3a";





battle_zones[41][0].stages = 1;
battle_zones[41][0].stimer = 20;
battle_zones[41][0].timer = 18;
battle_zones[41][0].number = 4;
battle_zones[41][0].target1 = -1;
battle_zones[41][0].target2 = -1;

battle_zones[41][1].x = 30;
battle_zones[41][1].y = 187;
battle_zones[41][1].type = 1;
battle_zones[41][1].name = "enemy2_legs_6a";

battle_zones[41][2].x = 31;
battle_zones[41][2].y = 189;
battle_zones[41][2].type = 1;
battle_zones[41][2].name = "mantis_legs_6b";

battle_zones[41][3].x = 30;
battle_zones[41][3].y = 191;
battle_zones[41][3].type = 1;
battle_zones[41][3].name = "enemy1_legs_6a";

battle_zones[41][4].x = 36;
battle_zones[41][4].y = 190;
battle_zones[41][4].type = 5;
battle_zones[41][4].name = "guard_legs_5";



battle_zones[42][0].stages = 1;
battle_zones[42][0].stimer = 20;
battle_zones[42][0].timer = 18;
battle_zones[42][0].number = 7;
battle_zones[42][0].target1 = -1;
battle_zones[42][0].target2 = -1;

battle_zones[42][1].x = 185;
battle_zones[42][1].y = 191;
battle_zones[42][1].type = 4;
battle_zones[42][1].name = "eye1_legs_1";

battle_zones[42][2].x = 147;
battle_zones[42][2].y = 203;
battle_zones[42][2].type = 4;
battle_zones[42][2].name = "umberdog_4";

battle_zones[42][3].x = 121;
battle_zones[42][3].y = 199;
battle_zones[42][3].type = 4;
battle_zones[42][3].name = "guard_legs_4";

battle_zones[42][4].x = 76;
battle_zones[42][4].y = 189;
battle_zones[42][4].type = 4;
battle_zones[42][4].name = "eye1_legs_2";

battle_zones[42][5].x = 72;
battle_zones[42][5].y = 198;
battle_zones[42][5].type = 4;
battle_zones[42][5].name = "drone1_legs_1";

battle_zones[42][6].x = 57;
battle_zones[42][6].y = 196;
battle_zones[42][6].type = 4;
battle_zones[42][6].name = "drone1_legs_2";

battle_zones[42][7].x = 51;
battle_zones[42][7].y = 193;
battle_zones[42][7].type = 4;
battle_zones[42][7].name = "drone1_legs_3";



battle_zones[43][0].stages = 1;
battle_zones[43][0].stimer = 20;
battle_zones[43][0].timer = 18;
battle_zones[43][0].number = 1;
battle_zones[43][0].target1 = -1;
battle_zones[43][0].target2 = -1;

battle_zones[43][1].x = 18;
battle_zones[43][1].y = 203;
battle_zones[43][1].type = 4;
battle_zones[43][1].name = "umberdog_5";




battle_zones[44][0].stages = 2;
battle_zones[44][0].stimer = 20;
battle_zones[44][0].timer = 18;
battle_zones[44][0].number = 4;
battle_zones[44][0].target1 = -1;
battle_zones[44][0].target2 = -1;

battle_zones[44][1].x = 159;
battle_zones[44][1].y = 178;
battle_zones[44][1].type = 1;
battle_zones[44][1].name = "mantis_legs_7b";

battle_zones[44][2].x = 159;
battle_zones[44][2].y = 181;
battle_zones[44][2].type = 1;
battle_zones[44][2].name = "enemy2_legs_7a";

battle_zones[44][3].x = 164;
battle_zones[44][3].y = 179;
battle_zones[44][3].type = 1;
battle_zones[44][3].name = "enemy1_legs_7";

battle_zones[44][4].x = 164;
battle_zones[44][4].y = 183;
battle_zones[44][4].type = 1;
battle_zones[44][4].name = "mantis_legs_8b";

//boss level:
battle_zones[45][0].stages = 2;
battle_zones[45][0].stimer = 30;
battle_zones[45][0].timer = 28;
battle_zones[45][0].number = 3;
battle_zones[45][0].target1 = -1;
battle_zones[45][0].target2 = -1;
battle_zones[45][0].target3 = "boss.stage = 1;";
battle_zones[45][0].wait=1;

battle_zones[45][1].x = 60+128;
battle_zones[45][1].y = 67;
battle_zones[45][1].type = 6;
battle_zones[45][1].name = "enemy1_legs_1a";

battle_zones[45][2].x = 63+128;
battle_zones[45][2].y = 69;
battle_zones[45][2].type = 6;
battle_zones[45][2].name = "enemy1_legs_2a";

battle_zones[45][3].x = 67+128;
battle_zones[45][3].y = 68;
battle_zones[45][3].type = 6;
battle_zones[45][3].name = "enemy1_legs_3a";


battle_zones[46][0].stages = 2;
battle_zones[46][0].stimer = 30;
battle_zones[46][0].timer = 28;
battle_zones[46][0].number = 3;
battle_zones[46][0].target1 = -1;
battle_zones[46][0].target2 = -1;
battle_zones[46][0].target3 = "boss.stage = 1;";
battle_zones[46][0].wait=1;

battle_zones[46][1].x = 57+128;
battle_zones[46][1].y = 69;
battle_zones[46][1].type = 6;
battle_zones[46][1].name = "enemy2_legs_1a";

battle_zones[46][2].x = 65+128;
battle_zones[46][2].y = 70;
battle_zones[46][2].type = 6;
battle_zones[46][2].name = "enemy2_legs_2a";

battle_zones[46][3].x = 68+128;
battle_zones[46][3].y = 69;
battle_zones[46][3].type = 6;
battle_zones[46][3].name = "enemy2_legs_3a";


battle_zones[47][0].stages = 2;
battle_zones[47][0].stimer = 30;
battle_zones[47][0].timer = 28;
battle_zones[47][0].number = 3;
battle_zones[47][0].target1 = -1;
battle_zones[47][0].target2 = -1;
battle_zones[47][0].target3 = "boss.stage = 1;";
battle_zones[47][0].wait=1;

battle_zones[47][1].x = 58+128;
battle_zones[47][1].y = 66;
battle_zones[47][1].type = 6;
battle_zones[47][1].name = "mantis_legs_1b";

battle_zones[47][2].x = 61+128;
battle_zones[47][2].y = 70;
battle_zones[47][2].type = 6;
battle_zones[47][2].name = "mantis_legs_2b";

battle_zones[47][3].x = 64+128;
battle_zones[47][3].y = 68;
battle_zones[47][3].type = 6;
battle_zones[47][3].name = "mantis_legs_3b";



battle_zones[48][0].stages = 1;
battle_zones[48][0].stimer = 30;
battle_zones[48][0].timer = 28;
battle_zones[48][0].number = 3;
battle_zones[48][0].target1 = -1;
battle_zones[48][0].target2 = -1;
battle_zones[48][0].target3 = "boss.stage = 1;CloseBossCage();"
battle_zones[48][0].wait=1;

battle_zones[48][1].x = 37+128;
battle_zones[48][1].y = 71;
battle_zones[48][1].type = 4;
battle_zones[48][1].name = "umberdog_1a";

battle_zones[48][2].x = 38+128;
battle_zones[48][2].y = 71;
battle_zones[48][2].type = 4;
battle_zones[48][2].name = "umberdog_2a";

battle_zones[48][3].x = 41+128;
battle_zones[48][3].y = 71;
battle_zones[48][3].type = 4;
battle_zones[48][3].name = "umberdog_3a";



battle_zones[49][0].stages = 1;
battle_zones[49][0].stimer = 30;
battle_zones[49][0].timer = 28;
battle_zones[49][0].number = 3;
battle_zones[49][0].target1 = -1;
battle_zones[49][0].target2 = -1;
battle_zones[49][0].target3 = "boss.stage = 1;CloseBossCage();"
battle_zones[49][0].wait=1;

battle_zones[49][1].x = 37+128;
battle_zones[49][1].y = 71;
battle_zones[49][1].type = 4;
battle_zones[49][1].name = "guard_1a";

battle_zones[49][2].x = 38+128;
battle_zones[49][2].y = 71;
battle_zones[49][2].type = 4;
battle_zones[49][2].name = "guard_2a";

battle_zones[49][3].x = 41+128;
battle_zones[49][3].y = 71;
battle_zones[49][3].type = 4;
battle_zones[49][3].name = "guard_3a";



battle_zones[50][0].stages = 3;
battle_zones[50][0].stimer = 20;
battle_zones[50][0].timer = 18;
battle_zones[50][0].number = 4;
battle_zones[50][0].target1 = "door5_1o";
battle_zones[50][0].target2 = "door5_2c";


battle_zones[50][1].x = 291;
battle_zones[50][1].y = 9;
battle_zones[50][1].type = 1;
battle_zones[50][1].name = "enemy2_legs_7a";

battle_zones[50][2].x = 291;
battle_zones[50][2].y = 12;
battle_zones[50][2].type = 1;
battle_zones[50][2].name = "enemy1_legs_11a";

battle_zones[50][3].x = 296;
battle_zones[50][3].y = 10;
battle_zones[50][3].type = 1;
battle_zones[50][3].name = "enemy2_legs_8a";

battle_zones[50][4].x = 296;
battle_zones[50][4].y = 13;
battle_zones[50][4].type = 1;
battle_zones[50][4].name = "mantis_legs_6b";









battle_zones[60][0].stages = 1;
battle_zones[60][0].stimer = 30;
battle_zones[60][0].timer = 28;
battle_zones[60][0].number = 6;
battle_zones[60][0].target1 = -1;
battle_zones[60][0].target2 = -1;
battle_zones[60][0].target3 = "boss.stage = 1;CloseBossCage();"
battle_zones[60][0].wait=1;

battle_zones[60][1].x = 37+128;
battle_zones[60][1].y = 71;
battle_zones[60][1].type = 4;
battle_zones[60][1].name = "umberdog_1a";

battle_zones[60][2].x = 38+128;
battle_zones[60][2].y = 71;
battle_zones[60][2].type = 4;
battle_zones[60][2].name = "umberdog_2a";

battle_zones[60][3].x = 41+128;
battle_zones[60][3].y = 71;
battle_zones[60][3].type = 4;
battle_zones[60][3].name = "umberdog_3a";

battle_zones[60][4].x = 37+128;
battle_zones[60][4].y = 71;
battle_zones[60][4].type = 4;
battle_zones[60][4].name = "guard_1a";

battle_zones[60][5].x = 38+128;
battle_zones[60][5].y = 71;
battle_zones[60][5].type = 4;
battle_zones[60][5].name = "guard_2a";

battle_zones[60][6].x = 41+128;
battle_zones[60][6].y = 71;
battle_zones[60][6].type = 4;
battle_zones[60][6].name = "guard_3a";




//boss level:
battle_zones[61][0].stages = 2;
battle_zones[61][0].stimer = 30;
battle_zones[61][0].timer = 28;
battle_zones[61][0].number = 6;
battle_zones[61][0].target1 = -1;
battle_zones[61][0].target2 = -1;
battle_zones[61][0].target3 = "boss.stage = 1;";
battle_zones[61][0].wait=1;

battle_zones[61][1].x = 60+128;
battle_zones[61][1].y = 67;
battle_zones[61][1].type = 6;
battle_zones[61][1].name = "enemy1_legs_1a";

battle_zones[61][2].x = 63+128;
battle_zones[61][2].y = 69;
battle_zones[61][2].type = 6;
battle_zones[61][2].name = "enemy1_legs_2a";

battle_zones[61][3].x = 67+128;
battle_zones[61][3].y = 68;
battle_zones[61][3].type = 6;
battle_zones[61][3].name = "enemy1_legs_3a";

battle_zones[61][4].x = 58+128;
battle_zones[61][4].y = 66;
battle_zones[61][4].type = 6;
battle_zones[61][4].name = "mantis_legs_1b";

battle_zones[61][5].x = 61+128;
battle_zones[61][5].y = 70;
battle_zones[61][5].type = 6;
battle_zones[61][5].name = "mantis_legs_2b";

battle_zones[61][6].x = 64+128;
battle_zones[61][6].y = 68;
battle_zones[61][6].type = 6;
battle_zones[61][6].name = "mantis_legs_3b";


//boss level:
battle_zones[62][0].stages = 2;
battle_zones[62][0].stimer = 30;
battle_zones[62][0].timer = 28;
battle_zones[62][0].number = 6;
battle_zones[62][0].target1 = -1;
battle_zones[62][0].target2 = -1;
battle_zones[62][0].target3 = "boss.stage = 1;";
battle_zones[62][0].wait=1;

battle_zones[62][1].x = 57+128;
battle_zones[62][1].y = 69;
battle_zones[62][1].type = 6;
battle_zones[62][1].name = "enemy2_legs_1a";

battle_zones[62][2].x = 65+128;
battle_zones[62][2].y = 70;
battle_zones[62][2].type = 6;
battle_zones[62][2].name = "enemy2_legs_2a";

battle_zones[62][3].x = 68+128;
battle_zones[62][3].y = 69;
battle_zones[62][3].type = 6;
battle_zones[62][3].name = "enemy2_legs_3a";

battle_zones[62][4].x = 58+128;
battle_zones[62][4].y = 66;
battle_zones[62][4].type = 6;
battle_zones[62][4].name = "mantis_legs_1b";

battle_zones[62][5].x = 61+128;
battle_zones[62][5].y = 70;
battle_zones[62][5].type = 6;
battle_zones[62][5].name = "mantis_legs_2b";

battle_zones[62][6].x = 64+128;
battle_zones[62][6].y = 68;
battle_zones[62][6].type = 6;
battle_zones[62][6].name = "mantis_legs_3b";



function StartBattleZone(num)
{
	if (battle_zones[num][0].target1 != -1)
		CloseNameDoor(battle_zones[num][0].target1);

	var entt = 0;
	//reset stage info in case of reset
	for (aia=0;aia<battle_zones[num][0].number;aia++)
	{	
		battle_zones[num][aia+1].stage = 1;
		battle_zones[num][aia+1].ent = ReturnEnt(battle_zones[num][aia+1].name);
		entt=battle_zones[num][aia+1].ent;
		entities[entt].x = battle_zones[num][aia+1].x*16+8;
		entities[entt].y = battle_zones[num][aia+1].y*16+8;
		EnemyAmbush(battle_zones[num][aia+1].name, battle_zones[num][aia+1].ent,battle_zones[num][aia+1].type,true);
	}

	Queue_Command("BattleZoneCheck("+num+");", battle_zones[num][0].stimer);
}

function BattleZoneCheck(num)
{
	var flag = false;
	var number = Math.random();
	for (aia=0;aia<battle_zones[num][0].number;aia++)
	{
		if (battle_zones[num][aia+1].stage < battle_zones[num][0].stages)
		{
			flag = true;
			if (entities[battle_zones[num][aia+1].ent].hp <= 0)
			{
				number = Math.random();
				if (num == 50)
					number = 0.5;
				Queue_Command("BZAmbush("+num+", "+aia+");", Math.floor(battle_zones[num][0].timer*number))

			}
		}
		else if (battle_zones[num][0].wait == 1)
		{
			if (entities[battle_zones[num][aia+1].ent].hp > 0)
			{
				flag = true;
			}
		}
	}
	if (flag == true)
		Queue_Command("BattleZoneCheck("+num+");", battle_zones[num][0].stimer);
	else
	{
		if (battle_zones[num][0].target3 != undefined)
		{
			Queue_Command(battle_zones[num][0].target3, 40);
		}
		else
		{
			if (battle_zones[num][0].target2 != -1)
				OpenNameDoor(battle_zones[num][0].target2, undefined, true);
			if (battle_zones[num][0].target1 != -1)
				OpenNameDoor(battle_zones[num][0].target1, undefined, true);
		}
	}
}

function BZAmbush(num,aia)
{
	//two BZAmbushes could have been spawned, so make sure to only do this once
	if (entities[battle_zones[num][aia+1].ent].hp <=0)
	{
		entities[battle_zones[num][aia+1].ent].x = battle_zones[num][aia+1].x*16+8;
		entities[battle_zones[num][aia+1].ent].y = battle_zones[num][aia+1].y*16+8;
		EnemyAmbush(battle_zones[num][aia+1].name,battle_zones[num][aia+1].ent,battle_zones[num][aia+1].type, true);
		battle_zones[num][aia+1].stage++;
	}
}

function  ReturnEnt(name)
{
	for (re=0;re<max_entities;re++)
	{
		if (entities[re].name == name)
		{
			return re;
		}
	}
	return -1;
}