
{macro:Faremaster_frame}

			(L.L.elec_busbar_main) (C.L.elec_busbar_minV) <
			{if}
			(L.L.elec_failure_general)
			{if}
			(C.L.ticketprinter_standby_sec) (S.L.globaltimer)
			{endif}
				1 (S.L.ticketprinter_abschalten)
			{else}
				0 (S.L.ticketprinter_abschalten)
			{endif}
			(L.L.ticketprinter_abschalten)
			{if}
			(L.L.globaltimer) (L.S.Timegap) + (S.L.globaltimer) (C.L.ticketprinter_standby_sec) >=
			{if}
			0 (S.L.ticketprinter_an) 
			0 (S.L.IBIS_LinieKurs) (S.L.IBIS_Route) (S.L.Faremaster_ShowInfo)
			"" (S.$.Faremaster_Keypad_V) (S.$.Faremaster_Stop2) (S.$.Faremaster_Stop1) (S.$.Faremaster_Stop3) (S.$.Faremaster_Stop4) (S.$.Faremaster_Stop5) (S.$.CD_LineTerminus) (S.$.CD_StopCurrent) (S.$.CD_Stop1) (S.$.CD_Stop2) (S.$.CD_Stop3) (S.$.CD_Stop4)
			{endif}
{else}
				0 (S.L.globaltimer)
			{endif}

			(L.L.elec_busbar_main) (C.L.elec_busbar_minV) >
			{if}			
			(L.L.vdv_display_startuptime) 3.1 >
			(L.L.vdv_display_startuptime) 3.9 < &&
			{if}
			1 (S.L.ticketprinter_an)			
			{endif}
		{endif}

