PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "JR東日本 E653系　中間_PBR";
	PluginAuthor = "原作:水色準急様 改造:NyahoTaro";
	IconTexture = "../../Struct/common_nya/nyaicon.png";
	Description = "";
}

TrainInfo{
	FrontLimit = 10.25;	//	前方連結位置 Z 座標
	TailLimit = -10.25;	//	後方連結位置 Z 座標
	MaxVelocity = 120.0;	//	最高速度
	MaxAcceleration = 3.0;	//	最高加速度
	MaxDeceleration = 5.0;	//	最高減速度
	TiltSpeed = 0.0;	//	振り子反応速度
	DoorClosingTime = 6.0;	//	ドア閉め所要時間
}
DefineSwitch "電源"{
GroupCommon = "電源"; 
	Entry = "切";
	Entry = "入";
}
DefineSwitch "影"{ 
GroupCommon = "影"; 
	Entry = "有";
	Entry = "無";
}
DefineSwitch "方向幕"{
GroupCommon = "方向幕"; 
	Entry = "回送";//0
	Entry = "試運転";
	Entry = "臨時";
	Entry = "団体";
	Entry = "普通";
	Entry = "急行";
	Entry = "快速";
	Entry = "特急";
	Entry = "修学旅行";
	Entry = "シュプール";//9
	Entry = "特急フレッシュひたち：上野";//10
	Entry = "特急フレッシュひたち：土浦";
	Entry = "特急フレッシュひたち：勝田";
	Entry = "特急フレッシュひたち：高萩";
	Entry = "特急フレッシュひたち：いわき";//14
	Entry = "特急いなほ：新潟";//15
	Entry = "特急いなほ：酒田";
	Entry = "特急いなほ：秋田";
	Entry = "特急いなほ：村上";//18
	Entry = "快速：新潟";//19
	Entry = "快速：村上";
	Entry = "快速：酒田";
	Entry = "快速：秋田";//22
	Entry = "特急しらゆき：新潟";//23
	Entry = "特急しらゆき：長岡";
	Entry = "特急しらゆき：直江津";
	Entry = "特急しらゆき：上越妙高";
	Entry = "特急しらゆき：新井";//27
	Entry = "らくらくトレイン信越：直江津";//28
	Entry = "らくらくトレイン信越：長岡";//29
	Entry = "おはよう信越：新潟";//30
	Entry = "快速：長岡";//31
	Entry = "快速：直江津";
	Entry = "快速：上越妙高";
	Entry = "快速：新井";//34
	Entry = "`series`E653";//35
}
DefineSwitch "編成属性"{
	Entry = "基本側";
	Entry = "付属側";
}
DefineSwitch "編成番号(基本側)"{
GroupCommon = "編成番号(基本側)"; 
	Entry = "K301";
	Entry = "K302";
	Entry = "K303";
	Entry = "K304";
	Entry = "K305";
	Entry = "K306";
	Entry = "K307";
	Entry = "K308";
	Entry = "K351";//8
	Entry = "K352";
	Entry = "K353";
	Entry = "K354";//11
	Entry = "U-101";//12
	Entry = "U-102";
	Entry = "U-103";
	Entry = "U-104";
	Entry = "U-105";
	Entry = "U-106";//17
	Entry = "U-107";//18
	Entry = "U-108";
	Entry = "H-201";//20
	Entry = "H-202";
	Entry = "H-203";
	Entry = "H-204";//23
	Entry = "K-70";
	Entry = "K-71";
}
DefineSwitch "編成番号(付属側)"{
GroupCommon = "編成番号(付属側)"; 
	Entry = "K301";
	Entry = "K302";
	Entry = "K303";
	Entry = "K304";
	Entry = "K305";
	Entry = "K306";
	Entry = "K307";
	Entry = "K308";
	Entry = "K351";
	Entry = "K352";
	Entry = "K353";
	Entry = "K354";
	Entry = "U-101";
	Entry = "U-102";
	Entry = "U-103";
	Entry = "U-104";
	Entry = "U-105";
	Entry = "U-106";
	Entry = "U-107";
	Entry = "U-108";
	Entry = "H-201";
	Entry = "H-202";
	Entry = "H-203";
	Entry = "H-204";
	Entry = "K-70";
	Entry = "K-71";
}
DefineSwitch "塗装"{
	Entry = "自動";
	Entry = "スカーレットブロッサム";
	Entry = "ブルーオーシャン";
	Entry = "イエロージョンキル";
	Entry = "グリーンレイク";
	Entry = "オレンジパーシモン";
	Entry = "いなほ色(現行)";
	Entry = "瑠璃色";
	Entry = "ハマナス色";
	Entry = "しらゆき色";
	Entry = "上沼垂色";
	Entry = "E751系風色";
	Entry = "国鉄色";
	Entry = "水色";
	Entry = "07";
	Entry = "08";
	Entry = "09";


}

DefineSwitch "号車"{
	Entry = "2号車";//0
	Entry = "3号車";//1
	Entry = "4号車";//2
	Entry = "5号車";//3
	Entry = "6号車";//4
	Entry = "9号車";//5
	Entry = "10号車";//6
	Entry = "11号車";//7
	Entry = "12号車";//8
	Entry = "13号車";//9
}

DefineSwitch "座席指定"{
	Entry = "自由席";
	Entry = "指定席";
	Entry = "未指定";
}

DefineSwitch "ドア"{
GroupCommon = "ドア"; 
	Entry = "閉";
	Entry = "開";
}



//60fps時300
//30fps時150


//	座席指定アニメーション

	DefineAnimation "自由席"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	
	DefineAnimation "NON-RESERVED"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
	}
	
	DefineAnimation "指定席"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.125, 0.0;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	
	DefineAnimation "RESERVED"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.0, 0.03125;
	}


//	種別アニメーション

	DefineAnimation "特急フレッシュひたち"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.0;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.0625;
	}

	DefineAnimation "特急いなほ"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1875;
	}

	DefineAnimation "特急しらゆき"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.2500;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.3125;
	}

	DefineAnimation "快速らくらくトレイン信越"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.375;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5625;
	}

	DefineAnimation "快速おはよう信越"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.4375;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5625;
	}

	DefineAnimation "快速"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5000;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5625;
	}

	DefineAnimation "series"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6875;
	}


//	行き先アニメーション

	DefineAnimation "上野"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.0000;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.0625;
	}

	DefineAnimation "土浦"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1875;
	}

	DefineAnimation "勝田"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.2500;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.3125;
	}

	DefineAnimation "高萩"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.3750;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.4375;
	}

	DefineAnimation "いわき"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5000;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5625;
	}

	DefineAnimation "新潟"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6875;
	}

	DefineAnimation "酒田"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, -0.2500;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, -0.1875;
	}

	DefineAnimation "秋田"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, -0.1250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, -0.0625;
	}

	DefineAnimation "村上"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.0000;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.0625;
	}

	DefineAnimation "長岡"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.1250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.1875;
	}

	DefineAnimation "直江津"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.2500;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.3125;
	}

	DefineAnimation "上越妙高"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.3750;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.4375;
	}

	DefineAnimation "新井"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.5000;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.5625;
	}

	DefineAnimation "E653"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.6250;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.6875;
	}


