<?xml version="1.0" encoding="UTF-8"?>
<!-- Foundation -->
<window>
    <defaultcontrol always="true">9315</defaultcontrol>
    <onload>SetProperty(SkinInitStarted,1,home)</onload>
    <controls>
        <control type="image" description="Background">
            <include>Dimensions_Fullscreen</include>
            <texture colordiffuse="Background">common/bg.jpg</texture>
            <animation effect="fade" start="100" end="0" time="500" tween="quadratic">WindowClose</animation>
            <visible>IsEmpty(Skin.String(StartupPlaylist))</visible>
        </control>
        <control type="button" id="9315">
            <visible allowhiddenfocus="true">false</visible>
            <onfocus condition="System.HasAddon(script.skin.info.service)">RunScript(script.skin.info.service)</onfocus>
            <onfocus condition="IsEmpty(Window(home).Property(SkinInitStarted)) + !IsEmpty(Skin.String(StartupPlaylist))">PlayMedia($ESCINFO[Skin.String(StartupPlaylist)])</onfocus>
            <!-- <onfocus condition="System.HasAddon(script.tv.show.next.aired) + Skin.HasSetting(NextAired.Update) + Library.HasContent(tvshows)">RunScript(script.tv.show.next.aired,silent=True)</onfocus> -->
            <onfocus condition="!Player.HasVideo + !IsEmpty(Skin.String(StartupPlaylist))">ReplaceWindow(Home)</onfocus>
            <onfocus condition="IsEmpty(Skin.String(StartupPlaylist))">AlarmClock(GoHome,ReplaceWindow(home),00:01,silent,false)</onfocus>
        </control>
        <control type="label">
            <description>Loading</description>
            <width>100%</width>
            <height>100%</height>
            <align>center</align>
            <aligny>center</aligny>
            <label>Arctic [COLOR=$VAR[ColorHighlight]]Zephyr[/COLOR]</label>
            <font>EpisodeNumber</font>
            <textcolor>Dark1</textcolor>
            <animation effect="fade" start="100" end="0" time="500" tween="quadratic">WindowClose</animation>
            <visible>IsEmpty(Skin.String(StartupPlaylist))</visible>
        </control>
    </controls>
</window>