'	Infotainment

		(L.L.IBIS_RouteIndex) 0 >=
		(L.L.Faremaster_RouteIndex) 0 >= ||
		(L.L.ticketprinter_an) &&
		(L.L.Infotainment_Boot) 15 > &&
		{if}
			(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) (L.L.IBIS_busstop) - s0
				
			l0 5 >=
			{if}	
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_StopCurrent)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop1)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop2)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop3)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 4 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 4 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop4)
			{endif}
			l0 4 =
			{if}	
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_StopCurrent)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop1)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop2)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 3 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop3)
				" " (S.$.CD_Stop4)
			{endif}
			l0 3 =
			{if}	
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_StopCurrent)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop1)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 2 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop2)
				" " (S.$.CD_Stop3)
				" " (S.$.CD_Stop4)
			{endif}
			l0 2 =
			{if}	
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_StopCurrent)
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) 1 + (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_Stop1)
				" " (S.$.CD_Stop2)
				" " (S.$.CD_Stop3)
				" " (S.$.CD_Stop4)
			{endif}
			l0 1 =
			{if}	
				(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 1 (M.V.GetBusstopString) " " $+ (L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (M.V.GetBusstopIndex) 2 (M.V.GetBusstopString) $+ (S.$.CD_StopCurrent)
				" " (S.$.CD_Stop1)
				" " (S.$.CD_Stop2)
				" " (S.$.CD_Stop3)
				" " (S.$.CD_Stop4)
			{endif}

			" " (L.$.Matrix_Nr) $+ " " $+ (L.L.IBIS_TerminusIndex) 5 (M.V.GetTerminusString) $+ (S.$.CD_LineTerminus)
	
		{else}
			(L.L.Infotainment_Boot) 14 >
			(L.L.Infotainment_Boot) 15 < &&
			{if}
				"A5-V78.4 - F1" (S.$.CD_LineTerminus)
				"A5-V78.4 - F2" (S.$.CD_StopCurrent)
				"A5-V78.4 - F3" (S.$.CD_Stop1)
				"A5-V78.4 - F4" (S.$.CD_Stop2)
				"A5-V78.4 - F5" (S.$.CD_Stop3)
				"A5-V78.4 - F6" (S.$.CD_Stop4)
			{else}
				"" (S.$.CD_LineTerminus) (S.$.CD_StopCurrent) (S.$.CD_Stop1) (S.$.CD_Stop2) (S.$.CD_Stop3) (S.$.CD_Stop4)
			{endif}
		{endif}

		(L.L.ticketprinter_an)
		{if}
			(L.L.Infotainment_Boot) (L.S.Timegap) + (S.L.Infotainment_Boot) 
			(L.L.haltewunsch)
			{if}
				(L.L.HStop_timer) (L.S.Timegap) + 1 min (S.L.HStop_timer)
				1 =
				{if}
					0 (S.L.HStop_timer)
				{endif}
			{else}
				0 (S.L.HStop_timer)
			{endif}
			
			(L.L.Infotainment_Boot) 12 >
			{if}
				(L.L.haltewunsch) !
				{if}
					"cabindisplay_left_main.png" (S.$.CD_Display_Left)

					(L.L.Infotainment_Boot) 20 <
					{if}
						"cabindisplay_right_main.png" (S.$.CD_Display_Right)
					{endif}
					(L.L.Infotainment_Boot) 20 >
					(L.L.Infotainment_Boot) 30 < &&
					{if}
						"cabindisplay_right_ad1.png" (S.$.CD_Display_Right)
					{endif}
					(L.L.Infotainment_Boot) 30 >
					(L.L.Infotainment_Boot) 40 < &&
					{if}
						"cabindisplay_right_ad2.png" (S.$.CD_Display_Right)
					{endif}
					(L.L.Infotainment_Boot) 40 >
					{if}
						"cabindisplay_right_ad3.png" (S.$.CD_Display_Right)
					{endif}
					(L.L.Infotainment_Boot) 50 >
					{if}
						20 (S.L.Infotainment_Boot) 
					{endif}
				{else}
					"cabindisplay_left_stop.png" (S.$.CD_Display_Left)
					(L.L.HStop_timer) 0.75 <
					{if}
						"cabindisplay_right_stop.png" (S.$.CD_Display_Right)
					{else}
						"cabindisplay_right_stop2.png" (S.$.CD_Display_Right)
					{endif}
				{endif}
			{endif}

			(L.L.Infotainment_Boot) 0 >
			(L.L.Infotainment_Boot) 1 < &&
			{if}
				"cabindisplay_boot1.png" (S.$.CD_Display_Left) (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 1 >
			(L.L.Infotainment_Boot) 3 < &&
			{if}
				"cabindisplay_boot3.png" (S.$.CD_Display_Left)
				"cabindisplay_boot1.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 3 >
			(L.L.Infotainment_Boot) 4 < &&
			{if}
				"cabindisplay_boot4.png" (S.$.CD_Display_Left)
				"cabindisplay_boot1.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 4 >
			(L.L.Infotainment_Boot) 6 < &&
			{if}
				"cabindisplay_boot5.png" (S.$.CD_Display_Left)
				"cabindisplay_boot1.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 6 >
			(L.L.Infotainment_Boot) 9 < &&
			{if}
				"cabindisplay_boot1.png" (S.$.CD_Display_Left)
				"cabindisplay_boot1.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 9 >
			(L.L.Infotainment_Boot) 9.2 < &&
			{if}
				"cabindisplay_boot2.png" (S.$.CD_Display_Left)
				"cabindisplay_boot2.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 9.2 >
			(L.L.Infotainment_Boot) 10 < &&
			{if}
				"cabindisplay_boot1.png" (S.$.CD_Display_Left)
				"cabindisplay_boot1.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 10 >
			(L.L.Infotainment_Boot) 12 < &&
			{if}
				"cabindisplay_boot2.png" (S.$.CD_Display_Left)
				"cabindisplay_boot2.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 12 >
			(L.L.Infotainment_Boot) 14 < &&
			{if}
				"cabindisplay_left_boot.png" (S.$.CD_Display_Left)
				"cabindisplay_right_boot.png" (S.$.CD_Display_Right)
			{endif}
			(L.L.Infotainment_Boot) 14 >
			(L.L.Infotainment_Boot) 15 < &&
			{if}
				"A5-V78.4 - F7" (S.$.CD_TimeDate)
			{endif}
			(L.L.Infotainment_Boot) 15 >
			{if}
				(L.S.Day) "02" $IntToStrEnh "." $+ (L.S.Month) "02" $IntToStrEnh $+ "." $+ (L.S.Year) $IntToStr $+
				" " $+ (L.$.vdo_panel_time) $+
				(S.$.CD_TimeDate)
			{endif}
		{else}
			"cabindisplay_off.png" (S.$.CD_Display_Left) (S.$.CD_Display_Right)
			0 (S.L.Infotainment_Boot) 

			" " (S.$.CD_TimeDate)
		{endif}
{end}
