		let SelectBerX=0;
		let SelectBerY=0;

		let Menu=1000;
		let Exit=1001;
		let Start=2000;
		let Extra=2001;
		let Practice=2002;
		let Result=2003;
		let Config=2004;
		let LightConfig=2005;
		let Quit=2006;
		let Secret=2007;
		let DefaultX=GetCenterX;
		let DefaultY=GetPlayerY+128;
		let StageState=Menu;
		let MenuState=Menu;
		let Select=Start;

		let MenuDifficult=1002;
		let MenuExtra=1003;
		let MenuPractice=1004;
		let MenuResult=1005;
		let MenuConfig=1007;
		let MenuLightConfig=1008;
		let MenuSecret=1006;

		let MenuPracticeStage=1014;
		let EASY=3000;
		let NORMAL=3001;
		let HARD=3002;
		let LUNATIC=3003;
		let EASYPRACTICE=3500;
		let NORMALPRACTICE=3501;
		let HARDPRACTICE=3502;
		let LUNATICPRACTICE=3503;
		let SPELLCARDPRACTICE=3504;
		let STAGE1=4000;
		let STAGE2=4001;
		let STAGE3=4002;
		let STAGE4=4003;
		let STAGE5=4004;
		let STAGE6=4005;
		let ResultSCORE=5000;
		let ResultSPELL=5001;
		let ResultOTHERS=5002;


		let ViewResultScore=6666;
		let ViewResultStageScore=7777;

		let ResultEASYP1=6000;
		let ResultEASYP2=6100;
		let ResultEASYP3=6200;
		let ResultEASYP4=6300;
		let ResultEASYP5=6400;

		let ResultNORMALP1=6001;
		let ResultNORMALP2=6101;
		let ResultNORMALP3=6201;
		let ResultNORMALP4=6301;
		let ResultNORMALP5=6401;

		let ResultHARDP1=6002;
		let ResultHARDP2=6102;
		let ResultHARDP3=6202;
		let ResultHARDP4=6302;
		let ResultHARDP5=6402;

		let ResultLUNATICP1=6003;
		let ResultLUNATICP2=6103;
		let ResultLUNATICP3=6203;
		let ResultLUNATICP4=6303;
		let ResultLUNATICP5=6403;

		let ResultEXTRAP1=6004;
		let ResultEXTRAP2=6104;
		let ResultEXTRAP3=6204;
		let ResultEXTRAP4=6304;
		let ResultEXTRAP5=6404;

		let ResultScoreState=0;



		let ViewResultSpell=7777;

		let ResultSPELLP1=10000;
		let ResultSPELLP1RA=10100;
		let ResultSPELLP1RB=10200;
		let ResultSPELLP1MA=10300;
		let ResultSPELLP1MB=10400;
		let ResultSPELLP1O=10500;

		let ResultSPELLP2=10001;
		let ResultSPELLP2RA=10101;
		let ResultSPELLP2RB=10201;
		let ResultSPELLP2MA=10301;
		let ResultSPELLP2MB=10401;
		let ResultSPELLP2O=10501;

		let ResultSPELLP3=10002;
		let ResultSPELLP3RA=10102;
		let ResultSPELLP3RB=10202;
		let ResultSPELLP3MA=10302;
		let ResultSPELLP3MB=10402;
		let ResultSPELLP3O=10502;

		let ResultSPELLP4=10003;
		let ResultSPELLP4RA=10103;
		let ResultSPELLP4RB=10203;
		let ResultSPELLP4MA=10303;
		let ResultSPELLP4MB=10403;
		let ResultSPELLP4O=10503;

		let ResultSPELLP5=10004;
		let ResultSPELLP5RA=10104;
		let ResultSPELLP5RB=10204;
		let ResultSPELLP5MA=10304;
		let ResultSPELLP5MB=10404;
		let ResultSPELLP5O=10504;

		let ResultSPELLP6=10005;
		let ResultSPELLP6RA=10105;
		let ResultSPELLP6RB=10205;
		let ResultSPELLP6MA=10305;
		let ResultSPELLP6MB=10405;
		let ResultSPELLP6O=10505;

		let ResultSPELLP7=10006;
		let ResultSPELLP7RA=10106;
		let ResultSPELLP7RB=10206;
		let ResultSPELLP7MA=10306;
		let ResultSPELLP7MB=10406;
		let ResultSPELLP7O=10506;

		let ResultSPELLP8=10007;
		let ResultSPELLP8RA=10107;
		let ResultSPELLP8RB=10207;
		let ResultSPELLP8MA=10307;
		let ResultSPELLP8MB=10407;
		let ResultSPELLP8O=10507;

		let ResultSPELLP9=10008;
		let ResultSPELLP9RA=10108;
		let ResultSPELLP9RB=10208;
		let ResultSPELLP9MA=10308;
		let ResultSPELLP9MB=10408;
		let ResultSPELLP9O=10508;

		let ResultSPELLP10=10009;
		let ResultSPELLP10RA=10109;
		let ResultSPELLP10RB=10209;
		let ResultSPELLP10MA=10309;
		let ResultSPELLP10MB=10409;
		let ResultSPELLP10O=10509;

		let ResultSPELLP11=10010;
		let ResultSPELLP11RA=10110;
		let ResultSPELLP11RB=10210;
		let ResultSPELLP11MA=10310;
		let ResultSPELLP11MB=10410;
		let ResultSPELLP11O=10510;

		let ResultSPELLP12=10011;
		let ResultSPELLP12RA=10111;
		let ResultSPELLP12RB=10211;
		let ResultSPELLP12MA=10311;
		let ResultSPELLP12MB=10411;
		let ResultSPELLP12O=10511;

		let ResultSPELLP13=10012;
		let ResultSPELLP13RA=10112;
		let ResultSPELLP13RB=10212;
		let ResultSPELLP13MA=10312;
		let ResultSPELLP13MB=10412;
		let ResultSPELLP13O=10512;

		let ResultSpellState=0;

		let SecretSpellSelect=0;
		let SecretSpell=20000;
		let SecretSpell1=20001;
		let SecretSpell2=20002;

		let SecretSpellEnd=50000;
		let SecretSpellRetry=50001;
		let SecretSpellFinish=50002;

		let SpellcardPracticeStageSelect=60000;
		let SpellcardPracticeStage1=60001;
		let SpellcardPracticeStage2=60002;
		let SpellcardPracticeStage3=60003;
		let SpellcardPracticeStage4=60004;
		let SpellcardPracticeStage5=60005;
		let SpellcardPracticeStage6=60006;

		let SpellcardPracticeStage1List=70001;
		let SpellcardPracticeStage2List=70002;
		let SpellcardPracticeStage3List=70003;
		let SpellcardPracticeStage4List=70004;
		let SpellcardPracticeStage5List=70005;
		let SpellcardPracticeStage6List=70006;

		let ConfigDifficult=100000;
		let ConfigStageSelect=100001;
		let ConfigStagePhage=100002;
		let ConfigBurstCounter=100003;
		let ConfigMagicCounter=100004;
		let ConfigBurstRank=100005;
		let ConfigRushGauge=100006;
		let ConfigBGDraw=100007;
		let ConfigLightMode=100008;
		let ConfigDefault=100009;
		let ConfigAutoBomb=100010;

		let ConfigBurstCounterChangeMode=0;

		let ConfigBurstCounterChangefigure=0;

		let ConfigMagicCounterChangeMode=0;

		let ConfigMagicCounterChangefigure=0;

		let ConfigBurstRankChangeMode=0;

		let ConfigBurstRankChangefigure=0;

		let ConfigRushGaugeChangeMode=0;

		let ConfigRushGaugeChangefigure=0;

		let LightConfigDifficult=200000;
		let LightConfigStageSelect=200001;
		let LightConfigStagePhage=200002;
		let LightConfigBurstCounter=200003;
		let LightConfigMagicCounter=200004;
		let LightConfigBurstRank=200005;
		let LightConfigRushGauge=200006;
		let LightConfigBGDraw=200007;
		let LightConfigLightMode=200008;
		let LightConfigBreakEffect=200009;
		let LightConfigDefault=200010;
		let LightConfigAutoBomb=200011;

		let ViewAchievement=80000;
		let AchievementState=11;


		let Loading=111111;

		let AutoBombMode=0;