//	号車アニメーション

	DefineAnimation "2J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.0625;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "2E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1250;
	}

	DefineAnimation "3J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1250;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "3E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.2500;
	}

	DefineAnimation "4J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.1875;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "4E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.375;
	}

	DefineAnimation "5J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.2500;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "5E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.500;
	}

	DefineAnimation "6J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.3125;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "6E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.625;
	}

	DefineAnimation "9J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5000;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "9E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.000;
	}

	DefineAnimation "10J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.5625;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "10E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.125;
	}

	DefineAnimation "11J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6250;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "11E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.250;
	}

	DefineAnimation "12J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.6875;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "12E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.375;
	}

	DefineAnimation "13J"{
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.00, 0.7500;
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
	}
	DefineAnimation "13E"{
		Frame = "../nya@mizu_e653_1/E653/LEDNULL.png", 150;
		Frame = "../nya@mizu_e653_1/E653/LED01.png", 150;
		ShiftTexture = 0.25, 0.500;
	}








PrimaryAssembly{
	Axle "Wheel1"{
		ModelFileName = "../common_mizu/wheel_narrow.x";
		ModelScale = 0.07;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		Diameter = 0.8;
		Symmetric = 6;
		Coord = (8.5, 0.4);
	}
	Axle "Wheel2"{
		ModelFileName = "../common_mizu/wheel_narrow.x";
		ModelScale = 0.07;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		Diameter = 0.8;
		Symmetric = 6;
		Coord = (6.2, 0.4);
	}
	Axle "Wheel3"{
		ModelFileName = "../common_mizu/wheel_narrow.x";
		ModelScale = 0.07;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		Diameter = 0.8;
		Symmetric = 6;
		Coord = (-6.2, 0.4);
	}
	Axle "Wheel4"{
		ModelFileName = "../common_mizu/wheel_narrow.x";
		ModelScale = 0.07;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		Diameter = 0.8;
		Symmetric = 6;
		Coord = (-8.5, 0.4);
	}
	Body "Bogie1"{
		ModelFileName = "../nya@mizu_e653_1/Bogie.x";
		ModelScale = 0.1;
		JointZY "Wheel1"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.2, -0.1);
		}
		JointZY "Wheel2"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.2, -0.1);
		}
	}
	Body "Bogie2"{
		ModelFileName = "../nya@mizu_e653_1/Bogie.x";
		ModelScale = 0.1;
		Turn = yes;
		JointZY "Wheel3"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (-1.2, -0.1);
		}
		JointZY "Wheel4"{
			AttachCoord = (0.0, 0.0);
			LocalCoord = (1.2, -0.1);
		}

}

	Body "MainBody"{
		ModelFileName = "";
		ModelScale = 0.1;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (7.5, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.6);
			LocalCoord = (-7.5, 1.0);
		}
	}


