<?xml version="1.0" encoding="UTF-8"?>
<window id="2003">
    <defaultcontrol always="true">9000</defaultcontrol>
    <menucontrol>9000</menucontrol>
    <onload condition="Skin.HasSetting(Settings.DialogInfoAutoRefresh) + !StringCompare(Skin.String(Dialog.LastAutoRefresh),ListItem.Label)">AlarmClock(DialogRefreshTimer,SendClick(2003,6),00:01,silent)</onload>
    <onload condition="Skin.HasSetting(Settings.DialogInfoAutoRefresh)">Skin.SetString(Dialog.LastAutoRefresh,$INFO[ListItem.Label])</onload>

    <controls>
        <control type="group">
            <posy>PosYForFifteenLinesDialog</posy>
            <include content="WindowForDialog">
                <param name="height" value="HeightForFifteenLinesDialog" />
                <param name="headerid" value="2" />
                <param name="headerlabel" value="$INFO[Listitem.Title]" />
                <param name="iconthumbnail" value="$VAR[ContentThumbnail]" />
                <param name="iconoverlayvisible" value="true" />
                <param name="animate" value="true" />
            </include>

            <control type="group">
                <description>Dialog Icon For Cast List</description>
                <visible>Control.HasFocus(50)</visible>
                <include content="DefaultImageForDialog">
                    <param name="texture" value="$INFO[Container(50).ListItem.Icon]" />
                </include>
            </control>

            <control type="list" id="22">
                <description>Video Information List</description>
                <visible>![Control.HasFocus(12) | Control.HasFocus(15)]</visible>
                <include content="MarkupForInfoListForDialog">
                    <param name="height" value="280" />
                    <param name="pagecontrol" value="23" />
                </include>
                
                <include content="ItemsForInfoListInDialog" />
                
                <content>
                    <item>
                        <visible>!String.IsEmpty(ListItem.OriginalTitle) + !StringCompare(ListItem.OriginalTitle,Listitem.Title)</visible>
                        <label>$LOCALIZE[20376]</label>
                        <label2>$INFO[ListItem.OriginalTitle]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.TVShowTitle)</visible>
                        <label>$LOCALIZE[20364]</label>
                        <label2>$INFO[ListItem.TVShowTitle]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Season)</visible>
                        <label>$LOCALIZE[20373]</label>
                        <label2>$INFO[ListItem.Season]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Episode)</visible>
                        <label>$LOCALIZE[20359]</label>
                        <label2>$INFO[ListItem.Episode]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.EpisodeName)</visible>
                        <label>$LOCALIZE[21442]</label>
                        <label2>$INFO[ListItem.EpisodeName]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Artist)</visible>
                        <label>$LOCALIZE[557]</label>
                        <label2>$INFO[ListItem.Artist]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Album)</visible>
                        <label>$LOCALIZE[558]</label>
                        <label2>$INFO[ListItem.Album]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Year)</visible>
                        <label>$LOCALIZE[172]</label>
                        <label2>$INFO[ListItem.Year]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Premiered)</visible>
                        <label>$LOCALIZE[20416]</label>
                        <label2>$INFO[ListItem.Premiered]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Duration)</visible>
                        <label>$LOCALIZE[180]</label>
                        <label2>$INFO[ListItem.Duration] $LOCALIZE[31901]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Genre)</visible>
                        <label>$LOCALIZE[515]</label>
                        <label2>$INFO[ListItem.Genre]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Studio)</visible>
                        <label>$LOCALIZE[572]</label>
                        <label2>$INFO[ListItem.Studio]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Writer)</visible>
                        <label>$LOCALIZE[20417]</label>
                        <label2>$INFO[ListItem.Writer]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Director)</visible>
                        <label>$LOCALIZE[20339]</label>
                        <label2>$INFO[ListItem.Director]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.Country)</visible>
                        <label>$LOCALIZE[574]</label>
                        <label2>$INFO[ListItem.Country]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.MPAA)</visible>
                        <label>$LOCALIZE[20074]</label>
                        <label2>$INFO[ListItem.MPAA]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.RatingAndVotes)</visible>
                        <label>$LOCALIZE[563]</label>
                        <label2>$INFO[ListItem.RatingAndVotes]</label2>
                        <onclick>Noop</onclick>
                    </item>
                    <item>
                        <visible>!String.IsEmpty(ListItem.UserRating)</visible>
                        <label>$LOCALIZE[33067]</label>
                        <label2>$INFO[ListItem.UserRating]</label2>
                        <onclick>Noop</onclick>
                    </item>
                </content>
            </control>
            
            <control type="scrollbar" id="23">
                <visible>Control.IsVisible(22)</visible>
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="80" />
                    <param name="height" value="280" />
                </include>
                <onleft>9000</onleft>
            </control>

            <include content="HorizontalDialogListOfContentMediaFlag">
                <param name="posx" value="560" />
                <param name="posy" value="370" />
            </include>
            
            <include content="TextboxForDialog">
                <param name="textboxid" value="4" />
                <param name="scrollbarid" value="61" />
                <param name="posy" value="440" />
                <param name="height" value="240" />
                <param name="onleft" value="9000" />
            </include>

            <control type="list" id="50">
                <description>Cast List</description>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="440" />
                    <param name="height" value="240" />
                    <param name="pagecontrol" value="51" />
                </include>
                <onleft>9000</onleft>
                <onright>51</onright>
                
                <include content="ItemsForNormalListInDialog">
                    <param name="listid" value="50" />
                </include>
            </control>

            <control type="scrollbar" id="51">
                <visible>Control.IsVisible(50)</visible>
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="440" />
                    <param name="height" value="240" />
                </include>
                <onleft>50</onleft>
            </control>

            <control type="grouplist" id="9000">
                <include content="MarkupForButtonListForDialog">
                    <param name="posy" value="320" />
                    <param name="height" value="360" />
                </include>
                <onright condition="Control.IsVisible(50)">50</onright>
                <onright condition="!Control.IsVisible(50)">61</onright>

                <control type="button" id="5">
                    <description>Plot/Cast Button</description>
                    <label>$LOCALIZE[206]</label>
                </control>
                <control type="button" id="6">
                    <description>Refresh/Reset Button</description>
                    <label>$LOCALIZE[184]</label>
                </control>
                <control type="button" id="8">
                    <description>Play Button</description>
                    <label>$LOCALIZE[208]</label>
                </control>
                <control type="button" id="9">
                    <description>Resume Button</description>
                    <label>$LOCALIZE[13404]</label>
                </control>
                <control type="button" id="10">
                    <description>Choose Art Button</description>
                    <label>$LOCALIZE[13511]</label>
                </control>
                <control type="button" id="11">
                    <description>Trailer Button</description>
                    <label>$LOCALIZE[20410]</label>
                </control>
                <control type="button" id="13">
                    <description>Movies By Director Button</description>
                    <label>$LOCALIZE[31409]</label>
                </control>
                <include content="SetUserRatingButtonForDialog" />
                <include content="CloseButtonForDialog">
                    <param name="id" value="21" />
                </include>
            </control>
        </control>
    </controls>
</window>
