<?xml version="1.0" encoding="UTF-8"?>
<includes>
    <variable name="GlobalSearchArt">
        <value condition="!IsEmpty(ListItem.Property(Fanart))">$INFO[ListItem.Property(Fanart)]</value>
        <value>$INFO[ListItem.Thumb]</value>
    </variable>
    <variable name="GlobalSearchPoster">
        <value condition="Control.IsVisible(140)">DefaultVideo.png</value>
        <value>$INFO[Container(100).ListItem.Icon]</value>
    </variable>
    <variable name="GlobalSearchArtInfo">
        <value condition="!IsEmpty(Container(100).ListItem.Property(Fanart))">$INFO[Container(100).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(111) + !IsEmpty(Container(111).ListItem.Property(Fanart))">$INFO[Container(111).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(121) + !IsEmpty(Container(121).ListItem.Property(Fanart))">$INFO[Container(121).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(131) + !IsEmpty(Container(131).ListItem.Property(Fanart))">$INFO[Container(131).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(141) + !IsEmpty(Container(141).ListItem.Property(Fanart))">$INFO[Container(141).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(151) + !IsEmpty(Container(151).ListItem.Property(Fanart))">$INFO[Container(151).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(161) + !IsEmpty(Container(161).ListItem.Property(Fanart))">$INFO[Container(161).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(171) + !IsEmpty(Container(171).ListItem.Property(Fanart))">$INFO[Container(171).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(181) + !IsEmpty(Container(181).ListItem.Property(Fanart))">$INFO[Container(181).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(191) + !IsEmpty(Container(191).ListItem.Property(Fanart))">$INFO[Container(191).ListItem.Property(Fanart)]</value>
        <value condition="Control.HasFocus(211) + !IsEmpty(Container(211).ListItem.Property(Fanart))">$INFO[Container(211).ListItem.Property(Fanart)]</value>
        <value>$INFO[Container(100).ListItem.Thumb]</value>
    </variable>
    <include name="GlobalSearchListItem">
        <control type="image">
            <left>0</left>
            <right>10</right>
            <top>0</top>
            <bottom>10</bottom>
            <aspectratio>scale</aspectratio>
            <texture fallback="pvr/background.jpg">$VAR[GlobalSearchArt]</texture>
        </control>
        <control type="image">
            <left>0</left>
            <right>10</right>
            <height>48</height>
            <bottom>10</bottom>
            <texture colordiffuse="Black70">common/white.png</texture>
        </control>
        <control type="label">
            <left>20</left>
            <right>30</right>
            <height>48</height>
            <bottom>10</bottom>
            <align>left</align>
            <font>TinyBold</font>
            <textcolor>White100</textcolor>
            <label>$INFO[ListItem.Label]</label>
        </control>
    </include>
    <include name="GlobalSearchListFocus">
        <control type="image">
            <left>0</left>
            <right>10</right>
            <top>0</top>
            <bottom>10</bottom>
            <aspectratio>scale</aspectratio>
            <texture fallback="pvr/background.jpg">$VAR[GlobalSearchArt]</texture>
        </control>
        <control type="image">
            <left>0</left>
            <right>10</right>
            <height>48</height>
            <bottom>10</bottom>
            <texture colordiffuse="$VAR[ColorHighlight]">common/white.png</texture>
        </control>
        <control type="label">
            <left>20</left>
            <right>30</right>
            <height>48</height>
            <bottom>10</bottom>
            <align>left</align>
            <font>TinyBold</font>
            <textcolor>Selected</textcolor>
            <label>$INFO[ListItem.Label]</label>
        </control>
    </include>
    <include name="GlobalSearchListGroupParams">
        <control type="group" id="$PARAM[groupid]">
            <height>220</height>
            <control type="image">
                <left>0</left>
                <width>192</width>
                <top>0</top>
                <height>210</height>
                <texture colordiffuse="Panel">common/white.png</texture>
            </control>
            <control type="image">
                <left>0</left>
                <width>192</width>
                <top>0</top>
                <bottom>58</bottom>
                <aspectratio>keep</aspectratio>
                <texture colordiffuse="PanelWhite70">$PARAM[iconimage]</texture>
            </control>
            <control type="button" id="$PARAM[buttonid]">
                <left>0</left>
                <width>192</width>
                <height>48</height>
                <bottom>10</bottom>
                <font>Mini</font>
                <textoffsetx>10</textoffsetx>
                <textcolor>White100</textcolor>
                <focusedcolor>Selected</focusedcolor>
                <onright>$PARAM[listid]</onright>
                <onup>$PARAM[onleft]</onup>
                <ondown>$PARAM[onright]</ondown>
                <onclick>Close</onclick>
                <onclick>$PARAM[buttonclick]</onclick>
                <texturenofocus colordiffuse="Black70">common/white.png</texturenofocus>
                <texturefocus colordiffuse="$VAR[ColorHighlight]">common/white.png</texturefocus>
                <label>$INFO[Control.GetLabel($PARAM[labelid]),$PARAM[locallabel] (,)]</label>
            </control>
            <control type="list" id="$PARAM[listid]">
                <top>0</top>
                <onleft>$PARAM[buttonid]</onleft>
                <onup>$PARAM[onleft]</onup>
                <ondown>$PARAM[onright]</ondown>
                <height>220</height>
                <left>202</left>
                <width>1568</width>
                <orientation>horizontal</orientation>
                <itemlayout height="220" width="392">
                    <include>GlobalSearchListItem</include>
                </itemlayout>
                <focusedlayout height="220" width="392">
                    <control type="group">
                        <visible>!Control.HasFocus($PARAM[listid])</visible>
                        <include>GlobalSearchListItem</include>
                    </control>
                    <control type="group">
                        <visible>Control.HasFocus($PARAM[listid])</visible>
                        <include>GlobalSearchListFocus</include>
                    </control>
                </focusedlayout>
            </control>
        
            <control type="image">
                <centertop>100</centertop>
                <centerright>8</centerright>
                <width>16</width>
                <height>16</height>
                <include>Animation.DelayFadeIn</include>
                <include>Animation.FadeOut</include>
                <visible>Control.HasFocus($PARAM[listid]) + IntegerGreaterThan(Container($PARAM[listid]).NumItems,4)</visible>
                <texture colordiffuse="Dark2" flipx="false">common/arrow-small-right.png</texture>
            </control>
        </control>

    </include>
    
    
   
</includes>