///////////////////////////////
//
//	行き先表示
//
///////////////////////////////

	Object3D "maku00"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/maku00.x";				//ドア用ファイル名
		ModelScale = 0.1;
		AlphaZeroTest = 1,2,3,4,5,6,7,8;
		NoCastShadow = 0,1,2,3,4,5,6,7,8;
		ChangeAlpha = 1, 0.0;
		ChangeAlpha = 2, 0.0;
		ChangeAlpha = 3, 0.0;
		ChangeAlpha = 4, 0.0;
		ChangeAlpha = 5, 0.0;
		ChangeAlpha = 6, 0.0;
		ChangeAlpha = 7, 0.0;
		ChangeAlpha = 8, 0.0;
		If "電源"==1 {
			ApplySwitch "方向幕"{
			Case 0,1,2,3,4,5,6,7,8,9:
					ChangeAlpha = 2, 1.0;
					ChangeAlpha = 4, 1.0;
			Case 1:		ShiftTexture = 4, 0.00,0.125;
			Case 2:		ShiftTexture = 4, 0.00,0.250;
			Case 3:		ShiftTexture = 4, 0.00,0.375;
			Case 4:		ShiftTexture = 4, 0.00,0.500;
			Case 5:		ShiftTexture = 4, 0.00,0.625;
			Case 6:		ShiftTexture = 4, 0.00,0.750;
			Case 7:		ShiftTexture = 4, 0.00,0.875;
			Case 8:		ShiftTexture = 4, 0.25,0.000;
			Case 9:		ShiftTexture = 4, 0.25,0.125;
			Case 10,11,12,13,14://特急フレッシュひたち
					SetAnimation = 5, "特急フレッシュひたち";
			Case 15,16,17,18://特急いなほ
					SetAnimation = 5, "特急いなほ";
			Case 23,24,25,26,27://特急しらゆき
					SetAnimation = 5, "特急しらゆき";
			Case 28,29://快速らくらくトレイン信越
					SetAnimation = 5, "快速らくらくトレイン信越";
			Case 30://快速おはよう信越
					SetAnimation = 5, "快速おはよう信越";
			Case 19,20,21,22,31,32,33,34://快速
					SetAnimation = 5, "快速";
			Case 35://快速おはよう信越
					SetAnimation = 5, "series";
					SetAnimation = 6, "E653";
			Case 10:	SetAnimation = 6, "上野";
			Case 11:	SetAnimation = 6, "土浦";
			Case 12:	SetAnimation = 6, "勝田";
			Case 13:	SetAnimation = 6, "高萩";
			Case 14:	SetAnimation = 6, "いわき";
			Case 15,19,23,30:	SetAnimation = 6, "新潟";
			Case 16,21:	SetAnimation = 6, "酒田";
			Case 17,22:	SetAnimation = 6, "秋田";
			Case 18,20:	SetAnimation = 6, "村上";
			Case 24,29,31:	SetAnimation = 6, "長岡";
			Case 25,28,32:	SetAnimation = 6, "直江津";
			Case 26,33:	SetAnimation = 6, "上越妙高";
			Case 27,34:	SetAnimation = 6, "新井";
			}
			If "方向幕">=10{
				ChangeAlpha = 1, 1.0;//号車英
				ChangeAlpha = 3, 1.0;//号車日
				ChangeAlpha = 5, 1.0;//種別
				ChangeAlpha = 6, 1.0;//行き先
				ApplySwitch "座席指定"{
				Case 0,1:
					ChangeAlpha = 7, 1.0;//座席指定
					ChangeAlpha = 8, 1.0;//RESERVED
				Case 0:	SetAnimation = 7, "自由席";
					SetAnimation = 8, "NON-RESERVED";
				Case 1:	SetAnimation = 7, "指定席";
					SetAnimation = 8, "RESERVED";
				}
			}
		}
		ApplySwitch "号車"{
		Case 2,7:	StaticMove{ Displacement = (0.0, 0.0, -3.63);}
		Case 0:		ShiftTexture = 2, 0.00,0.125;
				SetAnimation = 1, "2E";
				SetAnimation = 3, "2J";
		Case 1:		ShiftTexture = 2, 0.00,0.250;
				SetAnimation = 1, "3E";
				SetAnimation = 3, "3J";
		Case 2:		ShiftTexture = 2, 0.00,0.375;
				SetAnimation = 1, "4E";
				SetAnimation = 3, "4J";
		Case 3:		ShiftTexture = 2, 0.00,0.500;
				SetAnimation = 1, "5E";
				SetAnimation = 3, "5J";
		Case 4:		ShiftTexture = 2, 0.00,0.625;
				SetAnimation = 1, "6E";
				SetAnimation = 3, "6J";
		Case 5:		ShiftTexture = 2, 0.25,0.000;
				SetAnimation = 1, "9E";
				SetAnimation = 3, "9J";
		Case 6:		ShiftTexture = 2, 0.25,0.125;
				SetAnimation = 1, "10E";
				SetAnimation = 3, "10J";
		Case 7:		ShiftTexture = 2, 0.25,0.250;
				SetAnimation = 1, "11E";
				SetAnimation = 3, "11J";
		Case 8:		ShiftTexture = 2, 0.25,0.375;
				SetAnimation = 1, "12E";
				SetAnimation = 3, "12J";
		Case 9:		ShiftTexture = 2, 0.25,0.500;
				SetAnimation = 1, "13E";
				SetAnimation = 3, "13J";
		}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 6.3575);		//親オブジェクト上の固定位置
		}
	}

	Object3D "lp1"{
		ModelFileName = "../common_mizu/lp1.x";			//ドア用ファイル名
		ModelScale = 0.07;
		If "_DOOR1"||("ドア"==1){
			StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180.0;
			PreReverseDelay = 2.5;
			}
		}
		ApplySwitch "号車"{
		Case 2,7:
			StaticMove{ Displacement = (0.0, 0.0, 7.815);}
		Case 0,1,3,4,5,6,8,9:
			StaticMove{ Displacement = (0.0, 0.0, 11.45);}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.42, 2.96, -5.725);
		}
	}
	Object3D "lp1-2"{
		ModelFileName = "../common_mizu/lp1.x";			//ドア用ファイル名
		ModelScale = 0.07;
		ApplySwitch "号車"{
		Case 2,7:
			StaticMove{ Displacement = (0.0, 0.0, 7.815);}
		Case 0,1,3,4,5,6,8,9:
			StaticMove{ Displacement = (0.0, 0.0, 11.45);}
		}
		Joint3D "MainBody"{
			AttachCoord = (-1.425, 2.84, -5.725);
		}
	}
	Object3D "lp2"{
		ModelFileName = "../common_mizu/lp1.x";			//ドア用ファイル名
		ModelScale = 0.07;
			StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180.0;
			}
		ApplySwitch "号車"{
		Case 2,7:
			StaticMove{ Displacement = (0.0, 0.0, -7.815);}
		Case 0,1,3,4,5,6,8,9:
			StaticMove{ Displacement = (0.0, 0.0, -11.45);}
		}
		If "_DOOR2"||("ドア"==1){
			StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180.0;
			PreReverseDelay = 2.5;
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (1.42, 2.96, -5.725);
		}
	}
	Object3D "lp2-2"{
		ModelFileName = "../common_mizu/lp1.x";			//ドア用ファイル名
		ModelScale = 0.07;
		ApplySwitch "号車"{
		Case 2,7:
			StaticMove{ Displacement = (0.0, 0.0, 7.815);}
		Case 0,1,3,4,5,6,8,9:
			StaticMove{ Displacement = (0.0, 0.0, 11.45);}
		}
			StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180.0;
			}
		Joint3D "MainBody"{
			AttachCoord = (1.425, 2.84, -5.725);
		}
	}

	Object3D "shadow"{					//ドアオブジェクトの定義
		ModelFileName = "../mizu_oer1000_1/shadow.x";			//ドア用ファイル名
		ModelScale = 0.07;
		Transparent = 0,1;
		NoCastShadow = 0,1;
		ChangeAlpha = 0,DayAlpha;
		ChangeAlpha = 1,DayAlpha;
		ApplySwitch "影"{
		Case 0:
			ChangeModel = "../common_mizu/20_shadow.x",0.1;
		Case 1:
			ChangeModel = "",0.07;
		}
		Joint3D "MainBody"{				
			AttachCoord = (0.0, 0.0, -0.125);	
		}
	}
	Object3D "cool"{					//ドアオブジェクトの定義
		ModelFileName = "!../nya@mizu_e653_1/cool.x";			//ドア用ファイル名
		ModelScale = 0.1;
	//	AlphaZeroTest = 3;
		Joint3D "MainBody"{				
			AttachCoord = (0.0, 0.0, 0.0);	
		}
	}
	Object3D "hs"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/hs.x";			//ドア用ファイル名
		ModelScale = 0.1;
		AlphaZeroTest = 3;
		Joint3D "MainBody"{				
			AttachCoord = (0.0, 0.0, 0.0);	
		}
	}
	Object3D "hs2"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/hs.x";			//ドア用ファイル名
		ModelScale = 0.1;
		AlphaZeroTest = 3;
		Joint3D "MainBody"{				
			AttachCoord = (0.0, 0.0, 0.0);	
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


//////////////////////////////
//
//	空調
//
//////////////////////////////

	Object3D "AirConBase01"{
	ModelFileName = "";ModelScale = 100.0;
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.48, 1.2);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "AirConFan01"{
		ModelFileName = "../nya@mizu_e653_1_PBR/AirConFAN.x";ModelScale = 100.0;

		ApplySwitch "電源"{
		Case 1:
			DynamicRotation{
				RotationAxis = (0.0, -1.0, 0.0);
				RotationSpeed = 1.2;
				Acceleration = 0.4;
				Deceleration = 0.2;
			}
		}
		Joint3D "AirConBase01"{
			AttachCoord = (0.0, 0.0, -0.325);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "AirConMain01"{
		ModelFileName = "../nya@mizu_e653_1_PBR/AirCon.x";ModelScale = 100.0;

		Joint3D "AirConBase01"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "AirConBase02"{
	ModelFileName = "";ModelScale = 100.0;
		Joint3D "MainBody"{
			AttachCoord = (0.0, 3.48, -6.2);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "AirConFan02"{
		ModelFileName = "../nya@mizu_e653_1_PBR/AirConFAN.x";ModelScale = 100.0;

		ApplySwitch "電源"{
		Case 1:
			DynamicRotation{
				RotationAxis = (0.0, -1.0, 0.0);
				RotationSpeed = 1.2;
				Acceleration = 0.4;
				Deceleration = 0.2;
			}
		}
		Joint3D "AirConBase02"{
			AttachCoord = (0.0, 0.0, -0.325);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}

	Object3D "AirConMain02"{
		ModelFileName = "../nya@mizu_e653_1_PBR/AirCon.x";ModelScale = 100.0;

		Joint3D "AirConBase02"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, 1.0);
		}
	}


///////////////////////////////
//
//	パンタグラフ
//
///////////////////////////////

	Object3D "pantobase"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/line.x";			//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "号車"{
		Case 1,2,4,6,7,9:
			ChangeModel = "",0.07;
		}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 0.0);		//親オブジェクト上の固定位置
		}
	}

	Object3D "panto2-2"{					//ドアオブジェクトの定義
		ModelFileName = "../common_mizu/s_panto1.x";			//ドア用ファイル名
		ModelScale = 0.075;
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=5.0;
				AnimationTime=0.0;
				PreReverseDelay = 0.0;
				ReverseTime=0.0;
			}
		ApplySwitch "号車"{
		Case 1,2,4,6,7,9:
			ChangeModel = "",0.07;
		}
		ApplySwitch "電源"{
		Case 0:
		Case 1:
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=22.5;
				AnimationTime=2.0;
				PreReverseDelay = 2.0;
				ReverseTime=2.0;
			}
		}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 3.8, 6.35);		//親オブジェクト上の固定位置
		}
	}

	Object3D "panto2-3"{					//ドアオブジェクトの定義
		ModelFileName = "../common_mizu/s_panto2.x";			//ドア用ファイル名
		ModelScale = 0.055;
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=2.0;
				AnimationTime=0.0;
				PreReverseDelay = 0.0;
				ReverseTime=0.0;
			}
		ApplySwitch "号車"{
		Case 1,2,4,6,7,9:
			ChangeModel = "",0.07;
		}
		ApplySwitch "電源"{
		Case 0:
		Case 1:
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=28.0;
				AnimationTime=2.0;
				PreReverseDelay = 2.0;
				ReverseTime=2.0;
			}
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.05);	//移動量(X,Y,Z)
				AnimationTime=2.0;
				PreReverseDelay = 2.0;
				ReverseTime=2.0;
			}
		}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0,  3.8, 6.0);		//親オブジェクト上の固定位置
		}
	}

	Object3D "panto2-4"{					//ドアオブジェクトの定義
		ModelFileName = "../common_mizu/s_panto3.x";			//ドア用ファイル名
		ModelScale = 0.07;
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=10.0;
				AnimationTime=0.0;
				PreReverseDelay = 0.0;
				ReverseTime=0.0;
			}
		ApplySwitch "号車"{
		Case 1,2,4,6,7,9:
			ChangeModel = "",0.07;
		}
		ApplySwitch "電源"{
		Case 0:
		Case 1:
				StaticRotation{
				RotationAxis=(1.0,0.0,0.0);
				RotationAngle=47.5;
				AnimationTime=2.0;
				PreReverseDelay = 2.0;
				ReverseTime=2.0;
			}
		}
		Joint3D "panto2-2"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, -0.0, -1.19);		//親オブジェクト上の固定位置
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "panto1-5"{					//ドアオブジェクトの定義
		ModelFileName = "../common_mizu/panto3-2.x";			//ドア用ファイル名
		ModelScale = 0.075;
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, -0.0);	//移動量(X,Y,Z)
				AnimationTime=0.0;
				PreReverseDelay = 0.0;
				ReverseTime=0.0;
			}
		ApplySwitch "号車"{
		Case 1,2,4,6,7,9:
			ChangeModel = "",0.07;
		}
		ApplySwitch "電源"{
		Case 0:
		Case 1:
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 1.0, -0.0);	//移動量(X,Y,Z)
				AnimationTime=2.0;
				PreReverseDelay = 2.0;
				ReverseTime=2.0;
			}
		}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 4.0, 6.55);		//親オブジェクト上の固定位置
			AttachDir = (0.0, 0.0, -1.0);
		}
	}


