<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <!-- CUSTOM WINDOWS LIST:
    _1114 Custom_Quit * define Quit menu
    _1118 Custom_FullscreenMusic * go straight to visualisation when playing music
    _1119 CustomAddons * browse addons united under the same roof
    _1120 CustomGameSettings * Game Settings from the Game OSD
    _1121 CustomInfoSelect * Select whether to search local library or show extendedinfo for actors/directors; also select delay time in seconds between fanart changes on home
    _1122 Custom_1122_Search * Search without addons, thanks to sualfred and jurialmunkey
    _1123 Custom_1123_PausedOverlay * Overlay to show info when paused, thanks to mikeSiLVO -->
    <include file="script-skinshortcuts-includes.xml"/>
    <include file="script-skinviewtypes-includes.xml"/>
    <include file="Includes_Variables.xml" />
    <include file="Includes_Horizontal_Home.xml" />
    <include file="Includes_Vertical_Home.xml" />
    <include file="Includes_Shelf_Contents.xml" />
    <include file="Includes_ShelfInfo.xml" />
    <include file="Includes_Search.xml" />
    <include file="Includes_CustomSelect.xml" />
    <include file="Includes_DialogSelect.xml" />
    <include file="Includes_Info.xml" />
    <include file="Includes_TVGuide.xml" />
    <include file="Includes_Backgrounds.xml" />
    <include file="Includes_FullScreen.xml" />
    <include file="Includes_NowPlaying.xml" />
    <include file="Includes_ColorPicker.xml" />
    <include file="Includes_VideoLyrics.xml" />
    <include file="Includes_TouchSupport.xml" />
    <include file="Includes_ShelfPopup.xml" />
    <include file="Includes_ViewSettings.xml" />
    <include file="Includes_Animations.xml" />
    <include file="Includes_Media.xml" />
    <include file="Includes_List.xml" />
    <include file="View_50_List.xml" />
    <include file="View_51_Panel.xml" />
    <include file="View_511_Panel2.xml" />
    <include file="View_52_BigList.xml" />
    <include file="View_53_Icons.xml" />
    <include file="View_54_LowList.xml" />
    <include file="View_55_BigPanel.xml" />
    <include file="View_551_BigPanel2.xml" />
    <include file="View_56_Fanart.xml" />
    <include file="View_501_TallList.xml" />
    <include file="View_57_SimpleList.xml" />
    <include file="View_58_Logo.xml" />
    <include file="View_600_Triple.xml" />
    <include file="View_502_RightList.xml" />
    <include file="View_PVR.xml" />

    <include condition="Skin.HasSetting(Smaller.Fonts)" file="Includes_Defaults_Small.xml" />
    <include condition="Skin.HasSetting(Regular.Fonts)" file="Includes_Defaults_Regular.xml" />
    <include condition="Skin.HasSetting(Large.Fonts)" file="Includes_Defaults_Large.xml" />

    <include condition="![Skin.HasSetting(Smaller.Fonts) | Skin.HasSetting(Regular.Fonts) | Skin.HasSetting(Large.Fonts)]" file="Includes_Defaults_Regular.xml" />

    <include name="DimBG">
        <control type="image">
            <width>1920</width>
            <height>1080</height>
            <texture>img/blackdott1.png</texture>
        </control>
    </include>
    <include name="Dimensions_Fullscreen">
        <width>1920</width>
        <height>1080</height>
    </include>

    <include name="ShadowedImage">
        <param name="top">0</param>
        <param name="left">0</param>
        <param name="width"/>
        <param name="height"/>
        <param name="shadowoffset">8</param>
        <param name="shadowcolor">HeavyShadow</param>
        <param name="texture"></param>
        <param name="aspect">keep</param>
        <param name="align">center</param>
        <param name="aligny">center</param>
        <param name="visibility">true</param>
        <definition>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility] + [String.IsEmpty(ListItem.Art(poster1)) | Control.IsVisible(52)]</visible>
                <control type="image" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture colordiffuse="$PARAM[shadowcolor]">$PARAM[texture]</texture>
                    <aspectratio align="$PARAM[align]" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="image" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <texture>$PARAM[texture]</texture>
                    <aspectratio align="$PARAM[align]" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
            </control>
            <control type="group">
                <top>$PARAM[top]</top>
                <left>$PARAM[left]</left>
                <visible>$PARAM[visibility] + !String.IsEmpty(ListItem.Art(poster1)) + !Control.IsVisible(52)</visible>
               <control type="multiimage" description="Icon Shadow">
                    <top>$PARAM[shadowoffset]</top>
                    <left>$PARAM[shadowoffset]</left>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <fadetime>400</fadetime>
                    <imagepath background="true">$PARAM[texture]</imagepath>
                    <colordiffuse>$PARAM[shadowcolor]</colordiffuse>
                    <aspectratio align="$PARAM[align]" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                </control>
                <control type="multiimage" description="Icon">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <imagepath background="true">$PARAM[texture]</imagepath>
                    <aspectratio align="$PARAM[align]" aligny="$PARAM[aligny]">$PARAM[aspect]</aspectratio>
                    <fadetime>400</fadetime>
                </control>
            </control>
        </definition>
    </include>

    <include name="BackgroundOverlay">
        <param name="overlaywidth">1920</param>
        <param name="overlayheight">1120</param>
        <param name="overlaytop">-40</param>
        <param name="overlayleft">0</param>
        <param name="parentid"/>
        <param name="colordiffuse">dfcebe9e</param>
        <param name="texture">OSD/FS_OSDBackground.png</param>
        <definition>
            <control type="image" description="background overlay">
                <visible>Control.IsVisible($PARAM[parentid])</visible>
                <include>VignetteFade</include>
                <left>$PARAM[overlayleft]</left>
                <top>$PARAM[overlaytop]</top>
                <width>$PARAM[overlaywidth]</width>
                <height>$PARAM[overlayheight]</height>
                <texture border="0,30,0,0">$PARAM[texture]</texture>
                <colordiffuse>$VAR[ViewsBGColor]</colordiffuse>
                <!-- <colordiffuse>8FFFFFFF</colordiffuse> -->
            </control>
        </definition>
    </include>

    <include name="BackgroundOverlayVideoInfo">
        <param name="overlaywidth">1920</param>
        <param name="overlayheight">1120</param>
        <param name="overlaytop">-40</param>
        <param name="overlayleft">0</param>
        <param name="parentid"/>
        <param name="colordiffuse">dfcebe9e</param>
        <definition>
            <control type="image" description="background overlay">
                <visible>Control.IsVisible($PARAM[parentid])</visible>
                <include>VignetteFade</include>
                <left>$PARAM[overlayleft]</left>
                <top>$PARAM[overlaytop]</top>
                <width>$PARAM[overlaywidth]</width>
                <height>$PARAM[overlayheight]</height>
                <texture border="0,30,0,0">OSD/FS_OSDBackground.png</texture>
                <colordiffuse>$PARAM[colordiffuse]</colordiffuse>
                <!-- <colordiffuse>8FFFFFFF</colordiffuse> -->
            </control>
        </definition>
    </include>

    <!-- <include name="RatingsOverlayBG">
        <param name="overlaywidth">800</param>
        <param name="overlayheight">140</param>
        <param name="overlaytop">185</param>
        <param name="overlayleft">0</param>
        <param name="parentid"/>
        <param name="colordiffuse">dfcebe9e</param>
        <param name="texture">common/timepanel.png</param>
        <definition>
            <control type="image" description="background overlay">
                <visible>Control.IsVisible($PARAM[parentid])</visible>
                <include>VignetteFade</include>
                <left>$PARAM[overlayleft]</left>
                <top>$PARAM[overlaytop]</top>
                <width>$PARAM[overlaywidth]</width>
                <height>$PARAM[overlayheight]</height>
                <texture flipx="true">$PARAM[texture]</texture>
                <colordiffuse>$VAR[ViewsBGColor]</colordiffuse>
            </control>
        </definition>
    </include> -->

    <!-- <include name="MediaViewstRatings">
        <param name="ratingstop">1010</param>
        <param name="ratingsleft">1180</param>
        <param name="ratingswidth">800</param>
        <definition>
        <control type="grouplist" description="Ratings">
            <top>$PARAM[ratingstop]</top>
            <left>$PARAM[ratingsleft]</left>
            <width>$PARAM[ratingswidth]</width>
            <height>40</height>
            <itemgap>10</itemgap>
            <orientation>horizontal</orientation>
            <align>left</align>
            <visible>Skin.HasSetting(ShowRatingMain)</visible>
            <control type="grouplist" description="IMDb Rating or Main Rating">
                <width>130</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(imdb))</visible>
                <control type="image" description="IMDb logo">
                    <height>40</height>
                    <width>83</width>
                    <aligny>center</aligny>
                    <align>center</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/imdb2.png</texture>
                </control>
                <control type="label" description="IMDb Rating and Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(4460).ListItem.Rating(imdb)]</label>
                    <visible>!String.IsEmpty(Container(4460).ListItem.Rating(imdb))</visible>
                </control>
            </control>
            <control type="grouplist" description="Main Rating for sets">
                <width>180</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <visible>!String.IsEmpty(ListItem.Rating) + String.IsEqual(ListItem.DBType,set)</visible>
                <control type="image" description="IMDb logo">
                    <height>40</height>
                    <width>83</width>
                    <aligny>center</aligny>
                    <align>center</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/imdb2.png</texture>
                </control>
                <control type="label" description="Main Rating and Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[ListItem.Rating]$INFO[ListItem.Votes, (, $LOCALIZE[205])]</label>
                    <visible>!String.IsEmpty(ListItem.Votes) + !String.IsEqual(ListItem.Votes,0)</visible>
                </control>
                <control type="label" description="Main Rating No Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[ListItem.Rating]</label>
                    <visible>[String.IsEmpty(ListItem.Votes) | String.IsEqual(ListItem.Votes,0)]</visible>
                </control>
            </control>
            <control type="grouplist" description="IMDb Top 250 rank">
                <visible>!string.IsEmpty(ListItem.Top250) + !Skin.HasSetting(HideTop250MediaViews)</visible>
                <width>100</width>
                <orientation>horizontal</orientation>
                <itemgap>3</itemgap>
                <control type="label" description="IMDb Top 250">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>[B]$INFO[ListItem.Top250,#][/B]</label>

                </control>
            </control>
            <control type="grouplist" description="RT Critics rating">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(tomatometerallcritics))</visible>
                <width>130</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>3</itemgap>
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>$VAR[RightListRottenFreshLogoVar]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>60</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RightListRottenFreshLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="RT Audience rating">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(tomatometerallaudience))</visible>
                <width>130</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>3</itemgap>
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>$VAR[RightListRottenFreshAudienceLogoVar]</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>60</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RightListRottenFreshAudienceLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="Metacritic rating">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(metacritic))</visible>
                <width>90</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>5</itemgap>
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <texture>badges/ratings/metacritic2.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>50</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RightListMetacriticLabelVar]</label>
                </control>
            </control>
            <control type="grouplist" description="TMDB rating">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(themoviedb))</visible>
                <width>115</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <align>left</align>
                <control type="image" description="TMDB logo">
                    <height>40</height>
                    <width>45</width>
                    <texture>badges/ratings/themoviedb3.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="TMDB Rating">
                    <width>60</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$VAR[RightListTheMovieDBLabelVar]%</label>
                </control>
            </control>
            <control type="grouplist" description="TVDB rating and votes">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(tvdb))</visible>
                <width>100</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <align>left</align>
                <control type="image" description="TVDB logo">
                    <height>40</height>
                    <width>71</width>
                    <aligny>center</aligny>
                    <texture>badges/ratings/tvdb2.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="TVDB Rating">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[Container(4460).ListItem.Rating(tvdb)]</label>
                </control>
            </control>
            <control type="grouplist" description="Trakt rating">
                <visible>!String.IsEmpty(Container(4460).ListItem.Rating(trakt))</visible>
                <width>90</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <align>left</align>
                <control type="image" description="Trakt logo">
                    <height>40</height>
                    <width>40</width>
                    <aligny>center</aligny>
                    <texture>badges/ratings/trakt.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label" description="Trakt Rating">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[Container(4460).ListItem.Rating(trakt)]</label>
                </control>
            </control>
            <control type="grouplist" description="User rating">
                <visible>!String.IsEmpty(ListItem.UserRating) + Skin.HasSetting(ShowRatingUser)</visible>
                <width>80</width>
                <orientation>horizontal</orientation>
                <itemgap>0</itemgap>
                <align>left</align>
                <control type="image" description="User Rating logo">
                    <height>40</height>
                    <width>40</width>
                    <texture>badges/ratings/userrating2.png</texture>
                </control>
                <control type="label" description="User Rating">
                    <width>40</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <align>left</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.UserRating]</label>
                </control>
            </control>
            <control type="grouplist" description="Awards">
                <width>115</width>
                <orientation>horizontal</orientation>
                <itemgap>1</itemgap>
                <align>left</align>
                <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)] |
                         [!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                <visible>!Skin.HasSetting(Disable.OnlineTMDbInfo)</visible>
                <control type="image" description="Oscars logo">
                    <height>40</height>
                    <width>30</width>
                    <aligny>center</aligny>
                    <align>right</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/oscars.png</texture>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)]</visible>
                </control>
                <control type="label" description="Oscar wins">
                    <width>30</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)]</label>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.Oscar_Wins),N/A)]</visible>
                </control>
                <control type="image" description="Golden Globes logo">
                    <height>40</height>
                    <width>30</width>
                    <aligny>center</aligny>
                    <align>right</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/goldenglobes.png</texture>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                </control>
                <control type="label" description="Golden Globe wins">
                    <width>20</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$INFO[Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)]</label>
                    <visible>[!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins)) + !String.IsEqual(Window(Home).Property(TMDbHelper.ListItem.GoldenGlobe_Wins),N/A)]</visible>
                </control>
            </control>
        </control>
        </definition>
    </include> -->

    <include name="Panel_Size">
        <posx>36</posx>
        <posy>54</posy>
        <width>1849</width>
        <height>1010</height>
    </include>

    <include name="Time">
        <control type="group">
            <width>1920</width>
            <control type="group">
                <visible>Window.Is(home) | [!Window.Is(home) + !Skin.HasSetting(Hide.TopBar.Sub)]</visible>
                <control type="image">
                    <include>VisibleFadeEffect</include>
                    <width>1920</width>
                    <height>48</height>
                    <texture colordiffuse="$VAR[TopBarColor]">common/TopStripe.png</texture>
                </control>
                <!-- Sub window title -->
                <control type="label">
                    <visible>!Player.HasMedia</visible>
                    <include>VisibleFadeEffect</include>
                    <posx>30</posx>
                    <width>1200</width>
                    <height>35</height>
                    <font>Details</font>
                    <label>$VAR[GlobalHeadings]</label>
                </control>
                <!-- Icon menu label -->
                <control type="label" id="12002">
                    <posx>20</posx>
                    <height>35</height>
                    <width>370</width>
                    <font>Details</font>
                    <align>left</align>
                    <label>[B]$INFO[Container(300).ListItem.Label][/B]</label>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <visible>[Control.HasFocus(300) | Control.HasFocus(12001) | ControlGroup(700).HasFocus] + $EXP[TopBarIconLabelShouldShow]</visible>
                </control>
                <!-- Icon menu and submenu label -->
                <control type="label" id="12003">
                    <posx>20</posx>
                    <height>35</height>
                    <width>430</width>
                    <font>Details</font>
                    <align>left</align>
                    <label>[B]$INFO[Container(300).ListItem.Label][/B]  •  [B]$INFO[Container(9001).ListItem.Label][/B]</label>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <visible>Control.HasFocus(9001) + $EXP[TopBarIconLabelShouldShow]</visible>
                </control>
                <!-- RSS feed -->
                <control type="rss" description="RSS Feed">
                    <visible>Window.Is(home) + system.getbool(lookandfeel.enablerssfeeds) + !Player.HasMedia + !Control.IsVisible(12002)</visible>
                    <posx>30</posx>
                    <width>1200</width>
                    <height>35</height>
                    <font>Details</font>
                    <urlset>1</urlset>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <titlecolor>White2</titlecolor>
                    <headlinecolor>White2</headlinecolor>
                    <textcolor>$VAR[LabelTextColor]</textcolor>
                </control>
                <!-- Now Playing info -->
                <control type="grouplist">
                    <visible>Player.HasMedia + [!Skin.HasSetting(Hide.TitleBarNowPlaying) | $EXP[widgetsAreShowing]]</visible>
                    <include>VisibleFadeEffect</include>
                    <orientation>horizontal</orientation>
                    <itemgap>10</itemgap>
                    <posx>12</posx>
                    <control type="image" description="Speaker">
                        <width>40</width>
                        <height>35</height>
                        <aspectratio align="center" aligny="center">keep</aspectratio>
                        <texture>$VAR[TopBarMediaIcon]</texture>
                        <colordiffuse>$VAR[HighlightColor]</colordiffuse>
                    </control>
                    <control type="label">
                        <width min="100" max="1000">auto</width>
                        <height>35</height>
                        <font>Details</font>
                        <label>$VAR[TopBarMedia]</label>
                        <scroll>true</scroll>
                    </control>
                    <control type="label">
                        <height>35</height>
                        <font>Details</font>
                        <label>$VAR[TopBarMedia2]</label>
                    </control>
                </control>
                <!-- Right side content for top bar: recording icon, weather, time and date -->
                <control type="grouplist">
                    <left>1100</left>
                    <top>-3</top>
                    <height>40</height>
                    <itemgap>10</itemgap>
                    <orientation>horizontal</orientation>
                    <align>right</align>
                    <width>800</width>
                    <usecontrolcoords>true</usecontrolcoords>
                    <control type="image">
                        <visible>!Skin.HasSetting(Hide.RecordingTitleBar) + [Pvr.IsRecordingTV | Pvr.IsRecordingRadio]</visible>
                        <top>6</top>
                        <width>45</width>
                        <height>32</height>
                        <aspectratio aligny="center">keep</aspectratio>
                        <texture>img/PVR-IsRecording.png</texture>
                    </control>
                    <control type="multiimage">
                        <visible>!Skin.HasSetting(Hide.WeatherTitleBar) + !String.IsEmpty(Weather.Plugin)</visible>
                        <visible>!String.IsEqual(Weather.Location,$LOCALIZE[503])</visible>
                        <top>3</top>
                        <width>45</width>
                        <height>38</height>
                        <aspectratio aligny="center">keep</aspectratio>
                        <timeperimage>70</timeperimage>
                        <fadetime>1</fadetime>
                        <randomize>false</randomize>
                        <imagepath>$VAR[WeatherIconPath]$INFO[Window(Weather).Property(Current.FanartCode)]$VAR[WeatherIconExt]</imagepath>
                    </control>
                    <control type="label">
                        <visible>!Skin.HasSetting(Hide.WeatherTitleBar) + !String.IsEmpty(Weather.Plugin)</visible>
                        <visible>!String.IsEqual(Weather.Location,$LOCALIZE[503])</visible>
                        <width>auto</width>
                        <align>right</align>
                        <aligny>center</aligny>
                        <font>Details</font>
                        <textcolor>$VAR[LabelTextColor]</textcolor>
                        <shadowcolor>ShadowDark</shadowcolor>
                        <label>$INFO[Weather.Temperature][COLOR=$VAR[HighlightColor]]  • [/COLOR]</label>
                        <height>40</height>
                    </control>
                    <control type="label">
                        <width>auto</width>
                        <align>right</align>
                        <aligny>center</aligny>
                        <font>Details</font>
                        <textcolor>$VAR[LabelTextColor]</textcolor>
                        <shadowcolor>ShadowDark</shadowcolor>
                        <label>$VAR[TimeLabel]</label>
                        <height>40</height>
                    </control>
                    <control type="togglebutton">
                        <visible>Skin.HasSetting(ShowMasterLockTitle) + System.HasLocks</visible>
                        <top>7</top>
                        <width>30</width>
                        <height>30</height>
                        <texturefocus>NoMasterNF.png</texturefocus>
                        <texturenofocus>NoMasterNF.png</texturenofocus>
                        <alttexturefocus colordiffuse="$VAR[HighlightColor]">MasterNF.png</alttexturefocus>
                        <alttexturenofocus colordiffuse="$VAR[HighlightColor]">MasterNF.png</alttexturenofocus>
                        <usealttexture>System.IsMaster</usealttexture>
                        <onclick>mastermode</onclick>
                        <aligny>center</aligny>
                    </control>
                </control>
            </control>
        </control>
    </include>

    <include name="SeekbarLabels">
        <posx>40</posx>
        <height>40</height>
        <width>1840</width>
        <align>center</align>
        <font>Details</font>
        <shadowcolor>Black</shadowcolor>
        <animation effect="fade" time="50">VisibleChange</animation>
    </include>

    <include name="KeyboardButtons">
        <align>center</align>
        <aligny>center</aligny>
        <textoffsetx>0</textoffsetx>
        <width>80</width>
        <height>80</height>
        <font>Keyboard</font>
        <focusedcolor>$VAR[FocusedTextColor]</focusedcolor>
        <shadowcolor></shadowcolor>
        <textoffsety>-3</textoffsety>
        <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
        <texturenofocus border="4">img/WhiteRoundedT.png</texturenofocus>
        <alttexturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</alttexturefocus>
        <alttexturenofocus border="4">img/WhiteRoundedT.png</alttexturenofocus>
    </include>

    <include name="Library_Count">
        <control type="group" description="Library stats">
            <animation effect="slide" tween="cubic" easing="inout" start="0,0" end="0,120" time="240">Conditional</animation>
            <visible>!String.IsEmpty(Container(300).ListItem.Property(InfoLine)) + Skin.HasSetting(ShowInfoLine) + !Skin.HasSetting(ShowInfoLineShelf)</visible>
            <control type="image">
                <posx>0</posx>
                <posy>623</posy>
                <width>670</width>
                <height>70</height>
                <texture flipx="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                <visible>!Skin.HasSetting(VerticalHome) + ![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
            </control>
            <control type="label">
                <posx>10</posx>
                <posy>651</posy>
                <height>50</height>
                <width>595</width>
                <font>ListDetails</font>
                <align>left</align>
                <label>$VAR[LibraryStats]</label>
                <shadowcolor>ShadowDark</shadowcolor>
                <visible>!Skin.HasSetting(VerticalHome) + ![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
            </control>
            <control type="image">
                <posx>0</posx>
                <posy>623</posy>
                <width>910</width>
                <height>70</height>
                <texture flipx="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                <visible>!Skin.HasSetting(VerticalHome) + [String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
            </control>
            <control type="label">
                <posx>10</posx>
                <posy>651</posy>
                <height>50</height>
                <width>830</width>
                <font>ListDetails</font>
                <align>left</align>
                <label>$VAR[LibraryStats]</label>
                <shadowcolor>ShadowDark</shadowcolor>
                <visible>!Skin.HasSetting(VerticalHome) + [String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
            </control>

            <control type="group">
                <visible>Skin.HasSetting(VerticalHome) + !Skin.HasSetting(Vertical.IconOnly)</visible>
                <visible>[String.IsEqual(Container(300).ListItem.Property(horizontalWidgetPos),High) + [[Control.HasFocus(300) | Control.HasFocus(9001) | Control.HasFocus(12001)] + [Container(300).ListItem.Property(widgetsHide) | String.IsEmpty(Container(300).ListItem.Property(widgetPath))]]] |
                         [!String.IsEqual(Container(300).ListItem.Property(horizontalWidgetPos),High) + [!Container(300).ListItem.Property(widgetThreeShelvesLarge) |
                          [Container(300).ListItem.Property(widgetThreeShelvesLarge) + Control.HasFocus(300) + Container(300).ListItem.Property(widgetsHide)]]]</visible>
                <control type="image">
                    <posx>436</posx>
                    <posy>40</posy>
                    <width>670</width>
                    <height>90</height>
                    <texture flipx="true" flipy="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                    <visible>![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="label">
                    <posx>446</posx>
                    <posy>34</posy>
                    <height>50</height>
                    <width>595</width>
                    <font>ListDetails</font>
                    <align>left</align>
                    <label>$VAR[LibraryStats]</label>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <visible>![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="image">
                    <posx>436</posx>
                    <posy>40</posy>
                    <width>910</width>
                    <height>90</height>
                    <texture flipx="true" flipy="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                    <visible>[String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="label">
                    <posx>446</posx>
                    <posy>34</posy>
                    <height>50</height>
                    <width>830</width>
                    <font>ListDetails</font>
                    <align>left</align>
                    <label>$VAR[LibraryStats]</label>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <visible>[String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
            </control>
            <control type="group">
                <visible>Skin.HasSetting(VerticalHome) + Skin.HasSetting(Vertical.IconOnly)</visible>
                <visible>[String.IsEqual(Container(300).ListItem.Property(horizontalWidgetPos),High) + [[Control.HasFocus(300) | Control.HasFocus(9001) | Control.HasFocus(12001)] + [Container(300).ListItem.Property(widgetsHide) | String.IsEmpty(Container(300).ListItem.Property(widgetPath))]]] |
                         [!String.IsEqual(Container(300).ListItem.Property(horizontalWidgetPos),High) + [!Container(300).ListItem.Property(widgetThreeShelvesLarge) |
                          [Container(300).ListItem.Property(widgetThreeShelvesLarge) + Control.HasFocus(300) + Container(300).ListItem.Property(widgetsHide)]]]</visible>
                <control type="image">
                    <posx>134</posx>
                    <posy>40</posy>
                    <width>670</width>
                    <height>90</height>
                    <texture flipx="true" flipy="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                    <visible>![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="label">
                    <posx>144</posx>
                    <posy>34</posy>
                    <height>50</height>
                    <width>595</width>
                    <font>ListDetails</font>
                    <align>left</align>
                    <label>$VAR[LibraryStats]</label>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <visible>![String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="image">
                    <posx>134</posx>
                    <posy>40</posy>
                    <width>910</width>
                    <height>90</height>
                    <texture flipx="true" flipy="true" colordiffuse="$VAR[GlowBarsColor]" border="100,0,0,0">common/TimePanel.png</texture>
                    <visible>[String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
                <control type="label">
                    <posx>144</posx>
                    <posy>34</posy>
                    <height>50</height>
                    <width>830</width>
                    <font>ListDetails</font>
                    <align>left</align>
                    <label>$VAR[LibraryStats]</label>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <visible>[String.IsEqual(Container(300).ListItem.Property(InfoLine),movieplaylist) | String.IsEqual(Container(300).ListItem.Property(InfoLine),musicvideoplaylist)]</visible>
                </control>
            </control>
        </control>
    </include>

    <!-- <include name="BG.Defaults">
        <width>1920</width>
        <height>1080</height>
        <timeperimage>9000</timeperimage>
        <randomize>true</randomize>
        <fadetime>400</fadetime>
        <aspectratio>scale</aspectratio>
    </include> -->

    <include name="WeatherItemBG">
        <param name="xoffset" default="0"/>
        <param name="yoffset" default="550"/>
        <param name="imgwidth" default="294"/>
        <param name="delayms" default="0"/>
        <param name="bgimage" default="WeatherSmall.png"/>
        <param name="8day">false</param>
        <definition>
            <control type="image" description="Current">
                <animation type="WindowOpen">
                    <effect type="zoom" start="90" end="100" center="auto" time="200"  delay="$PARAM[delayms]" />
                    <effect type="fade" start="80" end="100" time="200"  delay="$PARAM[delayms]" />
                </animation>
                <animation type="WindowClose">
                    <effect type="zoom" start="100" end="90" center="auto" time="100"  delay="$PARAM[delayms]" />
                    <effect type="fade" start="100" end="0" time="100"  delay="$PARAM[delayms]" />
                </animation>
                <animation effect="slide" start="0,0" end="0,-450" time="200" condition="Skin.HasSetting(Weather8DayForecast) + !$PARAM[8day]">Conditional</animation>
                <posx>$PARAM[xoffset]</posx>
                <posy>$PARAM[yoffset]</posy>
                <width>$PARAM[imgwidth]</width>
                <height>431</height>
                <texture>weather/$PARAM[bgimage]</texture>
                <colordiffuse>FFcebe9e</colordiffuse>
            </control>
        </definition>
    </include>

    <include name="WeatherItem">
        <param name="xoffset" default="0"/>
        <param name="yoffset" default="50"/>
        <param name="dayid"/>
        <definition>
            <control type="group" description="Day">
                <include>WeatherAni$PARAM[dayid]</include>
                <posx>$PARAM[xoffset]</posx>
                <posy>$PARAM[yoffset]</posy>
                <control type="label" description="Day label">
                    <posx>555</posx>
                    <posy>523</posy>
                    <height>60</height>
                    <width>260</width>
                    <font>WeatherTitle</font>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <align>center</align>
                    <label>$INFO[Window.Property(Daily.$PARAM[dayid].LongDay)]</label>
                </control>
                <control type="label" description="High Temp">
                    <posx>540</posx>
                    <posy>600</posy>
                    <height>150</height>
                    <width>140</width>
                    <font>MainMenu</font>
                    <textcolor>Red</textcolor>
                    <align>center</align>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <label>$INFO[Window.Property(Daily.$PARAM[dayid].HighTemperature)]</label>
                </control>
                <control type="label" description="Low temp">
                    <posx>690</posx>
                    <posy>600</posy>
                    <height>150</height>
                    <width>140</width>
                    <font>MainMenu</font>
                    <textcolor>Blue</textcolor>
                    <align>center</align>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <label>$INFO[Window.Property(Daily.$PARAM[dayid].LowTemperature)]</label>
                </control>
                <control type="multiimage" description="Icon">
                    <posx>555</posx>
                    <posy>745</posy>
                    <height>120</height>
                    <width>260</width>
                    <imagepath>$VAR[WeatherIconPath]$INFO[Window.Property(Daily.$PARAM[dayid].FanartCode)]$VAR[WeatherIconExt]</imagepath>
                    <aspectratio>keep</aspectratio>
                    <timeperimage>70</timeperimage>
                    <fadetime>1</fadetime>
                    <randomize>false</randomize>
                </control>
                <control type="label" description="Conditions">
                    <posx>555</posx>
                    <posy>855</posy>
                    <height>60</height>
                    <width>260</width>
                    <align>center</align>
                    <aligny>center</aligny>
                    <shadowcolor>ShadowDark</shadowcolor>
                    <font>font16</font>
                    <wrapmultiline>true</wrapmultiline>
                    <label>$INFO[Window.Property(Daily.$PARAM[dayid].Outlook)]</label>
                </control>
            </control>
        </definition>
    </include>

    <include name="MiniVideoWindow">
        <param name="left" default="60"/>
        <param name="top" default="60"/>
        <param name="height" default="382"/>
        <param name="width" default="860"/>
        <param name="labeltop" default="310"/>
        <param name="itemicon">$INFO[ListItem.Icon]</param>
        <definition>
            <control type="group" description="">
                <include>VisibleFadeEffect</include>
                <left>$PARAM[left]</left>
                <top>$PARAM[top]</top>
                <control type="group" description="Video Window Group">
                    <visible>Player.HasVideo + !Skin.HasSetting(Show_VideoBackground) + !Skin.HasSetting(HidePVRPreview)</visible>
                    <control type="videowindow" description="Current Video">
                        <width>$PARAM[width]</width>
                        <height>$PARAM[height]</height>
                    </control>
                </control>
                <control type="group" description="Icon Group">
                    <visible>!Player.HasVideo | ![Player.HasVideo + !Skin.HasSetting(Show_VideoBackground)] | Skin.HasSetting(HidePVRPreview)</visible>
                    <include content="ShadowedImage">
                        <param name="width">$PARAM[width]</param>
                        <param name="height">$PARAM[height]</param>
                        <param name="texture">$PARAM[itemicon]</param>
                        <param name="aspect">keep</param>
                    </include>
                </control>
            </control>
        </definition>
    </include>

    <include name="SettingsListCommons">
        <param name="showicon">true</param>
        <param name="listwidth">1350</param>
        <param name="listheight">840</param>
        <definition>
            <posx>495</posx>
            <posy>135</posy>
            <width>$PARAM[listwidth]</width>
            <height>$PARAM[listheight]</height>
            <onleft>9000</onleft>
            <scrolltime>280</scrolltime>
            <itemlayout width="$PARAM[listwidth]" height="60">
                <control type="image">
                    <height>60</height>
                    <width>$PARAM[listwidth]</width>
                    <texture border="3">buttons/ButtonNF.png</texture>
                </control>
                <control type="label" description="Main Label">
                    <posx>30</posx>
                    <height>60</height>
                    <width>$PARAM[listwidth]</width>
                    <scroll>false</scroll>
                    <label>$INFO[ListItem.Label]</label>
                </control>
                <control type="label" description="Label 2">
                    <animation effect="slide" start="0,0" end="-60,0" time="0" reversible="true" condition="!String.IsEmpty(ListItem.Icon) + $PARAM[showicon]">Conditional</animation>
                    <right>18</right>
                    <height>60</height>
                    <width>600</width>
                    <font>ListDetails</font>
                    <haspath>true</haspath>
                    <align>right</align>
                    <scroll>true</scroll>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[ListItem.Label2]</label>
                </control>
                <control type="image" description="Icon">
                    <visible>!String.IsEmpty(ListItem.Icon) + $PARAM[showicon]</visible>
                    <right>10</right>
                    <height>60</height>
                    <width>60</width>
                    <aspectratio>keep</aspectratio>
                    <bordersize>6</bordersize>
                    <texture>$INFO[ListItem.Icon]</texture>
                </control>
            </itemlayout>
            <focusedlayout width="$PARAM[listwidth]" height="60">
                <control type="image">
                    <height>60</height>
                    <width>$PARAM[listwidth]</width>
                    <texture border="3" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                </control>
                <control type="label" description="Main Label">
                    <posx>30</posx>
                    <height>60</height>
                    <width>$PARAM[listwidth]</width>
                    <textcolor>$VAR[FocusedTextColor]</textcolor>
                    <shadowcolor></shadowcolor>
                    <label>$INFO[ListItem.Label]</label>
                </control>
                <control type="label" description="Label 2">
                    <animation effect="slide" start="0,0" end="-60,0" time="0" reversible="true" condition="!String.IsEmpty(ListItem.Icon) + $PARAM[showicon]">Conditional</animation>
                    <right>18</right>
                    <height>60</height>
                    <width>600</width>
                    <font>ListDetails</font>
                    <haspath>true</haspath>
                    <align>right</align>
                    <scroll>true</scroll>
                    <textcolor>$VAR[FocusedTextColor]</textcolor>
                    <shadowcolor></shadowcolor>
                    <label>$INFO[ListItem.Label2]</label>
                </control>
                <control type="image" description="Icon">
                    <visible>!String.IsEmpty(ListItem.Icon) + $PARAM[showicon]</visible>
                    <right>10</right>
                    <height>60</height>
                    <width>60</width>
                    <bordersize>6</bordersize>
                    <aspectratio>keep</aspectratio>
                    <texture>$INFO[ListItem.Icon]</texture>
                </control>
            </focusedlayout>
        </definition>
    </include>

    <include name="InstallAddonItem">
        <param name="itemid" />
        <param name="itemlabel" />
        <param name="itemvisibility">true</param>
        <param name="addonpath"/>
        <definition>
            <item id="$PARAM[itemid]">
                <visible>!System.HasAddon($PARAM[addonpath]) | !System.AddonIsEnabled($PARAM[addonpath])</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <onclick condition="!System.AddonIsEnabled($PARAM[addonpath])">EnableAddon($PARAM[addonpath])</onclick>
                <onclick condition="!System.HasAddon($PARAM[addonpath])">InstallAddon($PARAM[addonpath])</onclick>
            </item>
        </definition>
    </include>


    <include name="CustomImageResourceSettingItem">
        <param name="itemid" />
        <param name="itemlabel" />
        <param name="itemlabel2">$LOCALIZE[16018]</param>
        <param name="itemvisibility">true</param>
        <param name="resourcetype"/>
        <definition>
            <item id="$PARAM[itemid]">
                <visible>!String.IsEmpty(Skin.String($PARAM[resourcetype]Resource.path))</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$INFO[Skin.String($PARAM[resourcetype]Resource.name)]</label2>
                <onclick>RunScript(script.image.resource.select,property=$PARAM[resourcetype]Resource&amp;type=resource.images.$PARAM[resourcetype])</onclick>
            </item>
            <item id="$PARAM[itemid]">
                <visible>String.IsEmpty(Skin.String($PARAM[resourcetype]Resource.path))</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$PARAM[itemlabel2]</label2>
                <onclick>RunScript(script.image.resource.select,property=$PARAM[resourcetype]Resource&amp;type=resource.images.$PARAM[resourcetype])</onclick>
            </item>
        </definition>
    </include>

    <include name="YesNoSettingItem">
        <param name="itemid" />
        <param name="optid"/>
        <param name="itemlabel" />
        <param name="itemicon"/>
        <param name="itemvisibility" default="true"/>
        <param name="skinsetting"/>
        <param name="area"/>
        <param name="customonclickYes">false</param>
        <param name="customonclickNo">false</param>
        <param name="onclick2Yes">noop</param>
        <param name="onclick3Yes">noop</param>
        <param name="onclick4Yes">noop</param>
        <param name="onclick2No">noop</param>
        <param name="onclick3No">noop</param>
        <param name="onclick4No">noop</param>
        <definition>
            <item id="$PARAM[itemid]">
                <visible>Skin.HasSetting($PARAM[skinsetting])</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$LOCALIZE[107]</label2>
                <icon>$PARAM[itemicon]</icon>
                <property name="area">$PARAM[area]</property>
                <onclick>Skin.ToggleSetting($PARAM[skinsetting])</onclick>
                <onclick condition="$PARAM[customonclickYes]">$PARAM[onclick2Yes]</onclick>
                <onclick condition="$PARAM[customonclickYes]">$PARAM[onclick3Yes]</onclick>
                <onclick condition="$PARAM[customonclickYes]">$PARAM[onclick4Yes]</onclick>
            </item>
            <item id="$PARAM[itemid]">
                <visible>!Skin.HasSetting($PARAM[skinsetting])</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$LOCALIZE[106]</label2>
                <icon>$PARAM[itemicon]</icon>
                <property name="area">$PARAM[area]</property>
                <onclick>Skin.ToggleSetting($PARAM[skinsetting])</onclick>
                <onclick condition="$PARAM[customonclickNo]">$PARAM[onclick2No]</onclick>
                <onclick condition="$PARAM[customonclickNo]">$PARAM[onclick3No]</onclick>
                <onclick condition="$PARAM[customonclickNo]">$PARAM[onclick4No]</onclick>
            </item>
        </definition>
    </include>

    <include name="YesNoSettingItemAddon">
        <param name="itemid" />
        <param name="itemlabel" />
        <param name="itemicon"/>
        <param name="itemvisibility" default="true"/>
        <param name="skinsetting"/>
        <param name="addonpath"/>
        <definition>
            <item id="$PARAM[itemid]">
                <visible>Skin.HasSetting($PARAM[skinsetting]) + System.AddonIsEnabled($PARAM[addonpath])</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$LOCALIZE[107]</label2>
                <icon>$PARAM[itemicon]</icon>
                <onclick>Skin.ToggleSetting($PARAM[skinsetting])</onclick>
            </item>
            <item id="$PARAM[itemid]">
                <visible>!Skin.HasSetting($PARAM[skinsetting]) | !System.HasAddon($PARAM[addonpath]) | !System.AddonIsEnabled($PARAM[addonpath])</visible>
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$LOCALIZE[106]</label2>
                <icon>$PARAM[itemicon]</icon>
                <onclick condition="!System.HasAddon($PARAM[addonpath])">InstallAddon($PARAM[addonpath])</onclick>
                <onclick condition="System.HasAddon($PARAM[addonpath]) + !System.AddonIsEnabled($PARAM[addonpath])">EnableAddon($PARAM[addonpath])</onclick>
                <onclick condition="System.AddonIsEnabled($PARAM[addonpath])">Skin.ToggleSetting($PARAM[skinsetting])</onclick>
            </item>
        </definition>
    </include>

    <include name="CustomDialogSettingItem">
        <param name="itemid" />
        <param name="itemlabel" />
        <param name="itemlabel2" />
        <param name="itemvisibility" default="true"/>
        <param name="CustomProperty"/>
        <param name="CustomDialog"/>
        <definition>
            <item id="$PARAM[itemid]">
                <visible>$PARAM[itemvisibility]</visible>
                <label>$PARAM[itemlabel]</label>
                <label2>$PARAM[itemlabel2]</label2>
                <onclick>SetProperty($PARAM[CustomProperty],True)</onclick>
                <onclick>ActivateWindow($PARAM[CustomDialog])</onclick>
            </item>
        </definition>
    </include>

    <include name="SubcontentInfoList">
        <param name="subcontent_label1">$INFO[ListItem.Label][COLOR $VAR[HighlightColor]]$INFO[ListItem.Year,  (,)][/COLOR]</param>
        <param name="subcontent_label2">$INFO[ListItem.Label][COLOR $VAR[HighlightColor]]$INFO[ListItem.Year,  (,)][/COLOR]</param>
        <param name="subcontent_path">$VAR[SubcontentPathVar]</param>
        <param name="subcontent_sortby">year</param>
        <param name="subcontent_sortorder">ascending</param>
        <param name="subcontent_visible">true</param>
        <param name="subcontent_image_visible">true</param>
        <param name="subcontent_image_texture">$VAR[Overlay]</param>
        <param name="viewid">50</param>
        <param name="list_id">4100</param>
        <param name="width">500</param>
        <param name="labelwidth">500</param>
        <param name="subinfoheight">430</param>
        <definition>
            <!-- Panel to show set info or artist discography info or album track info -->
            <control type="panel" id="$PARAM[list_id]$PARAM[viewid]">
                <visible>$PARAM[subcontent_visible]</visible>
                <visible>!ListItem.IsParentFolder</visible>
                <orientation>vertical</orientation>
                <height>$PARAM[subinfoheight]</height>
                <focusedlayout height="40" width="$PARAM[width]">
                </focusedlayout>
                <itemlayout height="40" width="$PARAM[width]">
                    <control type="image">
                        <top>5</top>
                        <width>30</width>
                        <height>30</height>
                        <visible>$PARAM[subcontent_image_visible]</visible>
                        <texture>$PARAM[subcontent_image_texture]</texture>
                    </control>
                    <control type="label">
                        <left>40</left>
                        <height>40</height>
                        <width>$PARAM[labelwidth]</width>
                        <aligny>center</aligny>
                        <label>$PARAM[subcontent_label1]</label>
                        <font>ListDetails</font>
                        <scrollspeed>25</scrollspeed>
                        <visible>$PARAM[subcontent_image_visible] + !Skin.HasSetting(Enable.HourMinutes)</visible>
                    </control>
                    <control type="label">
                        <left>40</left>
                        <height>40</height>
                        <width>$PARAM[labelwidth]</width>
                        <aligny>center</aligny>
                        <label>$PARAM[subcontent_label2]</label>
                        <font>ListDetails</font>
                        <scrollspeed>25</scrollspeed>
                        <visible>$PARAM[subcontent_image_visible] + Skin.HasSetting(Enable.HourMinutes)</visible>
                    </control>
                    <control type="label">
                        <left>0</left>
                        <height>40</height>
                        <width>$PARAM[labelwidth]</width>
                        <aligny>center</aligny>
                        <label>$PARAM[subcontent_label1]</label>
                        <font>ListDetails</font>
                        <scrollspeed>25</scrollspeed>
                        <visible>!$PARAM[subcontent_image_visible] + !Skin.HasSetting(Enable.HourMinutes)</visible>
                    </control>
                    <control type="label">
                        <left>0</left>
                        <height>40</height>
                        <width>$PARAM[labelwidth]</width>
                        <aligny>center</aligny>
                        <label>$PARAM[subcontent_label2]</label>
                        <font>ListDetails</font>
                        <scrollspeed>25</scrollspeed>
                        <visible>!$PARAM[subcontent_image_visible] + Skin.HasSetting(Enable.HourMinutes)</visible>
                    </control>
                </itemlayout>
                <content sortby="$PARAM[subcontent_sortby]" sortorder="$PARAM[subcontent_order]">$PARAM[subcontent_path]</content>
            </control>
        </definition>
    </include>

    <!-- Panel Template for all views except Tall List and Big List -->
    <include name="PanelTemplate">
        <param name="viewid">50</param>
        <param name="lowpanel">false</param>
        <param name="top"></param>
        <param name="left">60</param>
        <param name="height">430</param>
        <param name="subinfoheight">400</param>
        <param name="groupheight">610</param>
        <param name="width">870</param>
        <param name="heading"></param>
        <param name="subheading"></param>
        <param name="subheading2"></param>
        <param name="subheading2_visible">false</param>
        <param name="plot">$INFO[ListItem.Plot]</param>
        <param name="plotheight">355</param>
        <param name="plotheightlow">200</param>
        <param name="footer"></param>
        <param name="visibility"></param>
        <param name="showfooter">true</param>
        <param name="showflags">true</param>
        <param name="footertop">920</param>
        <param name="footerheight">155</param>
        <param name="flagitemheight">72</param>
        <param name="flagitemwidth">74</param>
        <param name="nonhdrflagitemheight">80</param>
        <param name="nonhdrflagitemwidth">90</param>
        <param name="lowflagitemheight">50</param>
        <param name="lowflagitemwidth">75</param>
        <param name="nonhdrlowflagitemwidth">80</param>
        <definition>
            <control type="grouplist" id="4000" description="Media Info Panel">
                <include>OpenClose</include>
                <visible>$PARAM[visibility]</visible>
                <visible>[[$EXP[PanelShouldShow] | $EXP[isPVRRecordingsGroups] | $EXP[isPVRTimerRules]] + [Container.Content(files) | Container.Content(videos) | Container.Content() | Container.Content(episodes) |
                         Container.Content(movies) | Container.Content(tvshows) | Container.Content(musicvideos) | Container.Content(seasons)]] |
                         [Container.Content(sets) | Container.Content(addons) | Container.Content(albums) | Container.Content(artists) |
                         Container.Content(images) | Container.Content(games) | Container.Content(songs)]</visible>
                <posx>$PARAM[left]</posx>
                <posy>$PARAM[top]</posy>
                <width>$PARAM[width]</width>
                <height>$PARAM[groupheight]</height>
                <orientation>vertical</orientation>
                <usecontrolcoords>true</usecontrolcoords>
                <itemgap>10</itemgap>
                <control type="label" description="Title Label">
                    <visible>!$PARAM[lowpanel]</visible>
                    <width>$PARAM[width]</width>
                    <height>60</height>
                    <aligny>center</aligny>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <font>font20_title</font>
                    <wrapmultiline>true</wrapmultiline>
                    <label>$PARAM[heading]</label>
                </control>
                <control type="label" description="Title Label">
                    <visible>$PARAM[lowpanel]</visible>
                    <width>$PARAM[width]</width>
                    <height>55</height>
                    <aligny>center</aligny>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <font>font20_title</font>
                    <label>$PARAM[heading]</label>
                    <wrapmultiline>true</wrapmultiline>
                </control>
                <control type="label" description="Subheading">
                    <visible>!$PARAM[lowpanel] + Skin.HasSetting(ShowAudioSub) + !Container.Content(addons) + [!Skin.HasSetting(ShowLastPlayed) | [Skin.HasSetting(ShowLastPlayed) + String.IsEmpty(ListItem.LastPlayed)]]</visible>
                    <height>60</height>
                    <width>$PARAM[width]</width>
                    <font>font20_title</font>
                    <label>[B]$PARAM[subheading][/B]</label>
                    <aligny>center</aligny>
                    <wrapmultiline>true</wrapmultiline>
                </control>
                <control type="label" description="Subheading">
                    <visible>!$PARAM[lowpanel] + [!Skin.HasSetting(ShowAudioSub) | [Skin.HasSetting(ShowLastPlayed) + !String.IsEmpty(ListItem.LastPlayed)]] + !Container.Content(addons)</visible>
                    <height>80</height>
                    <width>$PARAM[width]</width>
                    <font>font20_title</font>
                    <label>[B]$PARAM[subheading][/B]</label>
                    <aligny>center</aligny>
                    <wrapmultiline>true</wrapmultiline>
                </control>
                <control type="label" description="Subheading">
                    <visible>$PARAM[lowpanel] + !Container.Content(addons)</visible>
                    <height>60</height>
                    <width>$PARAM[width]</width>
                    <font>ListDetails</font>
                    <label>[B]$PARAM[subheading][/B]</label>
                    <aligny>center</aligny>
                    <scroll>false</scroll>
                    <wrapmultiline>true</wrapmultiline>
                </control>
                <!-- Audio/Sub info or Next Aired Episode info -->
                <control type="group">
                    <visible>$PARAM[subheading2_visible]</visible>
                    <control type="label" description="Subheading2">
                        <visible>!$PARAM[lowpanel]</visible>
                        <top>10</top>
                        <height>40</height>
                        <width>$PARAM[width]</width>
                        <font>ListDetails</font>
                        <label>[B]$PARAM[subheading2][/B]</label>
                        <aligny>top</aligny>
                    </control>
                    <control type="label" description="Subheading2">
                        <top>10</top>
                        <visible>$PARAM[lowpanel]</visible>
                        <height>30</height>
                        <width>$PARAM[width]</width>
                        <font>ListDetails</font>
                        <label>[B]$PARAM[subheading2][/B]</label>
                        <aligny>center</aligny>
                    </control>
                </control>
                <control type="group">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <control type="group">
                        <visible>![Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder]</visible>
                        <!-- Plot when there is no next episode info or audio/sub info being displayed -->
                        <control type="textbox">
                            <top>5</top>
                            <visible>[!Skin.HasSetting(ShowAudioSub) + [[Container.Content(movies) + !ListItem.IsCollection] | Container.Content(episodes)]] | [ListItem.IsCollection + !String.IsEmpty(ListItem.Plot) + !Skin.HasSetting(AlwaysShowSetList)] |
                                     [Skin.HasSetting(ShowAudioSub) + [String.IsEmpty(ListItem.Property(AudioLanguage.1)) + String.IsEmpty(ListItem.Property(SubtitleLanguage.1))] + [[Container.Content(movies) + !ListItem.IsCollection] | Container.Content(episodes)]] |
                                     [String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Next_Aired)) + [Container.Content(tvshows) | Container.Content(seasons)]]</visible>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <height>$PARAM[plotheight]</height>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for other content types -->
                        <control type="textbox">
                            <visible>![Container.Content(movies) | Container.Content(episodes) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(sets)] + !$EXP[ShowSubcontent]</visible>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for normal panel when audio/sub info or next aired episode info is shown -->
                        <control type="textbox">
                            <top>40</top>
                            <visible>!$PARAM[lowpanel] + [[Skin.HasSetting(ShowAudioSub) + [!String.IsEmpty(ListItem.Property(AudioLanguage.1)) | !String.IsEmpty(ListItem.Property(SubtitleLanguage.1))] + [Container.Content(movies) | Container.Content(episodes)]] |
                                     [!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Next_Aired)) + [Container.Content(tvshows) | Container.Content(seasons)]]]</visible>
                            <height>$PARAM[plotheight]</height>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for episodes/tv shows/seasons in low panel when audio/sub info or next aired episode info is shown -->
                        <control type="textbox">
                            <top>40</top>
                            <visible>$PARAM[lowpanel] + [[Skin.HasSetting(ShowAudioSub) + Container.Content(episodes) +
                                     ![String.IsEmpty(ListItem.Property(AudioLanguage.1)) + String.IsEmpty(ListItem.Property(SubtitleLanguage.1))]] | [!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Next_Aired)) + [Container.Content(tvshows) | Container.Content(seasons)]]]</visible>
                            <height>160</height>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for movies in low panel when audio/sub info is shown -->
                        <control type="textbox">
                            <top>40</top>
                            <visible>$PARAM[lowpanel] + [Skin.HasSetting(ShowAudioSub) + Container.Content(movies) + ![String.IsEmpty(ListItem.Property(AudioLanguage.1)) + String.IsEmpty(ListItem.Property(SubtitleLanguage.1))]]</visible>
                            <height>160</height>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                    </control>
                    <control type="group">
                        <visible>[Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder]</visible>
                        <!-- Plot for other content types -->
                        <control type="textbox">
                            <align>justify</align>
                            <label>$PARAM[plot]</label>
                            <font>InfoPlot</font>
                        </control>
                    </control>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="subcontent_visible">ListItem.IsCollection + [String.IsEmpty(ListItem.Plot) | Skin.HasSetting(AlwaysShowSetList)]</param>
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4200</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label]$INFO[ListItem.Year,  (,)]</param>
                        <param name="subcontent_order">descending</param>
                        <param name="subcontent_visible">String.IsEqual(ListItem.DBType,artist) + String.IsEmpty(ListItem.Property(Artist_Description))</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4300</param>
                        <param name="subcontent_label1">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$INFO[ListItem.Duration,  (,)]</param>
                        <param name="subcontent_label2">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$VAR[ItemDurationVar,  (,)]</param>
                        <param name="subcontent_visible">String.IsEqual(ListItem.DBType,album) + String.IsEmpty(ListItem.Property(Album_Description))</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="track" />
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4400</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Duration]</param>
                        <param name="subcontent_label2">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$VAR[ItemDurationVar]</param>
                        <param name="subcontent_visible">Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="date" />
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                </control>
            </control>
            <!-- Footer and media flags -->
            <control type="grouplist">
                <visible>$PARAM[visibility]</visible>
                <visible>[!String.IsEmpty(Listitem.Duration) | !String.IsEmpty(Listitem.Genre) | !String.IsEmpty(Listitem.Year) | !String.IsEmpty(ListItem.Episode)] |
                          [!String.IsEmpty(ListItem.Property(Artist_Genre)) | !String.IsEmpty(ListItem.Property(Artist_YearsActive))] |
                         [Container.Content(seasons) + String.IsEqual(ListItem.Label,$LOCALIZE[20366]) + !String.IsEmpty(ListItem.Episode)]</visible>
                <posx>$PARAM[left]</posx>
                <posy>$PARAM[footertop]</posy>
                <width>$PARAM[width]</width>
                <height>$PARAM[footerheight]</height>
                <itemgap>7</itemgap>
                <orientation>vertical</orientation>
                <usecontrolcoords>true</usecontrolcoords>
                <control type="label" description="Footer">
                    <visible>[Container.Content(movies) | Container.Content(sets) | Container.Content(musicvideos)]</visible>
                    <width>$PARAM[width]</width>
                    <height>25</height>
                    <font>ListDetails</font>
                    <label>$VAR[panelfooter2]</label>
                </control>
                <control type="label" description="Footer">
                    <visible>$PARAM[showfooter]</visible>
                    <width>$PARAM[width]</width>
                    <height>30</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer]</label>
                    <aligny>top</aligny>
                    <visible>![Container.Content(episodes) | Container.Content(seasons) | Container.Content(tvshows) | Container.Content(artists) | Container.Content(albums) | Container.Content(songs)]</visible>
                </control>
                <control type="label" description="Footer">
                    <visible>$PARAM[showfooter]</visible>
                    <width>$PARAM[width]</width>
                    <height>60</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer]</label>
                    <wrapmultiline>true</wrapmultiline>
                    <aligny>top</aligny>
                    <visible>[Container.Content(episodes) | Container.Content(seasons) | Container.Content(tvshows)] + !Skin.HasSetting(coloredflags)</visible>
                </control>
                <control type="label" description="Footer">
                    <visible>$PARAM[showfooter]</visible>
                    <width>$PARAM[width]</width>
                    <height>60</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer]</label>
                    <aligny>top</aligny>
                    <visible>[Container.Content(albums) | Container.Content(artists) | Container.Content(songs)]</visible>
                </control>
                <control type="label" description="Footer">
                    <visible>$PARAM[showfooter]</visible>
                    <width>$PARAM[width]</width>
                    <height>60</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer]</label>
                    <wrapmultiline>true</wrapmultiline>
                    <aligny>top</aligny>
                    <visible>[Container.Content(episodes) | Container.Content(seasons) | Container.Content(tvshows)] + Skin.HasSetting(coloredflags)</visible>
                </control>
                <control type="grouplist" description="Flags">
                    <visible>$PARAM[showflags] + !$PARAM[lowpanel] + !Skin.HasSetting(coloredflags)</visible>
                    <include>ContentFade</include>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[flagitemheight]</height>
                    <itemgap>10</itemgap>
                    <orientation>horizontal</orientation>
                    <align>left</align>
                    <include condition="Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[flagitemwidth]</param>
                        <param name="itemheight">$PARAM[flagitemheight]</param>
                    </include>
                    <include condition="!Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[nonhdrflagitemwidth]</param>
                        <param name="itemheight">$PARAM[nonhdrflagitemheight]</param>
                    </include>
                </control>
                <control type="grouplist" description="Flags">
                    <visible>$PARAM[showflags] + !$PARAM[lowpanel] + Skin.HasSetting(coloredflags)</visible>
                    <include>ContentFade</include>
                    <width>$PARAM[width]</width>
                    <height>$PARAM[flagitemheight]</height>
                    <itemgap>10</itemgap>
                    <orientation>horizontal</orientation>
                    <align>left</align>
                    <usecontrolcoords>true</usecontrolcoords>
                    <include condition="Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[flagitemwidth]</param>
                        <param name="itemheight">$PARAM[flagitemheight]</param>
                    </include>
                    <include condition="!Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[nonhdrflagitemwidth]</param>
                        <param name="itemheight">$PARAM[nonhdrflagitemheight]</param>
                    </include>
                </control>
                <control type="grouplist" description="Flags">
                    <visible>$PARAM[showflags] + $PARAM[lowpanel] + !Skin.HasSetting(coloredflags)</visible>
                    <include>ContentFade</include>
                    <width>$PARAM[width]</width>
                    <height>50</height>
                    <itemgap>10</itemgap>
                    <orientation>horizontal</orientation>
                    <align>left</align>
                    <include condition="Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemheight">50</param>
                        <param name="itemwidth">$PARAM[lowflagitemwidth]</param>
                    </include>
                    <include condition="!Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[lowflagitemwidth]</param>
                        <param name="itemheight">50</param>
                    </include>
                </control>
                <control type="grouplist" description="Flags">
                    <visible>$PARAM[showflags] + $PARAM[lowpanel] + Skin.HasSetting(coloredflags)</visible>
                    <include>ContentFade</include>
                    <width>$PARAM[width]</width>
                    <height>50</height>
                    <itemgap>10</itemgap>
                    <orientation>horizontal</orientation>
                    <align>left</align>
                    <usecontrolcoords>true</usecontrolcoords>
                    <include condition="Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemheight">50</param>
                        <param name="itemwidth">$PARAM[lowflagitemwidth]</param>
                        <param name="lowpanel">true</param>
                    </include>
                    <include condition="!Skin.HasSetting(Show.ColorRangeFlags)" content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">$PARAM[nonhdrlowflagitemwidth]</param>
                        <param name="itemheight">50</param>
                        <param name="lowpanel">true</param>
                    </include>
                </control>
            </control>
        </definition>
    </include>

    <!-- Panel Template for Tall List -->
    <include name="PanelTemplateTall">
        <param name="viewid">501</param>
        <param name="top"></param>
        <param name="left">60</param>
        <param name="height"></param>
        <param name="subinfoheight"></param>
        <param name="width">870</param>
        <param name="groupheight">710</param>
        <param name="heading"></param>
        <param name="subheading"></param>
        <param name="subheading2"></param>
        <param name="subheading2_visible">false</param>
        <param name="plotgrouptop"></param>
        <param name="plotheight">630</param>
        <param name="plot">$INFO[ListItem.Plot]</param>
        <param name="footer"></param>
        <param name="footer2"></param>
        <param name="visibility"></param>
        <param name="showfooter">true</param>
        <param name="showfooter2">true</param>
        <param name="showflags">true</param>
        <param name="footertop">845</param>
        <param name="footer2top">885</param>
        <param name="flagstop"></param>
        <param name="footerheight">115</param>
        <definition>
            <control type="group" id="4000" description="Media Info Panel">
                <include>OpenClose</include>
                <visible>$PARAM[visibility]</visible>
                <visible>[$EXP[PanelShouldShow] + [Container.Content(files) | Container.Content(videos) | Container.Content() | Container.Content(episodes) |
                         Container.Content(movies) | Container.Content(tvshows) | Container.Content(musicvideos) | Container.Content(seasons)]] |
                         [Container.Content(sets) | Container.Content(addons) | Container.Content(albums) | Container.Content(artists) |
                         Container.Content(images) | Container.Content(games)]</visible>
                <posx>$PARAM[left]</posx>
                <posy>$PARAM[top]</posy>
                <width>$PARAM[width]</width>
                <height>$PARAM[groupheight]</height>
                <control type="label" description="Title Label">
                    <top>-8</top>
                    <width>$PARAM[width]</width>
                    <height>60</height>
                    <aligny>center</aligny>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <font>font20_title</font>
                    <wrapmultiline>true</wrapmultiline>
                    <label>$PARAM[heading]</label>
                </control>
                <control type="label" description="Subheading">
                    <top>70</top>
                    <visible>!Container.Content(addons)</visible>
                    <height>80</height>
                    <width>$PARAM[width]</width>
                    <font>font20_title</font>
                    <label>[B]$PARAM[subheading][/B]</label>
                    <aligny>center</aligny>
                    <wrapmultiline>true</wrapmultiline>
                </control>
                <control type="label" description="Subheading2">
                    <top>150</top>
                    <visible>$PARAM[subheading2_visible]</visible>
                    <height>80</height>
                    <width>$PARAM[width]</width>
                    <font>ListDetails</font>
                    <label>[B]$PARAM[subheading2][/B]</label>
                    <aligny>center</aligny>
                </control>
                <control type="group">
                    <width>$PARAM[width]</width>
                    <height>$PARAM[height]</height>
                    <top>$PARAM[plotgrouptop]</top>
                    <control type="group">
                        <visible>![Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder]</visible>
                        <!-- Plot when there is no next episode info or audio/sub info being displayed -->
                        <control type="textbox" id="4001">
                            <top>5</top>
                            <visible>[!Skin.HasSetting(ShowAudioSub) + [Container.Content(movies) | Container.Content(episodes)]] | [ListItem.IsCollection + !String.IsEmpty(ListItem.Plot) + !Skin.HasSetting(AlwaysShowSetList)] |
                                     [Skin.HasSetting(ShowAudioSub) + [String.IsEmpty(ListItem.Property(AudioLanguage.1)) + String.IsEmpty(ListItem.Property(SubtitleLanguage.1))] + [[Container.Content(movies) + !ListItem.IsCollection] | Container.Content(episodes)]] |
                                     [String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Next_Aired)) + [Container.Content(tvshows) | Container.Content(seasons)]]</visible>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for normal panel when audio/sub info or next aired episode info is shown -->
                        <control type="textbox" id="4001">
                            <top>50</top>
                            <visible>[[Skin.HasSetting(ShowAudioSub) + [!String.IsEmpty(ListItem.Property(AudioLanguage.1)) | !String.IsEmpty(ListItem.Property(SubtitleLanguage.1))] + [Container.Content(movies) | Container.Content(episodes)]] |
                                     [!String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Next_Aired)) + [Container.Content(tvshows) | Container.Content(seasons)]]]</visible>
                            <height>$PARAM[plotheight]</height>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                        <!-- Plot for other content types -->
                        <control type="textbox" id="4001">
                            <visible>![Container.Content(movies) | Container.Content(episodes) | Container.Content(tvshows) | Container.Content(seasons) | Container.Content(sets)] + !$EXP[ShowSubcontent]</visible>
                            <align>justify</align>
                            <label fallback="19055">$PARAM[plot]</label>
                            <font>InfoPlot</font>
                            <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        </control>
                    </control>
                    <control type="group">
                        <visible>[Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder]</visible>
                        <!-- Plot for other content types -->
                        <control type="textbox" id="4001">
                            <align>justify</align>
                            <label>$PARAM[plot]</label>
                            <font>InfoPlot</font>
                        </control>
                    </control>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="subcontent_visible">ListItem.IsCollection + [String.IsEmpty(ListItem.Plot) | Skin.HasSetting(AlwaysShowSetList)]</param>
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">420</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label]$INFO[ListItem.Year,  (,)]</param>
                        <param name="subcontent_order">descending</param>
                        <param name="subcontent_visible">[String.IsEqual(ListItem.DBType,artist) + String.IsEmpty(ListItem.Property(Artist_Description))]</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">430</param>
                        <param name="subcontent_label1">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$INFO[ListItem.Duration,  (,)]</param>
                        <param name="subcontent_label2">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$VAR[ItemDurationVar,  (,)]</param>
                        <param name="subcontent_visible">[String.IsEqual(ListItem.DBType,album) + String.IsEmpty(ListItem.Property(Album_Description))]</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="track" />
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">440</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Duration]</param>
                        <param name="subcontent_label2">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$VAR[ItemDurationVar]</param>
                        <param name="subcontent_visible">Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="date" />
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[width]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                </control>
                <control type="label" description="Footer 2">
                    <top>$PARAM[footertop]</top>
                    <visible>$PARAM[showfooter2]</visible>
                    <visible>[Container.Content(sets) | Container.Content(movies) | Container.Content(episodes) | Container.Content(musicvideos)]</visible>
                    <width>$PARAM[width]</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer2]</label>
                    <aligny>top</aligny>
                </control>
                <control type="label" description="Footer">
                    <top>$PARAM[footer2top]</top>
                    <visible>$PARAM[showfooter]</visible>
                    <visible>[!String.IsEmpty(Listitem.Duration) | !String.IsEmpty(Listitem.Genre) | !String.IsEmpty(Listitem.Year) | !String.IsEmpty(ListItem.Episode)] |
                         [Container.Content(seasons) + String.IsEqual(ListItem.Label,$LOCALIZE[20366]) + !String.IsEmpty(ListItem.Episode)]</visible>
                    <width>$PARAM[width]</width>
                    <height>75</height>
                    <font>ListDetails</font>
                    <label>$PARAM[footer]</label>
                    <wrapmultiline>true</wrapmultiline>
                    <aligny>top</aligny>
                </control>
            </control>
        </definition>
    </include>
    <!-- Panel Template for Big List -->
    <include name="PanelTemplate52">
        <param name="viewid">52</param>
        <param name="top">40</param>
        <param name="left">0</param>
        <param name="width">880</param>
        <param name="heading">$VAR[panelheading]</param>
        <param name="plot">$VAR[Plots]</param>
        <param name="plotheight">320</param>
        <param name="subinfoheight">320</param>
        <param name="plotwidth">820</param>
        <param name="labelwidth">800</param>
        <param name="subheading2"></param>
        <param name="subheading2_visible">false</param>
        <param name="visibility">false</param>
        <definition>
            <control type="group" id="4000" description="Media Info Panel">
                <include>OpenClose</include>
                <visible>$PARAM[visibility]</visible>
                <posx>$PARAM[left]</posx>
                <posy>$PARAM[top]</posy>
                <width>$PARAM[width]</width>
                <control type="label" description="Heading Label">
                    <top>30</top>
                    <left>47</left>
                    <width>$PARAM[labelwidth]</width>
                    <height>60</height>
                    <aligny>center</aligny>
                    <align>center</align>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <font>font20_title</font>
                    <wrapmultiline>true</wrapmultiline>
                    <label>$PARAM[heading]</label>
                </control>

                <control type="group">
                    <visible>$EXP[PVRChannelPlaying]</visible>
                    <left>67</left>
                    <top>105</top>
                    <control type="videowindow">
                        <width>750</width>
                        <height>399</height>
                    </control>
                </control>

                <control type="group">
                    <animation effect="fade" start="100" end="0" time="100" condition="$EXP[PVRChannelPlaying]">Conditional</animation>
                    <include content="ShadowedImage">
                        <param name="top">105</param>
                        <param name="left">67</param>
                        <param name="width">750</param>
                        <param name="height">399</param>
                        <param name="texture">$VAR[Fanart]</param>
                        <param name="visibility">!$EXP[isPVRRecordingsGroups]</param>
                    </include>
                    <include content="ShadowedImage">
                        <param name="top">105</param>
                        <param name="left">67</param>
                        <param name="width">750</param>
                        <param name="height">399</param>
                        <param name="texture">$INFO[Container(440052).ListItem.Art(fanart)]</param>
                        <param name="visibility">$EXP[isPVRRecordingsGroups] + !$EXP[BigListPanelIsSwapped]</param>
                    </include>
                    <include content="ShadowedImage">
                        <param name="top">105</param>
                        <param name="left">67</param>
                        <param name="width">750</param>
                        <param name="height">399</param>
                        <param name="texture">$INFO[Container(4400152).ListItem.Art(fanart)]</param>
                        <param name="visibility">$EXP[isPVRRecordingsGroups] + $EXP[BigListPanelIsSwapped]</param>
                    </include>
                    <control type="group">
                        <visible>Skin.HasSetting(ShowRatingOverlays) + $EXP[canShowRatingOverlay]</visible>
                        <control type="image">
                            <texture background="true" colordiffuse="$VAR[HighlightColor]">common/box.png</texture>
                            <posx>127</posx>
                            <posy>80</posy>
                            <height>52</height>
                            <width>52</width>
                        </control>
                        <control type="label" description="l2">
                            <posx>103</posx>
                            <posy>90</posy>
                            <height>30</height>
                            <width>100</width>
                            <font>font20_title</font>
                            <align>center</align>
                            <shadowcolor></shadowcolor>
                            <label>[B]$VAR[RatingOverlayVar][/B]</label>
                            <textcolor>$VAR[FocusedTextColor]</textcolor>
                        </control>
                    </control>
                </control>

                <control type="group">
                    <visible>String.IsEqual(ListItem.DBType,episode)</visible>
                    <control type="label" description="Subheading Label">
                        <top>520</top>
                        <left>47</left>
                        <width>$PARAM[labelwidth]</width>
                        <height>60</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>ListDetails</font>
                        <label>$VAR[panelfooter]</label>
                    </control>
                    <control type="label" description="Subheading Label">
                        <top>580</top>
                        <left>47</left>
                        <width>$PARAM[labelwidth]</width>
                        <height>30</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>ListDetails</font>
                        <label>$VAR[panelfooter2]</label>
                        <visible>String.IsEqual(ListItem.DBType,episode)</visible>
                    </control>
                </control>
                <control type="group">
                    <visible>!String.IsEqual(ListItem.DBType,episode)</visible>
                    <control type="label" description="Subheading Label">
                        <top>520</top>
                        <left>47</left>
                        <width>$PARAM[labelwidth]</width>
                        <height>30</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>ListDetails</font>
                        <label>$VAR[panelfooter2]</label>
                    </control>
                    <control type="label" description="Subheading Label">
                        <top>550</top>
                        <left>47</left>
                        <width>$PARAM[labelwidth]</width>
                        <height>60</height>
                        <aligny>center</aligny>
                        <align>center</align>
                        <font>ListDetails</font>
                        <label>$VAR[panelfooter]</label>
                    </control>
                </control>
                <control type="label" description="Subheading2">
                    <top>610</top>
                    <left>47</left>
                    <visible>$PARAM[subheading2_visible]</visible>
                    <width>$PARAM[labelwidth]</width>
                    <height>30</height>
                    <align>center</align>
                    <font>ListDetails</font>
                    <label>$PARAM[subheading2]</label>
                </control>
                <control type="group">
                    <width>$PARAM[plotwidth]</width>
                    <height>$PARAM[plotheight]</height>
                    <left>30</left>
                    <top>650</top>
                    <control type="textbox" id="4001">
                        <align>justify</align>
                        <label>$PARAM[plot]</label>
                        <font>InfoPlot</font>
                        <width>$PARAM[plotwidth]</width>
                        <height>$PARAM[plotheight]</height>
                        <autoscroll delay="3000" time="2000" repeat="10000">Skin.HasSetting(AutoScroll)</autoscroll>
                        <visible>!ListItem.IsCollection | [ListItem.IsCollection + !String.IsEmpty(ListItem.Plot) + !Skin.HasSetting(AlwaysShowSetList)]</visible>
                    </control>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="subcontent_visible">ListItem.IsCollection + [String.IsEmpty(ListItem.Plot) | Skin.HasSetting(AlwaysShowSetList)]</param>
                        <param name="width">800</param>
                        <param name="labelwidth">$PARAM[labelwidth]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4200</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label]$INFO[ListItem.Year,  (,)]</param>
                        <param name="subcontent_order">descending</param>
                        <param name="subcontent_visible">[String.IsEqual(ListItem.DBType,artist) + String.IsEmpty(ListItem.Property(Artist_Description))]</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="width">800</param>
                        <param name="labelwidth">$PARAM[labelwidth]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4300</param>
                        <param name="subcontent_label1">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$INFO[ListItem.Duration,  (,)]</param>
                        <param name="subcontent_label2">$INFO[ListItem.TrackNumber,,. ]$INFO[ListItem.Label]$VAR[ItemDurationVar,  (,)]</param>
                        <param name="subcontent_visible">[String.IsEqual(ListItem.DBType,album) + String.IsEmpty(ListItem.Property(Album_Description))]</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="track" />
                        <param name="width">800</param>
                        <param name="labelwidth">$PARAM[labelwidth]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                    <include content="SubcontentInfoList">
                        <param name="viewid">$PARAM[viewid]</param>
                        <param name="list_id">4400</param>
                        <param name="subcontent_label1">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Duration]</param>
                        <param name="subcontent_label2">$INFO[ListItem.Label][COLOR=$VAR[HighlightColor]] • [/COLOR]$INFO[ListItem.Date][COLOR=$VAR[HighlightColor]] • [/COLOR]$VAR[ItemDurationVar]</param>
                        <param name="subcontent_visible">Window.IsActive(MyPVRRecordings.xml) + ListItem.IsFolder + !ListItem.IsParentFolder</param>
                        <param name="subcontent_image_visible">false</param>
                        <param name="subcontent_sortby" value="date" />
                        <param name="width">$PARAM[width]</param>
                        <param name="labelwidth">$PARAM[labelwidth]</param>
                        <param name="subinfoheight">$PARAM[subinfoheight]</param>
                    </include>
                </control>
                <control type="grouplist" description="Flags">
                    <top>975</top>
                    <left>30</left>
                    <width>$PARAM[plotwidth]</width>
                    <height>80</height>
                    <itemgap>15</itemgap>
                    <orientation>horizontal</orientation>
                    <align>center</align>
                    <include content="MediaFlagItems">
                        <param name="diffuse">$VAR[LabelTextColor]</param>
                        <param name="itemwidth">90</param>
                    </include>
                </control>
            </control>
        </definition>
    </include>

    <include name="MediaFlags">
        <param name="top"></param>
        <param name="left"></param>
        <param name="height"></param>
        <param name="width"></param>
        <param name="visibility">true</param>
        <param name="showratingbadge">true</param>
        <param name="itemwidth">90</param>
        <param name="itemgap">10</param>
        <param name="usecontrolcoords">false</param>
        <definition>
            <control type="grouplist" description="Flags">
                <posy>$PARAM[top]</posy>
                <posx>$PARAM[left]</posx>
                <visible>$PARAM[visibility]</visible>
                <include>ContentFade</include>
                <width>$PARAM[width]</width>
                <height>$PARAM[height]</height>
                <itemgap>$PARAM[itemgap]</itemgap>
                <orientation>horizontal</orientation>
                <align>center</align>
                <usecontrolcoords>$PARAM[usecontrolcoords]</usecontrolcoords>
                <include content="MediaFlagItems">
                    <param name="diffuse">$VAR[LabelTextColor]</param>
                    <param name="showratingbadge">$PARAM[showratingbadge]</param>
                    <param name="itemwidth">$PARAM[itemwidth]</param>
                </include>
            </control>
        </definition>
    </include>

    <include name="HolidaySub">
        <param name="type">snow</param>
        <param name="texture1">1</param>
        <param name="texture2">2</param>
        <param name="texture3">3</param>
        <param name="texture4">1</param>
        <param name="texture5">2</param>
        <param name="texture6">3</param>
        <param name="rotate">20</param>
        <definition>
            <control type="group">
                <posx>-100</posx>
                <animation effect="rotate" end="$PARAM[rotate]" time="9000" delay="300" condition="true">Conditional</animation>
                <control type="image">
                    <posx>40</posx>
                    <posy>-180</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture1].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,820" time="11000" delay="1600" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-40,0" time="5300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>-100</posy>
                    <width>18</width>
                    <height>18</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture2].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="8000" delay="0" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-20,0" time="3200" delay="300" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>200</posx>
                    <posy>-40</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture3].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="12000" delay="1300" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="50,0" end="-10,0" time="4300" delay="220" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>260</posx>
                    <posy>-80</posy>
                    <width>15</width>
                    <height>15</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture4].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="13000" delay="2200" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-30,0" time="4000" delay="200" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>390</posx>
                    <posy>-210</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture5].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="13000" delay="600" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="20,0" end="-60,0" time="5300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
            </control>
            <control type="group">
                <posx>100</posx>
                <animation effect="rotate" start="20" end="40" time="9000" delay="800" condition="true">Conditional</animation>
                <control type="image">
                    <posx>80</posx>
                    <posy>-100</posy>
                    <width>20</width>
                    <height>20</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture6].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,820" time="8000" delay="1000" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-20,0" time="3200" delay="300" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>240</posx>
                    <posy>-40</posy>
                    <width>15</width>
                    <height>15</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture1].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="8000" delay="1800" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-30,0" time="4000" delay="200" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>390</posx>
                    <posy>-210</posy>
                    <width>10</width>
                    <height>10</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture2].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="12000" delay="1500" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="20,0" end="-60,0" time="5300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
            </control>
            <control type="group">
                <posx>600</posx>
                <posy>-200</posy>
                <animation effect="rotate" end="15" time="7000" delay="500" condition="true">Conditional</animation>
                <control type="image">
                    <posx>20</posx>
                    <posy>-60</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture3].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="12000" delay="1300" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="50,0" end="-10,0" time="4300" delay="220" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>100</posx>
                    <posy>-190</posy>
                    <width>18</width>
                    <height>18</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture4].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="9000" delay="2000" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-50,0" time="3200" delay="300" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>260</posx>
                    <posy>-80</posy>
                    <width>15</width>
                    <height>15</height>
                    <texture>holiday/$PARAM[type]PARAM[texture5].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="8000" delay="2300" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-30,0" time="4000" delay="200" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>330</posx>
                    <posy>-110</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture6].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="11000" delay="1600" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-40,0" time="5300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
                <control type="image">
                    <posx>390</posx>
                    <posy>-110</posy>
                    <width>10</width>
                    <height>10</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture1].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,820" time="12000" delay="2200" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="-20,0" end="50,0" time="3300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
            </control>
            <control type="group">
                <posx>900</posx>
                <animation effect="rotate" start="15" end="30" time="12000" delay="300" condition="true">Conditional</animation>
                <control type="image">
                    <posx>100</posx>
                    <posy>-200</posy>
                    <width>20</width>
                    <height>20</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture2].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="8000" delay="3000" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-20,0" time="3200" delay="300" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>200</posx>
                    <posy>-40</posy>
                    <width>12</width>
                    <height>12</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture3].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1120" time="13000" delay="1300" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="50,0" end="-10,0" time="4300" delay="220" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>260</posx>
                    <posy>-80</posy>
                    <width>15</width>
                    <height>15</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture4].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,820" time="8000" delay="3300" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="40,0" end="-30,0" time="4000" delay="200" reversible="false" condition="true">Conditional</animation>
                </control>
                <control type="image">
                    <posx>390</posx>
                    <posy>-110</posy>
                    <width>10</width>
                    <height>10</height>
                    <texture>holiday/$PARAM[type]$PARAM[texture5].png</texture>
                    <aspectratio scalediffuse="false">keep</aspectratio>
                    <animation effect="slide" start="0,0" end="0,1020" time="12000" delay="3500" reversible="false" loop="true" condition="true">Conditional</animation>
                    <animation effect="slide" start="20,0" end="-60,0" time="5300" delay="300" reversible="false" condition="true">Conditional</animation>
                    <colordiffuse>C2FFFFFF</colordiffuse>
                </control>
            </control>
        </definition>
    </include>

    <include name="Holiday">
        <control type="group">
            <visible>Skin.HasSetting(holiday)</visible>
            <include content="HolidaySub">
                <param name="type">snow</param>
                <param name="texture1">1</param>
                <param name="texture2">2</param>
                <param name="texture3">3</param>
                <param name="texture4">1</param>
                <param name="texture5">2</param>
                <param name="texture6">3</param>
            </include>
        </control>
        <control type="group">
            <posx>900</posx>
            <posy>40</posy>
            <visible>Skin.HasSetting(holiday)</visible>
            <include content="HolidaySub">
                <param name="type">snow</param>
                <param name="texture1">2</param>
                <param name="texture2">3</param>
                <param name="texture3">1</param>
                <param name="texture4">3</param>
                <param name="texture5">1</param>
                <param name="texture6">2</param>
                <param name="rotate">30</param>
            </include>
        </control>
    </include>

    <!-- TV Show Next Aired script -->
    <include name="TVGuideItem">
        <param name="TVGuideItemID" />
        <param name="TVGuideDayID" />
        <definition>
            <item id="$PARAM[TVGuideItemID]">
                <label>$INFO[Window(Home).Property(NextAired.$PARAM[TVGuideDayID].Wday)]$INFO[Container($PARAM[TVGuideDayID]).NumItems, (,)]</label>
                <label2>$INFO[Window(Home).Property(NextAired.$PARAM[TVGuideDayID].Date)]</label2>
                <icon />
                <visible>!String.IsEmpty(Window(Home).Property(NextAired.$PARAM[TVGuideDayID].Wday))</visible>
            </item>
        </definition>
    </include>

    <include name="TVGuideFanart">
        <param name="TVGuideDayID" />
        <definition>
            <control type="image">
                <posx>0</posx>
                <posy>0</posy>
                <include>Dimensions_Fullscreen</include>
                <aspectratio>scale</aspectratio>
                <texture background="true">$INFO[Container($PARAM[TVGuideDayID]).ListItem.Property(Fanart)]</texture>
                <visible>Control.HasFocus($PARAM[TVGuideDayID])</visible>
                <fadetime>600</fadetime>
                <animation effect="fade" time="600">Visible</animation>
                <animation effect="fade" time="600">Hidden</animation>
            </control>
        </definition>
    </include>

    <include name="TVNextAiredPanelLayout">
        <left>500</left>
        <top>120</top>
        <width>1341</width>
        <height>910</height>
        <onup>60</onup>
        <ondown>60</ondown>
        <onleft>9000</onleft>
        <orientation>horizontal</orientation>
        <scrolltime tween="quadratic">300</scrolltime>
        <pagecontrol>60</pagecontrol>
        <itemlayout height="840" width="447">
            <control type="image">
                <top>20</top>
                <width>445</width>
                <height>237</height>
                <aspectratio aligny="top">keep</aspectratio>
                <texture background="true">$VAR[TVGuideArt]</texture>
            </control>
            <control type="label">
                <top>260</top>
                <width>425</width>
                <height>45</height>
                <label>$INFO[ListItem.Label]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[HighlightColor]</textcolor>
            </control>
            <control type="label">
                <top>360</top>
                <width>425</width>
                <height>45</height>
                <label>$LOCALIZE[32009]:</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[HighlightColor]</textcolor>
            </control>
            <control type="label">
                <top>410</top>
                <width>425</width>
                <height>45</height>
                <label>[COLOR $VAR[HighlightColor]]$LOCALIZE[20373]:[/COLOR] [B][COLOR $VAR[LabelTextColor]]$INFO[ListItem.Property(NextSeasonNumber)][/COLOR][/B]  [COLOR $VAR[HighlightColor]]$LOCALIZE[20359]:[/COLOR] [B][COLOR Grey2]$INFO[ListItem.Property(NextEpisodeNumber)][/COLOR][/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoPlot</font>
            </control>
            <control type="textbox">
                <left>20</left>
                <top>460</top>
                <width>425</width>
                <height>185</height>
                <label>[COLOR $VAR[LabelTextColor]]$INFO[ListItem.Property(NextTitle)][/COLOR]</label>
                <autoscroll>false</autoscroll>
                <shadowcolor />
            </control>
            <control type="textbox">
                <left>20</left>
                <top>545</top>
                <width>425</width>
                <height>100</height>
                <label>$INFO[ListItem.Plot]</label>
                <autoscroll>false</autoscroll>
                <shadowcolor />
                <font>InfoPlotSmall</font>
                <textcolor>$VAR[LabelTextColor]</textcolor>
            </control>
            <control type="label">
                <top>650</top>
                <width>445</width>
                <height>45</height>
                <label>$LOCALIZE[126]:</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[HighlightColor]</textcolor>
            </control>
            <control type="label">
                <top>695</top>
                <width>445</width>
                <height>45</height>
                <label>$INFO[ListItem.Property(Status)]</label>
                <textcolor>$VAR[LabelTextColor]</textcolor>
                <textoffsetx>15</textoffsetx>
                <font>InfoPlot</font>
            </control>
            <control type="label">
                <top>745</top>
                <width>445</width>
                <height>45</height>
                <label>$LOCALIZE[32011]:</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[HighlightColor]</textcolor>
            </control>
            <control type="label">
                <top>790</top>
                <width>445</width>
                <height>45</height>
                <label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(Network), @ ]</label>
                <textcolor>$VAR[LabelTextColor]</textcolor>
                <textoffsetx>15</textoffsetx>
                <font>InfoPlot</font>
            </control>
        </itemlayout>
        <focusedlayout height="840" width="447">
            <control type="image" description="fa overlay">
                <width>447</width>
                <height>840</height>
                <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                <visible>ControlGroup(9001).HasFocus()</visible>
            </control>
            <control type="image">
                <top>20</top>
                <width>445</width>
                <height>237</height>
                <aspectratio aligny="top">keep</aspectratio>
                <texture background="true">$VAR[TVGuideArt]</texture>
            </control>
            <control type="label">
                <top>260</top>
                <width>425</width>
                <height>45</height>
                <label>[B]$INFO[ListItem.Label][/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="label">
                <top>360</top>
                <width>425</width>
                <height>45</height>
                <label>[B]$LOCALIZE[32009]:[/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="label">
                <top>410</top>
                <width>425</width>
                <height>45</height>
                <label>[B]$LOCALIZE[20373]: $INFO[ListItem.Property(NextSeasonNumber)]  $LOCALIZE[20359]: $INFO[ListItem.Property(NextEpisodeNumber)][/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoPlot</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="textbox">
                <left>20</left>
                <top>460</top>
                <width>425</width>
                <height>185</height>
                <label>$INFO[ListItem.Property(NextTitle)]</label>
                <autoscroll>false</autoscroll>
                <shadowcolor />
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="textbox">
                <left>20</left>
                <top>545</top>
                <width>425</width>
                <height>100</height>
                <label>$INFO[ListItem.Plot]</label>
                <autoscroll>false</autoscroll>
                <shadowcolor />
                <font>InfoPlotSmall</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="label">
                <top>650</top>
                <width>445</width>
                <height>45</height>
                <label>[B]$LOCALIZE[126]:[/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="label">
                <top>695</top>
                <width>445</width>
                <height>45</height>
                <label>$INFO[ListItem.Property(Status)]</label>
                <textoffsetx>15</textoffsetx>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
                <font>InfoPlot</font>
            </control>
            <control type="label">
                <top>745</top>
                <width>445</width>
                <height>45</height>
                <label>[B]$LOCALIZE[32011]:[/B]</label>
                <textoffsetx>15</textoffsetx>
                <font>InfoTitle</font>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
            </control>
            <control type="label">
                <top>790</top>
                <width>445</width>
                <height>45</height>
                <label>$INFO[ListItem.Property(ShortTime)]$INFO[ListItem.Property(Network), @ ]</label>
                <textcolor>$VAR[FocusedTextColor]</textcolor>
                <textoffsetx>15</textoffsetx>
                <font>InfoPlot</font>
            </control>
        </focusedlayout>
    </include>

    <!-- Fanart Time Per Image -->
    <include name="FanartTimePerImage5">
        <timeperimage>5000</timeperimage>
    </include>
    <include name="FanartTimePerImage6">
        <timeperimage>6000</timeperimage>
    </include>
    <include name="FanartTimePerImage7">
        <timeperimage>7000</timeperimage>
    </include>
    <include name="FanartTimePerImage8">
        <timeperimage>8000</timeperimage>
    </include>
    <include name="FanartTimePerImage9">
        <timeperimage>9000</timeperimage>
    </include>
    <include name="FanartTimePerImage10">
        <timeperimage>10000</timeperimage>
    </include>
    <include name="FanartTimePerImage15">
        <timeperimage>15000</timeperimage>
    </include>
    <include name="FanartTimePerImage20">
        <timeperimage>20000</timeperimage>
    </include>
    <include name="FanartTimePerImage30">
        <timeperimage>30000</timeperimage>
    </include>
    <include name="FanartTimePerImage60">
        <timeperimage>60000</timeperimage>
    </include>
    <include name="FanartTimePerImage90">
        <timeperimage>90000</timeperimage>
    </include>

    <include name="MultiImageTime">
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),5)">FanartTimePerImage5</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),6)">FanartTimePerImage6</include>
        <include condition="String.IsEmpty(Skin.String(FanartTimePerImage))">FanartTimePerImage7</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),8)">FanartTimePerImage8</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),9)">FanartTimePerImage9</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),10)">FanartTimePerImage10</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),15)">FanartTimePerImage15</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),20)">FanartTimePerImage20</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),30)">FanartTimePerImage30</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),60)">FanartTimePerImage60</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),90)">FanartTimePerImage90</include>
    </include>

    <!-- Autoscroll Time Per Image -->
    <include name="Autoscroll5">
        <autoscroll time="5000">true</autoscroll>
    </include>
    <include name="Autoscroll6">
        <autoscroll time="6000">true</autoscroll>
    </include>
    <include name="Autoscroll7">
        <autoscroll time="7000">true</autoscroll>
    </include>
    <include name="Autoscroll8">
        <autoscroll time="8000">true</autoscroll>
    </include>
    <include name="Autoscroll9">
        <autoscroll time="9000">true</autoscroll>
    </include>
    <include name="Autoscroll10">
        <autoscroll time="10000">true</autoscroll>
    </include>
    <include name="Autoscroll15">
        <autoscroll time="15000">true</autoscroll>
    </include>
    <include name="Autoscroll20">
        <autoscroll time="20000">true</autoscroll>
    </include>
    <include name="Autoscroll30">
        <autoscroll time="30000">true</autoscroll>
    </include>
    <include name="Autoscroll60">
        <autoscroll time="60000">true</autoscroll>
    </include>
    <include name="Autoscroll90">
        <autoscroll time="90000">true</autoscroll>
    </include>

    <include name="AutoscrollTime">
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),5)">Autoscroll5</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),6)">Autoscroll6</include>
        <include condition="String.IsEmpty(Skin.String(FanartTimePerImage))">Autoscroll7</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),8)">Autoscroll8</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),9)">Autoscroll9</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),10)">Autoscroll10</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),15)">Autoscroll15</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),20)">Autoscroll20</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),30)">Autoscroll30</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),60)">Autoscroll60</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),90)">Autoscroll90</include>
    </include>

    <!-- Extrafanart Fadelabel Pause -->
    <include name="FadelabelPauseAtEnd5">
        <pauseatend>5000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd6">
        <pauseatend>6000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd7">
        <pauseatend>7000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd8">
        <pauseatend>8000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd9">
        <pauseatend>9000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd10">
        <pauseatend>10000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd15">
        <pauseatend>15000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd20">
        <pauseatend>20000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd30">
        <pauseatend>30000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd60">
        <pauseatend>60000</pauseatend>
    </include>
    <include name="FadelabelPauseAtEnd90">
        <pauseatend>90000</pauseatend>
    </include>

    <include name="FadeLabelTime">
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),5)">FadelabelPauseAtEnd5</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),6)">FadelabelPauseAtEnd6</include>
        <include condition="String.IsEmpty(Skin.String(FanartTimePerImage))">FadelabelPauseAtEnd7</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),8)">FadelabelPauseAtEnd8</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),9)">FadelabelPauseAtEnd9</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),10)">FadelabelPauseAtEnd10</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),15)">FadelabelPauseAtEnd15</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),20)">FadelabelPauseAtEnd20</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),30)">FadelabelPauseAtEnd30</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),60)">FadelabelPauseAtEnd60</include>
        <include condition="String.IsEqual(Skin.String(FanartTimePerImage),90)">FadelabelPauseAtEnd90</include>
    </include>

    <!-- Clear widget navigation property -->
    <include name="ClearWidgetNavProperties1">
        <onunload>ClearProperty(WidgetFocus1,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus2,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus3,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus4,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus5,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus6,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus7,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus8,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus9,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus10,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus11,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus12,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus13,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus14,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus15,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus16,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus17,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus18,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus19,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus20,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus21,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus22,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus23,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus24,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus25,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus26,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus27,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus28,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus29,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus30,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus31,Home)</onunload>
        <onunload>ClearProperty(WidgetFocus32,Home)</onunload>
    </include>

    <!-- <include name="ClearWidgetNavProperties2">
        <onload>ClearProperty(WidgetFocus1)</onload>
        <onload>ClearProperty(WidgetFocus2)</onload>
        <onload>ClearProperty(WidgetFocus3)</onload>
        <onload>ClearProperty(WidgetFocus4)</onload>
        <onload>ClearProperty(WidgetFocus5)</onload>
        <onload>ClearProperty(WidgetFocus6)</onload>
        <onload>ClearProperty(WidgetFocus7)</onload>
        <onload>ClearProperty(WidgetFocus8)</onload>
        <onload>ClearProperty(WidgetFocus9)</onload>
        <onload>ClearProperty(WidgetFocus10)</onload>
        <onload>ClearProperty(WidgetFocus11)</onload>
        <onload>ClearProperty(WidgetFocus12)</onload>
        <onload>ClearProperty(WidgetFocus13)</onload>
        <onload>ClearProperty(WidgetFocus14)</onload>
        <onload>ClearProperty(WidgetFocus15)</onload>
        <onload>ClearProperty(WidgetFocus16)</onload>
        <onload>ClearProperty(WidgetFocus17)</onload>
        <onload>ClearProperty(WidgetFocus18)</onload>
        <onload>ClearProperty(WidgetFocus19)</onload>
        <onload>ClearProperty(WidgetFocus20)</onload>
        <onload>ClearProperty(WidgetFocus21)</onload>
        <onload>ClearProperty(WidgetFocus22)</onload>
        <onload>ClearProperty(WidgetFocus23)</onload>
        <onload>ClearProperty(WidgetFocus24)</onload>
        <onload>ClearProperty(WidgetFocus25)</onload>
        <onload>ClearProperty(WidgetFocus26)</onload>
        <onload>ClearProperty(WidgetFocus27)</onload>
        <onload>ClearProperty(WidgetFocus28)</onload>
        <onload>ClearProperty(WidgetFocus29)</onload>
        <onload>ClearProperty(WidgetFocus30)</onload>
        <onload>ClearProperty(WidgetFocus31)</onload>
        <onload>ClearProperty(WidgetFocus32)</onload>
    </include> -->

    <include name="PVRChannelNumberInput">
        <control type="label">
            <left>0</left>
            <top>0</top>
            <width>100%</width>
            <height>100%</height>
            <label>$INFO[PVR.ChannelNumberInput]</label>
            <shadowcolor>black</shadowcolor>
            <align>center</align>
            <font>Clock</font>
            <aligny>center</aligny>
            <visible>!String.IsEmpty(PVR.ChannelNumberInput)</visible>
        </control>
    </include>

    <!-- The following thanks to jurialmunkey and his arctic zephyr 2 skin -->
    <!-- Includes for alphabet strip using prevletter and nextletter actions -->
    <include name="AlphabetLetter">
        <control type="label">
            <width>42</width>
            <height>42</height>
            <label>$PARAM[label]</label>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>$VAR[LabelTextColor]</textcolor>
            <font>ListDetails</font>
            <visible>!String.IsEqual(ListItem.SortLetter,$PARAM[label])</visible>
        </control>
        <control type="label">
            <width>42</width>
            <height>42</height>
            <label>[B]$PARAM[label][/B]</label>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>$VAR[HighlightColor]</textcolor>
            <font>ListDetails</font>
            <visible>String.IsEqual(ListItem.SortLetter,$PARAM[label])</visible>
        </control>
    </include>

    <include name="AlphabetNumber">
        <control type="label">
            <width>42</width>
            <height>42</height>
            <label>#</label>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>$VAR[LabelTextColor]</textcolor>
            <font>ListDetails</font>
            <visible>!$EXP[SortLetterIsNumber]</visible>
        </control>
        <control type="label">
            <width>42</width>
            <height>42</height>
            <label>[B]#[/B]</label>
            <align>center</align>
            <aligny>center</aligny>
            <textcolor>$VAR[HighlightColor]</textcolor>
            <font>ListDetails</font>
            <visible>$EXP[SortLetterIsNumber]</visible>
        </control>
    </include>

    <!-- The following thanks to sualfred for his Embuary Helper script and to MikeSiLVO for his implementation -->
    <!-- Jump to letter includes -->
    <include name="ScriptJumpToLetter">
        <control type="group">
            <visible>Skin.HasSetting(Enable.EmbuaryHelper) + !String.IsEqual(Container.Viewmode,$LOCALIZE[31157]) + [Container.HasNext | Container.HasPrevious] + [String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561])]</visible>
            <control type="button" id="61501">
                <visible>![Control.IsVisible(56) | Control.IsVisible(58)]</visible>
                <label />
                <left>1919</left>
                <width>40</width>
                <height>1040</height>
                <texturefocus />
                <texturenofocus />
            </control>
            <control type="button" id="61601">
                <visible>Control.IsVisible(56) | Control.IsVisible(58)</visible>
                <label />
                <top>1079</top>
                <width>1920</width>
                <height>40</height>
                <texturefocus />
                <texturenofocus />
            </control>
            <control type="group">
                <left>1920</left>
                <height>1040</height>
                <animation type="Conditional" condition="[Control.HasFocus(615) | Control.HasFocus(61501)] + !System.HasActiveModalDialog" reversible="true">
                    <effect type="slide" start="0" end="-40" time="480" tween="cubic" easing="out" />
                </animation>
                <control type="image" description="background overlay">
                    <visible>Control.IsVisible(615)</visible>
                    <left>1</left>
                    <top>41</top>
                    <width>40</width>
                    <height>1040</height>
                    <texture border="0,30,0,0">common/viewmenu.png</texture>
                </control>
                <control type="list" id="615">
                    <visible>Skin.HasSetting(Show.JumpToLetter) + Skin.HasSetting(Show.EHJumpToLetter) + [String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561])]</visible>
                    <top>43</top>
                    <width>40</width>
                    <height>1040</height>
                    <onleft>SetFocus(50)</onleft>
                    <onback>SetFocus(50)</onback>
                    <onright condition="Control.IsVisible(52)">52</onright>
                    <onright condition="Control.IsVisible(50)">50</onright>
                    <onright condition="Control.IsVisible(54)">54</onright>
                    <onright condition="Control.IsVisible(501)">501</onright>
                    <onright condition="Control.IsVisible(51)">51</onright>
                    <onright condition="Control.IsVisible(511)">511</onright>
                    <onright condition="Control.IsVisible(55)">55</onright>
                    <onright condition="Control.IsVisible(551)">551</onright>
                    <onright condition="Control.IsVisible(53)">53</onright>
                    <onright condition="Control.IsVisible(57)">57</onright>
                    <itemlayout height="37" width="40">
                        <control type="label">
                            <height>37</height>
                            <align>center</align>
                            <font>ListDetails</font>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="37" width="40">
                        <control type="image">
                            <left>-4</left>
                            <width>44</width>
                            <height>41</height>
                            <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                        </control>
                        <control type="label">
                            <height>37</height>
                            <align>center</align>
                            <font>ListDetails</font>
                            <textcolor>$VAR[FocusedTextColor]</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </focusedlayout>
                    <content>plugin://script.embuary.helper/?info=jumptoletter&amp;showall=true&amp;reload=$INFO[Container.NumItems]</content>
                </control>
            </control>
            <control type="group">
                <top>1080</top>
                <width>1920</width>
                <animation type="Conditional" condition="[Control.HasFocus(616) | Control.HasFocus(61601)] + !System.HasActiveModalDialog" reversible="true">
                    <effect type="slide" start="0" end="0,-40" time="480" tween="cubic" easing="out" />
                </animation>
                <control type="list" id="616">
                    <visible>[String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561])]</visible>
                    <left>430</left>
                    <width>1080</width>
                    <height>40</height>
                    <onup>SetFocus(50)</onup>
                    <onback>SetFocus(50)</onback>
                    <orientation>horizontal</orientation>
                    <itemlayout height="40" width="40">
                        <control type="label">
                            <height>40</height>
                            <width>40</width>
                            <aligny>center</aligny>
                            <align>center</align>
                            <font>ListDetails</font>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="40" width="40">
                        <control type="image">
                            <left>-2</left>
                            <width>44</width>
                            <height>40</height>
                            <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                        </control>
                        <control type="label">
                            <height>40</height>
                            <width>40</width>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>ListDetails</font>
                            <textcolor>$VAR[FocusedTextColor]</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </focusedlayout>
                    <content>plugin://script.embuary.helper/?info=jumptoletter&amp;showall=true&amp;reload=$INFO[Container.NumItems]</content>
                </control>
            </control>
        </control>
        <!-- Jump to letter for Triple view -->
        <control type="group">
            <visible>Skin.HasSetting(Enable.EmbuaryHelper) + String.IsEqual(Container.Viewmode,$LOCALIZE[31157]) + [String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561])]</visible>
            <control type="button" id="61701">
                <label />
                <left>1</left>
                <width>40</width>
                <height>1040</height>
                <texturefocus />
                <texturenofocus />
            </control>
            <control type="group">
                <left>-40</left>
                <height>1040</height>
                <animation type="Conditional" condition="[Control.HasFocus(617) | Control.HasFocus(61701)] + !System.HasActiveModalDialog" reversible="true">
                    <effect type="slide" start="0" end="40" time="480" tween="cubic" easing="out" />
                </animation>
                <control type="image" description="background overlay">
                    <visible>Control.IsVisible(617)</visible>
                    <left>1</left>
                    <top>41</top>
                    <width>40</width>
                    <height>1040</height>
                    <texture border="0,30,0,0">common/viewmenu.png</texture>
                </control>
                <control type="list" id="617">
                    <visible>[String.IsEqual(Container.SortMethod,$LOCALIZE[551]) | String.IsEqual(Container.SortMethod,$LOCALIZE[556]) | String.IsEqual(Container.SortMethod,$LOCALIZE[557]) | String.IsEqual(Container.SortMethod,$LOCALIZE[558]) | String.IsEqual(Container.SortMethod,$LOCALIZE[561])]</visible>
                    <top>43</top>
                    <width>40</width>
                    <height>1040</height>
                    <onleft condition="!Skin.HasSetting(KioskMode.Enabled)">9000</onleft>
                    <onleft condition="Skin.HasSetting(KioskMode.Enabled)">noop</onleft>
                    <onback>SetFocus(600)</onback>
                    <onright condition="Control.IsVisible(600)">600</onright>
                    <itemlayout height="37" width="40">
                        <control type="label">
                            <height>37</height>
                            <align>center</align>
                            <font>ListDetails</font>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout height="37" width="40">
                        <control type="image">
                            <left>-4</left>
                            <width>44</width>
                            <height>41</height>
                            <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                        </control>
                        <control type="label">
                            <height>37</height>
                            <align>center</align>
                            <font>ListDetails</font>
                            <textcolor>$VAR[FocusedTextColor]</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </focusedlayout>
                    <content>plugin://script.embuary.helper/?info=jumptoletter&amp;showall=true&amp;reload=$INFO[Container.NumItems]</content>
                </control>
            </control>
        </control>
    </include>

    <include name="ViewIDs">
        <views>50,51,511,52,53,54,55,551,56,501,57,58,502,600</views>
        <defaultcontrol>50</defaultcontrol>
        <onload>SetFocus(50)</onload>
    </include>

    <include name="ColorButton">
        <param name="ColorString" />
        <definition>
            <width>1385</width>
            <height>60</height>
            <textoffsetx>30</textoffsetx>
            <font>font16</font>
            <radiowidth>150</radiowidth>
            <radioheight>50</radioheight>
            <textureradioonfocus colordiffuse="$PARAM[ColorString]">color_swatch.png</textureradioonfocus>
            <textureradioonnofocus colordiffuse="$PARAM[ColorString]">color_swatch.png</textureradioonnofocus>
            <textureradioofffocus colordiffuse="$PARAM[ColorString]">color_swatch.png</textureradioofffocus>
            <textureradiooffnofocus colordiffuse="$PARAM[ColorString]">color_swatch.png</textureradiooffnofocus>
            <texturefocus colordiffuse="$VAR[HighlightColor]" border="4">img/WhiteRoundedST2.png</texturefocus>
        </definition>
    </include>

    <include name="SetCountList">
        <!-- Hidden list for movie count for sets -->
        <control type="list" id="4450">
            <left>-100</left>
            <top>-100</top>
            <width>100</width>
            <height>100</height>
            <itemlayout height="100" width="100" />
            <focusedlayout height="100" width="100" />
            <content sortby="year" sortorder="ascending">$VAR[MovieSetPath]</content>
        </control>
    </include>

    <include name="SpecialFanartList">
        <!-- Hidden list for fanart background for studios, genres, countries, etc. -->
        <control type="list" id="4451">
            <left>-100</left>
            <top>-100</top>
            <content limit="20" sortby="random">$VAR[SubcontentPathVar]</content>
            <autoscroll time="8000">true</autoscroll>
            <itemlayout />
            <focusedlayout />
            <visible>!String.StartsWith(ListItem.FolderPath,plugin) + [Container.Content(genres) | Container.Content(studios) | Container.Content(years) |
                                                                       Container.Content(countries) | Container.Content(tags) | Container.Content(actors) |
                                                                       Container.Content(directors)]</visible>
        </control>
    </include>

    <include name="EmbuaryHelperDetailsList">
        <control type="group">
            <visible>!Container.Content(seasons)</visible>
            <control type="list" id="4460">
                <left>-100</left>
                <top>-100</top>
                <width>100</width>
                <height>100</height>
                <itemlayout height="100" width="100" />
                <focusedlayout height="100" width="100" />
                <content limit="1">plugin://script.embuary.helper/?info=getbydbid&amp;dbid=$INFO[ListItem.DBID]&amp;type=$INFO[ListItem.DBType]</content>
            </control>
        </control>
    </include>

    <include name="SmallerFonts">
        <font>ListDetails</font>
    </include>

    <include name="RegularFonts">
        <font>font16</font>
    </include>

    <include name="LargeFonts">
        <font>font18</font>
    </include>

    <include name="AutoCompleteSuggestions">
        <!-- Autocompletion suggestions -->
        <control type="group">
            <width>1440</width>
            <height>240</height>
            <posy>663</posy>
            <posx>94</posx>
            <visible>![Control.IsVisible(313) + System.HasHiddenInput] + Skin.HasSetting(Enable.Autocompletion)</visible>
            <control type="panel" id="8000">
                <height>230</height>
                <top>10</top>
                <left>0</left>
                <onup>8001</onup>
                <ondown>312</ondown>
                <orientation>horizontal</orientation>
                <itemlayout height="70" width="460">
                    <control type="group">
                        <control type="image">
                            <width>450</width>
                            <height>60</height>
                            <texture border="4">img/WhiteRoundedT.png</texture>
                        </control>
                        <control type="label">
                            <height>60</height>
                            <width>420</width>
                            <aligny>center</aligny>
                            <align>center</align>
                            <textcolor>$VAR[LabelTextColor]</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </control>
                </itemlayout>
                <focusedlayout height="70" width="460">
                    <control type="group">
                        <control type="image">
                            <width>450</width>
                            <height>60</height>
                            <texture border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texture>
                        </control>
                        <control type="label">
                            <height>60</height>
                            <width>420</width>
                            <aligny>center</aligny>
                            <align>center</align>
                            <textcolor>$VAR[FocusedTextColor]</textcolor>
                            <label>$INFO[ListItem.Label]</label>
                        </control>
                    </control>
                </focusedlayout>
                <content>plugin://plugin.program.autocompletion?info=autocomplete&amp;&amp;id=$INFO[Control.GetLabel(312).index(1)]&amp;&amp;limit=9</content>
            </control>
        </control>
    </include>

    <include name="SkinSettingsArrows">
        <param name="panelid">9101</param>
        <definition>
            <control type="group">
                <visible>Control.IsVisible($PARAM[panelid])</visible>
                <control type="image">
                    <top>80</top>
                    <left>490</left>
                    <height>30</height>
                    <width>30</width>
                    <texture flipy="true">icons/arrowdown.png</texture>
                    <colordiffuse>$VAR[HighlightColor]</colordiffuse>
                    <visible>Container($PARAM[panelid]).HasPrevious</visible>

                </control>
                <control type="image">
                    <top>980</top>
                    <left>490</left>
                    <height>30</height>
                    <width>30</width>
                    <texture>icons/arrowdown.png</texture>
                    <colordiffuse>$VAR[HighlightColor]</colordiffuse>
                    <visible>Container($PARAM[panelid]).HasNext</visible>
                </control>
            </control>
        </definition>
    </include>

    <include name="Disable3ShelvesLarge">
        <onunfocus condition="!Skin.HasSetting(VerticalHome)+ String.IsEqual(Container(211).ListItem.Property(widgetThreeShelvesLarge),true)">SetProperty(customProperty,widgetThreeShelvesLarge)</onunfocus>
        <onunfocus condition="!Skin.HasSetting(VerticalHome)+ String.IsEqual(Container(211).ListItem.Property(widgetThreeShelvesLarge),true)">SetProperty(customValue,false)</onunfocus>
        <onunfocus condition="!Skin.HasSetting(VerticalHome)+ String.IsEqual(Container(211).ListItem.Property(widgetThreeShelvesLarge),true)">SendClick(404)</onunfocus>
    </include>

</includes>