PluginHeader{
	RailSimVersion = 2.00;
	PluginType = Train;
	PluginName = "東京都交通局5300形";
	PluginAuthor = "n";
	IconTexture = "icon.png";
	Description = "";
	Description = "※プロパティウィンドウが長くなり不便な場合は、説明文を非表示にするため、お手数ですがこのPIの定義ファイルの7行目の行頭に「/*」を、99行目の行頭に「*/」をそれぞれ挿入してしてください。";
	Description = "";
	Description = "5300形は浅草線、京急、京成、北総線等で幅広く活躍しました。";
	Description = "一方で、各種別ごとの走行線区や行先の組み合わせは非常に複雑なものとなっています。";
	Description = "以下に5300形に関連する種別の一覧と種別変更の取り扱い、及び列車の運転パターンなどをまとめました。";
	Description = "適当な表示が思い浮かばない場合などに、参考にしていただけましたら幸いです。";
	Description = "";
	Description = "-種別の扱いについて-";
	Description = "";
	Description = "浅草線直通列車の種別変更は以下のように行います。";
	Description = "";
	Description = "エアポート快特";
	Description = "・南行(京成→羽田)は「押上」で「士快特」に";
	Description = "・北行(羽田→京成)も「押上」で「京成/北総の種別」に";
	Description = "";
	Description = "京急〜京成・北総間を直通する列車";
	Description = "・南行(京成→京急)は「押上」で「京急の種別」に";
	Description = "・北行(京急→京成)は「品川」で「京成/北総の種別」に";
	Description = "";
	Description = "浅草線内を起終点とする京急線直通";
	Description = "・南行(京急へ行く列車)は「始発駅」から「京急の種別」に";
	Description = "・北行(京急からの列車)は「品川」から「普通」に";
	Description = "※京急からの泉岳寺行は終点まで京急の種別を表示";
	Description = "";
	Description = "浅草線内を起終点とする京成/北総線直通";
	Description = "・南行(京成からの列車)は「押上」で「普通」に";
	Description = "・北行(京成へ行く列車)は「始発駅」から「京成/北総の種別」に";
	Description = "";
	Description = "-種別一覧-(98年改正以前の改廃は省略)";
	Description = "";
	Description = "京急";
	Description = "・普通(蒲田以南のみ)";
	Description = "・急行(〜2010年5月15日)";
	Description = "・士急行(2010年5月16日〜)";
	Description = "・特急";
	Description = "・士特急(1998年11月18日〜1999年7月30日)";
	Description = "・快特(1998年11月18日〜)";
	Description = "・士快特(1998年11月18日〜)";
	Description = "";
	Description = "京成";
	Description = "・普通";
	Description = "・急行(〜2010年5月15日)";
	Description = "・快速(2002年10月12日〜)";
	Description = "・通勤特急(2002年10月12日〜)";
	Description = "・特急(1998年11月18日〜)";
	Description = "・士特急(1998年11月18日〜2002年10月12日)";
	Description = "・快速特急(2006年12月10日〜)";
	Description = "";
	Description = "北総";
	Description = "・普通";
	Description = "・急行";
	Description = "・特急(2001年9月15日〜)";
	Description = "";
	Description = "-運転区間について-";
	Description = "5300形が定期運用で表示した行先や種別は多岐にわたりますが、2000年代以降は基本的に以下のような列車が主でした。";
	Description = "";
	Description = "(1)京急空港線-京成押上線/北総線";
	Description = "・羽田空港 - [快特] - 浅草線 - [普通] - 青砥/印旛日本医大";
	Description = "";
	Description = "(2)浅草線-京成本線(快速)";
	Description = "・西馬込 - [南行普通/北行快速] - 押上 - [快速] - 佐倉/成田/成田空港";
	Description = "";
	Description = "(3)線内完結";
	Description = "・新逗子 - [(士)急行] - 羽田空港";
	Description = "・西馬込 - [普通] - 泉岳寺";
	Description = "";
	Description = "-その他列車パターン(参考)-";
	Description = "・(朝夕)羽田空港 - [士急行] - 品川 - [南行急行/北行普通] - 押上 - [普通] - 印旛日本医大";
	Description = "・(朝夕)三崎口 - [特急] - 浅草線 - [普通] - 印旛日本医大";
	Description = "";
	Description = "成田スカイアクセス開業前";
	Description = "・羽田空港 - [士快特] - 品川 - [※快速] - 佐倉";
	Description = "※羽田空港行は「士快速」表示";
	Description = "";
	Description = "羽田空港駅開業時(1998年)";
	Description = "・羽田空港 - [士快特] - 成田空港";
	Description = "・羽田空港 - [士特急] - 青砥/高砂";
	Description = "";
	Description = "空港線延伸前";
	Description = "・川崎 - [急行] - 印西牧の原";
	Description = "etc...";
	Description = "";
	Description = "-運番について-";
	Description = "";
	Description = "定期列車は01T〜65Tの奇数を使用します。";
	Description = "その他、久里浜工場への入場回送は91T、浅草線内での試運転は93Tを使用します。";
	Description = "";
	Description = "-急行灯について-";
	Description = "";
	Description = "浅草線と京急線では、普通列車以外のすべての列車(非営業含む)で、停車駅が各駅となる区間も含めて点灯します。";
	Description = "京成線と北総線でも基本的には同様の扱いを取りますが、消灯していることもあります。";
	Description = "";
}

