<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="Furniture_Scrollbar">
        <control type="scrollbar" id="60">
            <onback>50</onback>
            <centerright>60</centerright>
            <posy>PosterPad</posy>
            <height>PosterH</height>
            <width>8</width>
            <onleft>50</onleft>
            <onright condition="!Skin.HasSetting(global.kioskmode)">9000</onright>
            <texturesliderbackground border="4" colordiffuse="Dark4">scrollbar/scrollv.png</texturesliderbackground>
            <texturesliderbar border="4" colordiffuse="Dark3">scrollbar/scrollv.png</texturesliderbar>
            <texturesliderbarfocus border="4" colordiffuse="Dark2">scrollbar/scrollv.png</texturesliderbarfocus>
            <animation effect="fade" start="100" end="33" time="400" condition="!Control.HasFocus(60) + !Container.Scrolling">Conditional</animation>
        </control>
    </include>
    
    <include name="Furniture_Scrollbar_Horizontal">
        <control type="scrollbar" id="60">
            <onback>50</onback>
            <left>SidePad</left>
            <width>1760</width>
            <bottom>200</bottom>
            <orientation>horizontal</orientation>
            <height>8</height>
            <onup>50</onup>
            <ondown condition="!Skin.HasSetting(global.kioskmode)">9000</ondown>
            <texturesliderbackground border="4" colordiffuse="Dark4">scrollbar/scrollv.png</texturesliderbackground>
            <texturesliderbar border="4" colordiffuse="Dark3">scrollbar/scrollv.png</texturesliderbar>
            <texturesliderbarfocus border="4" colordiffuse="Dark2">scrollbar/scrollv.png</texturesliderbarfocus>
            <animation effect="fade" start="100" end="33" time="400" condition="!Control.HasFocus(60) + !Container.Scrolling">Conditional</animation>
        </control>
    </include>
    
    
    <include name="Furniture_ButtonBack">
        <width>64</width>
        <height>64</height>
        <animation type="Focus" reversible="false">
            <effect type="zoom" start="75" end="100" center="auto" time="200"/>
        </animation>
    </include>
    
    <include name="Furniture_ButtonBack_Circle">
        <width>64</width>
        <height>64</height>
        <texture colordiffuse="Dark1">common/circle.png</texture>
    </include>
    
    <!-- Flags -->
    <variable name="Flagstar1">
        <value condition="IntegerGreaterThan(ListItem.Rating,1)">star10</value>
        <value condition="IntegerGreaterThan(ListItem.Rating,0)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="Flagstar2">
        <value condition="IntegerGreaterThan(ListItem.Rating,3)">star10</value>
        <value condition="IntegerGreaterThan(ListItem.Rating,2)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="Flagstar3">
        <value condition="IntegerGreaterThan(ListItem.Rating,5)">star10</value>
        <value condition="IntegerGreaterThan(ListItem.Rating,4)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="Flagstar4">
        <value condition="IntegerGreaterThan(ListItem.Rating,7)">star10</value>
        <value condition="IntegerGreaterThan(ListItem.Rating,6)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="Flagstar5">
        <value condition="IntegerGreaterThan(ListItem.Rating,9)">star10</value>
        <value condition="IntegerGreaterThan(ListItem.Rating,8)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HubFlagstar1">
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,1)">star10</value>
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,0)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HubFlagstar2">
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,3)">star10</value>
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,2)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HubFlagstar3">
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,5)">star10</value>
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,4)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HubFlagstar4">
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,7)">star10</value>
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,6)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HubFlagstar5">
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,9)">star10</value>
        <value condition="IntegerGreaterThan(Container(9500).ListItem.Rating,8)">star5</value>
        <value>star0</value>
    </variable>
    
    <variable name="HomeFlagstar1">
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,1)">star10</value>
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,0)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HomeFlagstar2">
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,3)">star10</value>
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,2)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HomeFlagstar3">
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,5)">star10</value>
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,4)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HomeFlagstar4">
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,7)">star10</value>
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,6)">star5</value>
        <value>star0</value>
    </variable>
    <variable name="HomeFlagstar5">
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,9)">star10</value>
        <value condition="IntegerGreaterThan(Container(301).ListItem.Rating,8)">star5</value>
        <value>star0</value>
    </variable>
    
    <!-- MusicFlags -->
    <variable name="MusicFlagstar5">
        <value condition="StringCompare(ListItem.StarRating,rating5.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="MusicFlagstar4">
        <value condition="StringCompare(ListItem.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating4.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="MusicFlagstar3">
        <value condition="StringCompare(ListItem.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating3.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="MusicFlagstar2">
        <value condition="StringCompare(ListItem.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating3.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating2.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="MusicFlagstar1">
        <value condition="StringCompare(ListItem.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating3.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating2.png)">star10</value>
        <value condition="StringCompare(ListItem.StarRating,rating1.png)">star10</value>
        <value>star0</value>
    </variable>
    
    <!-- MusicOSDFlags -->
    <variable name="OSDMusicFlagstar5">
        <value condition="StringCompare(Player.StarRating,rating5.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="OSDMusicFlagstar4">
        <value condition="StringCompare(Player.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating4.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="OSDMusicFlagstar3">
        <value condition="StringCompare(Player.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating3.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="OSDMusicFlagstar2">
        <value condition="StringCompare(Player.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating3.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating2.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="OSDMusicFlagstar1">
        <value condition="StringCompare(Player.StarRating,rating5.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating4.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating3.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating2.png)">star10</value>
        <value condition="StringCompare(Player.StarRating,rating1.png)">star10</value>
        <value>star0</value>
    </variable>
    <variable name="ClearLogoTopVar">
        <value condition="!IsEmpty(ListItem.Art(clearlogo))">$INFO[ListItem.Art(clearlogo)]</value>
        <value condition="!IsEmpty(ListItem.Art(tvshow.clearlogo))">$INFO[ListItem.Art(tvshow.clearlogo)]</value>
        <value condition="!IsEmpty(Container(9500).ListItem.Art(clearlogo))">$INFO[Container(9500).ListItem.Art(clearlogo)]</value>
        <value condition="!IsEmpty(Container(9500).ListItem.Art(tvshow.clearlogo))">$INFO[Container(9500).ListItem.Art(tvshow.clearlogo)]</value>
    </variable>
    <include name="Furniture_Flags">
        <control type="grouplist">
            <visible>!Skin.HasSetting(furniture.flags)</visible>
            <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml)</visible>
            <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)</visible>
            <visible>Container.Content(movies) | Container.Content(episodes) | Container.Content(tvshows) | Container.Content(seasons)</visible>
            <visible>!stringcompare(ListItem.Label,..)</visible>
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <left>SidePad</left>
            <centerbottom>NavBarPad</centerbottom>
            <width>1400</width>
            <height>120</height>
            <orientation>horizontal</orientation>
            <align>left</align>
            <itemgap>24</itemgap>
            <usecontrolcoords>true</usecontrolcoords>
            <control type="group">
                <visible>substring(ListItem.Path,videodb://movies/sets,left) | !Skin.HasSetting(furniture.flagicons) | Container.Content(tvshows) | Container.Content(seasons) | IsEmpty(ListItem.VideoResolution)</visible>
                <centertop>50%</centertop>
                <width>64</width>
                <height>64</height>
                <control type="image" description="button back">
                    <width>64</width>
                    <height>64</height>
                    <texture border="32" colordiffuse="Dark1">common/circle.png</texture>
                </control>
                <control type="label">
                    <width>64</width>
                    <height>64</height>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$VAR[HDSD]</label>
                    <font>SmallBold</font>
                    <textcolor>Light1</textcolor>
                    <visible>!substring(ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
                <control type="image">
                    <width>64</width>
                    <height>64</height>
                    <texture colordiffuse="Light1">flags/sets.png</texture>
                    <visible>substring(ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[ListItem.VideoResolution,flags/resolution/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.VideoResolution) + !substring(ListItem.Path,videodb://movies/sets,left)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[Flagstar1].png</texture>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[Flagstar2].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[Flagstar3].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[Flagstar4].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[Flagstar5].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="label">
                <left>-16</left>
                <width min="48">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Rating]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            
            <control type="image">
                <width>48</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/airing.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>Container.Content(tvshows) | Container.Content(seasons)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$VAR[LabelNextAiredDetails]</label>
                <font>Flag</font>
                <textcolor>Dark2</textcolor>
                <visible>Container.Content(tvshows) | Container.Content(seasons)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[ListItem.VideoCodec,flags/source/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.VideoCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[ListItem.VideoAspect,flags/aspectratio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.VideoAspect)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[ListItem.AudioCodec,flags/audio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.AudioCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[ListItem.AudioChannels,flags/channels/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.AudioChannels)</visible>
            </control>
            
            
            
            <control type="image">
                <width>48</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/video.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.VideoResolution)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.VideoCodec,,  •  ]$INFO[ListItem.VideoResolution]$INFO[ListItem.VideoAspect,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.VideoResolution)</visible>
            </control>
            <control type="image">
                <width>48</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/audio.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.AudioCodec)</visible>
            </control>
            <control type="label">
                <width>auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.AudioCodec]$VAR[LabelAudioChannels,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(ListItem.AudioCodec)</visible>
            </control>
            <control type="image">
                <width>48</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/time.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!IsEmpty(ListItem.Duration) + [Control.IsVisible(500) | Control.IsVisible(53) | Control.IsVisible(52) | Control.IsVisible(55)]</visible>
            </control>
            <control type="label">
                <width>auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[ListItem.Duration,, $LOCALIZE[31102]  ]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!IsEmpty(ListItem.Duration) + [Control.IsVisible(500) | Control.IsVisible(53) | Control.IsVisible(52) | Control.IsVisible(55)]</visible>
            </control>
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/3D.png</texture>
                <visible>ListItem.IsStereoscopic</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/bluray.png</texture>
                <visible>[substring(ListItem.FilenameAndPath,bluray) | substring(ListItem.FilenameAndPath,bdrip) | substring(ListItem.FilenameAndPath,bd25) | substring(ListItem.FilenameAndPath,bd50)]</visible>
            </control>
            <control type="image">
                <width>95</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/hddvd.png</texture>
                <visible>substring(ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/dvd.png</texture>
                <visible>substring(ListItem.FilenameAndPath,dvd) + !substring(ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/imdb.png</texture>
                <visible>!IsEmpty(ListItem.Top250)</visible>
            </control>
            
        </control>
    </include>
    <include name="Furniture_Hub_Flags">
        <control type="grouplist">
            <visible>!Skin.HasSetting(furniture.flags)</visible>
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <left>SidePad</left>
            <centerbottom>NavBarPad</centerbottom>
            <width>1400</width>
            <height>64</height>
            <orientation>horizontal</orientation>
            <align>left</align>
            <itemgap>24</itemgap>
            <usecontrolcoords>true</usecontrolcoords>
            <control type="group">
                <visible>!Skin.HasSetting(furniture.flagicons) | IsEmpty(Container(9500).ListItem.VideoResolution)</visible>
                <width>64</width>
                <height>64</height>
                <control type="image" description="button back">
                    <width>64</width>
                    <height>64</height>
                    <texture border="32" colordiffuse="Dark1">common/circle.png</texture>
                </control>
                <control type="label">
                    <width>64</width>
                    <height>64</height>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$VAR[HDSD]</label>
                    <font>SmallBold</font>
                    <textcolor>Light1</textcolor>
                    <visible>!substring(Container(9500).ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
                <control type="image">
                    <width>64</width>
                    <height>64</height>
                    <texture colordiffuse="Light1">flags/sets.png</texture>
                    <visible>substring(Container(9500).ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(9500).ListItem.VideoResolution,flags/resolution/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.VideoResolution)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HubFlagstar1].png</texture>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HubFlagstar2].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HubFlagstar3].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HubFlagstar4].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HubFlagstar5].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="label">
                <left>-16</left>
                <width min="48">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(9500).ListItem.Rating]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>Skin.HasSetting(furniture.numericrating)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(9500).ListItem.VideoCodec,flags/source/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.VideoCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(9500).ListItem.VideoAspect,flags/aspectratio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.VideoAspect)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(9500).ListItem.AudioCodec,flags/audio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.AudioCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(9500).ListItem.AudioChannels,flags/channels/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.AudioChannels)</visible>
            </control>
            
            <control type="image">
                <width>48</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/video.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.VideoResolution)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(9500).ListItem.VideoCodec,,  •  ]$INFO[Container(9500).ListItem.VideoResolution]$INFO[Container(9500).ListItem.VideoAspect,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.VideoResolution)</visible>
            </control>
            <control type="image">
                <width>48</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/audio.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.AudioCodec)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(9500).ListItem.AudioCodec]$VAR[LabelHubAudioChannels,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(9500).ListItem.AudioCodec)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/3D.png</texture>
                <visible>Container(9500).ListItem.IsStereoscopic</visible>
            </control>
            <control type="image">
                <width>64</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/bluray.png</texture>
                <visible>[substring(Container(9500).ListItem.FilenameAndPath,bluray) | substring(Container(9500).ListItem.FilenameAndPath,bdrip) | substring(Container(9500).ListItem.FilenameAndPath,bd25) | substring(Container(9500).ListItem.FilenameAndPath,bd50)]</visible>
            </control>
            <control type="image">
                <width>95</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/hddvd.png</texture>
                <visible>substring(Container(9500).ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/dvd.png</texture>
                <visible>substring(Container(9500).ListItem.FilenameAndPath,dvd) + !substring(Container(9500).ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/imdb.png</texture>
                <visible>!IsEmpty(Container(9500).ListItem.Top250)</visible>
            </control>

            
            
        </control>
    </include>
    <include name="Furniture_Home_Flags">
        <control type="grouplist">
            <visible>!Skin.HasSetting(furniture.flags)</visible>
            <visible>Control.HasFocus(301)</visible>
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <left>SidePad</left>
            <centerbottom>NavBarPad</centerbottom>
            <width>1400</width>
            <height>64</height>
            <orientation>horizontal</orientation>
            <align>left</align>
            <itemgap>24</itemgap>
            <usecontrolcoords>true</usecontrolcoords>
            <control type="group">
                <visible>!Skin.HasSetting(furniture.flagicons) | IsEmpty(Container(301).ListItem.VideoResolution)</visible>
                <width>64</width>
                <height>64</height>
                <control type="image" description="button back">
                    <width>64</width>
                    <height>64</height>
                    <texture border="32" colordiffuse="Dark1">common/circle.png</texture>
                </control>
                <control type="label">
                    <width>64</width>
                    <height>64</height>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$VAR[HDSD]</label>
                    <font>SmallBold</font>
                    <textcolor>Light1</textcolor>
                    <visible>!substring(Container(301).ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
                <control type="image">
                    <width>64</width>
                    <height>64</height>
                    <texture colordiffuse="Light1">flags/sets.png</texture>
                    <visible>substring(Container(301).ListItem.Path,videodb://movies/sets,left)</visible>
                </control>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(301).ListItem.VideoResolution,flags/resolution/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.VideoResolution)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HomeFlagstar1].png</texture>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HomeFlagstar2].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HomeFlagstar3].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HomeFlagstar4].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="image">
                <posx>-48</posx>
                <width>64</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1">flags/$VAR[HomeFlagstar5].png</texture>
                <visible>!Skin.HasSetting(furniture.numericrating)</visible>
            </control>
            <control type="label">
                <left>-16</left>
                <width min="48">auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(301).ListItem.Rating]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>Skin.HasSetting(furniture.numericrating)</visible>
            </control>

            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(301).ListItem.VideoCodec,flags/source/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.VideoCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(301).ListItem.VideoAspect,flags/aspectratio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.VideoAspect)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(301).ListItem.AudioCodec,flags/audio/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.AudioCodec)</visible>
            </control>
            <control type="image">
                <width>88</width>
                <height>64</height>
                <centertop>50%</centertop>
                <texture colordiffuse="Dark1" fallback="flags/fallback.png">$INFO[Container(301).ListItem.AudioChannels,flags/channels/,.png]</texture>
                <aspectratio align="center">keep</aspectratio>
                <visible>Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.AudioChannels)</visible>
            </control>
            
            <control type="image">
                <width>48</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/video.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.VideoResolution)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(301).ListItem.VideoCodec,,  •  ]$INFO[Container(301).ListItem.VideoResolution]$INFO[Container(301).ListItem.VideoAspect,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.VideoResolution)</visible>
            </control>
            <control type="image">
                <width>48</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/audio.png</texture>
                <aspectratio align="left">scale</aspectratio>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.AudioCodec)</visible>
            </control>
            <control type="label">
                <width min="128">auto</width>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$INFO[Container(301).ListItem.AudioCodec]$VAR[LabelHomeAudioChannels,  •  ,]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>!Skin.HasSetting(furniture.flagicons) + !IsEmpty(Container(301).ListItem.AudioCodec)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/3D.png</texture>
                <visible>Container(301).ListItem.IsStereoscopic</visible>
            </control>
            <control type="image">
                <width>64</width>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/bluray.png</texture>
                <visible>[substring(Container(301).ListItem.FilenameAndPath,bluray) | substring(Container(301).ListItem.FilenameAndPath,bdrip) | substring(Container(301).ListItem.FilenameAndPath,bd25) | substring(Container(301).ListItem.FilenameAndPath,bd50)]</visible>
            </control>
            <control type="image">
                <width>95</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/hddvd.png</texture>
                <visible>substring(Container(301).ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/dvd.png</texture>
                <visible>substring(Container(301).ListItem.FilenameAndPath,dvd) + !substring(Container(301).ListItem.FilenameAndPath,hddvd)</visible>
            </control>
            
            <control type="image">
                <width>64</width>
                <centertop>50%</centertop>
                <height>64</height>
                <texture colordiffuse="Dark1">flags/imdb.png</texture>
                <visible>!IsEmpty(Container(301).ListItem.Top250)</visible>
            </control>

            
            
        </control>
    </include>

    <variable name="HeaderIcon">
        <value condition="Window.IsVisible(DialogMuteBug.xml)">special://skin/extras/icons/mute.png</value>
        <value condition="Window.IsVisible(DialogButtonMenu.xml)">special://skin/extras/icons/power.png</value>
        <value condition="Window.IsVisible(DialogFavourites.xml)">special://skin/extras/icons/favourites.png</value>
        <value condition="Window.IsVisible(1101)">special://skin/extras/icons/film.png</value>
        <value condition="Window.IsVisible(1102)">special://skin/extras/icons/tv.png</value>
        <value condition="Window.IsVisible(1103) | Window.IsVisible(1104) | Window.IsVisible(1105)">special://skin/extras/icons/director.png</value>
        <value condition="Player.HasAudio + [Window.IsVisible(fullscreenvideo) | Window.IsVisible(visualisation) | Window.IsVisible(home)]">special://skin/extras/icons/songs.png</value>
        <value condition="Player.HasVideo + VideoPlayer.Content(livetv) + [Window.IsVisible(fullscreenvideo) | Window.IsVisible(visualisation) | Window.IsVisible(home)]">special://skin/extras/icons/livetv.png</value>
        <value condition="Player.HasVideo + VideoPlayer.Content(movies) + [Window.IsVisible(fullscreenvideo) | Window.IsVisible(visualisation) | Window.IsVisible(home)]">special://skin/extras/icons/film.png</value>
        <value condition="Player.HasVideo + VideoPlayer.Content(episodes) + [Window.IsVisible(fullscreenvideo) | Window.IsVisible(visualisation) | Window.IsVisible(home)]">special://skin/extras/icons/tv.png</value>
        <value condition="Player.HasVideo + [Window.IsVisible(fullscreenvideo) | Window.IsVisible(visualisation) | Window.IsVisible(home)]">special://skin/extras/icons/eye.png</value>
        <value condition="Window.IsVisible(script-ExtendedInfo Script-YoutubeList.xml)">special://skin/extras/icons/youtube.png</value>
        <value condition="Window.IsVisible(DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-VideoList.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)">special://skin/extras/icons/info.png</value>
        <value condition="Window.IsVisible(script-NextAired-TVGuide.xml) | Window.IsVisible(script-NextAired-TVGuide2.xml)">special://skin/extras/icons/tvguide.png</value>
        <value condition="SubString(Container.FolderPath,sources://,Left)">special://skin/extras/icons/files.png</value>
        <value condition="SubString(Container.FolderPath,special://videoplaylists/,Left)">special://skin/extras/icons/playlist.png</value>
        <value condition="StringCompare(Container.FolderPath,special://profile/playlists/)">special://skin/extras/icons/playlist.png</value>
        <value condition="StringCompare(Container.FolderPath,special://profile/playlists/video/)">special://skin/extras/icons/playlist.png</value>
        <value condition="StringCompare(Container.FolderPath,special://profile/playlists/music/)">special://skin/extras/icons/playlist.png</value>
        <value condition="StringCompare(Container.FolderPath,special://profile/playlists/mixed/)">special://skin/extras/icons/playlist.png</value>
        <value condition="Window.IsVisible(MyMusicPlaylistEditor.xml) | Window.IsVisible(MyMusicNav.xml) | Window.IsVisible(MyMusicSongs.xml)">special://skin/extras/icons/songs.png</value>
        <value condition="SubString(Container.FolderPath,library://video/movies/,Left)">special://skin/extras/icons/film.png</value>
        <value condition="SubString(Container.FolderPath,library://video/tvshows/,Left)">special://skin/extras/icons/tv.png</value>
        <value condition="SubString(Container.FolderPath,videodb://movies/,Left)">special://skin/extras/icons/film.png</value>
        <value condition="SubString(Container.FolderPath,videodb://tvshows/,Left)">special://skin/extras/icons/tv.png</value>
        <value condition="SubString(Container.FolderPath,plugin://,Left)">special://skin/extras/icons/video-addons.png</value>
        <value condition="Container.Content(movies)">special://skin/extras/icons/film.png</value>
        <value condition="Container.Content(tvshows) | Container.Content(seasons) | Container.Content(episodes)">special://skin/extras/icons/tv.png</value>
        <value condition="Container.Content(songs)">special://skin/extras/icons/songs.png</value>
        <value condition="Container.Content(livetv)">special://skin/extras/icons/livetv.png</value>
        <value condition="Container.Content(files)">special://skin/extras/icons/files.png</value>
        <value condition="Container.Content(plugins)">special://skin/extras/icons/video-addons.png</value>
        <value condition="Container.Content(addons)">special://skin/extras/icons/addons.png</value>
        <value condition="SubString(Container.FolderPath,videodb://musicvideos/,Left)">special://skin/extras/icons/musicvideo.png</value>
        <value condition="Window.IsVisible(Custom_SetCustomColor.xml)">special://skin/extras/icons/wand.png</value>
        <value condition="Window.IsVisible(MyPVRChannels.xml) | Window.IsVisible(MyPVRSearch.xml) | Window.IsVisible(MyPVRTimers.xml) | Window.IsVisible(MyPVRGuide.xml) | Window.IsVisible(MyPVRRecordings.xml)">special://skin/extras/icons/livetv.png</value>
        <value condition="Window.IsVisible(MyMusicPlaylistEditor.xml) | Window.IsVisible(MyMusicNav.xml) | Window.IsVisible(MyMusicSongs.xml)">special://skin/extras/icons/songs.png</value>
        <value condition="Window.IsVisible(MyPics.xml)">special://skin/extras/icons/pictures.png</value>
        <value condition="Window.IsVisible(MyPrograms.xml) | Window.IsVisible(AddonBrowser.xml)">special://skin/extras/icons/addons.png</value>
        <value condition="Window.IsVisible(weather)">special://skin/extras/icons/sun.png</value>
        <value condition="Window.IsVisible(SettingsSystemInfo.xml) | Window.IsVisible(SettingsCategory.xml) | Window.IsVisible(settings) | Window.IsVisible(SkinSettings.xml)">special://skin/extras/icons/settings.png</value>
        <value condition="Window.IsVisible(MyMusicPlaylist.xml)">special://skin/extras/icons/playlist.png</value>
        <value condition="Window.IsVisible(FileManager.xml)">special://skin/extras/icons/database.png</value>
        <value condition="Window.IsVisible(Home.xml)">special://skin/extras/icons/home.png</value>
        <value condition="Window.IsVisible(MyVideoNav.xml)">special://skin/extras/icons/video-addons.png</value>
        <value>special://skin/extras/icons/artist.png</value>
    </variable>

    <variable name="GlobalSearchHeaderLabel">
        <value condition="Control.HasFocus(211)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(210)][/COLOR] $LOCALIZE[20337] $LOCALIZE[31101]</value>
        <value condition="Control.HasFocus(111)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(110)][/COLOR] $LOCALIZE[20342]</value>
        <value condition="Control.HasFocus(121)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(120)][/COLOR] $LOCALIZE[20343]</value>
        <value condition="Control.HasFocus(131)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(130)][/COLOR] $LOCALIZE[33054]</value>
        <value condition="Control.HasFocus(141)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(140)][/COLOR] $LOCALIZE[20360]</value>
        <value condition="Control.HasFocus(151)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(150)][/COLOR] $LOCALIZE[20389]</value>
        <value condition="Control.HasFocus(161)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(160)][/COLOR] $LOCALIZE[133]</value>
        <value condition="Control.HasFocus(171)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(170)][/COLOR] $LOCALIZE[132]</value>
        <value condition="Control.HasFocus(181)">[COLOR=$VAR[ColorHighlight]]$INFO[Control.GetLabel(180)][/COLOR] $LOCALIZE[134]</value>

    </variable>
    
    <variable name="MainHeaderLabel">
        <value condition="Skin.HasSetting(hide.busydialog) + Window.IsVisible(DialogBusy.xml)">$LOCALIZE[20186]...</value>
        <value condition="Window.IsVisible(Custom_SetCustomColor.xml)">$LOCALIZE[31238]</value>
        <value condition="Window.IsVisible(MyMusicPlaylistEditor.xml)">$LOCALIZE[20011]</value>
        <value condition="Window.IsVisible(DialogButtonMenu.xml)">$LOCALIZE[33060]</value>
        <value condition="Window.IsVisible(DialogFavourites.xml)">$LOCALIZE[1036]</value>
        <value condition="[Window.IsVisible(script-globalsearch-main.xml) | Window.IsVisible(script-globalsearch-info.xml)] + [!IsEmpty(Control.GetLabel(190)) | !IsEmpty(Control.GetLabel(191)) | !IsEmpty(Control.GetLabel(199))]">$INFO[Control.GetLabel(190)]$INFO[Control.GetLabel(191)]$INFO[Control.GetLabel(199)]</value>
        <value condition="Window.IsVisible(script-NextAired-TVGuide.xml) | Window.IsVisible(script-NextAired-TVGuide2.xml)">[CAPITALIZE]$LOCALIZE[4][/CAPITALIZE]</value>
        <value condition="[Window.IsVisible(script-globalsearch-main.xml) | Window.IsVisible(script-globalsearch-info.xml)] + IsEmpty(Control.GetLabel(190)) + IsEmpty(Control.GetLabel(191)) + IsEmpty(Control.GetLabel(199))">$LOCALIZE[283]</value>
        <value condition="Window.IsVisible(script-ExtendedInfo Script-YoutubeList.xml)">$LOCALIZE[31141]</value>
        <value condition="Window.IsVisible(DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-VideoList.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)">$LOCALIZE[31241]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + StringCompare(Container.FolderPath,videodb://movies/titles/)">$LOCALIZE[20342]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + StringCompare(Container.FolderPath,videodb://tvshows/titles/)">$LOCALIZE[20343]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + SubString(Container.FolderPath,videodb://movies/,Left)">$INFO[Container.FolderName]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + SubString(Container.FolderPath,videodb://tvshows/,Left) + Container.Content(episodes) + !IsEmpty(ListItem.TvShowTitle)">$INFO[ListItem.TvShowTitle]$INFO[Container.FolderName, - ,]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + SubString(Container.FolderPath,videodb://tvshows/,Left)">$INFO[Container.FolderName]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml) + !IsEmpty(Container.FolderName)">$INFO[Container.FolderName]</value>
        <value condition="Window.IsVisible(MyVideoNav.xml)">$LOCALIZE[3]</value>                                                                          
        <value condition="Window.IsVisible(MyPVRChannels.xml)">$LOCALIZE[19019]</value>
        <value condition="Window.IsVisible(MyPVRGuide.xml)">$LOCALIZE[4]</value>
        <value condition="Window.IsVisible(MyPVRRecordings.xml)">$LOCALIZE[19017]</value>
        <value condition="Window.IsVisible(MyPVRTimers.xml)">$LOCALIZE[19040]</value>
        <value condition="Window.IsVisible(MyPVRSearch.xml)">$LOCALIZE[137]</value>
        <value condition="!IsEmpty(Container.FolderName) + [Window.IsVisible(MyMusicNav.xml) | Window.IsVisible(MyMusicSongs.xml)]">$INFO[Container.FolderName]</value>
        <value condition="Window.IsVisible(MyMusicNav.xml) | Window.IsVisible(MyMusicSongs.xml)">$LOCALIZE[2]</value>
        <value condition="Window.IsVisible(SettingsSystemInfo.xml) | Window.IsVisible(SettingsCategory.xml) | Window.IsVisible(settings) | Window.IsVisible(SkinSettings.xml)">$LOCALIZE[5]</value>
        <value condition="Window.IsVisible(weather)">$LOCALIZE[8]</value>
        <value condition="!IsEmpty(Container.FolderName) + Window.IsVisible(MyPics.xml)">$INFO[Container.FolderName]</value>
        <value condition="Window.IsVisible(MyPics.xml)">$LOCALIZE[1]</value>
        <value condition="Window.IsVisible(MyPrograms.xml)">$LOCALIZE[0]</value>
        <value condition="Window.IsVisible(AddonBrowser.xml)">$LOCALIZE[24001]</value>
        <value condition="Window.IsVisible(MyMusicPlaylist.xml)">$LOCALIZE[559]</value>
        <value condition="Window.IsVisible(FileManager.xml)">$LOCALIZE[744]</value>
        <value condition="Window.IsVisible(1101)">$LOCALIZE[31192]</value>
        <value condition="Window.IsVisible(1102)">$LOCALIZE[31193]</value>
        <value condition="Window.IsVisible(1103) + StringCompare(Window(1103).Property(content),1)">$INFO[Window(home).Property(ExtStudio),$LOCALIZE[31205] ,]</value>
        <value condition="Window.IsVisible(1103) + StringCompare(Window(1103).Property(content),2)">$INFO[Window(home).Property(ExtMovie),$LOCALIZE[31204] ,]</value>
        <value condition="Window.IsVisible(1103)">$INFO[Window(home).Property(ExtDirector),$LOCALIZE[31191] ,]</value>
        <value condition="Window.IsVisible(1104) + StringCompare(Window(1104).Property(content),1)">$LOCALIZE[31211]</value>
        <value condition="Window.IsVisible(1104) + StringCompare(Window(1104).Property(content),2)">$LOCALIZE[31210]</value>
        <value condition="Window.IsVisible(1104) + StringCompare(Window(1104).Property(content),3)">$LOCALIZE[31209]</value>
        <value condition="Window.IsVisible(1104)">$LOCALIZE[31208]</value>
        <value condition="Window.IsVisible(1105) + StringCompare(Window(1105).Property(content),1)">$LOCALIZE[31211]</value>
        <value condition="Window.IsVisible(1105) + StringCompare(Window(1105).Property(content),2)">$LOCALIZE[31210]</value>
        <value condition="Window.IsVisible(1105) + StringCompare(Window(1105).Property(content),3)">$LOCALIZE[31212]</value>
        <value condition="Window.IsVisible(1105)">$LOCALIZE[31213]</value>
        <value>$LOCALIZE[10000]</value>
    </variable>
    <variable name="SubHeaderLabel">
        <value condition="Window.IsVisible(script-ExtendedInfo Script-YoutubeList.xml)">$INFO[Window.Property(Filter_Label),,  ]$INFO[Window.Property(TotalItems),, $LOCALIZE[31101]]</value>
        <value condition="Window.IsVisible(script-NextAired-TVGuide.xml) | Window.IsVisible(script-NextAired-TVGuide2.xml)">[COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(NextAired.Total),,[/COLOR] $LOCALIZE[20343]]</value>
        <value condition="Window.IsVisible(DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-VideoList.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) | Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)">$LOCALIZE[31242]</value>
        <value condition="[Window.IsVisible(script-globalsearch-main.xml) | Window.IsVisible(script-globalsearch-info.xml)] + IsEmpty(Control.GetLabel(190)) + IsEmpty(Control.GetLabel(191)) + IsEmpty(Control.GetLabel(199))">$VAR[GlobalSearchHeaderLabel]</value>
        <value condition="Window.IsVisible(LoginScreen.xml)">$LOCALIZE[10029]</value>
        <value condition="Window.IsVisible(Custom_SetCustomColor.xml)">$LOCALIZE[31239] [COLOR=$VAR[ColorHighlight]]$VAR[ColorHighlight][/COLOR]  •  $LOCALIZE[31240] [COLOR=$INFO[Control.GetLabel(9500)]]$INFO[Control.GetLabel(9500)][/COLOR]</value>
        <value condition="[Window.IsVisible(MyPVRChannels.xml) | Window.IsVisible(MyPVRSearch.xml) | Window.IsVisible(MyPVRTimers.xml) | Window.IsVisible(MyPVRGuide.xml) | Window.IsVisible(MyPVRRecordings.xml)]">[COLOR=$VAR[ColorHighlight]]$INFO[Container.NumItems,,[/COLOR] $LOCALIZE[31101]]$INFO[Control.GetLabel(3),  •  ,]$INFO[Control.GetLabel(28),  •  ,]</value>
        <value condition="!IsEmpty(Container.NumItems) + !Window.IsVisible(home)">[COLOR=$VAR[ColorHighlight]]$INFO[Container.NumItems,,[/COLOR] $LOCALIZE[31101]]$INFO[Control.GetLabel(3),  •  ,]</value>
        <value condition="!IsEmpty(Container(9500).NumItems) + !Window.IsVisible(home)">[COLOR=$VAR[ColorHighlight]]$INFO[Container(9500).NumItems,,[/COLOR] $LOCALIZE[31101]]</value>
        <value condition="Window.IsVisible(MyWeather.xml) + !IsEmpty(Window(Weather).Property(Location))">[COLOR=$VAR[ColorHighlight]]$INFO[Weather.Temperature,,[/COLOR]  ]$INFO[Window(Weather).Property(Location)]</value>
        <value condition="IsEmpty(Pvr.BackendChannels)">[COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Movies.Count)][/COLOR] $LOCALIZE[20342]  •  [COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Episodes.Count)][/COLOR] $LOCALIZE[20360]  •  [COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Music.SongsCount)][/COLOR] $LOCALIZE[134]</value>
        <value>[COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Movies.Count)][/COLOR] $LOCALIZE[20342]  •  [COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Episodes.Count)][/COLOR] $LOCALIZE[20360]  •  [COLOR=$VAR[ColorHighlight]]$INFO[Window(home).Property(Music.SongsCount)][/COLOR] $LOCALIZE[134]  •  [COLOR=$VAR[ColorHighlight]]$INFO[Pvr.BackendChannels][/COLOR] $LOCALIZE[19019]</value>
    </variable>
  
    <include name="Furniture_Header">
        <control type="image" description="clearlogo">
            <include>Animation.FadeIn</include>
            <include>Animation.FadeOut</include>
            <visible>Skin.HasSetting(furniture.logo)</visible>
            <visible>!Window.IsVisible(script-ExtendedInfo Script-DialogVideoInfo.xml) + !Window.IsVisible(script-ExtendedInfo Script-DialogInfo.xml)</visible>
            <centertop>120</centertop>
            <centerleft>50%</centerleft>
            <width>400</width>
            <height>100</height>
            <aspectratio align="center">keep</aspectratio>
            <texture background="true">$VAR[ClearLogoTopVar]</texture>
        </control>
        <control type="grouplist">
            <top>SidePad</top>
            <left>SidePad</left>
            <visible>!Skin.HasSetting(furniture.header)</visible>
            <include>Animation.FurnitureFadeInOut</include>
            <orientation>horizontal</orientation>
            <itemgap>24</itemgap>
            <control type="group" description="iconbox">
                <width>80</width>
                <height>80</height>
                <control type="image">
                    <width>80</width>
                    <height>80</height>
                    <texture colordiffuse="Panel" border="8">common/box.png</texture>
                </control>
                <control type="image">
                    <top>-14</top>
                    <left>-14</left>
                    <width>108</width>
                    <height>108</height>
                    <texture colordiffuse="PanelWhite100" border="8">$VAR[HeaderIcon]</texture>
                    <visible>!Container.Scrolling</visible>
                    <visible>!Skin.HasSetting(hide.busydialog) | !Window.IsVisible(DialogBusy.xml)</visible>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                </control>
                <control type="label">
                    <centertop>39</centertop>
                    <centerleft>40</centerleft>
                    <width>80</width>
                    <height>80</height>
                    <font>LargeBold</font>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$INFO[ListItem.SortLetter,[UPPERCASE],[/UPPERCASE]]</label>
                    <textcolor>PanelWhite100</textcolor>
                    <visible>Container.Scrolling</visible>
                    <visible>!Skin.HasSetting(hide.busydialog) | !Window.IsVisible(DialogBusy.xml)</visible>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                </control>
                <control type="image">
                    <centertop>40</centertop>
                    <centerleft>40</centerleft>
                    <width>48</width>
                    <height>48</height>
                    <texture colordiffuse="PanelWhite100" fallback="special://skin/extras/spinners/flower.gif">$INFO[Skin.String(busyloader)]</texture>
                    <visible>Skin.HasSetting(hide.busydialog) + Window.IsVisible(DialogBusy.xml)</visible>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                </control>
            </control>
            <control type="group">
                <control type="label">
                    <centertop>24</centertop>
                    <include condition="Skin.HasSetting(furniture.logo) + !Window.IsVisible(home) + !Window.IsVisible(settings) + !Window.IsVisible(skinsettings) + !Window.IsVisible(SettingsCategory.xml)">HeaderLabelWidthLogo</include>
                    <width>auto</width>
                    <font>MediumBold</font>
                    <textcolor>Dark1</textcolor>
                    <label>$VAR[MainHeaderLabel]</label>
                </control>
                <control type="label">
                    <centertop>58</centertop>
                    <font>Flag</font>
                    <include condition="Skin.HasSetting(furniture.logo) + !Window.IsVisible(home) + !Window.IsVisible(settings) + !Window.IsVisible(skinsettings) + !Window.IsVisible(SettingsCategory.xml)">HeaderLabelWidthLogo</include>
                    <width>auto</width>
                    <textcolor>Dark2</textcolor>
                    <label>$VAR[SubHeaderLabel]</label>
                </control>
            </control>
        </control>
    </include>
    <include name="HeaderLabelWidthLogo"><width>560</width></include>
    <include name="Furniture_Clock">
        <control type="group">
            <include>Animation.FurnitureFadeInOut</include>
            <centerbottom>NavBarPad</centerbottom>
            <visible>!Skin.HasSetting(furniture.clock)</visible>
            <height>84</height>
            <animation effect="slide" start="0" end="0,-10" time="150" condition="Skin.HasSetting(furniture.weather)">Conditional</animation>
            <control type="label">
                <centertop>24</centertop>
                <right>130</right>
                <align>right</align>
                <font>LargeBold</font>
                <textcolor>Dark1</textcolor>
                <label>$INFO[System.Time(hh:mm)]</label>
                <animation effect="slide" start="0" end="50" time="0" condition="IsEmpty(System.Time(xx))">Conditional</animation>
            </control>
            <control type="label">
                <centertop>30</centertop>
                <right>SidePad</right>
                <font>SmallBold</font>
                <textcolor>Dark3</textcolor>
                <align>right</align>
                <width>120</width>
                <label>$INFO[System.Time(xx)]</label>
                <visible>!IsEmpty(System.Time(xx))</visible>
            </control>  
            <control type="label">
                <centertop>64</centertop>
                <right>SidePad</right>
                <font>Flag</font>
                <textcolor>Dark2</textcolor>
                <align>right</align>
                <width>50%</width>
                <label>$INFO[System.Date(DDD)]$COMMA $INFO[System.Date(d MMM yyyy)]</label>
            </control>
            <control type="label">
                <centertop>92</centertop>
                <right>SidePad</right>
                <font>Flag</font>
                <textcolor>Dark3</textcolor>
                <align>right</align>
                <width>50%</width>
                <visible>Skin.HasSetting(furniture.weather)</visible>
                <label>[COLOR=$VAR[ColorHighlight]]$INFO[Weather.Temperature][/COLOR]  $INFO[Weather.Conditions]</label>
            </control>
      
        </control>
        
    </include>

    <include name="Furniture_Weather">
        <!-- Weather Furniture -->
        <control type="grouplist">
            <include>Animation.FurnitureFadeInOut</include>
            <visible>!Skin.HasSetting(furniture.weather)</visible>
            <visible>Skin.HasSetting(furniture.topweather) | [Window.IsActive(home) + substring(Container(300).ListItem.Property(widget),Weather,left)]</visible>
            <visible>!Window.IsVisible(DialogVolumeBar.xml)</visible>
            <visible>!Window.IsVisible(DialogKaiToast.xml)</visible>
            <visible>!Window.IsVisible(DialogExtendedProgressBar.xml)</visible>
            <visible>!Window.IsActive(DialogKaiToast.xml)</visible>
            <visible>Skin.HasSetting(furniture.nowplaying) | [!Skin.HasSetting(furniture.nowplaying) + IsEmpty(Player.Duration) + !Player.HasAudio]</visible>
            <top>70</top>
            <right>62</right>
            <orientation>horizontal</orientation>
            <usecontrolcoords>true</usecontrolcoords>
            <itemgap>24</itemgap>
            <align>right</align>
            <control type="group">
                <width>700</width>
                <posy>10</posy>
                <control type="label">
                    <centertop>24</centertop>
                    <width>auto</width>
                    <font>MediumBold</font>
                    <align>right</align>
                    <textcolor>Dark1</textcolor>
                    <label>$INFO[Weather.Temperature]</label>
                </control>
                <control type="label">
                    <centertop>58</centertop>
                    <align>right</align>
                    <font>Flag</font>
                    <width>auto</width>
                    <textcolor>Dark2</textcolor>
                    <label>$INFO[Weather.Location,, - ]$INFO[Weather.Conditions]</label>
                </control>
            </control>
            <control type="group">
                <posx>-10</posx>
                <posy>10</posy>
                <height>80</height>
                <width>90</width>
                <control type="image">
                    <width>80</width>
                    <height>80</height>
                    <fadetime>350</fadetime>
                    <aspectratio aligny="center" align="center">keep</aspectratio>
                    <texture colordiffuse="Dark1">$INFO[Weather.FanartCode,weather/small/,.png]</texture>
                </control>
            </control>
        </control>
    </include>

    <include name="Furniture_NowPlaying">
        <control type="grouplist">
            <visible>!Skin.HasSetting(furniture.nowplaying)</visible>
            <visible>!Window.IsVisible(DialogVolumeBar.xml)</visible>
            <visible>!Window.IsVisible(DialogKaiToast.xml)</visible>
            <visible>!Window.IsVisible(DialogExtendedProgressBar.xml)</visible>
            <include>Animation.FurnitureFadeInOut</include>
            <visible>IsEmpty(Window(10025).Property(TvTunesIsAlive))</visible>
            <visible>!Window.IsActive(DialogKaiToast.xml)</visible>
            <visible>Player.HasMedia</visible>
            <visible>!IsEmpty(Player.Duration) | Player.HasAudio</visible>
            <animation effect="slide" start="0" end="0,-250" time="150" condition="Control.HasFocus(301) + !Skin.HasSetting(home.classicwidgets) + !Skin.HasSetting(home.vertical)">Conditional</animation>
            <top>70</top>
            <right>62</right>
            <orientation>horizontal</orientation>
            <usecontrolcoords>true</usecontrolcoords>
            <itemgap>24</itemgap>
            <align>right</align>
            <control type="group">
                <include condition="Skin.HasSetting(furniture.logo)">HeaderLabelWidthLogo</include>
                <width>700</width>
                <posy>10</posy>
                <control type="label">
                    <centertop>24</centertop>
                    <width>auto</width>
                    <font>MediumBold</font>
                    <align>right</align>
                    <textcolor>Dark1</textcolor>
                    <label>$INFO[Player.Title]</label>
                </control>
                <control type="label">
                    <centertop>58</centertop>
                    <align>right</align>
                    <font>Flag</font>
                    <width>auto</width>
                    <textcolor>Dark2</textcolor>
                    <label>$INFO[VideoPlayer.TvShowTitle,,  ]$INFO[MusicPlayer.Artist,,  ]$INFO[Player.Time]$INFO[Player.Duration, / ,]</label>
                </control>
            </control>
            <control type="group">
                <posx>-20</posx>
                <height>100</height>
                <width>100</width>
                <control type="image" description="Back">
                    <left>0</left>
                    <centertop>50%</centertop>
                    <width>100</width>
                    <height>100</height>
                    <aspectratio align="center" aligny="center">keep</aspectratio>
                    <texture>progress/back.png</texture>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                </control>
                <control type="image" description="Play">
                    <left>0</left>
                    <centertop>50%</centertop>
                    <width>100</width>
                    <height>100</height>
                    <aspectratio align="center" aligny="center">keep</aspectratio>
                    <texture colordiffuse="Dark1">progress/play.png</texture>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                    <visible>!Player.Paused</visible>
                </control>
                <control type="image" description="Pause">
                    <left>0</left>
                    <centertop>50%</centertop>
                    <width>100</width>
                    <height>100</height>
                    <aspectratio align="center" aligny="center">keep</aspectratio>
                    <texture colordiffuse="Dark1">progress/pause.png</texture>
                    <animation effect="fade" start="0" end="100" time="150">VisibleChange</animation>
                    <visible>Player.Paused</visible>
                </control>
                <control type="progress" id="933">
                    <texturebg>-</texturebg>
                    <lefttexture>-</lefttexture>
                    <midtexture>-</midtexture>
                    <righttexture>-</righttexture>
                    <info>Player.Progress</info>
                    <visible>false</visible>
                </control>
                <control type="image">
                    <left>0</left>
                    <centertop>50%</centertop>
                    <width>100</width>
                    <height>100</height>
                    <texture colordiffuse="$VAR[ColorHighlight]">$INFO[Control.GetLabel(933),progress/circle/p,.png]</texture>
                    <aspectratio align="center">keep</aspectratio>
                    <visible>!IsEmpty(Player.Duration)</visible>
                </control>
              
            </control>
        </control>
    </include>

    <include name="Furniture_OverlayInfo">

        <control type="button" id ="9601">
            <width>1</width>
            <height>1</height>
            <visible allowhiddenfocus="true">false</visible>
            <onback>50</onback>
            <onup>50</onup>
            <ondown>50</ondown>
            <onleft>50</onleft>
            <onright>50</onright>
        </control>

        <control type="group">
            <visible>[System.IdleTime(3) + Skin.HasSetting(furniture.overlayinfo)] | Control.HasFocus(9601)</visible>
            <visible>![Window.IsVisible(script-skinshortcuts.xml) | Window.IsVisible(DialogSongInfo.xml) | Window.IsVisible(DialogPictureInfo.xml) | Window.IsVisible(FileBrowser.xml) | Window.IsVisible(DialogProgress.xml) | Window.IsVisible(DialogYesNo.xml) | Window.IsVisible(DialogOK.xml) | Window.IsVisible(DialogSelect.xml) | Window.IsVisible(DialogContextMenu.xml) | Window.IsVisible(DialogButtonMenu.xml) | ControlGroup(9000).HasFocus()]</visible>
            <visible>!Window.IsVisible(DialogVideoInfo.xml)</visible>
            <visible>[!IsEmpty(Window(home).Property(Set.Movies.ExtendedPlot)) + [Container.Content(Sets) | substring(ListItem.Path,videodb://movies/sets,left)]] | !IsEmpty(ListItem.Plot)</visible>
            <include>Animation.FadeIn</include>
            <include>GlobalOverlay</include>
            <include>GlobalOverlay</include>
            <control type="image" description="clearlogo">
                <visible>Skin.HasSetting(furniture.logo)</visible>
                <centertop>120</centertop>
                <centerleft>50%</centerleft>
                <width>400</width>
                <height>100</height>
                <aspectratio align="center">keep</aspectratio>
                <texture background="true">$VAR[ClearLogoTopVar]</texture>
            </control>
        </control>

        <control type="group">
            <left>SidePad</left>
            <right>SidePad</right>
            <top>PosterPad</top>
            <height>650</height>
            <visible>[System.IdleTime(3) + Skin.HasSetting(furniture.overlayinfo)] | Control.HasFocus(9601)</visible>
            <visible>![Window.IsVisible(script-skinshortcuts.xml) | Window.IsVisible(DialogSongInfo.xml) | Window.IsVisible(DialogPictureInfo.xml) | Window.IsVisible(FileBrowser.xml) | Window.IsVisible(DialogProgress.xml) | Window.IsVisible(DialogYesNo.xml) | Window.IsVisible(DialogOK.xml) | Window.IsVisible(DialogSelect.xml) | Window.IsVisible(DialogContextMenu.xml) | Window.IsVisible(DialogButtonMenu.xml) | ControlGroup(9000).HasFocus()]</visible>
            <visible>!Window.IsVisible(DialogVideoInfo.xml)</visible>
            <visible>[!IsEmpty(Window(home).Property(Set.Movies.ExtendedPlot)) + [Container.Content(Sets) | substring(ListItem.Path,videodb://movies/sets,left)]] | !IsEmpty(ListItem.Plot)</visible>
            <include>Animation.FadeIn.Slide</include>

            <control type="label">
                <description>header label</description>
                <left>60</left>
                <right>60</right>
                <posy>60</posy>
                <font>EpisodeNumber</font>
                <textcolor>PanelWhite70</textcolor>
                <height>45</height>
                <label>$VAR[LabelOverlayTitle]</label>
            </control>

            <control type="textbox">
                <description>textarea</description>
                <left>60</left>
                <right>60</right>
                <top>150</top>
                <bottom>0</bottom>
                <align>justify</align>
                <font>Medium</font>
                <textcolor>PanelWhite70</textcolor>
                <label>$VAR[LabelOverlayPlot]</label>
            </control>
        </control>
    </include>

    
</includes>