///////////////////////////////
//
//	床下機器
//
///////////////////////////////

	Object3D "yuka"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/k652.x";			//ドア用ファイル名
		ModelScale = 0.1;
		AlphaZeroTest = 3,2;
		NoCastShadow = 3,2;
		ApplySwitch "号車"{
			Case 0,3,5,8:
				ChangeModel = "../nya@mizu_e653_1/m652.x",0.1;
			Case 1,4,6,9:
				ChangeModel = "../nya@mizu_e653_1/m653.x",0.1;
			Case 2,7:
				ChangeModel = "../nya@mizu_e653_1/s653.x",0.1;
		}
		Joint3D "MainBody"{				
			AttachCoord = (0.0, 0.0, 0.0);	
		}
	}


///////////////////////////////
//
//	車内
//
///////////////////////////////

	Object3D "in2"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/in.x";			//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "編成属性"{
		Case 0://基本側
			ApplySwitch "編成番号(基本側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1,7 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1,7 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 12,13,14,15,16,19:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1,7 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		Case 1://付属側
			ApplySwitch "編成番号(付属側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1,7 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1,7 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1,7 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 12,13,14,15,16,19:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1,7 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		}
		ApplySwitch "塗装"{
		Case 1,2,3,4,5,13:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
		Case 1:
			ChangeMaterial{ //赤,スカーレットブロッサム
			MaterialID = 1,7 ;
			Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
			Ambient =  0.5, 0.1, 0.2; 
			Specular = 0.5, 0.1, 0.2; 
			}
		Case 2:
			ChangeMaterial{ //青,ブルーオーシャン
			MaterialID = 1,7 ;
			Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
			Ambient = 0.15, 0.15, 0.4; 
			Specular = 0.15, 0.15, 0.4; 
			}
		Case 3:
			ChangeMaterial{　//黄,イエロージョンキル
			MaterialID = 1,7 ;
			Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
			Ambient =  0.5, 0.35, 0.05; 
			Specular = 0.5, 0.35, 0.05; 
			}
		Case 4:
			ChangeMaterial{　//緑,グリーンレイク
			MaterialID = 1,7 ;
			Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
			Ambient =  0.1, 0.3, 0.25; 
			Specular = 0.1, 0.3, 0.25; 
			}
		Case 5:
			ChangeMaterial{　//橙,オレンジパーシモン
			MaterialID = 1,7 ;
			Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
			Ambient =  0.5, 0.25, 0.05; 
			Specular = 0.5, 0.25, 0.05; 
			}
		Case 6,7,8,9,10,11,12,14,15,16:
			ChangeMaterial{
			MaterialID = 1,7 ;
			Diffuse =  0.7, 0.7, 0.7,1.0;
			Ambient =  0.7, 0.7, 0.7; 
			Specular = 0.2, 0.2, 0.2; 
			}
		Case 6:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00.png";
		Case 7:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
		Case 8:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
		Case 9:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
		Case 10:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
		Case 11:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body05.png";
		Case 12:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
		Case 13:
			ChangeMaterial{ //水色
			MaterialID = 1,7 ;
			Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
			Ambient = 0.26, 0.4, 0.5; 
			Specular = 0.26, 0.4, 0.5; 
			}
		Case 14:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body07.png";
		Case 15:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body08.png";
		Case 16:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body09.png";
		}
		ScaleTexture = 1, -1, 2, -1.0, 0.25;
		ScaleTexture = 3, -1, 2, -1.0, 0.25;
		ScaleTexture = 7, -1, 2, -1.0, 0.25;
		ApplySwitch "号車"{
			Case 2,7:
			ChangeModel = "../nya@mizu_e653_1/in2.x",0.1;
		}
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180.0;
			}
		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 0.0);		//親オブジェクト上の固定位置
		}
	}


