<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol always="true">20</defaultcontrol>
	<backgroundcolor>bgcolor</backgroundcolor>
	<onload>RunScript(script.skinshortcuts,type=buildxml&amp;mode=single&amp;options=clonewidgets&amp;mainmenuID=20)</onload>
	<onload>ClearProperty(TMDBSearch,Home)</onload>
	<onload>ClearProperty(YouTubeSearch,Home)</onload>
	<onload>ClearProperty(AddonsSearch,Home)</onload>
	<onload>Skin.Reset(TMDBSearchString)</onload>
	<onload>Skin.Reset(TMDBSearchType)</onload>
	<onload>Skin.Reset(YouTubeSearchString)</onload>
	<onload>Skin.Reset(AddonsSearchString)</onload>
	<onload condition="System.HasAddon(plugin.video.themoviedb.helper)">Skin.SetBool(TMDbHelper.Service)</onload>
	<onload condition="System.HasAddon(plugin.video.themoviedb.helper)">SetProperty(TMDbHelper.WidgetContainer,25,Home)</onload>
	<onload condition="!System.HasAddon(resource.images.weathericons.outline) + !String.IsEmpty(Weather.Plugin)">InstallAddon(resource.images.weathericons.outline)</onload>
	<onload condition="System.HasAddon(service.smartish.widgets)">Skin.SetBool(enable.smartish.widgets)</onload>
	<onload condition="!System.HasAddon(script.skinshortcuts)">InstallAddon(script.skinshortcuts)</onload>
	<onload condition="System.HasAddon(script.artistslideshow)">RunScript(script.artistslideshow, daemon=True)</onload>
	<onunload>ClearProperty(TMDbHelper.WidgetContainer,Home)</onunload>
	<animation effect="fade" start="0" end="100" time="1000" tween="quadratic" condition="!String.IsEmpty(Window(Home).Property(SmoothStart))">WindowOpen</animation>
	<controls>
		<include>BackgroundItems</include>
		<control type="group">
			<include>InfoDialogsVisible_ZoomAnimation</include>
			<include>HomeWidgets_Lists</include>
			<include>HomeMenuWraplist</include>
			<include>HomeSubMenus</include>
			<include>HomeMenuExtraInfo</include>
			<include>CommonDialogsFadeOutBG</include>
			<include>HomeWidgets_ContentInfo</include>
			<include>TopHomeMenu</include>
			<include>CommonWeatherAndClock</include>
		</control>
		<include>HomeNowPlaying</include>
		<include>DebugInfo</include>
		<include>DebugWidgets</include>
		<include content="IamBusyAnimation">
			<param name="label" value="$LOCALIZE[31225]"/>
			<param name="visible_1" value="Integer.IsEqual(Container(20).NumItems,0) | Container(20).IsUpdating"/>
			<param name="include" value="FanartFade2"/>
		</include>
	</controls>
</window>
