<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <variable name="ColorHighlight">
        <value condition="!IsEmpty(Skin.String(focuscolor.name))">$INFO[Skin.String(focuscolor.name)]</value>
        <value>Highlight</value>
    </variable>
    <variable name="DefSettingsOnRight">
        <value condition="Window.IsVisible(AppearanceSettings)">ReplaceWindow(VideosSettings)</value>
        <value condition="Window.IsVisible(VideosSettings)">ReplaceWindow(MusicSettings)</value>
        <value condition="Window.IsVisible(MusicSettings)">ReplaceWindow(PicturesSettings)</value>
        <value condition="Window.IsVisible(PicturesSettings)">ReplaceWindow(WeatherSettings)</value>
        <value condition="Window.IsVisible(WeatherSettings)">ReplaceWindow(NetworkSettings)</value>
        <value condition="Window.IsVisible(NetworkSettings)">ReplaceWindow(SystemSettings)</value>
        <value condition="Window.IsVisible(SystemSettings)">ReplaceWindow(PvrSettings)</value>
        <value condition="Window.IsVisible(PvrSettings)">ReplaceWindow(SkinSettings)</value>
        <value condition="Window.IsVisible(SkinSettings)">ReplaceWindow(AppearanceSettings)</value>
    </variable>
    
    <variable name="DefSettingsOnLeft">
        <value condition="Window.IsVisible(AppearanceSettings)">ReplaceWindow(SkinSettings)</value>
        <value condition="Window.IsVisible(VideosSettings)">ReplaceWindow(AppearanceSettings)</value>
        <value condition="Window.IsVisible(MusicSettings)">ReplaceWindow(VideosSettings)</value>
        <value condition="Window.IsVisible(PicturesSettings)">ReplaceWindow(MusicSettings)</value>
        <value condition="Window.IsVisible(WeatherSettings)">ReplaceWindow(PicturesSettings)</value>
        <value condition="Window.IsVisible(NetworkSettings)">ReplaceWindow(WeatherSettings)</value>
        <value condition="Window.IsVisible(SystemSettings)">ReplaceWindow(NetworkSettings)</value>
        <value condition="Window.IsVisible(PvrSettings)">ReplaceWindow(SystemSettings)</value>
        <value condition="Window.IsVisible(SkinSettings)">ReplaceWindow(PvrSettings)</value>
    </variable>
    
    <variable name="DefWidgetContent">
        <!-- Individual Widget Paths -->
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Playlist)">$INFO[Container(300).ListItem.Property(widgetPlaylist)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RandomMovies)">plugin://service.library.data.provider?type=randommovies&amp;reload=$INFO[Window.Property(randommovies)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RandomEpisodes)">plugin://service.library.data.provider?type=randomepisodes&amp;reload=$INFO[Window.Property(randomepisodes)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecentEpisodes)">plugin://service.library.data.provider?type=recentepisodes&amp;reload=$INFO[Window.Property(recentepisodes)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecentMovies)">plugin://service.library.data.provider?type=recentmovies&amp;reload=$INFO[Window.Property(recentmovies)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecommendedEpisodes)">plugin://service.library.data.provider?type=recommendedepisodes&amp;reload=$INFO[Window.Property(recommendedepisodes)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecommendedMovies)">plugin://service.library.data.provider?type=recommendedmovies&amp;reload=$INFO[Window.Property(recommendedmovies)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Custom1)">$INFO[Skin.String(CustomWidget1)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Custom2)">$INFO[Skin.String(CustomWidget2)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Custom3)">$INFO[Skin.String(CustomWidget3)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Custom4)">$INFO[Skin.String(CustomWidget4)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),TrendingMovies)">plugin://script.extendedinfo?info=trendingmovies</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),TrendingShows)">plugin://script.extendedinfo?info=trendingshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),AiringShows)">plugin://script.extendedinfo?info=airingshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),PremiereShows)">plugin://script.extendedinfo?info=premiereshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),InCinemas)">plugin://script.extendedinfo?info=incinemas</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Upcoming)">plugin://script.extendedinfo?info=upcoming</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),PopularMovies)">plugin://script.extendedinfo?info=popularmovies</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),TopRatedMovies)">plugin://script.extendedinfo?info=topratedmovies</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),PopularTvShows)">plugin://script.extendedinfo?info=populartvshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),TopRatedTvShows)">plugin://script.extendedinfo?info=topratedtvshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),OnAirTvShows)">plugin://script.extendedinfo?info=onairtvshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),AiringTodayTvShows)">plugin://script.extendedinfo?info=airingtodaytvshows</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecentAlbums)">plugin://service.library.data.provider?type=recentalbums&amp;reload=$INFO[Window.Property(recentalbums)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecommendedAlbums)">plugin://service.library.data.provider?type=recommendedalbums&amp;reload=$INFO[Window.Property(recommendedalbums)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RandomAlbums)">plugin://service.library.data.provider?type=randomalbums&amp;reload=$INFO[Window.Property(randomalbums)]</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),RecentlyPlayedAlbums)">musicdb://recentlyplayedalbums/</value>
        <value condition="StringCompare(Container(300).ListItem.Property(widget),Top100Albums)">musicdb://top100/albums/</value>
        <value condition="substring(Container(300).ListItem.Property(widget),Weather,left) + !IsEmpty(Skin.String(weather.fanart))">$INFO[Skin.String(weather.fanart)]$INFO[Window(Weather).Property(Current.FanartCode)]/</value>
        
        <!-- Background -->
        <value condition="!IsEmpty(Container(300).ListItem.Property(Background))">$INFO[Container(300).ListItem.Property(Background)]</value>
        
        <!-- Slideshow -->
        <value condition="!IsEmpty(Skin.String(home.slideshowpath)) + IsEmpty(Container(300).ListItem.Property(widget))">$INFO[Skin.String(home.slideshowpath)]</value>
        
        <!-- Global Widget -->
        <value condition="StringCompare(Window(home).Property(widget),RandomMovies) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=randommovies&amp;reload=$INFO[Window.Property(randommovies)]</value>
        <value condition="StringCompare(Window(home).Property(widget),RandomEpisodes) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=randomepisodes&amp;reload=$INFO[Window.Property(randomepisodes)]</value>
        <value condition="StringCompare(Window(home).Property(widget),RecentEpisodes) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=recentepisodes&amp;reload=$INFO[Window.Property(recentepisodes)]</value>
        <value condition="StringCompare(Window(home).Property(widget),RecentMovies) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=recentmovies&amp;reload=$INFO[Window.Property(recentmovies)]</value>
        <value condition="StringCompare(Window(home).Property(widget),RecommendedEpisodes) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=recommendedepisodes&amp;reload=$INFO[Window.Property(recommendedepisodes)]</value>
        <value condition="StringCompare(Window(home).Property(widget),RecommendedMovies) + IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=recommendedmovies&amp;reload=$INFO[Window.Property(recommendedmovies)]</value>
        <value condition="IsEmpty(Container(300).ListItem.Property(widget))">plugin://service.library.data.provider?type=randommovies&amp;reload=$INFO[Window.Property(randommovies)]</value>
    </variable>
    
    <include name="DefNextAiredWidget">
        <item id="1">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.1.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.1.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.1.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.1.AirTime)]$INFO[Window.Property(NextAired.1.Network), - ,]$INFO[Window.Property(NextAired.1.Status), - ,]$INFO[Window.Property(NextAired.1.Classification),[CR],]$INFO[Window.Property(NextAired.1.Genre), - ,]$INFO[Window.Property(NextAired.1.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.1.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.1.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.1.NextNumber)]$INFO[Window.Property(NextAired.1.NextTitle), ,]$INFO[Window.Property(NextAired.1.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.1.Label))</visible>
        </item>
        <item id="2">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.2.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.2.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.2.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.2.AirTime),, - ]$INFO[Window.Property(NextAired.2.Network)]$INFO[Window.Property(NextAired.2.Status), - ,]$INFO[Window.Property(NextAired.2.Classification),[CR],]$INFO[Window.Property(NextAired.2.Genre), - ,]$INFO[Window.Property(NextAired.2.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.2.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.2.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.2.NextNumber)]$INFO[Window.Property(NextAired.2.NextTitle), ,]$INFO[Window.Property(NextAired.2.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.2.Label))</visible>
        </item>
        <item id="3">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.3.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.3.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.3.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.3.AirTime),, - ]$INFO[Window.Property(NextAired.3.Network)]$INFO[Window.Property(NextAired.3.Status), - ,]$INFO[Window.Property(NextAired.3.Classification),[CR],]$INFO[Window.Property(NextAired.3.Genre), - ,]$INFO[Window.Property(NextAired.3.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.3.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.3.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.3.NextNumber)]$INFO[Window.Property(NextAired.3.NextTitle), ,]$INFO[Window.Property(NextAired.3.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.3.Label))</visible>
        </item>
        <item id="4">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.4.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.4.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.4.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.4.AirTime),, - ]$INFO[Window.Property(NextAired.4.Network)]$INFO[Window.Property(NextAired.4.Status), - ,]$INFO[Window.Property(NextAired.4.Classification),[CR],]$INFO[Window.Property(NextAired.4.Genre), - ,]$INFO[Window.Property(NextAired.4.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.4.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.4.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.4.NextNumber)]$INFO[Window.Property(NextAired.4.NextTitle), ,]$INFO[Window.Property(NextAired.4.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.4.Label))</visible>
        </item>
        <item id="5">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.5.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.5.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.5.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.5.AirTime),, - ]$INFO[Window.Property(NextAired.5.Network)]$INFO[Window.Property(NextAired.5.Status), - ,]$INFO[Window.Property(NextAired.5.Classification),[CR],]$INFO[Window.Property(NextAired.5.Genre), - ,]$INFO[Window.Property(NextAired.5.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.5.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.5.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.5.NextNumber)]$INFO[Window.Property(NextAired.5.NextTitle), ,]$INFO[Window.Property(NextAired.5.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.5.Label))</visible>
        </item>
        <item id="6">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.6.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.6.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.6.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.6.AirTime),, - ]$INFO[Window.Property(NextAired.6.Network)]$INFO[Window.Property(NextAired.6.Status), - ,]$INFO[Window.Property(NextAired.6.Classification),[CR],]$INFO[Window.Property(NextAired.6.Genre), - ,]$INFO[Window.Property(NextAired.6.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.6.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.6.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.6.NextNumber)]$INFO[Window.Property(NextAired.6.NextTitle), ,]$INFO[Window.Property(NextAired.6.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.6.Label))</visible>
        </item>
        <item id="7">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.7.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.7.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.7.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.7.AirTime),, - ]$INFO[Window.Property(NextAired.7.Network)]$INFO[Window.Property(NextAired.7.Status), - ,]$INFO[Window.Property(NextAired.7.Classification),[CR],]$INFO[Window.Property(NextAired.7.Genre), - ,]$INFO[Window.Property(NextAired.7.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.7.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.7.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.7.NextNumber)]$INFO[Window.Property(NextAired.7.NextTitle), ,]$INFO[Window.Property(NextAired.7.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.7.Label))</visible>
        </item>
        <item id="8">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.8.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.8.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.8.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.8.AirTime),, - ]$INFO[Window.Property(NextAired.8.Network)]$INFO[Window.Property(NextAired.8.Status), - ,]$INFO[Window.Property(NextAired.8.Classification),[CR],]$INFO[Window.Property(NextAired.8.Genre), - ,]$INFO[Window.Property(NextAired.8.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.8.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.8.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.8.NextNumber)]$INFO[Window.Property(NextAired.8.NextTitle), ,]$INFO[Window.Property(NextAired.8.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.8.Label))</visible>
        </item>
        <item id="9">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.9.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.9.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.9.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.9.AirTime),, - ]$INFO[Window.Property(NextAired.9.Network)]$INFO[Window.Property(NextAired.9.Status), - ,]$INFO[Window.Property(NextAired.9.Classification),[CR],]$INFO[Window.Property(NextAired.9.Genre), - ,]$INFO[Window.Property(NextAired.9.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.9.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.9.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.9.NextNumber)]$INFO[Window.Property(NextAired.9.NextTitle), ,]$INFO[Window.Property(NextAired.9.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.9.Label))</visible>
        </item>
        <item id="10">
            <onclick>ActivateWindow(Videos,$INFO[Window.Property(NextAired.10.Library)],return)</onclick>
            <property name="Fanart">$INFO[Window.Property(NextAired.10.Art(fanart))]</property>
            <icon>$INFO[Window.Property(NextAired.10.Art(poster))]</icon>
            <property name="Plot">$INFO[Window.Property(NextAired.10.AirTime),, - ]$INFO[Window.Property(NextAired.10.Network)]$INFO[Window.Property(NextAired.10.Status), - ,]$INFO[Window.Property(NextAired.10.Classification),[CR],]$INFO[Window.Property(NextAired.10.Genre), - ,]$INFO[Window.Property(NextAired.10.Runtime),[CR], $LOCALIZE[12391]]</property>
            <property name="Logo">$INFO[Window.Property(NextAired.10.Art(clearlogo))]</property>
            <label>$INFO[Window.Property(NextAired.10.Label)]</label>
            <label2>$INFO[Window.Property(NextAired.10.NextNumber)]$INFO[Window.Property(NextAired.10.NextTitle), ,]$INFO[Window.Property(NextAired.10.NextDate), • ,]</label2>
            <visible>StringCompare(Container(300).ListItem.Property(widget),NextAired) + !IsEmpty(Window.Property(NextAired.10.Label))</visible>
        </item>
    </include>
    <include name="DefFavouritesWidget">
        <item id="11" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.1.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.1.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.1.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.1.path)]</onclick>
        </item>
        <item id="12" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.2.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.2.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.2.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.2.path)]</onclick>
        </item>
        <item id="13" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.3.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.3.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.3.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.3.path)]</onclick>
        </item>
        <item id="14" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.4.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.4.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.4.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.4.path)]</onclick>
        </item>
        <item id="15" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.5.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.5.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.5.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.5.path)]</onclick>
        </item>
        <item id="16" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.6.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.6.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.6.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.6.path)]</onclick>
        </item>
        <item id="17" description="AutoFavourite">
            <visible>StringCompare(Container(300).ListItem.Property(widget),Favourites) + !IsEmpty(Window(Home).Property(favourite.7.path))</visible>
            <label>$INFO[Window(Home).Property(favourite.7.name)]</label>
            <icon>$INFO[Window(Home).Property(favourite.7.thumb)]</icon>
            <property name="ItemType">$LOCALIZE[1036]</property>
            <onclick>$INFO[Window(Home).Property(favourite.7.path)]</onclick>
        </item>
    </include>
    
    
    <include name="DefWidgetSelector">
        <align>center</align>
        <aligny>center</aligny>
        <width>293</width>
        <onclick>SetFocus(301)</onclick>
        <top>0</top>
        <height>64</height>
        <centerleft>50%</centerleft>
        <textcolor>Dark3</textcolor>
        <focusedcolor>Dark1</focusedcolor>
        <font>WidgetSelector</font>
        <texturefocus>noop</texturefocus>
    </include>
    
    <include name="DefDialogButtons">
        <width>300</width>
        <font>Button</font>
        <textcolor>Black70</textcolor>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</texturefocus>
    </include>

    <include name="DefInfoButtons">
        <font>Button</font>
        <textcolor>Dark2</textcolor>
        <width>313</width>
        <height>68</height>
        <onfocus>ClearProperty(content)</onfocus>
        <texturenofocus colordiffuse="Dark4" border="5">common/box.png</texturenofocus>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</texturefocus>
        <alttexturenofocus colordiffuse="Dark4" border="5">common/box.png</alttexturenofocus>
        <alttexturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</alttexturefocus>
    </include>
    
    <include name="DefDialogInfoPanel">
        <include>Animation.FadeIn.Slide</include>
        <include>Animation.FadeOut</include>
        <centerleft>50%</centerleft>
        <posy>120</posy>
        <width>1320</width>
        <height>840</height>
        <control type="image">
            <left>-24</left>
            <right>-24</right>
            <top>-24</top>
            <bottom>-24</bottom>
            <bordertexture border="32">common/shadow-24.png</bordertexture>
            <bordersize>24</bordersize>
            <texture colordiffuse="White100" border="16">common/box.png</texture>
        </control>
    </include>
    
    <include name="DefDialogInfoHeader">
        <left>30</left>
        <right>320</right>
        <posy>18</posy>
        <font>MediumBold</font>
        <align>left</align>
        <textcolor>Black70</textcolor>
        <textureradiofocus colordiffuse="Black70">buttons/radio-on.png</textureradiofocus>
        <textureradionofocus colordiffuse="Black30">buttons/radio-off.png</textureradionofocus>
    </include>
    
    <include name="DefDialogHeader">
        <description>header label</description>
        <centerleft>50%</centerleft>
        <posy>15</posy>
        <width>990</width>
        <align>center</align>
        <font>MediumBold</font>
        <textcolor>Black70</textcolor>
    </include>
    
    <include name="DefDialogBackground">
        <include>Animation.ZoomIn</include>
        <centerleft>50%</centerleft>
        <centertop>50%</centertop>
        <height>900</height>
        <width>1080</width>
        <control type="image">
            <width>1080</width>
            <height>900</height>
            <texture border="16" colordiffuse="White100">common/rounded-shadow8.png</texture>
        </control>
    </include>
    
    <include name="DefDialogOK">
        <centerleft>50%</centerleft>
        <posy>360</posy>
        <width>900</width>
        <include>Animation.FadeIn.Slide</include>
        <control type="image">
            <posx>-30</posx>
            <posy>-30</posy>
            <width>960</width>
            <height>444</height>
            <texture border="16" colordiffuse="White100">common/rounded-shadow8.png</texture>
        </control>

        <control type="image">
            <left>-46</left>
            <right>-46</right>
            <top>-46</top>
            <height>476</height>
            <bordertexture border="32">common/shadow-24.png</bordertexture>
            <bordersize>24</bordersize>
            <texture colordiffuse="White100" border="16">common/box.png</texture>
        </control>

        <control type="label" id="1">
            <description>Heading</description>
            <left>15</left>
            <right>15</right>
            <font>MediumBold</font>
            <align>left</align>
        </control>

        <control type="textbox" id="9">
            <description>Line 1</description>
            <left>15</left>
            <right>15</right>
            <posy>108</posy>
            <height>300</height>
        </control>

        
    </include>
    
    <include name="DefPVRDialogButton">
        <width>600</width>
        <height>66</height>
        <align>left</align>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</texturefocus>
        <radioposx>540</radioposx>
        <textcolor>Black70</textcolor>
    </include>
    
    <include name="DefKeyboardKeys">
        <width>85</width>
        <height>75</height>
        <texturenofocus border="5" colordiffuse="Black12">common/box.png</texturenofocus>
        <texturefocus border="5" colordiffuse="$VAR[ColorHighlight]">common/box.png</texturefocus>
        <textoffsetx>0</textoffsetx>
        <textcolor>Black70</textcolor>
        <focusedcolor>Selected</focusedcolor>
        <radioposx>320</radioposx>
        <radioposy>22</radioposy>
    </include>
    <include name="DefSideBrowserButton">
        <radioposx>400</radioposx>
        <width>100%</width>
        <height>64</height>
        <font>Tiny</font>
        <textcolor>Dark2</textcolor>
        <focusedcolor>Light1</focusedcolor>
        <alttexturefocus colordiffuse="Dark1" border="16">common/box.png</alttexturefocus>
        <texturefocus colordiffuse="Dark1" border="16">common/box.png</texturefocus>
    </include>
    <include name="DefContextButton">
        <radioposx>400</radioposx>
        <width>450</width>
        <height>70</height>
        <font>Tiny</font>
        <textcolor>Black70</textcolor>
        <textureradiofocus colordiffuse="Black70">buttons/radio-on.png</textureradiofocus>
        <textureradionofocus colordiffuse="Black30">buttons/radio-off.png</textureradionofocus>
        <focusedcolor>Selected</focusedcolor>
        <alttexturefocus colordiffuse="$VAR[ColorHighlight]" border="16">common/white.png</alttexturefocus>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="16">common/white.png</texturefocus>
    </include>
    <include name="DefSettingsButton">
        <align>left</align>
        <font>Small</font>
        <textcolor>PanelWhite100</textcolor>
        <disabledcolor>PanelWhite12</disabledcolor>
        <height>70</height>
        <textureup flipy="true" colordiffuse="PanelWhite30">buttons/spin-down.png</textureup>
        <texturedown colordiffuse="PanelWhite30">buttons/spin-down.png</texturedown>
        <textureupfocus flipy="true" colordiffuse="PanelWhite100">buttons/spin-down.png</textureupfocus>
        <texturedownfocus colordiffuse="PanelWhite100">buttons/spin-down.png</texturedownfocus>
        <textureradiofocus colordiffuse="PanelWhite70">buttons/radio-on.png</textureradiofocus>
        <textureradionofocus colordiffuse="PanelWhite12">buttons/radio-off.png</textureradionofocus>
        <texturefocus colordiffuse="$VAR[ColorHighlight]">common/white.png</texturefocus>
        <alttexturefocus colordiffuse="$VAR[ColorHighlight]">common/white.png</alttexturefocus>
    </include>
    <include name="DefSettingsOKCancelButton">
        <font>Button</font>
        <texturenofocus colordiffuse="White12" border="16">common/white.png</texturenofocus>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="16">common/white.png</texturefocus>
        <height>66</height>
        <width>270</width>
    </include>
    <include name="Def9000GroupList">
        <visible allowhiddenfocus="true">ControlGroup(9000).HasFocus()</visible>
        <onleft>50</onleft>
        <onright>50</onright>
        <onback>50</onback>
        <posx>8</posx>
        <posy>16</posy>
        <width>510</width>
        <height>350</height>
        <itemgap>0</itemgap>
    </include>
    <include name="Def9000SettingsMenu">
        <control type="group">
            <visible>ControlGroup(9000).HasFocus()</visible>
            <include>GlobalOverlay</include>
        </control>
        <control type="group">
            <height>732</height>
            <include>Def9000Background</include>
            <control type="image">
                <description>arrow image</description>
                <centerleft>50%</centerleft>
                <posy>-16</posy>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="White70" flipy="true">common/arrow-small.png</texture>
            </control>
            <control type="image">
                <description>arrow image</description>
                <centerleft>50%</centerleft>
                <posy>732</posy>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="White70" flipy="false">common/arrow-small.png</texture>
            </control>
            <control type="grouplist" id="9000">
                <onleft condition="Window.IsVisible(SettingsCategory.xml)">3</onleft>
                <onleft condition="!Window.IsVisible(SettingsCategory.xml)">9101</onleft>
                <onright condition="Window.IsVisible(SettingsCategory.xml)">5</onright>
                <onright condition="!Window.IsVisible(SettingsCategory.xml)">9101</onright>
                <onback condition="Window.IsVisible(SettingsCategory.xml)">3</onback>
                <onback condition="!Window.IsVisible(SettingsCategory.xml)">9101</onback>
                <height>700</height>
                <include>Def9000GroupList</include>

                <control type="button" id="9001">
                    <onclick>ReplaceWindow(AppearanceSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>480</label>
                </control>
                
                <control type="button" id="9002">
                    <onclick>ReplaceWindow(VideosSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>3</label>
                </control>
                
                <control type="button" id="9003">
                    <onclick>ReplaceWindow(MusicSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>2</label>
                </control>
                
                <control type="button" id="9004">
                    <onclick>ReplaceWindow(AddonBrowser)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>24001</label>
                </control>
                
                <control type="button" id="9005">
                    <onclick>ReplaceWindow(PicturesSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>1</label>
                </control>
                
                <control type="button" id="9006">
                    <onclick>ReplaceWindow(WeatherSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>8</label>
                </control>
                
                <control type="button" id="9007">
                    <onclick>ReplaceWindow(NetworkSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>705</label>
                </control>
                
                <control type="button" id="9008">
                    <onclick>ReplaceWindow(SystemSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>13000</label>
                </control>
                
                <!--<control type="button" id="9009">
                    <onclick>ReplaceWindow(Profiles)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>13200</label>
                </control>-->
                
                <control type="button" id="9010">
                    <onclick>ReplaceWindow(PVRSettings)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>19191</label>
                </control>
                
                <control type="button" id="9011">
                    <onclick>ReplaceWindow(7)</onclick>
                    <onclick>SetFocus(3)</onclick>
                    <include>DefContextButton</include>
                    <label>130</label>
                </control>
                
                <control type="button" id="9012">
                    <onclick>ReplaceWindow(SkinSettings)</onclick>
                    <include>DefContextButton</include>
                    <label>20077</label>
                </control>
            </control>
        </control>
        
    </include>
    <include name="Def9000Arrows">
        <control type="group">
            <control type="image">
                <description>arrow image</description>
                <centerleft>50%</centerleft>
                <posy>-16</posy>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="White70" flipy="true">common/arrow-small.png</texture>
            </control>
            <control type="image">
                <description>arrow image</description>
                <centerleft>50%</centerleft>
                <posy>382</posy>
                <width>16</width>
                <height>16</height>
                <texture colordiffuse="White70" flipy="false">common/arrow-small.png</texture>
            </control>
        </control>
    </include>
    <include name="Def9000Background">
        <visible allowhiddenfocus="true">ControlGroup(9000).HasFocus()</visible>
        <include>Animation.ZoomIn</include>
        <include>Animation.FadeOut</include>
        <top>184</top>
        <centerleft>50%</centerleft>
        <height>382</height>
        <width>466</width>
        
        <control type="image">
            <description>background image</description>
            <posx>0</posx>
            <posy>0</posy>
            <width>466</width>
            <height>100%</height>
            <texture border="16" colordiffuse="White100">common/rounded-shadow8.png</texture>
        </control>
    </include>
    
    
    <include name="Def9000MusicSide">
        <control type="button" id="2">
            <description>View</description>
            <include>DefContextButton</include>
            <align>left</align>
        </control>

        <control type="button" id="3">
            <description>Sort</description>
            <include>DefContextButton</include>
            <align>left</align>
        </control>

        <control type="togglebutton" id="4">
            <description>Ascending</description>
            <include>DefContextButton</include>
            <align>left</align>
            <label>584</label>
            <altlabel>585</altlabel>
        </control>

        <control type="button" id="5">
            <description>Files</description>
            <include>DefContextButton</include>
            <align>left</align>
            <label>744</label>
            <onclick>SetFocus(50)</onclick>
            <visible>Window.IsVisible(MyMusicNav.xml)</visible>
        </control>

        <control type="button" id="7">
            <description>Playlist</description>
            <include>DefContextButton</include>
            <align>left</align>
            <label>136</label>
            <onclick>SetFocus(50)</onclick>
            <visible>Window.IsVisible(MyMusicSongs.xml)</visible>
            <visible>!stringcompare(Container.FolderPath,special://musicplaylists/)</visible>
        </control>
        
        <control type="button" id="9098">
            <description>Now Playing</description>
            <include>DefContextButton</include>
            <label>13350</label>
            <align>left</align>
            <onclick>ActivateWindow(MusicPlaylist)</onclick>
            <visible>IntegerGreaterThan(Playlist.Length(music),1)</visible>
        </control>

        
    </include>
    
    <include name="DefDialogSelectManual6">
        <posx>738</posx>
        <posy>120</posy>
        <width>300</width>
        <height>70</height>
        <align>center</align>
        <label>368</label>
        <onleft>3</onleft>
        <onright>3</onright>
        <onup>3</onup>
        <ondown>3</ondown>
        <font>Button</font>
        <textcolor>Black70</textcolor>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</texturefocus>    
    </include>
    <include name="DefDialogSelectManual3">
        <description>Manual</description>
        <right>18</right>
        <posy>18</posy>
        <width>100</width>
        <height>70</height>
        <align>center</align>
        <label>368</label>
        <onleft>3</onleft>
        <onright>3</onright>
        <onup>3</onup>
        <ondown>3</ondown>
        <font>Button</font>
        <textcolor>Black70</textcolor>
        <texturefocus colordiffuse="$VAR[ColorHighlight]" border="5">common/box.png</texturefocus>
        <texturenofocus colordiffuse="Black12" border="5">common/box.png</texturenofocus>
    </include>
    
    <include name="DefVideoInfoCastWithDirector">
        <top>171</top>
        <height>639</height>
    </include>
    <include name="DefVideoInfoCastWithoutDirector">
        <top>100</top>
        <height>710</height>
    </include>
    
    <include name="DefHomeRight520"><right>520</right></include>
    <include name="DefHomeRightSidePad"><right>SidePad</right></include>
    <variable name="DefTVHubWidget">
        <value condition="!IsEmpty(SKin.String(TVHubWidget))">$INFO[Skin.String(TVHubWidget)]</value>
        <value>special://skin/extras/playlists/RandomEpisodes.xsp</value>
    </variable>
    <variable name="DefMovieHubWidget">
        <value condition="!IsEmpty(Skin.String(MovieHubWidget))">$INFO[Skin.String(MovieHubWidget)]</value>
        <value>special://skin/extras/playlists/RandomMovies.xsp</value>
    </variable>

    <variable name="DefDirectorInfoWindowContent">
        <value condition="stringcompare(Window.Property(content),1)">plugin://script.extendedinfo?info=studio&amp;&amp;studio=$INFO[ListItem.Studio]</value>
        <value condition="stringcompare(Window.Property(content),2)">plugin://script.extendedinfo?info=similarmovies&amp;&amp;dbid=$INFO[ListItem.DBID]</value>
        <value>plugin://script.extendedinfo?info=directormovies&amp;&amp;director=$INFO[ListItem.Director]</value>
    </variable>
    
    <variable name="DefDirectorWindowContent">
        <value condition="stringcompare(Window(1103).Property(content),1)">plugin://script.extendedinfo?info=studio&amp;&amp;studio=$INFO[Window(home).Property(ExtStudio)]</value>
        <value condition="stringcompare(Window(1103).Property(content),2)">plugin://script.extendedinfo?info=similarmovies&amp;&amp;dbid=$INFO[Window(home).Property(ExtDBID)]</value>
        <value>plugin://script.extendedinfo?info=directormovies&amp;&amp;director=$INFO[Window(home).Property(ExtDirector)]</value>
    </variable>
    
    <variable name="DefMovieDBMoviesContent">
        <value condition="stringcompare(Window(1104).Property(content),1)">plugin://script.extendedinfo?info=topratedmovies</value>
        <value condition="stringcompare(Window(1104).Property(content),2)">plugin://script.extendedinfo?info=popularmovies</value>
        <value condition="stringcompare(Window(1104).Property(content),3)">plugin://script.extendedinfo?info=upcoming</value>
        <value>plugin://script.extendedinfo?info=incinemas</value>
    </variable>
    
    <variable name="DefMovieDBEpisodesContent">
        <value condition="stringcompare(Window(1105).Property(content),1)">plugin://script.extendedinfo?info=topratedtvshows</value>
        <value condition="stringcompare(Window(1105).Property(content),2)">plugin://script.extendedinfo?info=populartvshows</value>
        <value condition="stringcompare(Window(1105).Property(content),3)">plugin://script.extendedinfo?info=onairtvshows</value>
        <value>plugin://script.extendedinfo?info=airingtodaytvshows</value>
    </variable>


    <include name="DefExtendedInfoList">
        <bottom>80</bottom>
        <left>530</left>
        <width>1320</width>
        <height>670</height>
        <include>Animation.FadeIn.Slide</include>
        <ondown>ClearProperty(content)</ondown>
        <ondown>9000</ondown>
        <orientation>horizontal</orientation>
        <preloaditems>2</preloaditems>
        <scrolltime tween="quadratic">400</scrolltime>
        <itemlayout height="425" width="220">
            <include>DefExtendedInfoItemContent</include>
        </itemlayout>
        <focusedlayout height="425" width="220">
            <include>DefExtendedInfoFocusContent</include>
        </focusedlayout>
    </include>

    <include name="DefExtendedInfoListWide">
        <bottom>80</bottom>
        <left>530</left>
        <width>1320</width>
        <height>670</height>
        <include>Animation.FadeIn.Slide</include>
        <ondown>ClearProperty(content)</ondown>
        <ondown>9000</ondown>
        <orientation>horizontal</orientation>
        <preloaditems>2</preloaditems>
        <scrolltime tween="quadratic">400</scrolltime>
        <itemlayout height="425" width="660">
            <include>DefExtendedInfoItemContent</include>
        </itemlayout>
        <focusedlayout height="425" width="660">
            <include>DefExtendedInfoFocusContent</include>
        </focusedlayout>
    </include>

    <include name="DefExtendedInfoItemContent">
        <control type="image">
            <left>0</left>
            <top>0</top>
            <right>0</right>
            <bottom>100</bottom>
            <texture border="10">common/nofocus-shadow10.png</texture>
        </control>

        <control type="image">
            <left>10</left>
            <top>10</top>
            <right>10</right>
            <bottom>110</bottom>
            <aspectratio scalediffuse="false">scale</aspectratio>
            <texture diffuse="diffuse/wall.png" background="true" fallback="DefaultPicture.png">$INFO[ListItem.Icon]</texture>
        </control>
     
        <control type="image">
            <left>10</left>
            <right>10</right>
            <bottom>0</bottom>
            <height>86</height>
            <texture colordiffuse="Dark4" border="5">common/box.png</texture>
        </control>
        <control type="textbox">
            <left>20</left>
            <right>20</right>
            <centerbottom>43</centerbottom>
            <height>64</height>
            <font>Mini</font>
            <autoscroll>false</autoscroll>
            <textcolor>Dark2</textcolor>
            <label>$INFO[ListItem.Label]</label>
            <aligny>top</aligny>
            <align>center</align>
        </control>
    </include>

    <include name="DefExtendedInfoFocusContent">
        <control type="image">
            <left>0</left>
            <top>0</top>
            <right>0</right>
            <bottom>100</bottom>
            <texture border="10">common/nofocus-shadow10.png</texture>
        </control>
        <control type="image">
            <left>10</left>
            <top>10</top>
            <right>10</right>
            <bottom>110</bottom>
            <aspectratio scalediffuse="false">scale</aspectratio>
            <texture diffuse="diffuse/wall.png" background="true" fallback="DefaultPicture.png">$INFO[ListItem.Icon]</texture>
        </control>
        <control type="image">
            <centerleft>50%</centerleft>
            <centertop>160</centertop>
            <width>128</width>
            <height>128</height>
            <aspectratio>keep</aspectratio>
            <texture colordiffuse="88ffffff">common/playring.png</texture>
            <animation type="Focus">
                <effect type="zoom" start="90" end="100" time="150" tween="sine" easing="inout" center="auto" />
                <effect type="fade" start="0" end="100" time="150" tween="sine" easing="in" />
            </animation>
            <animation type="Unfocus">
                <effect type="zoom" start="100" end="90" time="150" tween="sine" easing="inout" center="auto" />
                <effect type="fade" start="100" end="0" time="150" tween="sine" easing="out" />
            </animation>
            <visible>!substring(ListItem.Path,script.extendedinfo)</visible>
        </control>
        <control type="group">
            <control type="image">
                <left>10</left>
                <right>10</right>
                <bottom>0</bottom>
                <height>86</height>
                <texture colordiffuse="Highlight" border="5">common/box.png</texture>
            </control>
            <control type="textbox">
                <left>20</left>
                <right>20</right>
                <centerbottom>43</centerbottom>
                <height>64</height>
                <font>Mini</font>
                <scroll>true</scroll>
                <textcolor>PanelWhite100</textcolor>
                <label>$INFO[ListItem.Label]</label>
                <aligny>top</aligny>
                <align>center</align>
            </control>
        </control>
    </include>
</includes>