///////////////////////////////
//
//	窓
//
///////////////////////////////

	Object3D "waku1"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/waku2.x";				//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "_FRONT"{
		Case 0:
                Case 1:
				StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180.0;
			}
		}
		ApplySwitch "電源"{
		Case 0:
		ChangeMaterial{ MaterialID = 7 ; Emissive = 0.0, 0.0, 0.0;  }
		Case 1:
			If ("_NIGHT"){
			ShiftTexture = 7, 0.125, 0.0;
		ChangeMaterial{ MaterialID = 7 ; Emissive = 1.0, 1.0, 1.0;  }
			}
		}
		ApplySwitch "号車"{
			Case 2,7:
			StaticMove{ Displacement = (0.0, 0.0, -3.635); }
		ApplySwitch "_FRONT"{
		Case 0:
                Case 1:
			StaticMove{ Displacement = (0.0, 0.0, 7.27); }
		}
		}

		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 0.45);		//親オブジェクト上の固定位置
		}
	}

	Object3D "waku2"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/waku3.x";				//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "_FRONT"{
		Case 0:
                Case 1:
				StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180.0;
			}
		}
		ApplySwitch "電源"{
		Case 0:
		ChangeMaterial{ MaterialID = 7 ; Emissive = 0.0, 0.0, 0.0;  }
		Case 1:
			If ("_NIGHT"){
			ShiftTexture = 7, 0.125, 0.0;
		ChangeMaterial{ MaterialID = 7 ; Emissive = 1.0, 1.0, 1.0;  }
			}
		}
		ApplySwitch "号車"{
			Case 2,7:
			ChangeModel = "",0.1;
		}

		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, -6.8125);		//親オブジェクト上の固定位置
		}
	}

	Object3D "waku3"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/waku3.x";				//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "_FRONT"{
		Case 0:
                Case 1:
				StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180.0;
			}
		}
		ApplySwitch "電源"{
		Case 0:
		ChangeMaterial{ MaterialID = 7 ; Emissive = 0.0, 0.0, 0.0;  }
		Case 1:
			If ("_NIGHT"){
			ShiftTexture = 7, 0.125, 0.0;
		ChangeMaterial{ MaterialID = 7 ; Emissive = 1.0, 1.0, 1.0;  }
			}
		}
		ApplySwitch "号車"{
			Case 2,7:
			ChangeModel = "",0.1;
			StaticMove{ Displacement = (0.0, 0.0, 8.635); }
		}

		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, -8.635);		//親オブジェクト上の固定位置
		}
	}

	Object3D "waku4"{					//ドアオブジェクトの定義
		ModelFileName = "";				//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "号車"{
			Case 2,7:
			ChangeModel = "../nya@mizu_e653_1/waku4.x",0.1;
		}

		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 0.0);		//親オブジェクト上の固定位置
		}
	}


