<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <include name="SmallOverlayMediaFlag">
        <definition>
            <control type="image">
                <width>90</width>
                <height>90</height>
                <texture colordiffuse="$VAR[FademaskColor]" background="true">$VAR[ContentOverlay]</texture>
                <aspectratio scalediffuse="false">keep</aspectratio>
            </control>
        </definition>
    </include>
    
    <include name="DefaultOverlayMediaFlag">
        <definition>
            <control type="image">
                <width>200</width>
                <height>200</height>
                <texture colordiffuse="$VAR[FademaskColor]" background="true">$VAR[ContentOverlay]</texture>
                <aspectratio scalediffuse="false">keep</aspectratio>
            </control>
        </definition>
    </include>
    
    <include name="DefaultUnderlayMediaFlag">
        <definition>
            <control type="image">
                <width>200</width>
                <height>200</height>
                <texture colordiffuse="$VAR[SelectColor]" background="true">$VAR[ContentUnderlay]</texture>
                <aspectratio scalediffuse="false">keep</aspectratio>
            </control>
        </definition>
    </include>
    
    <include name="WatchedPropertyMediaFlag">
        <param name="visible" default="StringCompare(ListItem.Overlay,OverlayWatched.png)" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/property-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture>icons/property-watched.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="UserRatingMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.UserRating" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/rating-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/rating-star.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <width>60</width>
                    <height>60</height>
                    <font>SmallMediaFlagFont</font>
                    <textcolor>$PARAM[mediaflagcolor]</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$INFO[$PARAM[infolabel]]</label>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="VideoCodecMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.VideoCodec" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/video-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>160</width>
                    <height>60</height>
                    <texture>$INFO[$PARAM[infolabel],icons/video-,.png]</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="VideoResolutionMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.VideoResolution" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>100</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>96</width>
                    <height>56</height>
                    <texture>icons/resolution-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>100</width>
                    <height>60</height>
                    <texture>$INFO[$PARAM[infolabel],icons/resolution-,.png]</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="VideoAspectRatioMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.VideoAspect" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>70</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>66</width>
                    <height>56</height>
                    <texture>icons/aspectratio-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>70</width>
                    <height>60</height>
                    <texture>$INFO[$PARAM[infolabel],icons/aspectratio-,.png]</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="VideoStereoscopicPropertyMediaFlag">
        <param name="visible" default="ListItem.IsStereoscopic" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>100</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>96</width>
                    <height>56</height>
                    <texture>icons/property-3dbackground.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>100</width>
                    <height>60</height>
                    <texture>icons/property-3d.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="AudioCodecMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.AudioCodec" />
        <param name="filelabel" default="ListItem.FileExtension" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/audio-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>160</width>
                    <height>60</height>
                    <texture>$INFO[$PARAM[infolabel],icons/audio-,.png]</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
            
            <control type="group">
                <visible>String.IsEmpty($PARAM[infolabel]) + !Container.Content(addons) + [SubString($PARAM[filelabel],ape) | SubString($PARAM[filelabel],flac) | SubString($PARAM[filelabel],mp3) | SubString($PARAM[filelabel],wav) | SubString($PARAM[filelabel],wma)]</visible>
                <width>160</width>

                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/audio-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],ape)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-ape.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],flac)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-flac.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],mp3)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-mp3.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],ogg)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-ogg.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],wav)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-wav.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],wma)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/audio-wma.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="AudioChannelsMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.AudioChannels" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>120</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>116</width>
                    <height>56</height>
                    <texture>icons/channels-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>120</width>
                    <height>60</height>
                    <texture>icons/channels-logo.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],1)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>1.0</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],2)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>2.0</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],3)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>2.1</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],4)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>4.0</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],5)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>4.1</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],6)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>5.1</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],7)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>6.1</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],8)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>7.1</label>
                </control>
                <control type="label">
                    <visible>StringCompare($PARAM[infolabel],10)</visible>
                    <posx>100</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>right</align>
                    <aligny>center</aligny>
                    <label>9.1</label>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="AudioBitrateMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="MusicPlayer.BitRate" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>180</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>176</width>
                    <height>56</height>
                    <texture colordiffuse="$PARAM[outlinecolor]">icons/bitrate-background.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>180</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/bitrate-logo.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posy>10</posy>
                    <width>180</width>
                    <height>50</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$INFO[$PARAM[infolabel],, $LOCALIZE[31911]]</label>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="PictureCodecMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="filelabel" default="ListItem.FileExtension" />
        
        <definition>
            <control type="group">
                <visible>SubString($PARAM[filelabel],jpg) | SubString($PARAM[filelabel],jpeg) | SubString($PARAM[filelabel],png) | SubString($PARAM[filelabel],gif)</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/picture-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/picture-logo.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <visible>SubString($PARAM[filelabel],jpg)</visible>
                    <width>160</width>
                    <height>60</height>
                    <font>LargeMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>center</align>
                    <label>JPEG</label>
                </control>
                <control type="label">
                    <visible>!SubString($PARAM[filelabel],jpg)</visible>
                    <width>160</width>
                    <height>60</height>
                    <font>LargeMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>center</align>
                    <label>[UPPERCASE]$INFO[$PARAM[filelabel]][/UPPERCASE]</label>
                </control>
            </control>
        </definition>
    </include>
            
    <include name="PictureSizeMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.PictureResolution" />
        
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>180</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>176</width>
                    <height>56</height>
                    <texture>icons/size-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>180</width>
                    <height>60</height>
                    <texture>icons/size-logo.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posy>10</posy>
                    <width>180</width>
                    <height>50</height>
                    <font>SmallMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>center</align>
                    <aligny>center</aligny>
                    <label>$INFO[$PARAM[infolabel]]</label>
                </control>
            </control>
        </definition>
    </include>
            
    <include name="PictureISOMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.PictureISO" />
            
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>100</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>96</width>
                    <height>56</height>
                    <texture>icons/iso-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>100</width>
                    <height>60</height>
                    <texture>icons/iso-logo.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posy>20</posy>
                    <width>100</width>
                    <height>40</height>
                    <font>SmallMediaFlagFont</font>
                    <textcolor>$PARAM[mediaflagcolor]</textcolor>
                    <align>center</align>
                    <label>$INFO[$PARAM[infolabel]]</label>
                </control>
            </control>
        </definition>
    </include>
            
    <include name="PictureApertureMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.PictureAperture" />
            
        <definition>
            <control type="group">
                <visible>!String.IsEmpty($PARAM[infolabel])</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/aperture-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/aperture-logo.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="label">
                    <posx>65</posx>
                    <width>100</width>
                    <height>60</height>
                    <font>MediumMediaFlagFont</font>
                    <textcolor>$PARAM[outlinecolor]</textcolor>
                    <align>left</align>
                    <label>$INFO[$PARAM[infolabel],$LOCALIZE[31916],]</label>
                </control>
            </control>
        </definition>
    </include>

    <include name="MediumMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="filelabel" default="ListItem.FileName" />
            
        <definition>
            <control type="group">
                <visible>SubString($PARAM[filelabel],bluray) | SubString($PARAM[filelabel],blu-ray) | SubString($PARAM[filelabel],brrip) | SubString($PARAM[filelabel],bd25) | SubString($PARAM[filelabel],bd50) | SubString($PARAM[filelabel],dvd) | SubString($PARAM[filelabel],hdtv) | SubString($PARAM[filelabel],pdtv) | SubString($PARAM[filelabel],dsr) | SubString($PARAM[filelabel],vhs)</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/medium-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],bluray) | SubString($PARAM[filelabel],blu-ray) | SubString($PARAM[filelabel],brrip) | SubString($PARAM[filelabel],bd25) | SubString($PARAM[filelabel],bd50)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/medium-bluray.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],hddvd)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/medium-hddvd.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],dvd) + !SubString($PARAM[filelabel],hddvd)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/medium-dvd.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],hdtv) | SubString($PARAM[filelabel],pdtv) | SubString($PARAM[filelabel],dsr)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/medium-tv.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[filelabel],vhs)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/medium-vhs.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="CompressedPropertyMediaFlag">
        <param name="visible" default="StringCompare(ListItem.Overlay,OverlayRAR.png) | StringCompare(ListItem.Overlay,OverlayZIP.png)" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/property-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture>icons/property-compressed.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="EpgPropertyMediaFlag">
        <param name="visible" default="ListItem.HasEpg" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>

                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/property-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture>icons/property-epg.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="TextPropertyMediaFlag">
        <param name="visible" default="VideoPlayer.Content(LiveTV) + Pvr.HasTxt" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture colordiffuse="$PARAM[outlinecolor]">icons/property-background.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture colordiffuse="$PARAM[mediaflagcolor]">icons/property-txt.png</texture>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="LockedPropertyMediaFlag">
        <param name="visible" default="ListItem.IsEncrypted | StringCompare(ListItem.Overlay,OverlayLocked.png)" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/property-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture>icons/property-locked.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>

    <include name="TrainerPropertyMediaFlag">
        <param name="visible" default="StringCompare(ListItem.Overlay,OverlayTrainer.png) | StringCompare(ListItem.Overlay,OverlayHasTrainer.png)" />
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        
        <definition>
            <control type="group">
                <visible>$PARAM[visible]</visible>
                <width>60</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>56</width>
                    <height>56</height>
                    <texture>icons/property-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <width>60</width>
                    <height>60</height>
                    <texture>icons/property-trainer.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="MpaaRatingMediaFlag">
        <param name="mediaflagcolor" default="$VAR[MainColor]" />
        <param name="outlinecolor" default="$VAR[BackgroundColor]" />
        <param name="infolabel" default="ListItem.Mpaa" />
        
        <definition>
            <control type="group">
                <visible>SubString($PARAM[infolabel],rated)</visible>
                <width>160</width>
            
                <control type="image">
                    <posx>2</posx>
                    <posy>2</posy>
                    <width>156</width>
                    <height>56</height>
                    <texture>icons/mpaarating-background.png</texture>
                    <colordiffuse>$PARAM[outlinecolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[infolabel],rated r)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-restricted.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[infolabel],rated nc)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-nc13.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[infolabel],rated pg-13)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-pg13.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[infolabel],rated pg) + !SubString($PARAM[infolabel],rated pg-13)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-pg.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString($PARAM[infolabel],rated g)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-general.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>SubString(VideoPlayer.Mpaa,not rated)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-notrated.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
                <control type="image">
                    <visible>!SubString($PARAM[infolabel],rated r) + !SubString($PARAM[infolabel],rated nc) + !SubString($PARAM[infolabel],rated pg) + !SubString($PARAM[infolabel],rated g) + !SubString(VideoPlayer.Mpaa,not rated)</visible>
                    <width>160</width>
                    <height>60</height>
                    <texture>icons/mpaarating-unknown.png</texture>
                    <colordiffuse>$PARAM[mediaflagcolor]</colordiffuse>
                    <aspectratio>keep</aspectratio>
                </control>
            </control>
        </definition>
    </include>
    
    <include name="HorizontalDialogListOfContentMediaFlag">
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="width" default="1240" />

        <definition>
            <control type="grouplist">
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>$PARAM[width]</width>
                <height>60</height>
                <itemgap>0</itemgap>
                <orientation>horizontal</orientation>

                <include content="WatchedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="UserRatingMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>

                <include content="VideoCodecMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="VideoResolutionMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="VideoAspectRatioMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="VideoStereoscopicPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>

                <include content="AudioCodecMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="AudioChannelsMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>

                <include content="PictureCodecMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="PictureSizeMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="PictureISOMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="PictureApertureMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                    
                <include content="MediumMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="CompressedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="EpgPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="LockedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
                <include content="TrainerPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>

                <include content="MpaaRatingMediaFlag">
                    <param name="mediaflagcolor" value="$VAR[MainColor]" />
                    <param name="outlinecolor" value="$VAR[BackgroundColor]" />
                </include>
            </control>
        </definition>
    </include>

    <include name="HorizontalViewListOfContentMediaFlag">
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="width" default="920" />
        <param name="mediaflagcolor" default="$VAR[BackgroundColor]" />
        <param name="outlinecolor" default="$VAR[MainColor]" />
        <param name="align" default="left" />
    
        <definition>
            <control type="grouplist">
                <visible>Skin.HasSetting(MediaIcons.Visible)</visible>
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>$PARAM[width]</width>
                <height>60</height>
                <itemgap>0</itemgap>
                <orientation>horizontal</orientation>
                <align>$PARAM[align]</align>

                <include content="WatchedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="UserRatingMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>

                <include content="VideoCodecMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="VideoResolutionMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="VideoAspectRatioMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="VideoStereoscopicPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>

                <include content="AudioCodecMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="AudioChannelsMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>

                <include content="PictureCodecMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="PictureSizeMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="PictureISOMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="PictureApertureMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
            
                <include content="MediumMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>

                <include content="CompressedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="LockedPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="TrainerPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
                <include content="EpgPropertyMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>

                <include content="MpaaRatingMediaFlag">
                    <param name="mediaflagcolor" value="$PARAM[mediaflagcolor]" />
                    <param name="outlinecolor" value="$PARAM[outlinecolor]" />
                </include>
            </control>
        </definition>
    </include>

    <include name="HorizontalListOfVideoPlayerMediaFlag">
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="width" default="1000" />

        <definition>
            <control type="grouplist">
                <visible>Skin.HasSetting(MediaIcons.Visible)</visible>
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>$PARAM[width]</width>
                <height>60</height>
                <itemgap>0</itemgap>
                <orientation>horizontal</orientation>

                <include content="UserRatingMediaFlag">
                    <param name="infolabel" value="VideoPlayer.UserRating" />
                </include>

                <include content="VideoCodecMediaFlag">
                    <param name="infolabel" value="VideoPlayer.VideoCodec" />
                </include>
                <include content="VideoResolutionMediaFlag">
                    <param name="infolabel" value="VideoPlayer.VideoResolution" />
                </include>
                <include content="VideoAspectRatioMediaFlag">
                    <param name="infolabel" value="VideoPlayer.VideoAspect" />
                </include>
                <include content="VideoStereoscopicPropertyMediaFlag">
                    <param name="visible" value="VideoPlayer.IsStereoscopic" />
                </include>

                <include content="AudioCodecMediaFlag">
                    <param name="infolabel" value="VideoPlayer.AudioCodec" />
                </include>
                <include content="AudioChannelsMediaFlag">
                    <param name="infolabel" value="VideoPlayer.AudioChannels" />
                </include>

                <include content="MediumMediaFlag">
                    <param name="filelabel" value="Player.FileName" />
                </include>
                <include content="EpgPropertyMediaFlag">
                    <param name="visible" value="VideoPlayer.HasEpg" />
                </include>
                <include content="TextPropertyMediaFlag" />
                <include content="LockedPropertyMediaFlag">
                    <param name="visible" value="VideoPlayer.Content(LiveTV) + Pvr.ActStreamIsEncrypted" />
                </include>

                <include content="MpaaRatingMediaFlag">
                    <param name="infolabel" value="VideoPlayer.Mpaa" />
                </include>
            </control>
        </definition>
    </include>

    <include name="HorizontalListOfMusicPlayerMediaFlag">
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="width" default="1000" />

        <definition>
            <control type="grouplist">
                <visible>Skin.HasSetting(MediaIcons.Visible)</visible>
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>$PARAM[width]</width>
                <height>60</height>
                <itemgap>0</itemgap>
                <orientation>horizontal</orientation>
            
                <include content="UserRatingMediaFlag">
                    <param name="infolabel" value="MusicPlayer.UserRating" />
                </include>
                <include content="AudioCodecMediaFlag">
                    <param name="infolabel" value="MusicPlayer.Codec" />
                </include>
                <include content="AudioChannelsMediaFlag">
                    <param name="infolabel" value="MusicPlayer.Channels" />
                </include>
                <include content="AudioBitrateMediaFlag" />
            </control>
        </definition>
    </include>

    <include name="HorizontalListOfSlideshowMediaFlag">
        <param name="posx" default="0" />
        <param name="posy" default="0" />
        <param name="width" default="1000" />

        <definition>
            <control type="grouplist">
                <visible>Skin.HasSetting(MediaIcons.Visible)</visible>
                <posx>$PARAM[posx]</posx>
                <posy>$PARAM[posy]</posy>
                <width>$PARAM[width]</width>
                <height>60</height>
                <itemgap>0</itemgap>
                <orientation>horizontal</orientation>
            
                <include content="PictureCodecMediaFlag">
                    <param name="filelabel" value="Slideshow.Filename" />
                </include>
                <include content="PictureSizeMediaFlag">
                    <param name="infolabel" value="Slideshow.Resolution" />
                </include>
                <include content="PictureApertureMediaFlag">
                    <param name="infolabel" value="Slideshow.Aperture" />
                </include>
            </control>
        </definition>
    </include>
</includes>
