//-	Head

PluginHeader{
	RailSimVersion = 2.15;
	PluginType = Train;
	PluginName = "JR{E127n/gL߂SET127nd";
	PluginAuthor = "NyahoTaro";
	IconTexture = "icon.png";
	Description = "7NVߍxԂɓꂽߍx^dԁB";
	Description = "27N̖kVJƂɔV1,V2,V4`V11gL߂S֏nB";
	Description = "y2017/01/29XVz";
}

TrainInfo{
	FrontLimit = 20.00;
	TailLimit = -20.00;
	MaxVelocity = 110.0;
	MaxAcceleration = 2.5;
	MaxDeceleration = 3.5;
	DoorClosingTime = 5.0;
}

DefineSwitch "d"{
	GroupCommon = "rs2c085";
	Entry = "";
	Entry = "";
}
DefineSwitch "hA"{
	GroupCommon = "rs2c087";
	Entry = "";
	Entry = "EJ";
	Entry = "J";
	Entry = "";
}
DefineSwitch "S/Ԑؑ"{	
	GroupCommon = "ec-e127_S/Ԑؑ";
	Entry = "S";
	Entry = "";
}
DefineSwitch "syOiz"{
	GroupCommon = "ec-e127_syOiz";
	Entry = "----";			//0
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
	Entry = "c";
	Entry = "";			//5
	Entry = "(gcoR)";
	Entry = "";
	Entry = "Vc";
	Entry = "Vc(VoR)";
	Entry = "Vc(VÌoR)";	//10
	Entry = "Lh";
	Entry = "V";
	Entry = "V(VcoR)";
	Entry = "V(VÌoR)";
	Entry = "Hc";		//15
	Entry = "։(VoR)";
	Entry = "zԒ";
	Entry = "(VoR)";
	Entry = "z]";
	Entry = "";			//20
	Entry = "gc";
	Entry = "gc(VoR)";
	Entry = "F";
	Entry = "";
	Entry = "o_";		//25
	Entry = "";
	Entry = "(oR)";
	Entry = "|";
	Entry = "V";
	Entry = "V(VcoR)";	//30
	Entry = "V(VoR)";
	Entry = "(gcoR)";
	Entry = "O";
	Entry = "O(gcoR)";
	Entry = "";			//35
	Entry = "(VoR)";
	Entry = "`";
	Entry = "]";
	Entry = "c";
	Entry = "V";			//40
	Entry = "{";
	Entry = "";
	Entry = "|Hc";
	Entry = "|z]";
	Entry = "o";			//45
	Entry = "Z";
	Entry = "Α";
	Entry = "z㓒";
	Entry = "z㒆";
	Entry = "|";		//50
	Entry = "|V";
	Entry = "|";
	Entry = "(VoR)";
	Entry = "|Vc";
	Entry = "|V";		//55
	Entry = "|Lh";
	Entry = "|։";
	Entry = "|";
	Entry = "|gc";		//܂ł͎LB͓K
	Entry = "|F";		//60
	Entry = "|";
	Entry = "|V";
	Entry = "|O";
	Entry = "]";
	Entry = "c";			//65
	Entry = "z";
	Entry = "V";
	Entry = "{";
	Entry = "";
	Entry = "|]";		//70
	Entry = "|c";
	Entry = "|z";
	Entry = "|V";
	Entry = "|{";
	Entry = "|";	//75
	Entry = "|]";
	Entry = "|c";
	Entry = "|z";
	Entry = "|V";
	Entry = "|{";		//80
	Entry = "|";
	Entry = "P";
	Entry = "";
	/**********************************
	***	:43,44,52,54,55,	***
	***	56,57,58,59,60,61,62,	***
	***	63,70,71,72,73,74,75	***
	**********************************/
}
DefineSwitch "syiz"{
	GroupCommon = "ec-e127_syiz";
	Entry = "[OiXCb`Ɠ]";	//0
	Entry = "";
	Entry = "^]";
	Entry = "Վ";
	Entry = "c";
	Entry = "";			//5
	Entry = "(gcoR)";
	Entry = "";
	Entry = "Vc";
	Entry = "Vc(VoR)";
	Entry = "Vc(VÌoR)";	//10
	Entry = "Lh";
	Entry = "V";
	Entry = "V(VcoR)";
	Entry = "V(VÌoR)";
	Entry = "Hc";		//15
	Entry = "։(VoR)";
	Entry = "zԒ";
	Entry = "(VoR)";
	Entry = "z]";
	Entry = "";			//20
	Entry = "gc";
	Entry = "gc(VoR)";
	Entry = "F";
	Entry = "";
	Entry = "o_";		//25
	Entry = "";
	Entry = "(oR)";
	Entry = "|";
	Entry = "V";
	Entry = "V(VcoR)";	//30
	Entry = "V(VoR)";
	Entry = "(gcoR)";
	Entry = "O";
	Entry = "O(gcoR)";
	Entry = "";			//35
	Entry = "(VoR)";
	Entry = "`";
	Entry = "]";
	Entry = "c";
	Entry = "V";			//40
	Entry = "{";
	Entry = "";
	Entry = "|Hc";
	Entry = "|z]";
	Entry = "o";			//45
	Entry = "Z";
	Entry = "Α";
	Entry = "z㓒";
	Entry = "z㒆";
	Entry = "|";		//50
	Entry = "|V";
	Entry = "|";
	Entry = "(VoR)";
	Entry = "|Vc";
	Entry = "|V";		//55
	Entry = "|Lh";
	Entry = "|։";
	Entry = "|";
	Entry = "|gc";		//܂ł͎LB͓K
	Entry = "|F";		//60
	Entry = "|";
	Entry = "|V";
	Entry = "|O";
	Entry = "]";
	Entry = "c";			//65
	Entry = "z";
	Entry = "V";
	Entry = "{";
	Entry = "";
	Entry = "|]";		//70
	Entry = "|c";
	Entry = "|z";
	Entry = "|V";
	Entry = "|{";
	Entry = "|";	//75
	Entry = "|]";
	Entry = "|c";
	Entry = "|z";
	Entry = "|V";
	Entry = "|{";		//80
	Entry = "|";
	Entry = "P";
	Entry = "";
	/**********************************
	***	:43,44,52,54,55,	***
	***	56,57,58,59,60,61,62,	***
	***	63,70,71,72,73,74,75	***
	**********************************/
}


DefineSwitch "Cp["{
	GroupCommon = "rs2c08B";
	Entry = "OFF";
	Entry = "LOW";
	Entry = "HI";
}
DefineSwitch "OƓ"{
	GroupCommon = "rs2c080";
	Entry = "";
	Entry = "";
}
DefineSwitch ""{
	GroupCommon = "rs2c081";
	Entry = "";
	Entry = "";
}
DefineSwitch "ԗݒ"{}
DefineSwitch "Ґԍ"{
	Entry = "V1";
	Entry = "V2";
	Entry = "V3(x)";
	Entry = "V4";
	Entry = "V5";
	Entry = "V6";
	Entry = "V7";
	Entry = "V8";
	Entry = "V9";
	Entry = "V10";
	Entry = "V11";
	Entry = "V12 F^p";
	Entry = "V13 F^p";
	Entry = "V14(ˋ)";
	Entry = "V15(ˋ)";
	Entry = "V16(ˋ)";
}

DefineSwitch "hyꊇz"{
	Entry = "JR";
	Entry = "JR(gLĂn)";
	Entry = "gLĂF";
	Entry = "gLĂF()";
}
DefineSwitch "hyOԁz"{
	Entry = "ꊇ";
	Entry = "JR";
	Entry = "JR(gLĂn)";
	Entry = "gLĂF";
	Entry = "gLĂF()";
}
DefineSwitch "hyԁz"{
	Entry = "ꊇ";
	Entry = "JR";
	Entry = "JR(gLĂn)";
	Entry = "gLĂF";
	Entry = "gLĂF()";
}
DefineSwitch "XJ[gyꊇz"{
	Entry = "";
	Entry = "^";
	Entry = "^gLĂF";
}
DefineSwitch "XJ[gyOԁz"{
	Entry = "ꊇ";
	Entry = "";
	Entry = "^";
	Entry = "^gLĂF";
}
DefineSwitch "XJ[gyԁz"{
	Entry = "ꊇ";
	Entry = "";
	Entry = "^";
	Entry = "^gLĂF";
}
DefineSwitch "OƓ`"{
	Entry = "";
	Entry = "LED";
}
DefineSwitch "AJo["{
	GroupCommon = "nya@AJo[";
	Entry = "";
	Entry = "I";
	Entry = "It";
}

DefineSwitch "^]m"{
	Entry = "";
	Entry = "It";
}

//-	gݒSW
DefineSwitch "gݒ"{}
DefineSwitch "ԑ̓h"{
	GroupCommon = "nya@ԑ̓h";
	Entry = "I";
	Entry = "It";
}
DefineSwitch "~GtFNg"{
	GroupCommon = "rs2c00A";
	Entry = "";
	Entry = "It";
	Entry = "I";
}
DefineSwitch "teNX`"{
	GroupCommon = "nya_snowtex";
	Entry = "";
//	Entry = "I";
//	Entry = "It";
}
DefineSwitch "VhE"{
	GroupCommon = "rs2c00D";
	Entry = "I";
	Entry = "It";
}
DefineSwitch "TEh"{
	GroupCommon = "rs2c00C";
	Entry = "";
//	Entry = "";
//	Entry = "";
}

PrimaryAssembly{

//////////////////////////////
//
//	ԗ
//
//////////////////////////////

	Axle "Wheel0-0"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (17.95, 0.43);
	}
	Axle "Wheel0-1"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (15.85, 0.43);
	}
	Axle "Wheel0-2"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (4.15, 0.43);
	}
	Axle "Wheel0-3"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (2.05, 0.43);
	}
	Axle "Wheel1-0"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (-2.05, 0.43);
	}
	Axle "Wheel1-1"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (-4.15, 0.43);
	}
	Axle "Wheel1-2"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (-15.85, 0.43);
	}
	Axle "Wheel1-3"{
		ModelFileName = "../nya_e127/Wheel.x";	ModelScale = 1.0;
		EnvMap = 0;		AlphaZeroTest = 1;		NoCastShadow = 0, 1;
		Diameter = 0.86;	Symmetric = 12;
		Coord = (-17.95, 0.43);
	}