///////////////////////////////
//
//	乗降扉
//
///////////////////////////////

	Object3D "DoorR"{					//ドアオブジェクトの定義
		ModelFileName = "../nya@mizu_e653_1/door.x";			//ドア用ファイル名
		ModelScale = 0.1;
		ApplySwitch "編成属性"{
		Case 0://基本側
			ApplySwitch "編成番号(基本側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 17,18,20,21,22,23,24:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 12,13,14,15,16,19:
				ApplySwitch "号車"{
				Case 0,1,3,4,5,6,8,9:
					ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
					ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
				Case 2,7:
					ScaleTexture = 1, 1, 2, 0.5, 0.25;
					ScaleTexture = 3, 1, 2, 0.5, 0.25;
				}
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		Case 1://付属側
			ApplySwitch "編成番号(付属側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 17,18,20,21,22,23,24:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 12,13,14,15,16,19:
				ApplySwitch "号車"{
				Case 0,1,3,4,5,6,8,9:
					ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
					ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
				Case 2,7:
					ScaleTexture = 1, 1, 2, 0.5, 0.25;
					ScaleTexture = 3, 1, 2, 0.5, 0.25;
				}
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		}
		ApplySwitch "塗装"{
		Case 1,2,3,4,5,13:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00w.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
			ScaleTexture = 1, 1, 2, 0.5, 0.25;
			ScaleTexture = 3, 1, 2, 0.5, 0.25;
		Case 1:
			ChangeMaterial{ //赤,スカーレットブロッサム
			MaterialID = 1 ;
			Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
			Ambient =  0.5, 0.1, 0.2; 
			Specular = 0.5, 0.1, 0.2; 
			}
		Case 2:
			ChangeMaterial{ //青,ブルーオーシャン
			MaterialID = 1 ;
			Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
			Ambient = 0.15, 0.15, 0.4; 
			Specular = 0.15, 0.15, 0.4; 
			}
		Case 3:
			ChangeMaterial{　//黄,イエロージョンキル
			MaterialID = 1 ;
			Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
			Ambient =  0.5, 0.35, 0.05; 
			Specular = 0.5, 0.35, 0.05; 
			}
		Case 4:
			ChangeMaterial{　//緑,グリーンレイク
			MaterialID = 1 ;
			Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
			Ambient =  0.1, 0.3, 0.25; 
			Specular = 0.1, 0.3, 0.25; 
			}
		Case 5:
			ChangeMaterial{　//橙,オレンジパーシモン
			MaterialID = 1 ;
			Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
			Ambient =  0.5, 0.25, 0.05; 
			Specular = 0.5, 0.25, 0.05; 
			}
		Case 6,7,8,9,10,11,12,14,15,16:
			ChangeMaterial{
			MaterialID = 1 ;
		//	Diffuse =  0.7, 0.7, 0.7,1.0;
		//	Ambient =  0.7, 0.7, 0.7; 
		//	Specular = 0.2, 0.2, 0.2; 
			}
		Case 6:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
				ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
				ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
			Case 2,7:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			}
		Case 7,8,9,10,11,12,14,15,16:
			ScaleTexture = 1, 1, 2, 0.5, 0.25;
			ScaleTexture = 3, 1, 2, 0.5, 0.25;
		Case 7:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
		Case 8:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
		Case 9:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
		Case 10:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
		Case 11:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body05.png";
		Case 12:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
		Case 13:
			ChangeMaterial{ //水色
			MaterialID = 1 ;
			Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
			Ambient = 0.26, 0.4, 0.5; 
			Specular = 0.26, 0.4, 0.5; 
			}
		Case 14:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body07.png";
		Case 15:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body08.png";
		Case 16:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body09.png";
		}
		If "_DOOR1"||("ドア"==1){
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.05);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 3.0;		//動作にかかる時間
				PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.0);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 1.0;		//動作にかかる時間
				PreReverseDelay = 2.0;
				ReverseTime = 0.25;
			}
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.624);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 2.0;		//動作にかかる時間
				PreReverseDelay = 0.0;
				ReverseTime = 1.5;
				}
			Case 2,7:
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.8);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 2.0;		//動作にかかる時間
				PreReverseDelay = 0.0;
				ReverseTime = 1.5;
				}
			}
		}
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
			Case 2,7:
				ChangeModel = "../nya@mizu_e653_1/w_door.x",0.1;
				ShiftTexture = 4, 0.6875, 0.0;
				ShiftTexture = 7, 0.03725, 0.0;
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, -2.3);	//移動量(X,Y,Z)
				}
			}
		If "電源" & "_NIGHT" {
			ChangeMaterial{
				MaterialID = 7;
				Diffuse = 0.7, 0.7, 0.7, 0.99999;//アルファ値強制半透明化でインスタンス描画無効化処理
				Emissive = 1.0, 1.0, 1.0;
			}
		}Else{
			ChangeMaterial{
				MaterialID = 7;
				Diffuse = 0.7, 0.7, 0.7, 0.99999;//アルファ値強制半透明化でインスタンス描画無効化処理
				Emissive = 0.0, 0.0, 0.0;
			}
		}

		Joint3D "MainBody"{					//固定先の親オブジェクト名
			AttachCoord = (0.0, 0.0, 7.69);		//親オブジェクト上の固定位置
		}
	}
	
	Object3D "DoorL"{
		ModelFileName = "../nya@mizu_e653_1/door2.x";
		ModelScale = 0.1;
		ApplySwitch "編成属性"{
		Case 0://基本側
			ApplySwitch "編成番号(基本側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 17,18,20,21,22,23,24:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 12,13,14,15,16,19:
				ApplySwitch "号車"{
				Case 0,1,3,4,5,6,8,9:
					ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
					ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
				Case 2,7:
					ScaleTexture = 1, 1, 2, 0.5, 0.25;
					ScaleTexture = 3, 1, 2, 0.5, 0.25;
				}
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00R.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		Case 1://付属側
			ApplySwitch "編成番号(付属側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 1 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 1 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 1 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 1 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 1 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 17,18,20,21,22,23,24:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			Case 12,13,14,15,16,19:
				ApplySwitch "号車"{
				Case 0,1,3,4,5,6,8,9:
					ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
					ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
				Case 2,7:
					ScaleTexture = 1, 1, 2, 0.5, 0.25;
					ScaleTexture = 3, 1, 2, 0.5, 0.25;
				}
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00R.png";
			Case 17:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 1 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		}
		ApplySwitch "塗装"{
		Case 1,2,3,4,5,13:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00K.png";
			ScaleTexture = 1, 1, 2, 0.5, 0.25;
			ScaleTexture = 3, 1, 2, 0.5, 0.25;
		Case 1:
			ChangeMaterial{ //赤,スカーレットブロッサム
			MaterialID = 1 ;
			Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
			Ambient =  0.5, 0.1, 0.2; 
			Specular = 0.5, 0.1, 0.2; 
			}
		Case 2:
			ChangeMaterial{ //青,ブルーオーシャン
			MaterialID = 1 ;
			Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
			Ambient = 0.15, 0.15, 0.4; 
			Specular = 0.15, 0.15, 0.4; 
			}
		Case 3:
			ChangeMaterial{　//黄,イエロージョンキル
			MaterialID = 1 ;
			Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
			Ambient =  0.5, 0.35, 0.05; 
			Specular = 0.5, 0.35, 0.05; 
			}
		Case 4:
			ChangeMaterial{　//緑,グリーンレイク
			MaterialID = 1 ;
			Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
			Ambient =  0.1, 0.3, 0.25; 
			Specular = 0.1, 0.3, 0.25; 
			}
		Case 5:
			ChangeMaterial{　//橙,オレンジパーシモン
			MaterialID = 1 ;
			Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
			Ambient =  0.5, 0.25, 0.05; 
			Specular = 0.5, 0.25, 0.05; 
			}
		Case 6,7,8,9,10,11,12,14,15,16:
			ChangeMaterial{
			MaterialID = 1 ;
		//	Diffuse =  0.7, 0.7, 0.7,1.0;
		//	Ambient =  0.7, 0.7, 0.7; 
		//	Specular = 0.2, 0.2, 0.2; 
			}
		Case 6:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body00R.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00R.png";
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
				ScaleTexture = 1, -1, 2, -0.03662109375, 0.25;//0.03125+0.00390625+0.0009765625+0.00048828125
				ScaleTexture = 3, -1, 2, -0.03662109375, 0.25;
			Case 2,7:
				ScaleTexture = 1, 1, 2, 0.5, 0.25;
				ScaleTexture = 3, 1, 2, 0.5, 0.25;
			}
		Case 7,8,9,10,11,12,14,15,16:
			ScaleTexture = 1, 1, 2, 0.5, 0.25;
			ScaleTexture = 3, 1, 2, 0.5, 0.25;
		Case 7:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
		Case 8:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
		Case 9:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
		Case 10:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
		Case 11:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body05.png";
		Case 12:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
		Case 13:
			ChangeMaterial{ //水色
			MaterialID = 1 ;
			Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
			Ambient = 0.26, 0.4, 0.5; 
			Specular = 0.26, 0.4, 0.5; 
			}
		Case 14:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body07.png";
		Case 15:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body08.png";
		Case 16:
			ChangeTexture = 1,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body09.png";
		}
		If "_DOOR2"||("ドア"==1){
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.05);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 3.0;		//動作にかかる時間
				PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.0);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 1.0;		//動作にかかる時間
				PreReverseDelay = 2.0;
				ReverseTime = 0.25;
			}
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.624);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 2.0;		//動作にかかる時間
				PreReverseDelay = 0.0;
				ReverseTime = 1.5;
				}
			Case 2,7:
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, 0.8);	//移動量(X,Y,Z)
				PreAnimationDelay = 0.5;	//スイッチがオンになってから動作するまでの時間
				AnimationTime = 2.0;		//動作にかかる時間
				PreReverseDelay = 0.0;
				ReverseTime = 1.5;
				}
			}
		}
			ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
			Case 2,7:
				ChangeModel = "../nya@mizu_e653_1/w_door2.x",0.1;
				ShiftTexture = 4, 0.6875, 0.0;
				ShiftTexture = 7, 0.03725, 0.0;
				StaticMove{			//オブジェクトの移動
				Displacement = (0.0, 0.0, -2.3);	//移動量(X,Y,Z)
				}
			}
		If "電源" & "_NIGHT" {
			ChangeMaterial{
				MaterialID = 7;
				Diffuse = 0.7, 0.7, 0.7, 0.99999;//アルファ値強制半透明化でインスタンス描画無効化処理
				Emissive = 1.0, 1.0, 1.0;
			}
		}Else{
			ChangeMaterial{
				MaterialID = 7;
				Diffuse = 0.7, 0.7, 0.7, 0.99999;//アルファ値強制半透明化でインスタンス描画無効化処理
				Emissive = 0.0, 0.0, 0.0;
			}
		}

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 7.69);		//親オブジェクト上の固定位置
		}
	}


