<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window id="0">
	<defaultcontrol always="true">300</defaultcontrol>
	<allowoverlay>no</allowoverlay>
	<onload>SetProperty(cfa_ignore_set,True,home)</onload>
	<onload>RunScript(script.favourites)</onload>
	<onload condition="System.HasAddon(service.smartish.widgets)">Skin.SetBool(enable.smartish.widgets)</onload>
	<onload>RunScript(script.skinshortcuts,type=buildxml&amp;mainmenuID=300&amp;group=mainmenu)</onload>
	<onload condition="!Skin.String(SkinHelper.RandomFanartDelay)">Skin.SetString(SkinHelper.RandomFanartDelay,15)</onload>
	<onload condition="IsEmpty(Skin.String(border.image))">Skin.SetString(border.image,9)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetString(SkinHelper.ShowInfoAtPlaybackStart, 0)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(SmartShortcuts.playlists)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(SmartShortcuts.emby)</onload>
	<onload condition="!Skin.HasSetting(startup.init) + System.HasAddon(plugin.video.plexbmc)">Skin.SetBool(SmartShortcuts.plex)</onload>
	<onload condition="!Skin.HasSetting(startup.init) + System.HasAddon(plugin.video.netflix)">Skin.SetBool(SmartShortcuts.netflix)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(SkinHelper.EnableExtraFanart)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(home.blur)</onload>
	<onload>Skin.SetBool(SkinHelper.EnablePVRThumbs)</onload>
	<onload condition="IsEmpty(Skin.String(RatingCountry))">Skin.SetString(RatingCountry,UK)</onload>
	<onload condition="!Skin.HasSetting(startup.init)">Skin.SetBool(startup.init)</onload>
	<onload condition="!Skin.String(SkinHelper.SpinnerTexturePath)">Skin.SetString(SkinHelper.SpinnerTexturePath,special://skin/extras/busy_spinners/eunique.gif)</onload>
	<onload>ClearProperty(SkinHelper.ListItemThumb,home)</onload>
	<menucontrol>900</menucontrol>
	<controls>
		<include condition="!Skin.HasSetting(lights.out)">GlobalBackground</include>
		<include condition="!Skin.HasSetting(lights.out)">GlobalOverlay</include>
		<control type="group">
			<animation type="Conditional" condition="System.IdleTime(45) + Skin.HasSetting(home.fade)" reversible="false">
				<!-- Broken Fade -->
				<effect type="fade" start="100" end="0" time="3500" tween="quadratic"/>
				<effect type="zoom" start="100" end="90" time="750" tween="elastic"/>
				<effect type="rotate" end="-1" time="1900" tween="elastic"/>
			</animation>
			<include condition="Skin.String(home.vertical,3)">HomeVerticalMenu3</include>
			<include condition="Skin.String(home.vertical,1)">HomeVerticalMenu</include>
			<include condition="Skin.String(home.vertical,2)">HomeEmbyColumn</include>
			<include>Furniture_NowPlaying</include>
			<include condition="!Skin.String(home.vertical,1) + !Skin.String(home.vertical,2) + !Skin.String(home.vertical,3)">HomeEmbyRow</include>
			<include condition="!Skin.String(home.vertical,1) + !Skin.HasSetting(home.vertical.widgets) + !Skin.String(home.vertical,3)">HomeEmbyWidgetInfo</include>
			<include condition="!Skin.String(home.vertical,1) + Skin.HasSetting(home.vertical.widgets) + !Skin.String(home.vertical,3)">HomeVerticalWidgets</include>
			<include condition="!Skin.String(home.vertical,1) + !Skin.String(home.vertical,3)">HomeEmbySubMenu</include>
			<include>Furniture_EmbyClock</include>
			<include>Furniture_HeaderEmby</include>
			<include condition="Skin.HasSetting(fags.out)">CerberosSmoke</include>
			<control type="button" id="900">
				<onfocus>RunScript(script.skinshortcuts,type=manage&amp;group=mainmenu)</onfocus>
			</control>
		</control>
	</controls>
</window>