<?xml version="1.0" encoding="UTF-8"?>
<timers>

	<timer>
		<name>AutoplayTrailer3</name>
		<start reset="true">!System.IdleTime(60) + System.IdleTime(3) + Skin.HasSetting(EnableAutoPlayTrailer) + String.IsEqual(Skin.String(AutoplayTrailerDelay),03) + !VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes) + !Control.HasFocus(20) + !ControlGroup(9000).HasFocus + !Control.HasFocus(9444) + !Control.HasFocus(9555) + !String.IsEqual(Window(Home).Property(LastPlayedTrailer),ListItem.DBID) + [String.IsEqual(ListItem.Property(widgetType),movies) | String.IsEqual(ListItem.Property(widgetType),tvshows) | String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | Container.Content(movies) | Container.Content(tvshows)] + ![Window.IsActive(MovieInformation) | Window.IsActive(ShutdownMenu) | Window.IsActive(ContextMenu)] + !System.HasActiveModalDialog</start>
		<stop>!System.IdleTime(1)</stop>
		<reset>!System.IdleTime(1)</reset>
		<onstart>SetProperty(LastPlayedTrailer,$INFO[ListItem.DBID],Home)</onstart>
		<onstart>$VAR[AutoplayTrailer]</onstart>
		<!-- <onstop>Stop</onstop> -->
	</timer>
	<timer>
		<name>AutoplayTrailer5</name>
		<start reset="true">!System.IdleTime(60) + System.IdleTime(5) + Skin.HasSetting(EnableAutoPlayTrailer) + String.IsEqual(Skin.String(AutoplayTrailerDelay),05) + !VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes) + !Control.HasFocus(20) + !ControlGroup(9000).HasFocus + !Control.HasFocus(9444) + !Control.HasFocus(9555) + !String.IsEqual(Window(Home).Property(LastPlayedTrailer),ListItem.DBID) + [String.IsEqual(ListItem.Property(widgetType),movies) | String.IsEqual(ListItem.Property(widgetType),tvshows) | String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | Container.Content(movies) | Container.Content(tvshows)] + ![Window.IsActive(MovieInformation) | Window.IsActive(ShutdownMenu) | Window.IsActive(ContextMenu)] + !System.HasActiveModalDialog</start>
		<stop>!System.IdleTime(1)</stop>
		<reset>!System.IdleTime(1)</reset>
		<onstart>SetProperty(LastPlayedTrailer,$INFO[ListItem.DBID],Home)</onstart>
		<onstart>$VAR[AutoplayTrailer]</onstart>
	</timer>
	<timer>
		<name>AutoplayTrailer7</name>
		<start reset="true">!System.IdleTime(60) + System.IdleTime(7) + Skin.HasSetting(EnableAutoPlayTrailer) + String.IsEqual(Skin.String(AutoplayTrailerDelay),07) + !VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes) + !Control.HasFocus(20) + !ControlGroup(9000).HasFocus + !Control.HasFocus(9444) + !Control.HasFocus(9555) + !String.IsEqual(Window(Home).Property(LastPlayedTrailer),ListItem.IMDBNumber) + [String.IsEqual(ListItem.Property(widgetType),movies) | String.IsEqual(ListItem.Property(widgetType),tvshows) | String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | Container.Content(movies) | Container.Content(tvshows)] + ![Window.IsActive(MovieInformation) | Window.IsActive(ShutdownMenu) | Window.IsActive(ContextMenu)] + !System.HasActiveModalDialog</start>
		<stop>!System.IdleTime(1)</stop>
		<reset>!System.IdleTime(1)</reset>
		<onstart>SetProperty(LastPlayedTrailer,$INFO[ListItem.IMDBNumber],Home)</onstart>
		<onstart>$VAR[AutoplayTrailer]</onstart>
	</timer>
	<timer>
		<name>AutoplayTrailer10</name>
		<start reset="true">!System.IdleTime(60) + System.IdleTime(10) + Skin.HasSetting(EnableAutoPlayTrailer) + String.IsEqual(Skin.String(AutoplayTrailerDelay),10) + !VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes) + !Control.HasFocus(20) + !ControlGroup(9000).HasFocus + !Control.HasFocus(9444) + !Control.HasFocus(9555) + !String.IsEqual(Window(Home).Property(LastPlayedTrailer),ListItem.DBID) + [String.IsEqual(ListItem.Property(widgetType),movies) | String.IsEqual(ListItem.Property(widgetType),tvshows) | String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow) | Container.Content(movies) | Container.Content(tvshows)] + ![Window.IsActive(MovieInformation) | Window.IsActive(ShutdownMenu) | Window.IsActive(ContextMenu)] + !System.HasActiveModalDialog</start>
		<stop>!System.IdleTime(1)</stop>
		<reset>!System.IdleTime(1)</reset>
		<onstart>SetProperty(LastPlayedTrailer,$INFO[ListItem.DBID],Home)</onstart>
		<onstart>$VAR[AutoplayTrailer]</onstart>
	</timer>

	<!--
	<timer>
		<name>OSDLayout1</name>
		<start reset="true">Window.IsActive(MusicOSD) + String.IsEqual(Skin.String(FullScreenMusicStyle),1)</start>
		<stop>!Window.IsActive(MusicOSD) + System.IdleTime(1)</stop>
		<onstop>ActivateWindow(MusicOSD)</onstop>
	</timer>
	<timer>
		<name>OSDLayout2</name>
		<start reset="true">Window.IsActive(MusicOSD) + String.IsEqual(Skin.String(FullScreenMusicStyle),2)</start>
		<stop>!Window.IsActive(MusicOSD) + System.IdleTime(1)</stop>
		<onstop>ActivateWindow(MusicOSD)</onstop>
	</timer>
	<timer>
		<name>MusicOSDLayout1</name>
		<start reset="true">Window.IsActive(MusicOSD)</start>
		<reset>Window.IsActive(MusicOSD) + !System.IdleTime(1))</reset>
		<stop>!Window.IsActive(MusicOSD)</stop>
	</timer>
	<timer>
		<name>ShowSetInfo</name>
		<start reset="true">!System.IdleTime(60) + System.IdleTime(5) + Window.IsActive(1140) + ![Window.IsActive(DialogVideoInfo.xml) | Window.IsActive(DialogMusicInfo.xml) | Window.IsActive(DialogAddonInfo.xml) | Window.IsActive(ShutdownMenu) | Window.IsActive(ContextMenu)] + !System.HasActiveModalDialog</start>
		<stop>!System.IdleTime(1)</stop>
		<reset>!System.IdleTime(1)</reset>
		<onstart>SetProperty(TextViewerHeader,$INFO[ListItem.Label],home)</onstart>
		<onstart>SetProperty(TextViewerText,$ESCVAR[GlobalPlotDescription],home)</onstart>
		<onstart>ActivateWindow(1102)</onstart>
	</timer>
	-->
</timers>