///////////////////////////////
//
//	Body
//
///////////////////////////////

	Object3D "body"{
		ModelFileName = "../nya@mizu_e653_1/model2.x";
		ModelScale = 0.1;
		AlphaZeroTest = 0;
		NoCastShadow = 0;
		ApplySwitch "編成属性"{
		Case 0://基本側
			ApplySwitch "編成番号(基本側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00K.png";
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 3,5,7,9 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 3,5,7,9 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 12,13,14,15,16,19:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 3,5,7,9 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		Case 1://付属側
			ApplySwitch "編成番号(付属側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11,25:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00K.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00W.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00K.png";
			Case 0,4:
				ChangeMaterial{ //赤,スカーレットブロッサム
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
				Ambient =  0.5, 0.1, 0.2; 
				Specular = 0.5, 0.1, 0.2; 
				}
			Case 1,5:
				ChangeMaterial{ //青,ブルーオーシャン
				MaterialID = 3,5,7,9 ;
				Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
				Ambient = 0.15, 0.15, 0.4; 
				Specular = 0.15, 0.15, 0.4; 
				}
			Case 2,6:
				ChangeMaterial{　//黄,イエロージョンキル
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
				Ambient =  0.5, 0.35, 0.05; 
				Specular = 0.5, 0.35, 0.05; 
				}
			Case 3,7:
				ChangeMaterial{　//緑,グリーンレイク
				MaterialID = 3,5,7,9 ;
				Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
				Ambient =  0.1, 0.3, 0.25; 
				Specular = 0.1, 0.3, 0.25; 
				}
			Case 8,9,10,11:
				ChangeMaterial{　//橙,オレンジパーシモン
				MaterialID = 3,5,7,9 ;
				Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
				Ambient =  0.5, 0.25, 0.05; 
				Specular = 0.5, 0.25, 0.05; 
				}
			Case 12,13,14,15,16,19:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00R.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00.png";
			Case 17:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body01.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body01.png";
			Case 18:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body02.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body02.png";
			Case 20,22,23:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body03.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body03.png";
			Case 21:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body04.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body04.png";
			Case 24:
				ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body06.png";
				ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body06.png";
			Case 25:
				ChangeMaterial{ //水色
				MaterialID = 3,5,7,9 ;
				Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
				Ambient = 0.26, 0.4, 0.5; 
				Specular = 0.26, 0.4, 0.5; 
				}
			}
		}
		ApplySwitch "塗装"{
		Case 1,2,3,4,5,13:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00K.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00K.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00K.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00K.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00W.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00K.png";
		Case 1:
			ChangeMaterial{ //赤,スカーレットブロッサム
			MaterialID = 3,5,7,9 ;
			Diffuse =  1.0, 0.2, 0.4,1.0; //RGB
			Ambient =  0.5, 0.1, 0.2; 
			Specular = 0.5, 0.1, 0.2; 
			}
		Case 2:
			ChangeMaterial{ //青,ブルーオーシャン
			MaterialID = 3,5,7,9 ;
			Diffuse = 0.3, 0.3, 0.8,1.0; //RGB
			Ambient = 0.15, 0.15, 0.4; 
			Specular = 0.15, 0.15, 0.4; 
			}
		Case 3:
			ChangeMaterial{　//黄,イエロージョンキル
			MaterialID = 3,5,7,9 ;
			Diffuse =  1.0, 0.7, 0.1,1.0; //RGB
			Ambient =  0.5, 0.35, 0.05; 
			Specular = 0.5, 0.35, 0.05; 
			}
		Case 4:
			ChangeMaterial{　//緑,グリーンレイク
			MaterialID = 3,5,7,9 ;
			Diffuse =  0.2, 0.6, 0.5,1.0; //RGB
			Ambient =  0.1, 0.3, 0.25; 
			Specular = 0.1, 0.3, 0.25; 
			}
		Case 5:
			ChangeMaterial{　//橙,オレンジパーシモン
			MaterialID = 3,5,7,9 ;
			Diffuse =  1.0, 0.5, 0.1,1.0; //RGB
			Ambient =  0.5, 0.25, 0.05; 
			Specular = 0.5, 0.25, 0.05; 
			}
		Case 6,7,8,9,10,11,12,14,15,16:
			ChangeMaterial{
			MaterialID = 3,5,7,9 ;
		//	Diffuse =  0.7, 0.7, 0.7,1.0;
		//	Ambient =  0.7, 0.7, 0.7; 
		//	Specular = 0.2, 0.2, 0.2; 
			}
		Case 6:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body00.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body00R.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body00R.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body00R.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body00R.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body00.png";
		Case 7:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body01.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body01.png";
		Case 8:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body02.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body02.png";
		Case 9:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body03.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body03.png";
		Case 10:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body04.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body04.png";
		Case 11:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body05.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body05.png";
		Case 12:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body06.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body06.png";
		Case 13:
			ChangeMaterial{ //水色
			MaterialID = 3,5,7,9 ;
			Diffuse = 0.52, 0.81, 1.0, 1.0; //RGB
			Ambient = 0.26, 0.4, 0.5; 
			Specular = 0.26, 0.4, 0.5; 
			}
		Case 14:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body07.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body07.png";
		Case 15:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body08.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body08.png";
		Case 16:
			ChangeTexture = 2,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 3,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 4,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 5,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 6,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 7,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 8,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 9,"../nya@mizu_e653_1/E653/Body09.png";
			ChangeTexture = 10,"../nya@mizu_e653_1/E653/Body09.png";
		}
		ApplySwitch "号車"{
			Case 0,1,3,4,5,6,8,9:
				ShiftTexture = 2, 0.0, 0.25;//上側
				ShiftTexture = 3, 0.0, 0.25;//上側
				ShiftTexture = 4, 0.0, 0.25;//上側
				ShiftTexture = 5, 0.0, 0.25;//上側
				ShiftTexture = 6, 0.0, 0.25;//上側
				ShiftTexture = 7, 0.0, 0.25;//上側
				ShiftTexture = 8, 0.0, 0.25;//上側
				ShiftTexture = 9, 0.0, 0.25;//上側
			Case 2,7:
				ShiftTexture = 2, 0.0, 0.25;//上側
				ShiftTexture = 3, 0.0, 0.25;//上側
				ShiftTexture = 4, 0.0, 0.50;//下側
				ShiftTexture = 5, 0.0, 0.50;//下側
				ShiftTexture = 6, 0.0, 0.25;//上側
				ShiftTexture = 7, 0.0, 0.25;//上側
				ShiftTexture = 8, 0.0, 0.50;//下側
				ShiftTexture = 9, 0.0, 0.50;//下側
		}

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