//////////////////////////////
//
//	
//
//////////////////////////////

	Body "Bogie0-0"{
		ModelFileName = "truck0.x";	ModelScale = 1.0;
		JointZY "Wheel0-0"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.0);
		}
		JointZY "Wheel0-1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.0);
		}
	}
	Body "Bogie0-1"{
		ModelFileName = "truck1.x";	ModelScale = 1.0;	Turn = yes;
		JointZY "Wheel0-2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.0);
		}
		JointZY "Wheel0-3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.0);
		}
	}
	Body "Bogie1-0"{
		ModelFileName = "truck1.x";	ModelScale = 1.0;
		JointZY "Wheel1-0"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.0);
		}
		JointZY "Wheel1-1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.0);
		}
	}
	Body "Bogie1-1"{
		ModelFileName = "truck0.x";	ModelScale = 1.0;	Turn = yes;
		JointZY "Wheel1-2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.05, 0.0);
		}
		JointZY "Wheel1-3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.05, 0.0);
		}
	}


//////////////////////////////
//
//	_~[ԑ
//
//////////////////////////////

	Body "DummyBody0"{
		ModelFileName = "";	ModelScale = 1.0;
		JointZY "Bogie0-0"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (6.9, 0.43);
		}
		JointZY "Bogie0-1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-6.9, 0.43);
		}
	}
	Body "DummyBody1"{
		ModelFileName = "";	ModelScale = 1.0;
		JointZY "Bogie1-0"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (6.9, 0.43);
		}
		JointZY "Bogie1-1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-6.9, 0.43);
		}
	}


//////////////////////////////
//
//	ԑ̓h
//
//////////////////////////////

	Object3D "DummyCircle0"{
		ModelFileName = "";	ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 90;
		}
		If "ԑ̓h" == 0 {
			If "_CONNECT1"==0{
				If "_VELOCITY" > 5{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.25;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 40{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.2;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 90{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.1;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
			}
			If "_CONNECT1"==1 && "_CONNECT2"==1{
				If "_VELOCITY" > 5{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.2;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 40{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.15;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 90{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.05;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
			}
		}
		Joint3D "DummyBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	CrankZY{
		Link "DummyRod0_0"{
			ModelFileName = "";	ModelScale = 1.0;
			JointZYX "DummyCircle0"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.006);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.5, 0.0);
		}
		Slide "DummyRod1_0"{
			ModelFileName = "";	ModelScale = 1.0;
			JointZYX "DummyBody0"{
				AttachX = 0.0;
				AttachCoord = (0.0, 1.1);
				LocalCoord = (0.0, 0.0);
			}
			Direction = (1.0, 0.0);
		}
	}

	Object3D "DummyCircle1"{
		ModelFileName = "";	ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 90;
		}
		If "ԑ̓h" == 0 {
			If "_CONNECT1"==0{
				If "_VELOCITY" > 5{
					DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.25;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 40{
					DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.2;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 90{
					DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.1;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
			}
			If "_CONNECT1"==1 && "_CONNECT2"==1{
				If "_VELOCITY" > 5{
					DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.2;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 40{
					DynamicRotation{
					RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.15;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
				If "_VELOCITY" > 90{
					DynamicRotation{
					RotationAxis = (-1.0, 0.0, 0.0);	RotationSpeed = 0.05;
					Acceleration = 0.1;			Deceleration = 0.02;	}
				}
			}
		}
		Joint3D "DummyBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	CrankZY{
		Link "DummyRod0_1"{
			ModelFileName = "";	ModelScale = 1.0;
			JointZYX "DummyCircle1"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.004);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.5, 0.0);
		}
		Slide "DummyRod1_1"{
			ModelFileName = "";	ModelScale = 1.0;
			JointZYX "DummyBody1"{
				AttachX = 0.0;
				AttachCoord = (0.0, 1.1);
				LocalCoord = (0.0, 0.0);
			}
			Direction = (1.0, 0.0);
		}
	}


//////////////////////////////
//
//	_~[
//
//////////////////////////////

	Object3D "MainDummy0"{
		ModelFileName = "";
		StaticRotation{
			RotationAxis = (0.0, 0.0, 1.0);
			RotationAngle = 90;
		}
		If "ԑ̓h"== 0{
			If "_FRONT"==0{
				If "_ACCEL">0{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = -0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.8;
					}
				}
				If "_ACCEL"<0 & "_VELOCITY" <10{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = 0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.5;
					}
				}
			} Else {
				If "_ACCEL">0{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = 0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.8;
					}
				}
				If "_ACCEL"<0 & "_VELOCITY" <10{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = -0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.5;
					}
				}
			}
		}
		Joint3D "DummyRod0_0"{
			AttachCoord = (0.0, 0.0, 0.0);
			LocalCoord = (0.0, 0.0, 0.0);
			DirLink = "DummyBody0";
		}
	}

	Object3D "MainDummy1"{
		ModelFileName = "";
		StaticRotation{
			RotationAxis = (0.0, 0.0, 1.0);
			RotationAngle = 90;
		}
		If "ԑ̓h"== 0{
			If "_FRONT"==0{
				If "_ACCEL">0{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = -0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.8;
					}
				}
				If "_ACCEL"<0 & "_VELOCITY" <10{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = 0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.5;
					}
				}
			} Else {
				If "_ACCEL">0{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = 0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.8;
					}
				}
				If "_ACCEL"<0 & "_VELOCITY" <10{
					StaticRotation{
						RotationAxis = (1.0, 0.0, 0.0);
						RotationAngle = -0.05;
						AnimationTime = 1.0;
						ReverseTime = 0.5;
					}
				}
			}
		}
		Joint3D "DummyRod0_1"{
			AttachCoord = (0.0, 0.0, 0.0);
			LocalCoord = (0.0, 0.0, 0.0);
			DirLink = "DummyBody1";
		}
	}