TrainInfo{
	FrontLimit = 9.00;
	TailLimit = -9.00;
	MaxVelocity = 110.0;
	MaxAcceleration = 3.3;
	MaxDeceleration = 4.0;
	DoorClosingTime = 5.0;
}
DefineSwitch "電源"{
GroupCommon = "ntoei5300電源";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "パンタ高さ"{
	GroupCommon = "ntoei5300pt";
	Entry = "自動(基準：シンプルカテナリ)";
	Entry = "剛体架線";
}
DefineSwitch "前照灯・尾灯"{
GroupCommon = "ntoei5300前照灯";
	Entry = "自動";
	Entry = "切";
}
DefineSwitch "急行灯"{
GroupCommon = "ntoei5300急行灯";
	Entry = "自動";
	Entry = "切";
}
DefineSwitch "レンズフレア"{
GroupCommon = "ntoei5300レンズフレア";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "客室照明"{
GroupCommon = "ntoei5300客室灯";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "運転室灯"{
GroupCommon = "ntoei5300運転室灯";
	Entry = "自動";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "遮光幕"{
	Entry = "自動";
	Entry = "開";
	Entry = "閉";
}
DefineSwitch "表示"{
GroupCommon = "ntoei5300行先";
	Entry = "〇:浅草 △:京急 □:京成 ◇:北総";
	Entry = "※一部指定外の年代や線区で設定のある場合があります";
	Entry = "回送";
	Entry = "試運転";
	Entry = "〇─□◇普通 印旛日本医大";
	Entry = "〇─□◇普通 印西牧の原";
	Entry = "〇─□◇普通 新鎌ヶ谷";
	Entry = "〇─□─普通 高砂";
	Entry = "〇─□─普通 青砥";
	Entry = "〇─□◇普通 押上";
	Entry = "〇─□─普通 浅草橋";
	Entry = "〇─□◇普通 泉岳寺";
	Entry = "〇─□◇普通 西馬込";
	Entry = "─△──普通 蒲田";
	Entry = "─△□◇普通 文庫";
	Entry = "──□◇普通 久里浜";
	Entry = "──□◇普通 三崎口";
	Entry = "〇─□◇普通 羽田空港";
	Entry = "〇△─◇急行 印旛日本医大(京急では10年改正まで)";
	Entry = "〇△─◇急行 印西牧の原(京急では10年改正まで)";
	Entry = "〇△──急行 川崎(98年改正まで)";
	Entry = "〇△──急行 新町(98年改正まで)";
	Entry = "〇△──急行 羽田空港(京急では10年改正まで)";
	Entry = "〇△──急行 新逗子(98年改正まで)";
	Entry = "─△──士急行 印旛日本医大";
	Entry = "─△──士急行 印西牧の原";
	Entry = "─△──士急行 成田";
	Entry = "─△──士急行 佐倉";
	Entry = "─△──士急行 高砂";
	Entry = "─△──士急行 青砥";
	Entry = "─△──士急行 押上";
	Entry = "─△──士急行 泉岳寺";
	Entry = "─△──士急行 品川";
	Entry = "─△──士急行 新町";
	Entry = "─△──士急行 文庫";
	Entry = "〇△──士急行 羽田空港";
	Entry = "─△──士急行 新逗子";
	Entry = "〇─□─快速成田空港";
	Entry = "〇─□─快速成田";
	Entry = "〇─□─快速佐倉";
	Entry = "──□─快速西馬込";
	Entry = "──□─快速羽田空港";
	Entry = "──□─士快速 羽田空港";
	Entry = "〇─□─通特 成田";
	Entry = "──□─通特 西馬込";
	Entry = "〇△□◇特急 印旛日本医大";
	Entry = "〇△□─特急 成田空港";
	Entry = "〇△□─特急 成田";
	Entry = "─△──特急 押上";
	Entry = "──□─特急 西馬込";
	Entry = "─△──特急 品川";
	Entry = "─△──特急 新町";
	Entry = "〇△──特急 文庫";
	Entry = "〇△──特急 久里浜";
	Entry = "〇△──特急 三崎口";
	Entry = "〇△──特急 羽田空港";
	Entry = "─△──特急 新逗子";
	Entry = "──□─士特急 成田空港";
	Entry = "〇△□─士特急 高砂";
	Entry = "〇△□─士特急 青砥";
	Entry = "〇△□─士特急 羽田空港";
	Entry = "─△──快特 印旛日本医大";
	Entry = "─△──快特 印西牧の原";
	Entry = "〇─□─快特 成田空港";
	Entry = "─△──快特 成田";
	Entry = "─△──快特 高砂";
	Entry = "─△──快特 青砥";
	Entry = "──□─快特 西馬込";
	Entry = "〇△──快特 羽田空港";
	Entry = "〇△──(旧)士快特 成田空港";
	Entry = "〇△──(旧)士快特 成田";
	Entry = "〇△──(旧)士快特 佐倉";
	Entry = "〇△──(旧)士快特 羽田空港";
	Entry = "〇△──(新)士快特 高砂";
	Entry = "〇△──(新)士快特 青砥";
	Entry = "〇△──(新)士快特 羽田空港";
	Entry = "〇─□─急行 成田";
	Entry = "〇─□─急行 高砂";
	Entry = "──□─急行 西馬込";
}
DefineSwitch "運番"{
GroupCommon = "ntoei5300運番";
	Entry = "無表示";
	Entry = "01T";
	Entry = "03T";
	Entry = "05T";
	Entry = "07T";
	Entry = "09T";
	Entry = "11T";
	Entry = "13T";
	Entry = "15T";
	Entry = "17T";
	Entry = "19T";
	Entry = "21T";
	Entry = "23T";
	Entry = "25T";
	Entry = "27T";
	Entry = "29T";
	Entry = "31T";
	Entry = "33T";
	Entry = "35T";
	Entry = "37T";
	Entry = "39T";
	Entry = "41T";
	Entry = "43T";
	Entry = "45T";
	Entry = "47T";
	Entry = "49T";
	Entry = "51T";
	Entry = "53T";
	Entry = "55T";
	Entry = "57T";
	Entry = "59T";
	Entry = "61T";
	Entry = "63T";
	Entry = "65T";
	Entry = "91T";
	Entry = "93T";
	Entry = "";
	Entry = "";
	Entry = "";
}
DefineSwitch "編成"{
GroupCommon = "ntoei5300編成";
	Entry = "5301F";
	Entry = "5302F";
	Entry = "5303F";
	Entry = "5304F";
	Entry = "5305F";
	Entry = "5306F";
	Entry = "5307F";
	Entry = "5308F";
	Entry = "5309F";
	Entry = "5310F";
	Entry = "5311F";
	Entry = "5312F";
	Entry = "5313F";
	Entry = "5314F";
	Entry = "5315F";
	Entry = "5316F";
	Entry = "5317F";
	Entry = "5318F";
	Entry = "5319F";
	Entry = "5320F";
	Entry = "5321F";
	Entry = "5322F";
	Entry = "5323F";
	Entry = "5324F";
	Entry = "5325F";
	Entry = "5326F";
	Entry = "5327F";
}
DefineSwitch "号車"{
	Entry = "1号車(西馬込方先頭)";
	Entry = "2号車";
	Entry = "3号車";
	Entry = "4号車";
	Entry = "5号車";
	Entry = "6号車";
	Entry = "7号車";
	Entry = "8号車-反転(押上方先頭)";
}
DefineSwitch "仕様"{
	GroupCommon = "ntoei5300仕様";
	Entry = "現行";
	Entry = "2010〜";
	Entry = "2000〜";
	Entry = "登場時";
	Entry = "";
}
DefineSwitch "優先席ステッカー位置"{
	GroupCommon = "ntoei5300優先席ステッカー位置";
	Entry = "現行";
	Entry = "登場時";
}
DefineSwitch "簡易影"{
	GroupCommon = "ntoei5300簡易陰";
	Entry = "入";
	Entry = "切";
}
DefineSwitch "PBR"{
	GroupCommon = "ntoei5300PBR";
	Entry = "入";
	Entry = "切";
}
PrimaryAssembly{
	Axle "wheel1"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 1, "tex/n.png", normal;
			ChangeTexture = 2, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
			ChangeTexture = 1, "tex/yo.png", pbr;
			ChangeTexture = 2, "tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (7.05,0.43);
	}
	Axle "wheel2"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 1, "tex/n.png", normal;
			ChangeTexture = 2, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
			ChangeTexture = 1, "tex/yo.png", pbr;
			ChangeTexture = 2, "tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (4.95,0.43);
	}
	Axle "wheel3"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 1, "tex/n.png", normal;
			ChangeTexture = 2, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
			ChangeTexture = 1, "tex/yo.png", pbr;
			ChangeTexture = 2, "tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-7.05,0.43);
	}
	Axle "wheel4"{
		ModelFileName = "wheel.x";
		CastShadow = no;
		AlphaZeroTest = 0,1;
		If "PBR"==0{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
				Ambient = 0.3, 0.3, 0.3;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 0.3, 0.3, 0.3, 1.0;
				Ambient = 0.1, 0.1, 0.1;
　　　　　		}
			ChangeMaterial{
				MaterialID = 2;
				Diffuse = 0.6, 0.6, 0.6, 1.0;
　　　　　		}
			BumpMap = 0,1,2;
			EnvMap = 0,1,2;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 1, "tex/n.png", normal;
			ChangeTexture = 2, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
			ChangeTexture = 1, "tex/yo.png", pbr;
			ChangeTexture = 2, "tex/ho.png", pbr;
　　　　　	}
		Diameter = 0.86;
		Symmetric = 16;
		Coord = (-4.95,0.43);
	}
	Body "Bogie1"{
		ModelFileName = "bogie.x";
		JointZY "wheel1"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel2"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Bogie2"{
		ModelFileName = "bogie.x";
		Turn = yes;
		JointZY "wheel3"{
			AttachCoord = (0,0);
			LocalCoord = (1.05,0);
		}
		JointZY "wheel4"{
			AttachCoord = (0,0);
			LocalCoord = (-1.05,0);
		}
	}
	Body "Dummy"{
		ModelFileName = "";
		ModelScale = 1.0;
		JointZY "Bogie1"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (6.0, 1.0);
		}
		JointZY "Bogie2"{
			AttachCoord = (0.0, 0.57);
			LocalCoord = (-6.0, 1.0);
		}
	}
	Object3D "in"{
		ModelFileName = "in_2_0.x";
		NoCastShadow = 21,22,23,24,25,26;
		//Transparent = 21;
			If "電源"==0&&"客室照明"==0{
				ChangeMaterial{
					MaterialID = 1,2,3,4,5,6,7,8,9,10,11;
					Emissive = 0.8, 0.8, 0.8;
　　　　　	　　		}
				//NoShadow = 1,2,3,4,5,6,7,8,9,10,11;
			}
			If "電源"==0&&("運転室灯"==1 || ("運転室灯"==0 && "_FRONT")){
				ChangeMaterial{
					MaterialID = 15,16,17;
					Emissive = 0.5, 0.5, 0.5;
　　　　　	　　		}
				//NoShadow = 25,26,27;
			}
		If ("遮光幕"==0 && !"_FRONT"&&!"_CONNECT1")||"遮光幕"==2{
			ShiftTexture = 21, 0.125, 0.0;
		}
		If "号車"==0||"号車"==7{
			If "編成"<10{
				ApplySwitch "仕様"{
				Case 0,1:
					ChangeModel = "in_1_1.x", 1.0;
				Default:
					ChangeModel = "in_1_0.x", 1.0;
				}
			}Else{
				ChangeModel = "in_1_1.x", 1.0;
			}
		}
		If ("号車"==3||"号車"==4)&&"編成"<10{
			ChangeModel = "in_2_1.x", 1.0;
		}
		ApplySwitch "号車"{
		Case 1,3,5:
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
		}
		ApplySwitch "仕様"{
		Case 0:
			ChangeTexture =  4,"tex/座面_2.png";
			ChangeTexture =  5,"tex/座面_3.png";
			ChangeTexture =  6,"tex/座面_3.png";
			ChangeTexture =  7,"tex/座面_3.png";
		Case 1:
			ShiftTexture = 3, 0.0, 0.25;
			ChangeTexture =  4,"tex/座面_2.png";
			ChangeTexture =  5,"tex/座面_3.png";
			ChangeTexture =  6,"tex/座面_3.png";
		Case 2:
			ShiftTexture = 3, 0.0, 0.125;
			ChangeTexture =  6,"tex/座面_1.png";
			ShiftTexture = 4, 0.0703125, 0.0;
			ShiftTexture = 6, -0.03125, -0.15625;
		Case 3:
			ShiftTexture = 3, 0.0, 0.125;
		Case 4:
			ShiftTexture = 3, 0.0, 0.125;
		}

		If !"PBR"{
			EnvMap  = 11;
			BumpMap = 11;
			ChangeTexture =  11,"tex/車外手すり.png","tex/n.png","tex/ho.png";	
			If "電源"==0&&"客室照明"==0{
				ChangeMaterial{
					MaterialID = 11;
					Diffuse = 1.5, 1.5, 1.5, 1.0;
					Ambient = 1.0, 1.0, 1.0;
					Emissive = 0.8, 0.8, 0.8;
				}
　　　　　		}Else{
				ChangeMaterial{
					MaterialID = 11;
					Diffuse = 1.5, 1.5, 1.5, 1.0;
					Ambient = 1.0, 1.0, 1.0;
				}
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorll_i"{
		ModelFileName = "Dooril.x";
		NoCastShadow = 1;
		If "電源"==0 && "客室照明"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			//NoShadow = 0;
　　　　　　}
		If "_DOOR1"{
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 1, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr_i"{
		ModelFileName = "Doorir.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 0.8, 0.8, 0.8;
				}
　　　　　　　　}
		If "_DOOR1" {
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 1, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl_i"{
		ModelFileName = "Doorir.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
				ChangeMaterial{
					MaterialID = 0;
					Emissive = 0.8, 0.8, 0.8;
				}
　　　　　　　　}
		If "_DOOR2"{
			StaticMove{
				Displacement = (0.0, 0.0, -0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, -0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 1, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorrr_i"{
		ModelFileName = "Dooril.x";
		NoCastShadow = 3;
		If "電源"==0 && "客室照明"==0{
			ChangeMaterial{
				MaterialID = 0;
				Emissive = 0.8, 0.8, 0.8;
			}
			//NoShadow = 0;
　　　　　　}
		If "_DOOR2" {
			StaticMove{
				Displacement = (0.0, 0.0, 0.6);
				PreAnimationDelay = 1.0;
				AnimationTime = 1.5;
				 PreReverseDelay = 0.5;
				ReverseTime = 1.5;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 0.05);
				PreAnimationDelay = 2.5;
				AnimationTime = 0.5;
				 PreReverseDelay = 2.0;
				ReverseTime = 0.5;
			}
		}
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 1, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 1, 0.046875, 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Doorll"{
		ModelFileName = "Doorl.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If !"PBR"{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			EnvMap  = 0,2;
			BumpMap = 0,2;
			ChangeTexture =  0,"tex/n.png",normal;	
			ChangeTexture =  0,"tex/車体p.png",pbr;
			ChangeTexture =  2,"tex/n.png",normal;	
			ChangeTexture =  2,"tex/車体n1.png",pbr;
		}
		Joint3D "Doorll_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorlr"{
		ModelFileName = "Doorr.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If !"PBR"{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			EnvMap  = 0,2;
			BumpMap = 0,2;
			ChangeTexture =  0,"tex/n.png",normal;	
			ChangeTexture =  0,"tex/車体p.png",pbr;
			ChangeTexture =  2,"tex/n.png",normal;	
			ChangeTexture =  2,"tex/車体n1.png",pbr;
		}
		Joint3D "Doorlr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrl"{
		ModelFileName = "Doorr.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" <7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If !"PBR"{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			EnvMap  = 0,2;
			BumpMap = 0,2;
			ChangeTexture =  0,"tex/n.png",normal;	
			ChangeTexture =  0,"tex/車体p.png",pbr;
			ChangeTexture =  2,"tex/n.png",normal;	
			ChangeTexture =  2,"tex/車体n1.png",pbr;
		}
		Joint3D "Doorrl_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Doorrr"{
		ModelFileName = "Doorl.x";
		NoCastShadow = 2;
		ApplySwitch "仕様"{
		Case 3:
			If "号車" ==7{
				ShiftTexture = 2, 0.0234375, 0.0;
			}Else{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		Case 4:
			If "編成" <6{
				ShiftTexture = 2, 0.046875, 0.0;
			}
		}
		If !"PBR"{
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			EnvMap  = 0,2;
			BumpMap = 0,2;
			ChangeTexture =  0,"tex/n.png",normal;	
			ChangeTexture =  0,"tex/車体p.png",pbr;
			ChangeTexture =  2,"tex/n.png",normal;	
			ChangeTexture =  2,"tex/車体n1.png",pbr;
		}
		Joint3D "Doorrr_i"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "MainBody"{
		ModelFileName = "body_2.x";
		NoCastShadow = 39,40,41,42,43,44,45,46;
		If "電源"==0{
			If !"_CONNECT1"{
				If "前照灯・尾灯"==0{
					If !"_FRONT"{
						ShiftTexture = 0, 0.0, 0.03125;
						NoReceiveShadow = 0;
						ChangeMaterial{
							MaterialID = 0;
							Emissive = 1.0, 1.0, 1.0;
　　　　　	　　				}
					}Else{
						ShiftTexture = 1, 0.0, 0.03125;
						NoReceiveShadow = 1;
						ChangeMaterial{
							MaterialID = 1;
							Emissive = 1.0, 1.0, 1.0;
　　　　　	　　				}
					}
				}
			}
		}
		ApplySwitch "編成"{
		Case 0:
			ShiftTexture = 13, 0.0, -0.15625;
		Case 1:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.015625;
		Case 2:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.03125;
		Case 3:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.046875;
		Case 4:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.0625;
		Case 5:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.078125;
		Case 6:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.09375;
		Case 7:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0, 0.109375;
		Case 8:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0625, 0.0;
		Case 9:
			ShiftTexture = 13, 0.0, -0.15625;
			ShiftTexture = 39, 0.0625, 0.015625;
		Case 10:
			ShiftTexture = 39, 0.0625, 0.03125;
		Case 11:
			ShiftTexture = 39, 0.0625, 0.046875;
		Case 12:
			ShiftTexture = 39, 0.0625, 0.0625;
		Case 13:
			ShiftTexture = 39, 0.0625, 0.078125;
		Case 14:
			ShiftTexture = 39, 0.0625, 0.09375;
		Case 15:
			ShiftTexture = 39, 0.0625, 0.109375;
		Case 16:
			ShiftTexture = 39, 0.125, 0.0;
		Case 17:
			ShiftTexture = 39, 0.125, 0.015625;
		Case 18:
			ShiftTexture = 39, 0.125, 0.03125;
		Case 19:
			ShiftTexture = 39, 0.125, 0.046875;
		Case 20:
			ShiftTexture = 39, 0.125, 0.0625;
		Case 21:
			ShiftTexture = 39, 0.125, 0.078125;
		Case 22:
			ShiftTexture = 39, 0.125, 0.09375;
		Case 23:
			ShiftTexture = 39, 0.125, 0.109375;
		Case 24:
			ShiftTexture = 39, 0.1875, 0.0;
		Case 25:
			ShiftTexture = 39, 0.1875, 0.015625;
		Case 26:
			ShiftTexture = 39, 0.1875, 0.03125;

		}
		ApplySwitch "号車"{
		Case 0:
			ChangeModel = "body_1.x", 1.0;
		Case 1:
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
			ShiftTexture = 15, 0.0, 0.04296875;
			ShiftTexture = 40, 0.0, 0.015625;
		Case 2:
			ShiftTexture = 15, -0.25, 0.0859375;
			ShiftTexture = 40, 0.0, 0.03125;
		Case 3:
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
			ShiftTexture = 15, 0.0, 0.04296875;
			ShiftTexture = 40, 0.0, 0.046875;
		Case 4:
			ShiftTexture = 40, 0.0, 0.0625;
		Case 5:
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
			}
			ShiftTexture = 15, 0.0, 0.0859375;
			ShiftTexture = 40, 0.0, 0.078125;
		Case 6:
			ShiftTexture = 40, 0.0, 0.09375;
		Case 7:
			ChangeModel = "body_1.x", 1.0;
			ShiftTexture = 15, 0.0, 0.04296875;
			ShiftTexture = 40, 0.0, 0.109375;
		}

		ApplySwitch "仕様"{
		Case 0:
			ChangeTexture =  24,"tex/座面_2.png";
			ChangeTexture =  25,"tex/座面_3.png";
			ChangeTexture =  26,"tex/座面_3.png";
			ChangeTexture =  27,"tex/座面_3.png";
			ShiftTexture = 43, 0.140625, 0.0;
			ShiftTexture = 44, 0.140625, 0.0;
			ShiftTexture = 45, 0.140625, 0.0;
			ShiftTexture = 46, -0.03125, -0.15625;
		Case 1:
			ShiftTexture = 23, 0.0, 0.25;
			ChangeTexture =  24,"tex/座面_2.png";
			ChangeTexture =  25,"tex/座面_3.png";
			ChangeTexture =  26,"tex/座面_3.png";
			ShiftTexture = 43, 0.0703125, 0.0;
			ShiftTexture = 44, 0.0703125, 0.0;
			ShiftTexture = 45, 0.0703125, 0.0;
			ShiftTexture = 46, -0.03125, -0.15625;
		Case 2:
			ShiftTexture = 23, 0.0, 0.125;
			ChangeTexture =  26,"tex/座面_1.png";
			ShiftTexture = 43, 0.0703125, 0.0;
			ShiftTexture = 44, 0.0703125, 0.0;
			ShiftTexture = 46, -0.03125, -0.15625;
		Case 3:
			ShiftTexture = 23, 0.0, 0.125;
		Case 4:
			If "編成" <10{
				ShiftTexture = 11, -0.15625, 0.0;
				ShiftTexture = 46, 0.15625, 0.0;
			}Else{
				ShiftTexture = 46, 0.1875, 0.09375;
			}
			ShiftTexture = 23, 0.0, 0.125;
		}


		If ! "PBR"{
			ChangeMaterial{
				MaterialID = 10,11,12,13;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			ChangeMaterial{
				MaterialID = 16,31;
				Diffuse = 1.5, 1.5, 1.5, 1.0;
				Ambient = 1.0, 1.0, 1.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 42,43,44,45,46;
			//	Diffuse = 1.5, 1.5, 1.5, 1.0;
			//	Ambient = 1.0, 1.0, 1.0;
				//Specular = 1.0, 1.03, 1.05;
			//	Power = 7.0;
　　　　　		}
			ChangeMaterial{
				MaterialID = 11;
				Diffuse = 0.8, 0.8, 0.8, 1.0;
				Ambient = 0.2, 0.2, 0.2;
　　　　　		}

			EnvMap  = 10,11,12,13,14,15,16,31,42,43,44,45,46;
			BumpMap  = 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,31,42,43,44,45,46;

			ChangeTexture =  2,"tex/led.png","tex/n.png","tex/yo.png";	
			ChangeTexture =  3,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  4,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  5,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  7,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  6,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  8,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  9,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  10,"tex/車体.png","tex/車体n1.png","tex/車体p.png";	
			ChangeTexture =  11,"tex/車体.png","tex/車体n1.png","tex/車体p.png";	
			ChangeTexture =  12,"tex/車体.png","tex/車体n.png","tex/車体p.png";		
			ChangeTexture =  13,"tex/車体.png","tex/車体n.png","tex/車体p.png";	
			ChangeTexture =  14,"tex/車体.png","tex/車体n.png","tex/車体p.png";	
			ChangeTexture =  16,"tex/車体.png","tex/n.png","tex/ho.png";	

			ChangeTexture =  15,"tex/車体.png","tex/n.png","tex/yo.png";

			ChangeTexture =  31,"tex/車外手すり.png","tex/n.png","tex/ho.png";

			ChangeTexture =  42,"tex/車体.png","tex/n.png","tex/車体n1.png";	
			ChangeTexture =  43,"tex/車体.png","tex/n.png","tex/車体n1.png";	
			ChangeTexture =  44,"tex/車体.png","tex/n.png","tex/車体n1.png";	
			ChangeTexture =  45,"tex/車体.png","tex/n.png","tex/車体n1.png";	
			ChangeTexture =  46,"tex/車体.png","tex/n.png","tex/車体n1.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "LED"{
		ModelFileName = "maku_1.x";
		//NoShadow = 3,4,5,6,7,8,9;
		ChangeAlpha = 9,0.0;
		If "号車" ==0||"号車" ==7{
			ChangeModel = "maku_0.x", 1.0;
		}
		If "電源"==0{
			If !"_CONNECT1"{
				If !"_FRONT"&&!("表示">=4 && "表示"<=17) && "急行灯"==0{
					If "編成"<6{
						ShiftTexture = 9, 0.0, 0.03125;
						ChangeMaterial{
							MaterialID = 9;
							Emissive = 24.0, 0.0, 0.0;
　　　　　	　　				}
					}Else{
						ChangeMaterial{
							MaterialID = 9;
							Emissive = 24.0, 1.0, 0.0;
　　　　　	　　				}
					}
					ChangeAlpha = 9,1.0;
					//NoShadow = 9;
				}
			}
			ApplySwitch "表示"{
			Case 0,1:
				ChangeAlpha = 3, 0.0;
				ChangeAlpha = 4, 0.0;
				ChangeAlpha = 5, 0.0;
				ChangeAlpha = 7, 0.0;
				ChangeAlpha = 8, 0.0;
			Case 2:
				ChangeAlpha = 8, 0.0;
				ShiftTexture = 3, 0.4375, 0.375;
				ShiftTexture = 4, 0.25, 0.875;
				ShiftTexture = 5, 0.25, 0.875;
				ShiftTexture = 7, 0.0, 0.375;
				ChangeMaterial{
					MaterialID = 3,4,5,7;
					Emissive = 24.0, 0.0, 0.0;
　　　　　			}
			Case 3:
				ChangeAlpha = 8, 0.0;
				ShiftTexture = 3, 0.4375, 0.4375;
				ShiftTexture = 4, 0.25, 0.9375;
				ShiftTexture = 5, 0.25, 0.9375;
				ShiftTexture = 7, 0.0, 0.40625;
				ChangeMaterial{
					MaterialID = 3,4,5,7;
					Emissive = 24.0, 0.0, 0.0;
　　　　　			}
			Default:
				If "表示">=4 && "表示"<=17 {
					ApplySwitch "表示"{
					Case 4:
					Case 5:
						ShiftTexture = 4, 0.0, 0.0625;
						ShiftTexture = 5, 0.0, 0.0625;
						ShiftTexture = 8, 0.0, 0.03125;
					Case 6:
						ShiftTexture = 4, 0.0, 0.125;
						ShiftTexture = 5, 0.0, 0.125;	
						ShiftTexture = 8, 0.0, 0.0625;
					Case 7:
						ShiftTexture = 4, 0.0, 0.375;
						ShiftTexture = 5, 0.0, 0.375;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 8:
						ShiftTexture = 4, 0.0, 0.4375;
						ShiftTexture = 5, 0.0, 0.4375;	
						ShiftTexture = 8, 0.0, 0.21875;
					Case 9:
						ShiftTexture = 4, 0.0, 0.5;
						ShiftTexture = 5, 0.0, 0.5;
						ShiftTexture = 8, 0.0, 0.25;
					Case 10:
						ShiftTexture = 4, 0.0, 0.5625;
						ShiftTexture = 5, 0.0, 0.5625;
						ShiftTexture = 8, 0.0, 0.28125;
					Case 11:
						ShiftTexture = 4, 0.0, 0.625;
						ShiftTexture = 5, 0.0, 0.625;
						ShiftTexture = 8, 0.0, 0.3125;
					Case 12:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					Case 13:
						ShiftTexture = 4, 0.0, 0.8125;
						ShiftTexture = 5, 0.0, 0.8125;
						ShiftTexture = 8, 0.0, 0.40625;
					Case 14:
						ShiftTexture = 4, -0.125, 0.0;
						ShiftTexture = 5, -0.125, 0.0;
						ShiftTexture = 8, -0.09375, 0.5;
					Case 15:
						ShiftTexture = 4, -0.125, 0.0625;
						ShiftTexture = 5, -0.125, 0.0625;
						ShiftTexture = 8, -0.09375, 0.53125;
					Case 16:
						ShiftTexture = 4, -0.125, 0.125;
						ShiftTexture = 5, -0.125, 0.125;
						ShiftTexture = 8, -0.09375, 0.5625;
					Case 17:
						ShiftTexture = 4, -0.125, 0.1875;
						ShiftTexture = 5, -0.125, 0.1875;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ChangeMaterial{
						MaterialID = 3,4,5,7,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
				}
				If "表示">=18 && "表示"<=23 {
					ApplySwitch "表示"{
					Case 18:
					Case 19:
						ShiftTexture = 4, 0.0, 0.0625;
						ShiftTexture = 5, 0.0, 0.0625;
						ShiftTexture = 8, 0.0, 0.03125;
					Case 20:
						ShiftTexture = 4, 0.0, 0.875;
						ShiftTexture = 5, 0.0, 0.875;
						ShiftTexture = 8, -0.09375, 0.43725;
					Case 21:
						ShiftTexture = 4, 0.0, 0.9375;
						ShiftTexture = 5, 0.0, 0.9375;
						ShiftTexture = 8, -0.09375, 0.46875;
					Case 22:
						ShiftTexture = 4, -0.125, 0.1875;
						ShiftTexture = 5, -0.125, 0.1875;
						ShiftTexture = 8, -0.09375, 0.59375;
					Case 23:
						ShiftTexture = 4, -0.125, 0.25;
						ShiftTexture = 5, -0.125, 0.25;
						ShiftTexture = 8, -0.09375, 0.625;
					}
					ShiftTexture = 3, 0.0, 0.0625;
					ShiftTexture = 7, 0.0, 0.03125;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示">=24 && "表示"<=36 {
					ApplySwitch "表示"{
					Case 24:
						ShiftTexture = 5, -0.125, 0.3125;
						ShiftTexture = 8, 0.0, 0.0;
					Case 25:
						ShiftTexture = 5, -0.125, 0.375;
						ShiftTexture = 8, 0.0, 0.03125;
					Case 26:
						ShiftTexture = 5, -0.125, 0.5;
						ShiftTexture = 8, 0.0, 0.125;
					Case 27:
						ShiftTexture = 5, -0.125, 0.5625;
						ShiftTexture = 8, 0.0, 0.15625;
					Case 28:
						ShiftTexture = 5, -0.125, 0.625;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 29:
						ShiftTexture = 5, -0.125, 0.6875;	
						ShiftTexture = 8, 0.0, 0.21875;
					Case 30:
						ShiftTexture = 5, -0.125, 0.75;
						ShiftTexture = 8, 0.0, 0.25;
					Case 31:
						ShiftTexture = 5, -0.125, 0.8125;
						ShiftTexture = 8, 0.0, 0.3125;
					Case 32:
						ShiftTexture = 5, -0.125, 0.875;
						ShiftTexture = 8, 0.0, 0.375;
					Case 33:
						ShiftTexture = 5, 0.265625, 0.0625;
						ShiftTexture = 8, -0.09375, 0.46875;
					Case 34:
						ShiftTexture = 5, 0.265625, 0.125;
						ShiftTexture = 8, -0.09375, 0.5;
					Case 35:
						ShiftTexture = 5, 0.140625, 0.0625;
						ShiftTexture = 8, -0.09375, 0.59375;
					Case 36:
						ShiftTexture = 5, 0.140625, 0.125;
						ShiftTexture = 8, -0.09375, 0.625;
					}
					ShiftTexture = 3, 0.0, 0.125;
					ShiftTexture = 4, -0.1875, 0.625;
					ShiftTexture = 7, 0.0, 0.0625;
					ChangeMaterial{
						MaterialID = 5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,4,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示">=37 && "表示"<=41 {
					ApplySwitch "表示"{
					Case 37:
						ShiftTexture = 4, 0.0, 0.1875;
						ShiftTexture = 5, 0.0, 0.1875;
						ShiftTexture = 8, 0.0, 0.09375;
					Case 38:
						ShiftTexture = 4, 0.0, 0.25;
						ShiftTexture = 5, 0.0, 0.25;
						ShiftTexture = 8, 0.0, 0.125;
					Case 39:
						ShiftTexture = 4, 0.0, 0.3125;
						ShiftTexture = 5, 0.0, 0.3125;
						ShiftTexture = 8, 0.0, 0.15625;
					Case 40:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					Case 41:
						ShiftTexture = 4, -0.125, 0.1875;
						ShiftTexture = 5, -0.125, 0.1875;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ShiftTexture = 3, 0.0, 0.1875;
					ShiftTexture = 7, 0.0, 0.09375;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示"==42 {
					ShiftTexture = 5, 0.140625, 0.0625;
					ShiftTexture = 8, -0.09375, 0.59375;
					ShiftTexture = 3, 0.0, 0.25;
					ShiftTexture = 4, -0.1875, 0.75;
					ShiftTexture = 7, 0.0, 0.125;
					ChangeMaterial{
						MaterialID = 5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,4,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示">=43 && "表示"<=44 {
					ApplySwitch "表示"{
					Case 43:
						ShiftTexture = 4, 0.0, 0.25;
						ShiftTexture = 5, 0.0, 0.25;
						ShiftTexture = 8, 0.0, 0.125;
					Case 44:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					}
					ShiftTexture = 3, 0.0, 0.3125;
					ShiftTexture = 7, 0.0, 0.15625;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 24.0, 0.0, 0.0;
　　　　　				}
				}
				If "表示">=45 && "表示"<=56 {
					ApplySwitch "表示"{
					Case 45:
					Case 46:
						ShiftTexture = 4, 0.0, 0.1875;
						ShiftTexture = 5, 0.0, 0.1875;
						ShiftTexture = 8, 0.0, 0.09375;
					Case 47:
						ShiftTexture = 4, 0.0, 0.25;
						ShiftTexture = 5, 0.0, 0.25;
						ShiftTexture = 8, 0.0, 0.125;
					Case 48:
						ShiftTexture = 4, 0.0, 0.5;
						ShiftTexture = 5, 0.0, 0.5;
						ShiftTexture = 8, 0.0, 0.25;
					Case 49:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					Case 50:
						ShiftTexture = 4, 0.0, 0.75;
						ShiftTexture = 5, 0.0, 0.75;
						ShiftTexture = 8, 0.0, 0.375;
					Case 51:
						ShiftTexture = 4, 0.0, 0.9375;
						ShiftTexture = 5, 0.0, 0.9375;
						ShiftTexture = 8, -0.09375, 0.46875;
					Case 52:
						ShiftTexture = 4, -0.125, 0.0;
						ShiftTexture = 5, -0.125, 0.0;
						ShiftTexture = 8, -0.09375, 0.5;
					Case 53:
						ShiftTexture = 4, -0.125, 0.0625;
						ShiftTexture = 5, -0.125, 0.0625;
						ShiftTexture = 8, -0.09375, 0.53125;
					Case 54:
						ShiftTexture = 4, -0.125, 0.125;
						ShiftTexture = 5, -0.125, 0.125;
						ShiftTexture = 8, -0.09375, 0.5625;
					Case 55:
						ShiftTexture = 4, -0.125, 0.1875;
						ShiftTexture = 5, -0.125, 0.1875;
						ShiftTexture = 8, -0.09375, 0.59375;
					Case 56:
						ShiftTexture = 4, -0.125, 0.25;
						ShiftTexture = 5, -0.125, 0.25;
						ShiftTexture = 8, -0.09375, 0.625;
					}
					ShiftTexture = 3, 0.0, 0.375;
					ShiftTexture = 7, 0.0, 0.1875;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 24.0, 0.0, 0.0;
　　　　　				}
				}
				If "表示">=57 && "表示"<=60 {
					ApplySwitch "表示"{
					Case 57:
						ShiftTexture = 5, -0.125, 0.4375;
						ShiftTexture = 8, 0.0, 0.09375;
					Case 58:
						ShiftTexture = 5, -0.125, 0.625;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 59:
						ShiftTexture = 5, -0.125, 0.6875;	
						ShiftTexture = 8, 0.0, 0.21875;
					Case 60:
						ShiftTexture = 5, 0.140625, 0.0625;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ShiftTexture = 3, 0.0625, 0.4375;
					ShiftTexture = 4, -0.125, 0.9375;
					ShiftTexture = 7, 0.0, 0.21875;
					ChangeMaterial{
						MaterialID = 5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,4,7;
						Emissive = 24.0, 0.0, 0.0;
　　　　　				}
				}
				If "表示">=61 && "表示"<=68 {
					ApplySwitch "表示"{
					Case 61:
					Case 62:
						ShiftTexture = 4, 0.0, 0.0625;
						ShiftTexture = 5, 0.0, 0.0625;
						ShiftTexture = 8, 0.0, 0.03125;
					Case 63:
						ShiftTexture = 4, 0.0, 0.1875;
						ShiftTexture = 5, 0.0, 0.1875;
						ShiftTexture = 8, 0.0, 0.09375;
					Case 64:
						ShiftTexture = 4, 0.0, 0.25;
						ShiftTexture = 5, 0.0, 0.25;
						ShiftTexture = 8, 0.0, 0.125;
					Case 65:
						ShiftTexture = 4, 0.0, 0.375;
						ShiftTexture = 5, 0.0, 0.375;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 66:
						ShiftTexture = 4, 0.0, 0.4375;
						ShiftTexture = 5, 0.0, 0.4375;	
						ShiftTexture = 8, 0.0, 0.21875;
					Case 67:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					Case 68:
						ShiftTexture = 4, -0.125, 0.1875;
						ShiftTexture = 5, -0.125, 0.1875;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ShiftTexture = 3, -0.0625, 0.4375;
					ShiftTexture = 7, 0.0, 0.28125;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示">=69 && "表示"<=72 {
					ApplySwitch "表示"{
					Case 69:
						ShiftTexture = 5, -0.125, 0.4375;
						ShiftTexture = 8, 0.0, 0.09375;
					Case 70:
						ShiftTexture = 5, -0.125, 0.5;
						ShiftTexture = 8, 0.0, 0.125;
					Case 71:
						ShiftTexture = 5, -0.125, 0.5625;
						ShiftTexture = 8, 0.0, 0.15625;
					Case 72:
						ShiftTexture = 5, 0.140625, 0.0625;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ShiftTexture = 3, -0.1875, 0.4375;
					ShiftTexture = 4, -0.375, 0.9375;
					ShiftTexture = 7, 0.0, 0.3125;
					ChangeMaterial{
						MaterialID = 5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,4,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
				If "表示">=73 && "表示"<=75 {
					ApplySwitch "表示"{
					Case 73:
						ShiftTexture = 5, -0.125, 0.625;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 74:
						ShiftTexture = 5, -0.125, 0.6875;	
						ShiftTexture = 8, 0.0, 0.21875;
					Case 75:
						ShiftTexture = 5, 0.140625, 0.0625;
						ShiftTexture = 8, -0.09375, 0.59375;
					}
					ShiftTexture = 3, -0.3125, 0.4375;
					ShiftTexture = 4, -0.5, 0.9375;
					ShiftTexture = 7, 0.0, 0.34375;
					ChangeMaterial{
						MaterialID = 3,4,5,7,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
				}
				If "表示">=76 && "表示"<=78 {
					ApplySwitch "表示"{
					Case 76:
						ShiftTexture = 4, 0.0, 0.25;
						ShiftTexture = 5, 0.0, 0.25;
						ShiftTexture = 8, 0.0, 0.125;
					Case 77:
						ShiftTexture = 4, 0.0, 0.375;
						ShiftTexture = 5, 0.0, 0.375;	
						ShiftTexture = 8, 0.0, 0.1875;
					Case 78:
						ShiftTexture = 4, 0.0, 0.6875;
						ShiftTexture = 5, 0.0, 0.6875;
						ShiftTexture = 8, 0.0, 0.34375;
					}
					ShiftTexture = 3, 0.0, 0.0625;
					ShiftTexture = 7, 0.0, 0.03125;
					ChangeMaterial{
						MaterialID = 4,5,8;
						Emissive = 24.0, 1.0, 0.0;
　　　　　				}
					ChangeMaterial{
						MaterialID = 3,7;
						Emissive = 12.0, 24.0, 0.0;
　　　　　				}
				}
			}
			ApplySwitch "運番"{
			Case 1:
			Case 2:
				ShiftTexture = 6, 0.0, 0.03125;
			Case 3:
				ShiftTexture = 6, -0.015625, 0.0625;
			Case 4:
				ShiftTexture = 6, 0.0, 0.09375;
			Case 5:
				ShiftTexture = 6, -0.015625, 0.125;
			Case 6:
				ShiftTexture = 6, 0.0, 0.15625;
			Case 7:
				ShiftTexture = 6, 0.0, 0.1875;
			Case 8:
				ShiftTexture = 6, -0.015625, 0.21875;
			Case 9:
				ShiftTexture = 6, 0.0, 0.25;
			Case 10:
				ShiftTexture = 6, 0.0, 0.28125;
			Case 11:
				ShiftTexture = 6, -0.015625, 0.3125;
			Case 12:
				ShiftTexture = 6, -0.015625, 0.34375;
			Case 13:
				ShiftTexture = 6, 0.0, 0.375;
			Case 14:
				ShiftTexture = 6, -0.015625, 0.40625;
			Case 15:
				ShiftTexture = 6, 0.0, 0.4375;
			Case 16:
				ShiftTexture = 6, 0.0, 0.46875;
			Case 17:
				ShiftTexture = 6, 0.0, 0.5;
			Case 18:
				ShiftTexture = 6, 0.0, 0.53125;
			Case 19:
				ShiftTexture = 6, 0.0, 0.5625;
			Case 20:
				ShiftTexture = 6, 0.0, 0.59375;
			Case 21:
				ShiftTexture = 6, 0.0, 0.625;
			Case 22:
				ShiftTexture = 6, -0.015625, 0.65625;
			Case 23:
				ShiftTexture = 6, -0.015625, 0.6875;
			Case 24:
				ShiftTexture = 6, 0.0, 0.71875;
			Case 25:
				ShiftTexture = 6, 0.0, 0.75;
			Case 26:
				ShiftTexture = 6, 0.0, 0.78125;
			Case 27:
				ShiftTexture = 6, 0.0, 0.8125;
			Case 28:
				ShiftTexture = 6, 0.0, 0.84375;
			Case 29:
				ShiftTexture = 6, 0.0, 0.875;
			Case 30:
				ShiftTexture = 6, -0.078125, 0.375;
			Case 31:
				ShiftTexture = 6, -0.078125, 0.46875;
			Case 32:
				ShiftTexture = 6, -0.078125, 0.5;
			Case 33:
				ShiftTexture = 6, -0.078125, 0.53125;
			Case 34:
				ShiftTexture = 6, 0.078125, 0.25;
			Case 35:
				ShiftTexture = 6, -0.078125, 0.4375;
			Case 36:
				ShiftTexture = 6, -0.078125, 0.59375;
			Case 37:
				ShiftTexture = 6, -0.078125, 0.625;
			Case 38:
				ShiftTexture = 6, -0.078125, 0.65625;
			Default:
				ChangeAlpha = 6, 0.0;
			}
			If "運番">0{
				ChangeMaterial{
					MaterialID = 6;
					Emissive = 24.0, 1.0, 0.0;
　　　　　			}
			}
		}Else{
			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 ! "PBR"{
			BumpMap  = 2,3,4,5,6,7,8,9;
			ChangeTexture =  2,"tex/led.png","tex/n.png","tex/yo.png";	
			ChangeTexture =  3,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  4,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  5,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  7,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  6,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  8,"tex/led.png","tex/n.png","tex/so.png";	
			ChangeTexture =  9,"tex/led.png","tex/n.png","tex/so.png";		
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}


	Object3D "Horoz"{
		ModelFileName = "";
		If "仕様" <3{
			ChangeModel = "horo.x", 1.0;
		}
		If !"PBR"{
			EnvMap  = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Horo-z"{
		ModelFileName = "";
		If "仕様" <3{
			ApplySwitch "号車"{
			Case 0,7:
				ChangeModel = "", 1.0;
			}
			ChangeModel = "horo.x", 1.0;
		}
		If !"PBR"{
			EnvMap  = 0,1;
			BumpMap = 0,1;
			ChangeTexture = 0, "tex/n.png", normal;
			ChangeTexture = 0, "tex/yo.png", pbr;
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "Skirt"{
		ModelFileName = "";
		ApplySwitch "号車"{
		Case 0,7:
			If "編成" >13{
				ChangeModel = "skirt_2.x", 1.0;
			}Else{
				If "編成" <6 && "仕様" >0{
					ChangeModel = "skirt_0.x", 1.0;
				}Else{
					ChangeModel = "skirt_1.x", 1.0;
				}
			}
		}
		If !"PBR"{
			EnvMap  = 0,1;
			BumpMap = 0,1;
			ChangeTexture =  0,"tex/車体.png","tex/車体n.png","tex/車体p.png";
			ChangeTexture =  1,"tex/車外手すり.png","tex/n.png","tex/ho.png";	
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.8, 0.8, 0.8;
　　　　　		}
			ChangeMaterial{
				MaterialID = 1;
				Diffuse = 1.5, 1.5, 1.5, 1.0;
				Ambient = 1.0, 1.0, 1.0;
　　　　　		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "yuka"{
		ModelFileName = "";
		Transparent = 2;
		ApplySwitch "号車"{
		Case 0:
			ChangeModel = "yuka1.x", 1.0;
		Case 1:
			ChangeModel = "yuka2.x", 1.0;
		Case 2:
			ChangeModel = "yuka3.x", 1.0;
		Case 3:
			ChangeModel = "yuka4.x", 1.0;
		Case 4:
			ChangeModel = "yuka5.x", 1.0;
		Case 5:
			ChangeModel = "yuka6.x", 1.0;
		Case 6:
			ChangeModel = "yuka7.x", 1.0;
		Case 7:
			ChangeModel = "yuka8.x", 1.0;
		}
		If !"PBR"{
			EnvMap  = 3,4,5,6,7;
			BumpMap = 3,4,5,6,7;
			ChangeTexture =  3,"tex/車体.png","tex/n.png","tex/車体n1.png";	
			ChangeTexture =  4,"tex/車内手すり.png","tex/n.png","tex/co.png";	
			ChangeTexture =  5,"tex/車体.png","tex/n.png","tex/yo.png";	
			ChangeTexture =  6,"tex/車体.png","tex/n.png","tex/yo.png";	
			ChangeTexture =  7,"tex/車体.png","tex/n.png","tex/yo.png";	
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_c"{
		ModelFileName = "";
		CastShadow = no;
		If "号車"==2{
			ChangeModel = "sticker_c.x", 1.0;
		}
		If !"PBR"{
			EnvMap  = 0;
			BumpMap = 0;
			ChangeTexture =  0,"tex/車体.png","tex/n.png","tex/車体p.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.9, 0.9, 0.9;
　　　		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_p"{
		ModelFileName = "sticker_p_1.x";
		CastShadow = no;
		If "優先席ステッカー位置"==1{
			ChangeModel = "sticker_p_0.x", 1.0;
		}
		If !"PBR"{
			EnvMap  = 0;
			BumpMap = 0;
			ChangeTexture =  0,"tex/車体.png","tex/n.png","tex/車体p.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.9, 0.9, 0.9;
　　　		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_t"{
		ModelFileName = "sticker_t_0.x";
		CastShadow = no;
		If !("仕様"==4&&"編成"<10){
			If "号車"==0||"号車"==7{
				ChangeModel = "sticker_t_1.x", 1.0;
			}Else{
				ChangeModel = "sticker_t_2.x", 1.0;
			}
		}
		If !"PBR"{
			EnvMap  = 0;
			BumpMap = 0;
			ChangeTexture =  0,"tex/車体.png","tex/n.png","tex/車体p.png";
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "Sticker_w"{
		ModelFileName = "";
		CastShadow = no;
		If "号車"==0||"号車"==7{
			If "編成"<10{
				ApplySwitch "仕様"{
				Case 0:
					ChangeModel = "sticker_w_1.x", 1.0;
				Case 1:
					ChangeModel = "sticker_w_0.x", 1.0;
				}
			}Else{
				ApplySwitch "仕様"{
				Case 0:
					ChangeModel = "sticker_w_1.x", 1.0;
				Case 1:
					ChangeModel = "sticker_w_0.x", 1.0;
				}
			}
			StaticMove{
				Displacement = (0.0, 0.0, 4.28);
			}
		}
		If ("号車"==3||"号車"==4)&&"編成"<10{
			If !"仕様"{
				ChangeModel = "sticker_w_1.x", 1.0;
			}Else{
				ChangeModel = "sticker_w_0.x", 1.0;
			}
			StaticMove{
				Displacement = (0.0, 0.0, 6.52);
			}
		}
		If !"PBR"{
			EnvMap  = 0;
			BumpMap = 0;
			ChangeTexture =  0,"tex/車体.png","tex/n.png","tex/車体p.png";
			ChangeMaterial{
				MaterialID = 0;
				Diffuse = 0.9, 0.9, 0.9, 1.0;
				Ambient = 0.9, 0.9, 0.9;
　　　		}
		}
		Joint3D "MainBody"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

	Object3D "Doorl"{
		ModelFileName = "tojime.x";
		StaticRotation{
			RotationAxis = (0.0, 1.0, 0.0);
			RotationAngle = 180;
		}
		If "_DOOR2"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (1.39, 3.155, 1.7);
		}
	}
	Object3D "Doorr"{
		ModelFileName = "tojime.x";
		If "_DOOR1"{
			StaticRotation{
				RotationAxis = (0.0, 1.0, 0.0);
				RotationAngle = 180;
				PreAnimationDelay = 1.0;
				AnimationTime = 0.0;
				 PreReverseDelay = 2.5;
				ReverseTime = 0.0;
			}
		}
		Joint3D "Dummy"{
			AttachCoord = (-1.39, 3.155, -1.7);
		}
	}
	Object3D "Shadow"{
		ModelFileName = "Shadow.x";
		NoCastShadow = 0;
		ApplySwitch "簡易影"{
			Case 1:
				ChangeModel = "", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
	Object3D "HishiBase1"{
		ModelFileName = "";
		Joint3D "Dummy"{
			AttachCoord = (0.0, 3.72, 6.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "HishiShoe1"{
		ModelFileName = "HishiShoe.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "パンタ高さ"{
		Case 0:
			TrackingMove{
				TrackingID = "Trolley";			
				AscentRange = 1.6;
				SliderRange = 1.0;
				Displacement = (0.0, 1.04, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 1.0;
			}
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.35, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 1.0;
			}
		}
		}
		Joint3D "HishiBase1"{
			AttachCoord = (0.0, 0.3, 0.0);
		}
	}
	TriangleZY{
		Link "HishiArm-y-z1"{
			ModelFileName = "HishiArm-y.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiBase1"{
				AttachCoord = (0.485, 0.02);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.99, 0.00);
		}
		Link "HishiArmy-z1"{
			ModelFileName = "HishiArmy.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiShoe1"{
				AttachCoord = (0.0, -0.12);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.48, -0.00);
		}
	}
	TriangleZY{
		Link "HishiArmyz1"{
			ModelFileName = "HishiArmy.x";
			Turn = yes;
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiShoe1"{
				AttachCoord = (0.0, -0.12);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.48, 0.0);
		}
		Link "HishiArm-yz1"{
			ModelFileName = "HishiArm-y.x";
			Turn = yes;
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiBase1"{
				AttachCoord = (-0.485, 0.02);
				LocalCoord = (0.0, 0.00);
			}
			LinkCoord = (0.99, 0.00);
		}
	}
	Object3D "HishiBase2"{
		ModelFileName = "";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 3.72, -6.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}
	Object3D "HishiShoe2"{
		ModelFileName = "HishiShoe.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
		ApplySwitch "電源"{
		Case 0:
		ApplySwitch "パンタ高さ"{
		Case 0:
			TrackingMove{
				TrackingID = "Trolley";			
				AscentRange = 1.6;
				SliderRange = 1.0;
				Displacement = (0.0, 1.04, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 1.0;
			}
		Case 1:
			StaticMove{
				Displacement = (0.0, 0.35, 0.0);
				PreAnimationDelay = 0.1;
				AnimationTime = 1.0;
			}
		}
		}
		Joint3D "HishiBase2"{
			AttachCoord = (0.0, 0.3, 0.0);
		}
	}
	TriangleZY{
		Link "HishiArm-y-z2"{
			ModelFileName = "HishiArm-y.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiBase2"{
				AttachCoord = (0.485, 0.02);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (0.99, 0.00);
		}
		Link "HishiArmy-z2"{
			ModelFileName = "HishiArmy.x";
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiShoe2"{
				AttachCoord = (0.0, -0.12);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.48, -0.00);
		}
	}
	TriangleZY{
		Link "HishiArmyz2"{
			ModelFileName = "HishiArmy.x";
			Turn = yes;
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiShoe2"{
				AttachCoord = (0.0, -0.12);
				LocalCoord = (0.0, 0.0);
			}
			LinkCoord = (1.48, 0.0);
		}
		Link "HishiArm-yz2"{
			ModelFileName = "HishiArm-y.x";
			Turn = yes;
			ApplySwitch "号車"{
			Case 0,1,3,4,6,7:
			ChangeModel = "", 1.0;
			}
			JointZYX "HishiBase2"{
				AttachCoord = (-0.485, 0.02);
				LocalCoord = (0.0, 0.00);
			}
			LinkCoord = (0.99, 0.00);
		}
	}
	If ("号車"==0 || "号車"==7) && "電源"==0 && ("前照灯・尾灯"==0 && !"_FRONT") && "レンズフレア"==0 && !"_CONNECT1" {
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (0.98, 1.8, 8.75);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
				LensFlare{
				    StartAngle = 50.0;
				    Twinkle = 0.1;
					Texture{
					    Distance = 0.005;
					    Radius = 0.6;
					    TexFileName = "tex/フレア.png";
					    Color = #FFE0C894;
					}
				}
			}
			Headlight{
			    AttachObject = "Dummy";
			    SourceCoord = (-0.98, 1.8, 8.75);
			    Direction = (0.0, 0.0, 1.0);
			    MaxDistance = 10.0;
			}
	}
	If ("号車"==0 || "号車"==7) && "電源"==0 && ("前照灯・尾灯"==0 && "_FRONT") && "レンズフレア"==0 && !"_CONNECT1" {
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (1.22, 1.86, 8.65);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
			LensFlare{
			    StartAngle = 40.0;
			    Twinkle = 0.1;
				Texture{
				    Distance = 0.005;
				    Radius = 0.45;
				    TexFileName = "tex/フレア.png";
				    Color = #FFDD0014;
				}
			}
		}
		Headlight{
		    AttachObject = "Dummy";
		    SourceCoord = (-1.22, 1.86, 8.65);
		    Direction = (0.0, 0.0, 1.0);
		    MaxDistance = 10.0;
		}
	}
	FrontCabin{
		Joint3D "MainBody"{
			AttachCoord = (0.0,0.0,0.0);
		}
	}
}