///////////////////////////////
//
//	車両番号
//
///////////////////////////////

	Object3D "Num"{
		ModelFileName = "../nya@mizu_e653_1/Num.x";
		ModelScale = 0.1;
		NoCastShadow = 0,1,2,3,4,5,6,7,8,9;

		ApplySwitch "号車"{
		Case 1,4,6,9:
			ShiftTexture = 4, 0.0000, 0.0000;//E65{2}
		Case 0,2,3,5,7,8:
			ShiftTexture = 4, 0.0625, -0.0625;//E65{3}
		Case 0,1,3,4,5,6,8,9:
			ShiftTexture = 0, 0.2500, 0.0000;//モハ
		Case 2,7:
			ShiftTexture = 0, 0.2500, 0.0625;//サハ
		}
		ApplySwitch "編成属性"{
		Case 0://基本側
			ApplySwitch "編成番号(基本側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11:
				ChangeAlpha = 8,0.0;
				ChangeAlpha = 9,0.0;
			Case 0://K301
				ApplySwitch "号車"{
				Case 0,1,5,6:
					ShiftTexture = 6, 0.0000, 0.0625;//2
					ChangeAlpha = 7,0.0;
				Case 2,3,4,7,8,9:
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ChangeAlpha = 7,0.0;
				}
			Case 1://K302
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0625, 0.0625;//4
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0000, 0.0625;//2
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0625, 0.0000;//3
					ChangeAlpha = 7,0.0;
				}
			Case 2://K303
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.1250, 0.0625;//6
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0625, 0.0000;//3
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.1250, 0.0000;//5
					ChangeAlpha = 7,0.0;
				}
			Case 3://K304
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.1875, 0.0625;//8
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0625, 0.0625;//4
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.1875, 0.0000;//7
					ChangeAlpha = 7,0.0;
				}
			Case 4://K305
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.2500, 0.0625;//0
				Case 2,7://サハ
					ShiftTexture = 6, 0.1250, 0.0000;//5
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.2500, 0.0000;//9
					ChangeAlpha = 7,0.0;
				}
			Case 5://K306
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0000, 0.0625;//2
				Case 2,7://サハ
					ShiftTexture = 6, 0.1250, 0.0625;//6
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0000, 0.0000;//1
				}
			Case 6://K307
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0625, 0.0625;//4
				Case 2,7://サハ
					ShiftTexture = 6, 0.1875, 0.0000;//7
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0625, 0.0000;//3
				}
			Case 7://K308
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.1250, 0.0625;//6
				Case 2,7://サハ
					ShiftTexture = 6, 0.1875, 0.0625;//8
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.1250, 0.0000;//5
				}
			Case 8://K351
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.1875, 0.0000;//7
			Case 9://K352
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.1875, 0.0625;//8
			Case 10://K353
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.2500, 0.0000;//9
			Case 11://K354
				ShiftTexture = 6, 0.0000, 0.0625;//2
				ShiftTexture = 7, 0.2500, 0.0625;//0
			Case 12,13,14,15,16,17,18,19,24:
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.2500, 0.0625;//0
				ShiftTexture = 8, 0.2500, 0.0625;//0
				ApplySwitch "号車"{
				Case 0,1:
					ShiftTexture = 0, 0.0000, 0.0625;//クロ
				}
			Case 12://U101
				ShiftTexture = 9, 0.0000, 0.0000;//1
			Case 13://U102
				ShiftTexture = 9, 0.0000, 0.0625;//2
			Case 14://U103
				ShiftTexture = 9, 0.0625, 0.0000;//3
			Case 15://U104
				ShiftTexture = 9, 0.0625, 0.0625;//4
			Case 16://U105
				ShiftTexture = 9, 0.1250, 0.0000;//5
			Case 17://U106
				ShiftTexture = 9, 0.1250, 0.0625;//6
			Case 18://U107
				ShiftTexture = 9, 0.1875, 0.0000;//7
			Case 19://U108
				ShiftTexture = 9, 0.1875, 0.0625;//8
			Case 20,21,22,23:
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.0000, 0.0000;//1
				ShiftTexture = 8, 0.2500, 0.0625;//0
			Case 20://H201
				ShiftTexture = 9, 0.0000, 0.0000;//1
			Case 21://H202
				ShiftTexture = 9, 0.0000, 0.0625;//2
			Case 22://H203
				ShiftTexture = 9, 0.0625, 0.0000;//3
			Case 23://H204
				ShiftTexture = 9, 0.0625, 0.0625;//4
			Case 24://K70
				ShiftTexture = 9, 0.1875, 0.0625;//8
			Case 25://K71
				ShiftTexture = 9, 0.0000, 0.0625;//2
			}
		Case 1://付属側
			ApplySwitch "編成番号(付属側)"{
			Case 0,1,2,3,4,5,6,7,8,9,10,11:
				ChangeAlpha = 8,0.0;
				ChangeAlpha = 9,0.0;
			Case 0://K301
				ApplySwitch "号車"{
				Case 0,1,5,6:
					ShiftTexture = 6, 0.0000, 0.0625;//2
					ChangeAlpha = 7,0.0;
				Case 2,3,4,7,8,9:
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ChangeAlpha = 7,0.0;
				}
			Case 1://K302
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0625, 0.0625;//4
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0000, 0.0625;//2
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0625, 0.0000;//3
					ChangeAlpha = 7,0.0;
				}
			Case 2://K303
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.1250, 0.0625;//6
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0625, 0.0000;//3
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.1250, 0.0000;//5
					ChangeAlpha = 7,0.0;
				}
			Case 3://K304
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.1875, 0.0625;//8
					ChangeAlpha = 7,0.0;
				Case 2,7://サハ
					ShiftTexture = 6, 0.0625, 0.0625;//4
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.1875, 0.0000;//7
					ChangeAlpha = 7,0.0;
				}
			Case 4://K305
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.2500, 0.0625;//0
				Case 2,7://サハ
					ShiftTexture = 6, 0.1250, 0.0000;//5
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.2500, 0.0000;//9
					ChangeAlpha = 7,0.0;
				}
			Case 5://K306
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0000, 0.0625;//2
				Case 2,7://サハ
					ShiftTexture = 6, 0.1250, 0.0625;//6
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0000, 0.0000;//1
				}
			Case 6://K307
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0625, 0.0625;//4
				Case 2,7://サハ
					ShiftTexture = 6, 0.1875, 0.0000;//7
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.0625, 0.0000;//3
				}
			Case 7://K308
				ApplySwitch "号車"{
				Case 0,1,5,6://モハユニット前
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.1250, 0.0625;//6
				Case 2,7://サハ
					ShiftTexture = 6, 0.1875, 0.0625;//8
					ChangeAlpha = 7,0.0;
				Case 3,4,8,9://モハユニット後
					ShiftTexture = 6, 0.0000, 0.0000;//1
					ShiftTexture = 7, 0.1250, 0.0000;//5
				}
			Case 8://K351
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.1875, 0.0000;//7
			Case 9://K352
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.1875, 0.0625;//8
			Case 10://K353
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.2500, 0.0000;//9
			Case 11://K354
				ShiftTexture = 6, 0.0000, 0.0625;//2
				ShiftTexture = 7, 0.2500, 0.0625;//0
			Case 12,13,14,15,16,17,18,19,24:
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.2500, 0.0625;//0
				ShiftTexture = 8, 0.2500, 0.0625;//0
				ApplySwitch "号車"{
				Case 0,1:
					ShiftTexture = 0, 0.0000, 0.0625;//クロ
				}
			Case 12://U101
				ShiftTexture = 9, 0.0000, 0.0000;//1
			Case 13://U102
				ShiftTexture = 9, 0.0000, 0.0625;//2
			Case 14://U103
				ShiftTexture = 9, 0.0625, 0.0000;//3
			Case 15://U104
				ShiftTexture = 9, 0.0625, 0.0625;//4
			Case 16://U105
				ShiftTexture = 9, 0.1250, 0.0000;//5
			Case 17://U106
				ShiftTexture = 9, 0.1250, 0.0625;//6
			Case 18://U107
				ShiftTexture = 9, 0.1875, 0.0000;//7
			Case 19://U108
				ShiftTexture = 9, 0.1875, 0.0625;//8
			Case 20,21,22,23:
				ShiftTexture = 6, 0.0000, 0.0000;//1
				ShiftTexture = 7, 0.0000, 0.0000;//1
				ShiftTexture = 8, 0.2500, 0.0625;//0
			Case 20://H201
				ShiftTexture = 9, 0.0000, 0.0000;//1
			Case 21://H202
				ShiftTexture = 9, 0.0000, 0.0625;//2
			Case 22://H203
				ShiftTexture = 9, 0.0625, 0.0000;//3
			Case 23://H204
				ShiftTexture = 9, 0.0625, 0.0625;//4
			Case 24://K70
				ShiftTexture = 9, 0.1875, 0.0625;//8
			Case 25://K71
				ShiftTexture = 9, 0.0000, 0.0625;//2
			}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, -1.0);
		}
	}


///////////////////////////////
//
//	表記
//
///////////////////////////////

	Object3D "Decal"{
		ModelFileName = "../nya@mizu_e653_1/Decal.x";
		ModelScale = 0.1;
		NoCastShadow = 0,1,2,3,4;
		ChangeAlpha = 0, 1.0;
		ApplySwitch "号車"{
		Case 2,7:	ChangeAlpha = 1, 1.0;
				ChangeAlpha = 0, 0.0;
		}

		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

}