//////////////////////////////
//
//	ԓ
//
//////////////////////////////

	Object3D "Inner127"{
		ModelFileName = "Inner127_01.x";	ModelScale = 1.0;	AlphaZeroTest = 1;
		NoCastShadow = 0,1,2;
		If "d"==1 & ""==0 {
			ChangeMaterial{	MaterialID = 0,1;	Emissive = 1.0, 1.0, 1.0;	}
			If "_FRONT"==1 | "_CONNECT1"==1 {
				ChangeMaterial{	MaterialID = 2;	Emissive = 1.0, 1.0, 1.0;	}
			}
		}
		Joint3D "MainDummy0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Inner126"{
		ModelFileName = "Inner126_01.x";	ModelScale = 1.0;	AlphaZeroTest = 1;
		NoCastShadow = 0,1,2;
		If "d"==1 & ""==0 {
			ChangeMaterial{	MaterialID = 0,1;	Emissive = 1.0, 1.0, 1.0;	}
			If "_FRONT"==0 | "_CONNECT2"==1 {
				ChangeMaterial{	MaterialID = 2;	Emissive = 1.0, 1.0, 1.0;	}
			}
		}
		Joint3D "MainDummy1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	^]m
//
////////////////////////////// 

	Object3D "Motorman127"{
		ModelFileName = "";	NoCastShadow = 0;		AlphaZeroTest = 0;
		If "^]m"==0 & "d"==1 & "_FRONT"==0 & "_CONNECT1"==0 {
			ChangeModel = "../nya_nht_cm/Motorman.x", 120;
		}
		Joint3D "MainDummy0"{
			AttachCoord = (-0.90, 2.05, 9.30);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Motorman126"{
		ModelFileName = "";	NoCastShadow = 0;		AlphaZeroTest = 0;
		If "^]m"==0 & "d"==1 & "_FRONT"==1 & "_CONNECT2"==0 {
			ChangeModel = "../nya_nht_cm/Motorman.x", 120;
		}
		Joint3D "MainDummy1"{
			AttachCoord = (0.90, 2.05, -9.30);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	d127
//
//////////////////////////////

	Object3D "Elc0"{
		ModelFileName = "Elc127.x";	ModelScale = 1.0;
		NoCastShadow = 5;
		If !"_FRONT" & "syOiz">=0 | "syiz"==0 {
			ApplySwitch "syOiz"{
			Case 0:	ShiftTexture = 0, 0.000, 0.00000;		Case 1:	ShiftTexture = 0, 0.000, 0.03125;
			Case 2:	ShiftTexture = 0, 0.000, 0.06250;		Case 3:	ShiftTexture = 0, 0.000, 0.09375;
			Case 4:	ShiftTexture = 0, 0.000, 0.12500;		Case 5:	ShiftTexture = 0, 0.000, 0.15625;
			Case 6:	ShiftTexture = 0, 0.000, 0.18750;		Case 7:	ShiftTexture = 0, 0.000, 0.21875;
			Case 8:	ShiftTexture = 0, 0.000, 0.25000;		Case 9:	ShiftTexture = 0, 0.000, 0.28125;
			Case 10:ShiftTexture = 0, 0.000, 0.31250;		Case 11:ShiftTexture = 0, 0.000, 0.34375;
			Case 12:ShiftTexture = 0, 0.000, 0.37500;		Case 13:ShiftTexture = 0, 0.000, 0.40625;
			Case 14:ShiftTexture = 0, 0.000, 0.43750;		Case 15:ShiftTexture = 0, 0.000, 0.46875;
			Case 16:ShiftTexture = 0, 0.000, 0.50000;		Case 17:ShiftTexture = 0, 0.000, 0.53125;
			Case 18:ShiftTexture = 0, 0.000, 0.56250;		Case 19:ShiftTexture = 0, 0.000, 0.59375;
			Case 20:ShiftTexture = 0, 0.000, 0.62500;		Case 21:ShiftTexture = 0, 0.000, 0.65625;
			Case 22:ShiftTexture = 0, 0.000, 0.68750;		Case 23:ShiftTexture = 0, 0.000, 0.71875;
			Case 24:ShiftTexture = 0, 0.000, 0.75000;		Case 25:ShiftTexture = 0, 0.000, 0.78125;
			Case 26:ShiftTexture = 0, 0.000, 0.81250;		Case 27:ShiftTexture = 0, 0.000, 0.84375;
			Case 28:ShiftTexture = 0, 0.000, 0.87500;		Case 29:ShiftTexture = 0, 0.000, 0.90625;
			Case 30:ShiftTexture = 0, 0.000, 0.93750;		Case 31:ShiftTexture = 0, 0.000, 0.96875;
			Case 32:ShiftTexture = 0, 0.125, 0.00000;		Case 33:ShiftTexture = 0, 0.125, 0.03125;
			Case 34:ShiftTexture = 0, 0.125, 0.06250;		Case 35:ShiftTexture = 0, 0.125, 0.09375;
			Case 36:ShiftTexture = 0, 0.125, 0.12500;		Case 37:ShiftTexture = 0, 0.125, 0.15625;
			Case 38:ShiftTexture = 0, 0.125, 0.18750;		Case 39:ShiftTexture = 0, 0.125, 0.21875;
			Case 40:ShiftTexture = 0, 0.125, 0.25000;		Case 41:ShiftTexture = 0, 0.125, 0.28125;
			Case 42:ShiftTexture = 0, 0.125, 0.31250;		Case 43:ShiftTexture = 0, 0.125, 0.34375;
			Case 44:ShiftTexture = 0, 0.125, 0.37500;		Case 45:ShiftTexture = 0, 0.125, 0.40625;
			Case 46:ShiftTexture = 0, 0.125, 0.43750;		Case 47:ShiftTexture = 0, 0.125, 0.46875;
			Case 48:ShiftTexture = 0, 0.125, 0.50000;		Case 49:ShiftTexture = 0, 0.125, 0.53125;
			Case 50:ShiftTexture = 0, 0.125, 0.56250;		Case 51:ShiftTexture = 0, 0.125, 0.59375;
			Case 52:ShiftTexture = 0, 0.125, 0.62500;		Case 53:ShiftTexture = 0, 0.125, 0.65625;
			Case 54:ShiftTexture = 0, 0.125, 0.68750;		Case 55:ShiftTexture = 0, 0.125, 0.71875;
			Case 56:ShiftTexture = 0, 0.125, 0.75000;		Case 57:ShiftTexture = 0, 0.125, 0.78125;
			Case 58:ShiftTexture = 0, 0.125, 0.81250;		Case 59:ShiftTexture = 0, 0.125, 0.84375;
			Case 60:ShiftTexture = 0, 0.125, 0.87500;		Case 61:ShiftTexture = 0, 0.125, 0.90625;
			Case 62:ShiftTexture = 0, 0.125, 0.93750;		Case 63:ShiftTexture = 0, 0.125, 0.96875;
			Case 64:ShiftTexture = 0, 0.250, 0.00000;		Case 65:ShiftTexture = 0, 0.250, 0.03125;
			Case 66:ShiftTexture = 0, 0.250, 0.06250;		Case 67:ShiftTexture = 0, 0.250, 0.09375;
			Case 68:ShiftTexture = 0, 0.250, 0.12500;		Case 69:ShiftTexture = 0, 0.250, 0.15625;
			Case 70:ShiftTexture = 0, 0.250, 0.18750;		Case 71:ShiftTexture = 0, 0.250, 0.21875;
			Case 72:ShiftTexture = 0, 0.250, 0.25000;		Case 73:ShiftTexture = 0, 0.250, 0.28125;
			Case 74:ShiftTexture = 0, 0.250, 0.31250;		Case 75:ShiftTexture = 0, 0.250, 0.34375;
			Case 76:ShiftTexture = 0, 0.250, 0.37500;		Case 77:ShiftTexture = 0, 0.250, 0.40625;
			Case 78:ShiftTexture = 0, 0.250, 0.43750;		Case 79:ShiftTexture = 0, 0.250, 0.46875;
			Case 80:ShiftTexture = 0, 0.250, 0.50000;		Case 81:ShiftTexture = 0, 0.250, 0.53125;
			Case 82:ShiftTexture = 0, 0.250, 0.56250;		Case 83:ShiftTexture = 0, 0.250, 0.59375;
			}
		}
		If "_FRONT" & "syiz">=1{
			ApplySwitch "syiz"{
			Case 0:	ShiftTexture = 0, 0.000, 0.00000;		Case 1:	ShiftTexture = 0, 0.000, 0.03125;
			Case 2:	ShiftTexture = 0, 0.000, 0.06250;		Case 3:	ShiftTexture = 0, 0.000, 0.09375;
			Case 4:	ShiftTexture = 0, 0.000, 0.12500;		Case 5:	ShiftTexture = 0, 0.000, 0.15625;
			Case 6:	ShiftTexture = 0, 0.000, 0.18750;		Case 7:	ShiftTexture = 0, 0.000, 0.21875;
			Case 8:	ShiftTexture = 0, 0.000, 0.25000;		Case 9:	ShiftTexture = 0, 0.000, 0.28125;
			Case 10:ShiftTexture = 0, 0.000, 0.31250;		Case 11:ShiftTexture = 0, 0.000, 0.34375;
			Case 12:ShiftTexture = 0, 0.000, 0.37500;		Case 13:ShiftTexture = 0, 0.000, 0.40625;
			Case 14:ShiftTexture = 0, 0.000, 0.43750;		Case 15:ShiftTexture = 0, 0.000, 0.46875;
			Case 16:ShiftTexture = 0, 0.000, 0.50000;		Case 17:ShiftTexture = 0, 0.000, 0.53125;
			Case 18:ShiftTexture = 0, 0.000, 0.56250;		Case 19:ShiftTexture = 0, 0.000, 0.59375;
			Case 20:ShiftTexture = 0, 0.000, 0.62500;		Case 21:ShiftTexture = 0, 0.000, 0.65625;
			Case 22:ShiftTexture = 0, 0.000, 0.68750;		Case 23:ShiftTexture = 0, 0.000, 0.71875;
			Case 24:ShiftTexture = 0, 0.000, 0.75000;		Case 25:ShiftTexture = 0, 0.000, 0.78125;
			Case 26:ShiftTexture = 0, 0.000, 0.81250;		Case 27:ShiftTexture = 0, 0.000, 0.84375;
			Case 28:ShiftTexture = 0, 0.000, 0.87500;		Case 29:ShiftTexture = 0, 0.000, 0.90625;
			Case 30:ShiftTexture = 0, 0.000, 0.93750;		Case 31:ShiftTexture = 0, 0.000, 0.96875;
			Case 32:ShiftTexture = 0, 0.125, 0.00000;		Case 33:ShiftTexture = 0, 0.125, 0.03125;
			Case 34:ShiftTexture = 0, 0.125, 0.06250;		Case 35:ShiftTexture = 0, 0.125, 0.09375;
			Case 36:ShiftTexture = 0, 0.125, 0.12500;		Case 37:ShiftTexture = 0, 0.125, 0.15625;
			Case 38:ShiftTexture = 0, 0.125, 0.18750;		Case 39:ShiftTexture = 0, 0.125, 0.21875;
			Case 40:ShiftTexture = 0, 0.125, 0.25000;		Case 41:ShiftTexture = 0, 0.125, 0.28125;
			Case 42:ShiftTexture = 0, 0.125, 0.31250;		Case 43:ShiftTexture = 0, 0.125, 0.34375;
			Case 44:ShiftTexture = 0, 0.125, 0.37500;		Case 45:ShiftTexture = 0, 0.125, 0.40625;
			Case 46:ShiftTexture = 0, 0.125, 0.43750;		Case 47:ShiftTexture = 0, 0.125, 0.46875;
			Case 48:ShiftTexture = 0, 0.125, 0.50000;		Case 49:ShiftTexture = 0, 0.125, 0.53125;
			Case 50:ShiftTexture = 0, 0.125, 0.56250;		Case 51:ShiftTexture = 0, 0.125, 0.59375;
			Case 52:ShiftTexture = 0, 0.125, 0.62500;		Case 53:ShiftTexture = 0, 0.125, 0.65625;
			Case 54:ShiftTexture = 0, 0.125, 0.68750;		Case 55:ShiftTexture = 0, 0.125, 0.71875;
			Case 56:ShiftTexture = 0, 0.125, 0.75000;		Case 57:ShiftTexture = 0, 0.125, 0.78125;
			Case 58:ShiftTexture = 0, 0.125, 0.81250;		Case 59:ShiftTexture = 0, 0.125, 0.84375;
			Case 60:ShiftTexture = 0, 0.125, 0.87500;		Case 61:ShiftTexture = 0, 0.125, 0.90625;
			Case 62:ShiftTexture = 0, 0.125, 0.93750;		Case 63:ShiftTexture = 0, 0.125, 0.96875;
			Case 64:ShiftTexture = 0, 0.250, 0.00000;		Case 65:ShiftTexture = 0, 0.250, 0.03125;
			Case 66:ShiftTexture = 0, 0.250, 0.06250;		Case 67:ShiftTexture = 0, 0.250, 0.09375;
			Case 68:ShiftTexture = 0, 0.250, 0.12500;		Case 69:ShiftTexture = 0, 0.250, 0.15625;
			Case 70:ShiftTexture = 0, 0.250, 0.18750;		Case 71:ShiftTexture = 0, 0.250, 0.21875;
			Case 72:ShiftTexture = 0, 0.250, 0.25000;		Case 73:ShiftTexture = 0, 0.250, 0.28125;
			Case 74:ShiftTexture = 0, 0.250, 0.31250;		Case 75:ShiftTexture = 0, 0.250, 0.34375;
			Case 76:ShiftTexture = 0, 0.250, 0.37500;		Case 77:ShiftTexture = 0, 0.250, 0.40625;
			Case 78:ShiftTexture = 0, 0.250, 0.43750;		Case 79:ShiftTexture = 0, 0.250, 0.46875;
			Case 80:ShiftTexture = 0, 0.250, 0.50000;		Case 81:ShiftTexture = 0, 0.250, 0.53125;
			Case 82:ShiftTexture = 0, 0.250, 0.56250;		Case 83:ShiftTexture = 0, 0.250, 0.59375;
			}
		}
		If "OƓ`"==1{ShiftTexture = 1, 0.5, 0.0;}
		If "d"==1 {
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			If "OƓ"==0 {
				If ("_FRONT"==0 && "_CONNECT1"==0) {
					ShiftTexture = 1, 0.25, 0.0;	ChangeMaterial{	MaterialID = 1;		Emissive = 0.6, 0.6, 0.6;	}
					If "OƓ`"==1{ShiftTexture = 1, 0.75, 0.0;}
				}
				If ("_FRONT"==1 && "_CONNECT1"==0) {
					ShiftTexture = 2, 0.25, 0.0;	ChangeMaterial{	MaterialID = 2;		Emissive = 1.0, 1.0, 1.0;	}
				}
			}
			If ("S/Ԑؑ"==1  & "_FRONT"==0) && "_VELOCITY" <=20{
				ChangeAlpha = 5, 0.75;
			}
		}//dEND
		Joint3D "MainDummy0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	d126
//
//////////////////////////////

	Object3D "Elc1"{
		ModelFileName = "Elc126.x";	ModelScale = 1.0;
		NoCastShadow = 5;
		If !"_FRONT" & "syOiz">=0 | "syiz"==0 {
			ApplySwitch "syOiz"{
			Case 0:	ShiftTexture = 0, 0.000, 0.00000;		Case 1:	ShiftTexture = 0, 0.000, 0.03125;
			Case 2:	ShiftTexture = 0, 0.000, 0.06250;		Case 3:	ShiftTexture = 0, 0.000, 0.09375;
			Case 4:	ShiftTexture = 0, 0.000, 0.12500;		Case 5:	ShiftTexture = 0, 0.000, 0.15625;
			Case 6:	ShiftTexture = 0, 0.000, 0.18750;		Case 7:	ShiftTexture = 0, 0.000, 0.21875;
			Case 8:	ShiftTexture = 0, 0.000, 0.25000;		Case 9:	ShiftTexture = 0, 0.000, 0.28125;
			Case 10:ShiftTexture = 0, 0.000, 0.31250;		Case 11:ShiftTexture = 0, 0.000, 0.34375;
			Case 12:ShiftTexture = 0, 0.000, 0.37500;		Case 13:ShiftTexture = 0, 0.000, 0.40625;
			Case 14:ShiftTexture = 0, 0.000, 0.43750;		Case 15:ShiftTexture = 0, 0.000, 0.46875;
			Case 16:ShiftTexture = 0, 0.000, 0.50000;		Case 17:ShiftTexture = 0, 0.000, 0.53125;
			Case 18:ShiftTexture = 0, 0.000, 0.56250;		Case 19:ShiftTexture = 0, 0.000, 0.59375;
			Case 20:ShiftTexture = 0, 0.000, 0.62500;		Case 21:ShiftTexture = 0, 0.000, 0.65625;
			Case 22:ShiftTexture = 0, 0.000, 0.68750;		Case 23:ShiftTexture = 0, 0.000, 0.71875;
			Case 24:ShiftTexture = 0, 0.000, 0.75000;		Case 25:ShiftTexture = 0, 0.000, 0.78125;
			Case 26:ShiftTexture = 0, 0.000, 0.81250;		Case 27:ShiftTexture = 0, 0.000, 0.84375;
			Case 28:ShiftTexture = 0, 0.000, 0.87500;		Case 29:ShiftTexture = 0, 0.000, 0.90625;
			Case 30:ShiftTexture = 0, 0.000, 0.93750;		Case 31:ShiftTexture = 0, 0.000, 0.96875;
			Case 32:ShiftTexture = 0, 0.125, 0.00000;		Case 33:ShiftTexture = 0, 0.125, 0.03125;
			Case 34:ShiftTexture = 0, 0.125, 0.06250;		Case 35:ShiftTexture = 0, 0.125, 0.09375;
			Case 36:ShiftTexture = 0, 0.125, 0.12500;		Case 37:ShiftTexture = 0, 0.125, 0.15625;
			Case 38:ShiftTexture = 0, 0.125, 0.18750;		Case 39:ShiftTexture = 0, 0.125, 0.21875;
			Case 40:ShiftTexture = 0, 0.125, 0.25000;		Case 41:ShiftTexture = 0, 0.125, 0.28125;
			Case 42:ShiftTexture = 0, 0.125, 0.31250;		Case 43:ShiftTexture = 0, 0.125, 0.34375;
			Case 44:ShiftTexture = 0, 0.125, 0.37500;		Case 45:ShiftTexture = 0, 0.125, 0.40625;
			Case 46:ShiftTexture = 0, 0.125, 0.43750;		Case 47:ShiftTexture = 0, 0.125, 0.46875;
			Case 48:ShiftTexture = 0, 0.125, 0.50000;		Case 49:ShiftTexture = 0, 0.125, 0.53125;
			Case 50:ShiftTexture = 0, 0.125, 0.56250;		Case 51:ShiftTexture = 0, 0.125, 0.59375;
			Case 52:ShiftTexture = 0, 0.125, 0.62500;		Case 53:ShiftTexture = 0, 0.125, 0.65625;
			Case 54:ShiftTexture = 0, 0.125, 0.68750;		Case 55:ShiftTexture = 0, 0.125, 0.71875;
			Case 56:ShiftTexture = 0, 0.125, 0.75000;		Case 57:ShiftTexture = 0, 0.125, 0.78125;
			Case 58:ShiftTexture = 0, 0.125, 0.81250;		Case 59:ShiftTexture = 0, 0.125, 0.84375;
			Case 60:ShiftTexture = 0, 0.125, 0.87500;		Case 61:ShiftTexture = 0, 0.125, 0.90625;
			Case 62:ShiftTexture = 0, 0.125, 0.93750;		Case 63:ShiftTexture = 0, 0.125, 0.96875;
			Case 64:ShiftTexture = 0, 0.250, 0.00000;		Case 65:ShiftTexture = 0, 0.250, 0.03125;
			Case 66:ShiftTexture = 0, 0.250, 0.06250;		Case 67:ShiftTexture = 0, 0.250, 0.09375;
			Case 68:ShiftTexture = 0, 0.250, 0.12500;		Case 69:ShiftTexture = 0, 0.250, 0.15625;
			Case 70:ShiftTexture = 0, 0.250, 0.18750;		Case 71:ShiftTexture = 0, 0.250, 0.21875;
			Case 72:ShiftTexture = 0, 0.250, 0.25000;		Case 73:ShiftTexture = 0, 0.250, 0.28125;
			Case 74:ShiftTexture = 0, 0.250, 0.31250;		Case 75:ShiftTexture = 0, 0.250, 0.34375;
			Case 76:ShiftTexture = 0, 0.250, 0.37500;		Case 77:ShiftTexture = 0, 0.250, 0.40625;
			Case 78:ShiftTexture = 0, 0.250, 0.43750;		Case 79:ShiftTexture = 0, 0.250, 0.46875;
			Case 80:ShiftTexture = 0, 0.250, 0.50000;		Case 81:ShiftTexture = 0, 0.250, 0.53125;
			Case 82:ShiftTexture = 0, 0.250, 0.56250;		Case 83:ShiftTexture = 0, 0.250, 0.59375;
			}
		}
		If "_FRONT" & "syiz">=1{
			ApplySwitch "syiz"{
			Case 0:	ShiftTexture = 0, 0.000, 0.00000;		Case 1:	ShiftTexture = 0, 0.000, 0.03125;
			Case 2:	ShiftTexture = 0, 0.000, 0.06250;		Case 3:	ShiftTexture = 0, 0.000, 0.09375;
			Case 4:	ShiftTexture = 0, 0.000, 0.12500;		Case 5:	ShiftTexture = 0, 0.000, 0.15625;
			Case 6:	ShiftTexture = 0, 0.000, 0.18750;		Case 7:	ShiftTexture = 0, 0.000, 0.21875;
			Case 8:	ShiftTexture = 0, 0.000, 0.25000;		Case 9:	ShiftTexture = 0, 0.000, 0.28125;
			Case 10:ShiftTexture = 0, 0.000, 0.31250;		Case 11:ShiftTexture = 0, 0.000, 0.34375;
			Case 12:ShiftTexture = 0, 0.000, 0.37500;		Case 13:ShiftTexture = 0, 0.000, 0.40625;
			Case 14:ShiftTexture = 0, 0.000, 0.43750;		Case 15:ShiftTexture = 0, 0.000, 0.46875;
			Case 16:ShiftTexture = 0, 0.000, 0.50000;		Case 17:ShiftTexture = 0, 0.000, 0.53125;
			Case 18:ShiftTexture = 0, 0.000, 0.56250;		Case 19:ShiftTexture = 0, 0.000, 0.59375;
			Case 20:ShiftTexture = 0, 0.000, 0.62500;		Case 21:ShiftTexture = 0, 0.000, 0.65625;
			Case 22:ShiftTexture = 0, 0.000, 0.68750;		Case 23:ShiftTexture = 0, 0.000, 0.71875;
			Case 24:ShiftTexture = 0, 0.000, 0.75000;		Case 25:ShiftTexture = 0, 0.000, 0.78125;
			Case 26:ShiftTexture = 0, 0.000, 0.81250;		Case 27:ShiftTexture = 0, 0.000, 0.84375;
			Case 28:ShiftTexture = 0, 0.000, 0.87500;		Case 29:ShiftTexture = 0, 0.000, 0.90625;
			Case 30:ShiftTexture = 0, 0.000, 0.93750;		Case 31:ShiftTexture = 0, 0.000, 0.96875;
			Case 32:ShiftTexture = 0, 0.125, 0.00000;		Case 33:ShiftTexture = 0, 0.125, 0.03125;
			Case 34:ShiftTexture = 0, 0.125, 0.06250;		Case 35:ShiftTexture = 0, 0.125, 0.09375;
			Case 36:ShiftTexture = 0, 0.125, 0.12500;		Case 37:ShiftTexture = 0, 0.125, 0.15625;
			Case 38:ShiftTexture = 0, 0.125, 0.18750;		Case 39:ShiftTexture = 0, 0.125, 0.21875;
			Case 40:ShiftTexture = 0, 0.125, 0.25000;		Case 41:ShiftTexture = 0, 0.125, 0.28125;
			Case 42:ShiftTexture = 0, 0.125, 0.31250;		Case 43:ShiftTexture = 0, 0.125, 0.34375;
			Case 44:ShiftTexture = 0, 0.125, 0.37500;		Case 45:ShiftTexture = 0, 0.125, 0.40625;
			Case 46:ShiftTexture = 0, 0.125, 0.43750;		Case 47:ShiftTexture = 0, 0.125, 0.46875;
			Case 48:ShiftTexture = 0, 0.125, 0.50000;		Case 49:ShiftTexture = 0, 0.125, 0.53125;
			Case 50:ShiftTexture = 0, 0.125, 0.56250;		Case 51:ShiftTexture = 0, 0.125, 0.59375;
			Case 52:ShiftTexture = 0, 0.125, 0.62500;		Case 53:ShiftTexture = 0, 0.125, 0.65625;
			Case 54:ShiftTexture = 0, 0.125, 0.68750;		Case 55:ShiftTexture = 0, 0.125, 0.71875;
			Case 56:ShiftTexture = 0, 0.125, 0.75000;		Case 57:ShiftTexture = 0, 0.125, 0.78125;
			Case 58:ShiftTexture = 0, 0.125, 0.81250;		Case 59:ShiftTexture = 0, 0.125, 0.84375;
			Case 60:ShiftTexture = 0, 0.125, 0.87500;		Case 61:ShiftTexture = 0, 0.125, 0.90625;
			Case 62:ShiftTexture = 0, 0.125, 0.93750;		Case 63:ShiftTexture = 0, 0.125, 0.96875;
			Case 64:ShiftTexture = 0, 0.250, 0.00000;		Case 65:ShiftTexture = 0, 0.250, 0.03125;
			Case 66:ShiftTexture = 0, 0.250, 0.06250;		Case 67:ShiftTexture = 0, 0.250, 0.09375;
			Case 68:ShiftTexture = 0, 0.250, 0.12500;		Case 69:ShiftTexture = 0, 0.250, 0.15625;
			Case 70:ShiftTexture = 0, 0.250, 0.18750;		Case 71:ShiftTexture = 0, 0.250, 0.21875;
			Case 72:ShiftTexture = 0, 0.250, 0.25000;		Case 73:ShiftTexture = 0, 0.250, 0.28125;
			Case 74:ShiftTexture = 0, 0.250, 0.31250;		Case 75:ShiftTexture = 0, 0.250, 0.34375;
			Case 76:ShiftTexture = 0, 0.250, 0.37500;		Case 77:ShiftTexture = 0, 0.250, 0.40625;
			Case 78:ShiftTexture = 0, 0.250, 0.43750;		Case 79:ShiftTexture = 0, 0.250, 0.46875;
			Case 80:ShiftTexture = 0, 0.250, 0.50000;		Case 81:ShiftTexture = 0, 0.250, 0.53125;
			Case 82:ShiftTexture = 0, 0.250, 0.56250;		Case 83:ShiftTexture = 0, 0.250, 0.59375;
			}
		}
		If "OƓ`"==1{ShiftTexture = 1, 0.5, 0.0;}
		If "d"==1 {
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			If "OƓ"==0 {
				If ("_FRONT"==1 && "_CONNECT2"==0) {
					ShiftTexture = 1, 0.25, 0.0;	ChangeMaterial{	MaterialID = 1;		Emissive = 0.6, 0.6, 0.6;	}
					If "OƓ`"==1{ShiftTexture = 1, 0.75, 0.0;}
				}
				If ("_FRONT"==0 && "_CONNECT2"==0) {
					ShiftTexture = 2, 0.25, 0.0;	ChangeMaterial{	MaterialID = 2;		Emissive = 1.0, 1.0, 1.0;	}
				}
			}
			If ("S/Ԑؑ"==1  & "_FRONT"==1) && "_VELOCITY" <=20{
				ChangeAlpha = 5, 0.75;
			}
		}//dEND
		Joint3D "MainDummy1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	ԑ127
//
//////////////////////////////

	Object3D "MainBody0"{
		ModelFileName = "Body127_01.x";	ModelScale = 1.0;
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 1, "Front127_01.png";
					ChangeTexture = 3, "Side127_01.png";
			Case 2:		ChangeTexture = 1, "Front127_02.png";
					ChangeTexture = 3, "Side127_02.png";
			Case 3:		ChangeTexture = 1, "Front127_03.png";
					ChangeTexture = 3, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 1, "Front127_01.png";
				ChangeTexture = 3, "Side127_01.png";
		Case 3:		ChangeTexture = 1, "Front127_02.png";
				ChangeTexture = 3, "Side127_02.png";
		Case 4:		ChangeTexture = 1, "Front127_03.png";
				ChangeTexture = 3, "Side127_02.png";
		}
		Joint3D "MainDummy0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	ԑ126
//
//////////////////////////////

	Object3D "MainBody1"{
		ModelFileName = "Body126_01.x";	ModelScale = 1.0;
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 1, "Front127_01.png";
					ChangeTexture = 3, "Side126_01.png";
			Case 2:		ChangeTexture = 1, "Front127_02.png";
					ChangeTexture = 3, "Side126_02.png";
			Case 3:		ChangeTexture = 1, "Front127_03.png";
					ChangeTexture = 3, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 1, "Front127_01.png";
				ChangeTexture = 3, "Side126_01.png";
		Case 3:		ChangeTexture = 1, "Front127_02.png";
				ChangeTexture = 3, "Side126_02.png";
		Case 4:		ChangeTexture = 1, "Front127_03.png";
				ChangeTexture = 3, "Side126_02.png";
		}
		Joint3D "MainDummy1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	hA127
//
//////////////////////////////

	Object3D "Door127L13L"{
		ModelFileName = "DoorL13L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1 & "_FRONT"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127L13R"{
		ModelFileName = "DoorL13R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1 & "_FRONT"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127L2L"{
		ModelFileName = "DoorL2L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);		PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127L2R"{
		ModelFileName = "DoorL2R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127R13L"{
		ModelFileName = "DoorR13L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1 & "_FRONT"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127R13R"{
		ModelFileName = "DoorR13R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1 & "_FRONT"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);		PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127R2L"{
		ModelFileName = "DoorR2L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}

	Object3D "Door127R2R"{
		ModelFileName = "DoorR2R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);		PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side127_01.png";
			Case 2,3:	ChangeTexture = 0, "Side127_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side127_01.png";
		Case 3,4:	ChangeTexture = 0, "Side127_02.png";
		}
		Joint3D "MainBody0"{	AttachCoord = (0.0, 0.0, 0.0);	}
	}


//////////////////////////////
//
//	hA126
//
//////////////////////////////

	Object3D "Door126L13L"{
		ModelFileName = "DoorL13L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1 & "_FRONT"==0){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126L13R"{
		ModelFileName = "DoorL13R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1 & "_FRONT"==0){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126L2L"{
		ModelFileName = "DoorL2L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);		PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126L2R"{
		ModelFileName = "DoorL2R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126R13L"{
		ModelFileName = "DoorR13L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1 & "_FRONT"==0){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126R13R"{
		ModelFileName = "DoorR13R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1 & "_FRONT"==0){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126R2L"{
		ModelFileName = "DoorR2L.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, -0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, -0.6);	PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}

	Object3D "Door126R2R"{
		ModelFileName = "DoorR2R.x";	ModelScale = 1.0;
		If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1){
			StaticMove{	Displacement = (0.0, 0.0, 0.04);	PreAnimationDelay = 3.2;	AnimationTime = 0.2;
					PreReverseDelay = 4.2;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.01);	PreAnimationDelay = 3.0;	AnimationTime = 0.2;
					PreReverseDelay = 4.0;			ReverseTime = 0.2;		}
			StaticMove{	Displacement = (0.0, 0.0, 0.6);		PreAnimationDelay = 1.0;	AnimationTime = 2.0;
					PreReverseDelay = 2.0;			ReverseTime = 2.0;		}
		}
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeTexture = 0, "Side126_01.png";
			Case 2,3:	ChangeTexture = 0, "Side126_02.png";
			}
		Case 1,2:	ChangeTexture = 0, "Side126_01.png";
		Case 3,4:	ChangeTexture = 0, "Side126_02.png";
		}
		Joint3D "MainBody1"{	AttachCoord = (0,0,0);	AttachDir = (0,0,-1);	}
	}


//////////////////////////////
//
//	hAv
//
//////////////////////////////

	Object3D "DoorLamp127_L"{
		ModelFileName = "DoorLamp.x";	ModelScale = 1.0;
		If "d"==1 {
			If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1  & "_FRONT"==1){
				StaticRotation{RotationAxis = (0,1,0);RotationAngle = 180;PreReverseDelay = 4.5;}
			}
		}//dEND
		Joint3D "MainBody0"{
			AttachCoord = (-1.4, 3.135, -1.79);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "DoorLamp126_L"{
		ModelFileName = "DoorLamp.x";	ModelScale = 1.0;
		If "d"==1 {
  			If ("hA"==0 & "_DOOR1")|("_FRONT"==0 & "hA"==2)|("_FRONT"==1 & "hA"==1) && !("S/Ԑؑ"==1  & "_FRONT"==0){
				StaticRotation{RotationAxis = (0,1,0);RotationAngle = 180;PreReverseDelay = 4.5;}
			}
		}//dEND
		Joint3D "MainBody1"{
			AttachCoord = (-1.4, 3.135, -1.79);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "DoorLamp127_R"{
		ModelFileName = "DoorLamp.x";	ModelScale = 1.0;
		If "d"==1 {
			If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1  & "_FRONT"==1){
				StaticRotation{RotationAxis = (0,1,0);RotationAngle = 180;PreReverseDelay = 4.5;}
			}
		}
		Joint3D "MainBody0"{
			AttachCoord = (1.4, 3.135, 1.79);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "DoorLamp126_R"{
		ModelFileName = "DoorLamp.x";	ModelScale = 1.0;
		If "d"==1 {
			If ("hA"==0 & "_DOOR2")|("_FRONT"==0 & "hA"==1)|("_FRONT"==1 & "hA"==2) && !("S/Ԑؑ"==1  & "_FRONT"==0){
				StaticRotation{RotationAxis = (0,1,0);RotationAngle = 180;PreReverseDelay = 4.5;}
			}
		}//dEND
		Joint3D "MainBody1"{
			AttachCoord = (1.4, 3.135, 1.79);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	hA{^
//
//////////////////////////////

	Object3D "DoorButton127"{
		ModelFileName = "";	NoCastShadow = 0;
		If "Ґԍ"< 11 {
			ChangeModel = "DoorButton01.x", 1.0;
		}Else{
			ChangeModel = "DoorButton02.x", 1.0;
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "DoorButton126"{
		ModelFileName = "";	NoCastShadow = 0;
		If "Ґԍ"< 11 {
			ChangeModel = "DoorButton01.x", 1.0;
		}Else{
			ChangeModel = "DoorButton02.x", 1.0;
		}
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	\L
//
//////////////////////////////

	Object3D "String127"{
		ModelFileName = "";	ModelScale = 1.0;
		NoCastShadow = 0,1,2,3,4,5,6;
		ApplySwitch "hyOԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeModel = "String127_01.x", 1.0;
			Case 1,2,3:	ChangeMaterial{MaterialID = 3;Diffuse = 0.0, 0.0, 0.0, 0.05;Ambient = 0.0, 0.0, 0.0;}//JRS
			Case 2,3:	ChangeModel = "String127_02.x", 1.0;
					ChangeMaterial{MaterialID = 2;Diffuse = 0.8, 0.8, 0.8, 1.0;Ambient = 0.8, 0.8, 0.8;}//ۈ\L
			}
		Case 1,2:	ChangeModel = "String127_01.x", 1.0;
		Case 2,3,4:	ChangeMaterial{MaterialID = 3;Diffuse = 0.0, 0.0, 0.0, 0.05;Ambient = 0.0, 0.0, 0.0;}//JRS
		Case 3,4:	ChangeModel = "String127_02.x", 1.0;
				ChangeMaterial{MaterialID = 2;Diffuse = 0.8, 0.8, 0.8, 1.0;Ambient = 0.8, 0.8, 0.8;}//ۈ\L
		}
		ApplySwitch "Ґԍ"{
		//V**
		Case 0:		ShiftTexture = 0, 0.000, 0.0000;
		Case 1:		ShiftTexture = 0, 0.000, 0.0625;
		Case 2:		ShiftTexture = 0, 0.000, 0.1250;
		Case 3:		ShiftTexture = 0, 0.000, 0.1875;
		Case 4:		ShiftTexture = 0, 0.000, 0.2500;
		Case 5:		ShiftTexture = 0, 0.000, 0.3125;
		Case 6:		ShiftTexture = 0, 0.000, 0.3750;
		Case 7:		ShiftTexture = 0, 0.000, 0.4375;
		Case 8:		ShiftTexture = 0, 0.125, 0.0000;
		Case 9:		ShiftTexture = 0, 0.125, 0.0625;
		Case 10:	ShiftTexture = 0, 0.125, 0.1250;
		Case 11:	ShiftTexture = 0, 0.125, 0.1875;
		Case 12:	ShiftTexture = 0, 0.125, 0.2500;
		Case 13:	ShiftTexture = 0, 0.125, 0.3125;
		Case 14:	ShiftTexture = 0, 0.125, 0.3750;
		Case 15:	ShiftTexture = 0, 0.125, 0.4375;
		//NnE127-**
		Case 0:		ShiftTexture = 4, 0.000, 0.000;
		Case 1:		ShiftTexture = 4, 0.000, 0.125;
		Case 2:		ShiftTexture = 4, 0.000, 0.250;
		Case 3:		ShiftTexture = 4, 0.000, 0.375;
		Case 4:		ShiftTexture = 4, 0.000, 0.500;
		Case 5:		ShiftTexture = 4, 0.000, 0.625;
		Case 6:		ShiftTexture = 4, 0.000, 0.750;
		Case 7:		ShiftTexture = 4, 0.000, 0.875;
		Case 8:		ShiftTexture = 4, 0.125, 0.000;
		Case 9:		ShiftTexture = 4, 0.125, 0.125;
		Case 10:	ShiftTexture = 4, 0.125, 0.250;
		Case 11:	ShiftTexture = 4, 0.125, 0.375;
		Case 12:	ShiftTexture = 4, 0.125, 0.500;
		Case 13:	ShiftTexture = 4, 0.125, 0.625;
		Case 14:	ShiftTexture = 4, 0.125, 0.750;
		Case 15:	ShiftTexture = 4, 0.125, 0.875;
		//ET127-**
		Case 0:		ShiftTexture = 5, 0.000, 0.0000;
		Case 1:		ShiftTexture = 5, 0.000, 0.0625;
		Case 2:		ShiftTexture = 5, 0.000, 0.1250;
		Case 3:		ShiftTexture = 5, 0.000, 0.1875;
		Case 4:		ShiftTexture = 5, 0.000, 0.2500;
		Case 5:		ShiftTexture = 5, 0.000, 0.3125;
		Case 6:		ShiftTexture = 5, 0.000, 0.3750;
		Case 7:		ShiftTexture = 5, 0.000, 0.4375;
		Case 8:		ShiftTexture = 5, 0.000, 0.5000;
		Case 9:		ShiftTexture = 5, 0.000, 0.5625;
		Case 10:	ShiftTexture = 5, 0.000, 0.6250;
		Case 11:	ShiftTexture = 5, 0.000, 0.6875;
		Case 12:	ShiftTexture = 5, 0.000, 0.7500;
		Case 13:	ShiftTexture = 5, 0.000, 0.8125;
		Case 14:	ShiftTexture = 5, 0.000, 0.8750;
		Case 15:	ShiftTexture = 5, 0.000, 0.9375;
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "String126"{
		ModelFileName = "";	ModelScale = 1.0;
		NoCastShadow = 0,1,2,3,4,5,6;
		ApplySwitch "hyԁz"{
		Case 0://ꊇ
			ApplySwitch "hyꊇz"{
			Case 0,1:	ChangeModel = "String126_01.x", 1.0;
			Case 1,2,3:	ChangeMaterial{MaterialID = 3;Diffuse = 0.0, 0.0, 0.0, 0.05;Ambient = 0.0, 0.0, 0.0;}//JRS
			Case 2,3:	ChangeModel = "String126_02.x", 1.0;
					ChangeMaterial{MaterialID = 2;Diffuse = 0.8, 0.8, 0.8, 1.0;Ambient = 0.8, 0.8, 0.8;}//ۈ\L
			}
		Case 1,2:	ChangeModel = "String126_01.x", 1.0;
		Case 2,3,4:	ChangeMaterial{MaterialID = 3;Diffuse = 0.0, 0.0, 0.0, 0.05;Ambient = 0.0, 0.0, 0.0;}//JRS
		Case 3,4:	ChangeModel = "String126_02.x", 1.0;
				ChangeMaterial{MaterialID = 2;Diffuse = 0.8, 0.8, 0.8, 1.0;Ambient = 0.8, 0.8, 0.8;}//ۈ\L
		}
		ApplySwitch "Ґԍ"{
		//V**
		Case 0:		ShiftTexture = 0, 0.000, 0.0000;
		Case 1:		ShiftTexture = 0, 0.000, 0.0625;
		Case 2:		ShiftTexture = 0, 0.000, 0.1250;
		Case 3:		ShiftTexture = 0, 0.000, 0.1875;
		Case 4:		ShiftTexture = 0, 0.000, 0.2500;
		Case 5:		ShiftTexture = 0, 0.000, 0.3125;
		Case 6:		ShiftTexture = 0, 0.000, 0.3750;
		Case 7:		ShiftTexture = 0, 0.000, 0.4375;
		Case 8:		ShiftTexture = 0, 0.125, 0.0000;
		Case 9:		ShiftTexture = 0, 0.125, 0.0625;
		Case 10:	ShiftTexture = 0, 0.125, 0.1250;
		Case 11:	ShiftTexture = 0, 0.125, 0.1875;
		Case 12:	ShiftTexture = 0, 0.125, 0.2500;
		Case 13:	ShiftTexture = 0, 0.125, 0.3125;
		Case 14:	ShiftTexture = 0, 0.125, 0.3750;
		Case 15:	ShiftTexture = 0, 0.125, 0.4375;
		//NnE127-**
		Case 0:		ShiftTexture = 4, 0.000, 0.000;
		Case 1:		ShiftTexture = 4, 0.000, 0.125;
		Case 2:		ShiftTexture = 4, 0.000, 0.250;
		Case 3:		ShiftTexture = 4, 0.000, 0.375;
		Case 4:		ShiftTexture = 4, 0.000, 0.500;
		Case 5:		ShiftTexture = 4, 0.000, 0.625;
		Case 6:		ShiftTexture = 4, 0.000, 0.750;
		Case 7:		ShiftTexture = 4, 0.000, 0.875;
		Case 8:		ShiftTexture = 4, 0.125, 0.000;
		Case 9:		ShiftTexture = 4, 0.125, 0.125;
		Case 10:	ShiftTexture = 4, 0.125, 0.250;
		Case 11:	ShiftTexture = 4, 0.125, 0.375;
		Case 12:	ShiftTexture = 4, 0.125, 0.500;
		Case 13:	ShiftTexture = 4, 0.125, 0.625;
		Case 14:	ShiftTexture = 4, 0.125, 0.750;
		Case 15:	ShiftTexture = 4, 0.125, 0.875;
		//ET127-**
		Case 0:		ShiftTexture = 5, 0.000, 0.0000;
		Case 1:		ShiftTexture = 5, 0.000, 0.0625;
		Case 2:		ShiftTexture = 5, 0.000, 0.1250;
		Case 3:		ShiftTexture = 5, 0.000, 0.1875;
		Case 4:		ShiftTexture = 5, 0.000, 0.2500;
		Case 5:		ShiftTexture = 5, 0.000, 0.3125;
		Case 6:		ShiftTexture = 5, 0.000, 0.3750;
		Case 7:		ShiftTexture = 5, 0.000, 0.4375;
		Case 8:		ShiftTexture = 5, 0.000, 0.5000;
		Case 9:		ShiftTexture = 5, 0.000, 0.5625;
		Case 10:	ShiftTexture = 5, 0.000, 0.6250;
		Case 11:	ShiftTexture = 5, 0.000, 0.6875;
		Case 12:	ShiftTexture = 5, 0.000, 0.7500;
		Case 13:	ShiftTexture = 5, 0.000, 0.8125;
		Case 14:	ShiftTexture = 5, 0.000, 0.8750;
		Case 15:	ShiftTexture = 5, 0.000, 0.9375;
		}
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	@
//
//////////////////////////////

	Object3D "Under127"{
		ModelFileName = "Under127.x";	ModelScale = 1.0;
		AlphaZeroTest = 0,1;	NoCastShadow = 0,1;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Under126"{
		ModelFileName = "Under126.x";	ModelScale = 1.0;
		AlphaZeroTest = 0,1;	NoCastShadow = 0,1;
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	A
//
//////////////////////////////

	Object3D "CouplerBase127_F"{
		ModelFileName = "Coupler_base.x";		ModelScale = 1.0;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.88, 10.00);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "Coupler127_F"{
		ModelFileName = "Coupler01.x";			ModelScale = 1.0;
		Joint3D "CouplerBase127_F"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "CouplerBase126_R"{
		ModelFileName = "Coupler_base.x";		ModelScale = 1.0;
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.88, -10.00);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Coupler126_R"{
		ModelFileName = "Coupler01.x";			ModelScale = 1.0;
		Joint3D "CouplerBase126_R"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "CouplerBase127_R"{
		ModelFileName = "Coupler_base.x";		ModelScale = 1.0;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.88, -10.00);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Coupler127_R"{
		ModelFileName = "Coupler00.x";			ModelScale = 1.0;
		Joint3D "CouplerBase127_R"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "CouplerBase126_F"{
		ModelFileName = "Coupler_base";			ModelScale = 1.0;
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.88, 10.00);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "Coupler126_F"{
		ModelFileName = "Coupler00.x";			ModelScale = 1.0;
		Joint3D "CouplerBase126_F"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	XJ[g
//
//////////////////////////////

	Object3D "Skirt127"{
		ModelFileName = "";	ModelScale = 1.0;
		AlphaZeroTest = 1; NoCastShadow = 1;
		ApplySwitch "XJ[gyOԁz"{
		Case 0://ꊇ
			ApplySwitch "XJ[gyꊇz"{
			Case 0:		ChangeModel = "Skirt127_01.x", 1.0;
			Case 1,2:	ChangeModel = "Skirt127_02.x", 1.0;
			Case 2:		ChangeTexture = 2, "Skirt02.dds";
			}
		Case 1:		ChangeModel = "Skirt127_01.x", 1.0;
		Case 2,3:	ChangeModel = "Skirt127_02.x", 1.0;
		Case 3:		ChangeTexture = 2, "Skirt02.dds";
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Skirt126"{
		ModelFileName = "";	ModelScale = 1.0;
		AlphaZeroTest = 1; NoCastShadow = 1;
		ApplySwitch "XJ[gyԁz"{
		Case 0://ꊇ
			ApplySwitch "XJ[gyꊇz"{
			Case 0:		ChangeModel = "Skirt126_01.x", 1.0;
			Case 1,2:	ChangeModel = "Skirt126_02.x", 1.0;
			Case 2:		ChangeTexture = 2, "Skirt02.dds";
			}
		Case 1:		ChangeModel = "Skirt126_01.x", 1.0;
		Case 2,3:	ChangeModel = "Skirt126_02.x", 1.0;
		Case 3:		ChangeTexture = 2, "Skirt02.dds";
		}
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	p^z
//
//////////////////////////////

	Object3D "Pant_pipe"{
		ModelFileName = "../nya_e127/p_pipe.x";		ModelScale = 1.0;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


//////////////////////////////
//
//	p^Ot
//
//////////////////////////////

	Object3D "Pant_base"{
		ModelFileName = "../nya_e127/base.x";		ModelScale = 1.0;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 3.76, -6.9);
			LocalCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "Pant_top-dummy"{
		ModelFileName = "";		ModelScale = 1.0;
		ApplySwitch "d"{
		Case 1:
			StaticMove{
			Displacement = (0.0,0.92,0.0);//1.1
			AnimationTime = 1.0;
			ReverseTime = 1.0;
			}
			StaticMove{
			Displacement = (0.0,0.1,0.0);
			PreAnimationDelay = 1.0;
			AnimationTime = 1.2;
			ReverseTime = 0.5;
			}
			StaticMove{
			Displacement = (0.0,-0.1,0.0);
			AnimationTime = 0.0;
			PreReverseDelay = 1.0;
			ReverseTime = 0.15;
			}
			StaticMove{
			Displacement = (0.0,0.1,0.0);
			AnimationTime = 0.0;
			PreReverseDelay = 1.2;
			ReverseTime = 0.15;
			}
		}
		Joint3D "Pant_base"{
			AttachCoord = (0.0, 0.25, 0.0);
			LocalCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Pant_top"{
		ModelFileName = "../nya_e127/top.x";		ModelScale = 1.0;
		Joint3D "Pant_top-dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			LocalCoord = (0.0, 0.05, 0.0);
		}
	}

	TriangleZY{
		Link "Pant_ur"{
			ModelFileName = "../nya_e127/pu.x";			ModelScale = 1.0;		Turn = yes;
			JointZYX "Pant_top"{
				AttachCoord = (-0.0,0.0);
				LocalCoord = (-0.834,0.0);
			}
			LinkCoord = (0.0,0.0);
		}
		Link "Pant_dr"{
			ModelFileName = "../nya_e127/pd.x";			ModelScale = 1.0;
			JointZYX "Pant_base"{
				AttachCoord = (0.49, 0.0);
				LocalCoord = (0.0,0.0);
			}
			LinkCoord = (-1.33,0.026);
		}
	}

	TriangleZY{
		Link "Pant_dl"{
			ModelFileName = "../nya_e127/pd.x";			ModelScale = 1.0;		Turn = yes;
			JointZYX "Pant_base"{
				AttachX = 0;
				AttachCoord = (-0.49, 0.0);
				LocalCoord = (0.0,0.0);
			}
			LinkCoord = (-1.33,0.026);
		}
		Link "Pant_ul"{
			ModelFileName = "../nya_e127/pu.x";			ModelScale = 1.0;
			JointZYX "Pant_top"{
				AttachX = 0;
				AttachCoord = ( 0.0,0.0);
				LocalCoord = (-0.834,0.0);
			}
			LinkCoord = (0.0,0.0);
		}	
	}

//p^End


//////////////////////////////
//
//	Cp[
//
//////////////////////////////

	Object3D "Wip_F1_base"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = -1.0;
		}
		Joint3D "MainBody0"{
			AttachCoord = (-0.89, 1.95, 9.81);
			AttachDir = (1.0, 0.0, 0.0);
		}
	}

	Object3D "Wip_F1_0"{
		ModelFileName = "";				ModelScale = 1.0;
		If ("d"==1 && "_FRONT"==0 && "_CONNECT1"==0){	ApplySwitch "Cp["{
		Case 1:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.6;	}
		Case 2:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 1.0;	}
		}	}
		Joint3D "Wip_F1_base"{
			AttachCoord = (0.0, -0.05, -0.1);
		}
	}

	TriangleZY{
		Link "Wip_F1_1"{
			ModelFileName = "";			ModelScale = 1.0;
			JointZYX "Wip_F1_0"{
				AttachX = 0.0;
				AttachCoord = (-0.030, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.1, 0.0);
		}
		Link "Wip_F1_2"{
			ModelFileName = "Wip_L02.x";		ModelScale = 1.0;
			JointZYX "Wip_F1_base"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, -0.05);
		}
	}

	TriangleZY{
		Link "Wip_F1_3"{
			ModelFileName = "Wip_L01.x";		ModelScale = 1.0;
			JointZYX "Wip_F1_2"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.505);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.05, 0.0);
		}
		Link "Wip_F1_4"{
			ModelFileName = "Wip_L03.x";		ModelScale = 1.0;
			JointZYX "Wip_F1_base"{
				AttachX = 0.0;
				AttachCoord = (-0.05, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, 0.505);
		}
	}

	Object3D "Wip_F2_base"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 1.0;
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.89, 1.95, 9.81);
			AttachDir = (1.0, 0.0, 0.0);
		}
	}

	Object3D "Wip_F2_0"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{	RotationAxis = (1.0, 0.0, 0.0);	RotationAngle = 180;	}//px
		If ("d"==1 && "_FRONT"==0 && "_CONNECT1"==0){	ApplySwitch "Cp["{
		Case 1:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.6;	}
		Case 2:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 1.0;	}
		}	}
		Joint3D "Wip_F2_base"{
			AttachCoord = (0.0, 0.05, 0.1);
		}
	}

	TriangleZY{
		Link "Wip_F2_1"{
			ModelFileName = "";			ModelScale = 1.0;
			JointZYX "Wip_F2_0"{
				AttachX = 0.0;
				AttachCoord = (0.030, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.1, 0.0);
		}
		Link "Wip_F2_2"{
			ModelFileName = "Wip_R02.x";		ModelScale = 1.0;
			JointZYX "Wip_F2_base"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, 0.05);
		}
	}

	TriangleZY{
		Link "Wip_F2_3"{
			ModelFileName = "";		ModelScale = 1.0;
			JointZYX "Wip_F2_2"{
				AttachX = 0.0;
				AttachCoord = (0.0, -0.505);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.05, 0.0);
		}
		Link "Wip_F2_4"{
			ModelFileName = "Wip_R03.x";		ModelScale = 1.0;
			JointZYX "Wip_F2_base"{
				AttachX = 0.0;
				AttachCoord = (0.05, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, -0.505);
		}
	}

	Object3D "Wip_F2_5"{
		ModelFileName = "Wip_R01.x";	ModelScale = 1.0;
		Joint3D "Wip_F2_2"{
			AttachCoord = (0.0, 0.505, 0.0);
			DirLink = "Wip_F2_base";
			UpLink = "Wip_F2_base";
		}
	}

	Object3D "Wip_R1_base"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = -1.0;
		}
		Joint3D "MainBody1"{
			AttachCoord = (0.89, 1.95, -9.81);
			AttachDir = (-1.0, 0.0, 0.0);
		}
	}

	Object3D "Wip_R1_0"{
		ModelFileName = "";				ModelScale = 1.0;
		If ("d"==1 && "_FRONT"==1 && "_CONNECT2"==0){	ApplySwitch "Cp["{
		Case 1:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.6;	}
		Case 2:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 1.0;	}
		}	}
		Joint3D "Wip_R1_base"{
			AttachCoord = (0.0, -0.05, -0.1);
		}
	}

	TriangleZY{
		Link "Wip_R1_1"{
			ModelFileName = "";			ModelScale = 1.0;
			JointZYX "Wip_R1_0"{
				AttachX = 0.0;
				AttachCoord = (-0.030, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.1, 0.0);
		}
		Link "Wip_R1_2"{
			ModelFileName = "Wip_L02.x";		ModelScale = 1.0;
			JointZYX "Wip_R1_base"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, -0.05);
		}
	}

	TriangleZY{
		Link "Wip_R1_3"{
			ModelFileName = "Wip_L01.x";		ModelScale = 1.0;
			JointZYX "Wip_R1_2"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.505);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.05, 0.0);
		}
		Link "Wip_R1_4"{
			ModelFileName = "Wip_L03.x";		ModelScale = 1.0;
			JointZYX "Wip_R1_base"{
				AttachX = 0.0;
				AttachCoord = (-0.05, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, 0.505);
		}
	}

	Object3D "Wip_R2_base"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 1.0;
		}
		Joint3D "MainBody1"{
			AttachCoord = (-0.89, 1.95, -9.81);
			AttachDir = (-1.0, 0.0, 0.0);
		}
	}

	Object3D "Wip_R2_0"{
		ModelFileName = "";				ModelScale = 1.0;
		StaticRotation{	RotationAxis = (1.0, 0.0, 0.0);	RotationAngle = 180;	}//px
		If ("d"==1 && "_FRONT"==1 && "_CONNECT2"==0){	ApplySwitch "Cp["{
		Case 1:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 0.6;	}
		Case 2:	DynamicRotation{	RotationAxis = (1.0, 0.0, 0.0);		RotationSpeed = 1.0;	}
		}	}
		Joint3D "Wip_R2_base"{
			AttachCoord = (0.0, 0.05, 0.1);
		}
	}

	TriangleZY{
		Link "Wip_R2_1"{
			ModelFileName = "";			ModelScale = 1.0;
			JointZYX "Wip_R2_0"{
				AttachX = 0.0;
				AttachCoord = (0.030, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (-0.1, 0.0);
		}
		Link "Wip_R2_2"{
			ModelFileName = "Wip_R02.x";		ModelScale = 1.0;
			JointZYX "Wip_R2_base"{
				AttachX = 0.0;
				AttachCoord = (0.0, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, 0.05);
		}
	}

	TriangleZY{
		Link "Wip_R2_3"{
			ModelFileName = "";		ModelScale = 1.0;
			JointZYX "Wip_R2_2"{
				AttachX = 0.0;
				AttachCoord = (0.0, -0.505);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.05, 0.0);
		}
		Link "Wip_R2_4"{
			ModelFileName = "Wip_R03.x";		ModelScale = 1.0;
			JointZYX "Wip_R2_base"{
				AttachX = 0.0;
				AttachCoord = (0.05, 0.0);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.0, -0.505);
		}
	}

	Object3D "Wip_R2_5"{
		ModelFileName = "Wip_R01.x";	ModelScale = 1.0;
		Joint3D "Wip_R2_2"{
			AttachCoord = (0.0, 0.505, 0.0);
			DirLink = "Wip_R2_base";
			UpLink = "Wip_R2_base";
		}
	}


//////////////////////////////
//
//	ђʖy
//
//////////////////////////////

	Object3D "horo_F"{
		ModelFileName = "";	ModelScale = 1.0;
		AlphaZeroTest = 1;	NoCastShadow = 1;
		If "_CONNECT1"{
			ChangeModel = "Horo1.x", 1.0;
		} Else {
			ChangeModel = "Horo0.x", 1.0;
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, 10.0);
		}
	}

	Object3D "horo_C"{
		ModelFileName = "Horo2.x";	ModelScale = 1.0;
		AlphaZeroTest = 1;	NoCastShadow = 1;
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.0, -10.0);
		}
	}


//////////////////////////////
//
//	AJo[
//
//////////////////////////////

	Object3D "cp_cover_F"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CONNECT1"==0 && (("AJo["==0 && "_SEASON"==3) || "AJo["==1){
			ChangeModel = "cp_cover.x", 1.0;
		}
		Joint3D "MainBody0"{
			AttachCoord = (0.0, 0.88, 10.0);
		}
	}

	Object3D "cp_cover_R"{
		ModelFileName = "";	ModelScale = 1.0;
		If "_CONNECT2"==0 && (("AJo["==0 && "_SEASON"==3) || "AJo["==1){
			ChangeModel = "cp_cover.x", 1.0;
		}
		Joint3D "MainBody1"{
			AttachCoord = (0.0, 0.88, -10.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	ObjectZY "center_joint"{
		ModelFileName = "center_joint.x";
		AlphaZeroTest = 0;	NoCastShadow = 0;
		JointZYX "MainBody0"{
			AttachX = 0.0;
			AttachCoord = (-9.5, 0.0);
			LocalCoord = (0.5, 0.0);
		}
		JointZYX "MainBody1"{
			AttachX = 0.0;
			AttachCoord = (9.5, 0.0);
			LocalCoord = (-0.5, 0.0);
		}
	}


//////////////////////////////
//
//	VhE
//
//////////////////////////////

	Object3D "Shadow0"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "VhE"{
		Case 0:		ChangeModel = "Shadow.x", 1.0;		Transparent = 0;
		}
		Joint3D "DummyBody0"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Shadow1"{
		ModelFileName = "";	ModelScale = 1.0;
		ApplySwitch "VhE"{
		Case 0:		ChangeModel = "Shadow.x", 1.0;		Transparent = 0;
		}
		Joint3D "DummyBody1"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
//
//	effector
//
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////


//////////////////////////////
//
//	OƓ
//
//////////////////////////////

If "d"==1 {
	If "OƓ`"==0 {
		If ("OƓ"==0 && "_FRONT"==0 && "_CONNECT1"==0) {
			Headlight{
				AttachObject = "MainBody0";
				SourceCoord = (0.15, 3.39, 10.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 30.0;
				LensFlare{
					StartAngle = 40.0;
					Texture{
						Distance = 0.0;
						Radius = 0.4;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #ffffffc0;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody0";
				SourceCoord = (-0.15, 3.39, 10.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 30.0;
			}
		}
		If ("OƓ"==0 && "_FRONT"==1 && "_CONNECT2"==0) {
			Headlight{
				AttachObject = "MainBody1";
				SourceCoord = (0.15, 3.39, -10.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 30.0;
			}
			Headlight{
				AttachObject = "MainBody1";
				SourceCoord = (-0.15, 3.39, -10.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 30.0;
			}
		}
	}
	If "OƓ`"==1 {
		If ("OƓ"==0 && "_FRONT"==0 && "_CONNECT1"==0) {
			Headlight{
				AttachObject = "MainBody0";
				SourceCoord = (0.15, 3.39, 10.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 30.0;
				LensFlare{
					StartAngle = 40.0;
					Twinkle = 0.1;
					Texture{
						Distance = 0.0;
						Radius = 0.4;
						TexFileName = "../common_nya/effect/flare4.png";
						Color = #ffDAF5F5;
					}
				}
			}
			Headlight{
				AttachObject = "MainBody0";
				SourceCoord = (-0.15, 3.39, 10.0);
				Direction = (0.0, 0.0, 1.0);
				MaxDistance = 30.0;
			}
		}
		If ("OƓ"==0 && "_FRONT"==1 && "_CONNECT2"==0) {
			Headlight{
				AttachObject = "MainBody1";
				SourceCoord = (0.15, 3.39, -10.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 30.0;
			}
			Headlight{
				AttachObject = "MainBody1";
				SourceCoord = (-0.15, 3.39, -10.0);
				Direction = (0.0, 0.0, -1.0);
				MaxDistance = 30.0;
			}
		}
	}
	//Cg֌W܂
}//dEND
	If ("~GtFNg"==0 && "_SEASON">=3)||("~GtFNg"==2) {
		If"_FRONT" == 0{
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody0";
				SourceCoord = (0.0, 0.17, 9.1);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 1.5, 4.0;
				Direction = (1.0, 0.1, 0.6), (1.0, 0.8, 0.7);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.04;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody0";
				SourceCoord = (0.0, 0.17, 9.1);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 1.5, 4.0;
				Direction = (-1.0, 0.1, 0.6), (-1.0, 0.8, 0.7);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.04;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "center_joint";
				SourceCoord = (0.0, 0.0, 0.0);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 3.5, 5.5;
				Direction = (0.0, 0.1, 0.0), (1.0, 0.8, -0.4);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.0;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody1";
				SourceCoord = (0.0, 0.0, -9.1);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 3.5, 5.5;
				Direction = (0.0, 0.1, 0.0), (1.0, 0.8, -0.4);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.0;
				Turbulence = 4.0;
			}
		} Else {
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody1";
				SourceCoord = (0.0, 0.17, -9.1);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 1.5, 4.0;
				Direction = (1.0, 0.1, -0.6), (1.0, 0.8, -0.7);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.04;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody1";
				SourceCoord = (0.0, 0.17, -9.1);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 1.5, 4.0;
				Direction = (-1.0, 0.1, -0.6), (-1.0, 0.8, -0.7);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.04;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "center_joint";
				SourceCoord = (0.0, 0.0, 0.0);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 3.5, 5.5;
				Direction = (0.0, 0.1, 0.0), (1.0, 0.8, 0.4);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.0;
				Turbulence = 4.0;
			}
			Particle{
				TextureFileName = "../common_nya/effect/snow3.png";
				AttachObject = "MainBody0";
				SourceCoord = (0.0, 0.0, 9.6);
				MinQty = -4.0;
				MaxQty = 10;
				VelocityRel = 0.2;
				Lifetime = 3.5, 5.5;
				Direction = (0.0, 0.1, 0.0), (1.0, 0.8, 0.4);
				InitialRadius = 0.1, 0.4;
				FinalRadius = 5.0, 10.0;
				Color = #66ffffff, #66eeeeee;
				BlendMode = Alpha;
				AirResistance = 0.2;
				Gravity = 0.0;
				Turbulence = 4.0;
			}
		}
	}
	FrontCabin{
		Joint3D "MainBody0"{
			AttachCoord = (-0.925, 2.6, 9.1);
			DirLink = "Bogie0-0";
		}
	}
	TailCabin{
		Joint3D "MainBody1"{
			AttachCoord = (0.925, 2.6, -9.1);
			DirLink = "Bogie1-1";
		}
	}
}
//-	End