<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">9000</defaultcontrol>
    <animation effect="fade" time="200">WindowOpen</animation>
    <animation effect="fade" time="150">WindowClose</animation>
    <conload condition="System.AddonIsEnabled(script.embuary.helper)">RunScript(script.embuary.helper,action=resetposition,container=9000||9009||10052||10053||10054||10055||10056||10057||10058||10059)</conload>
    <onload>SetProperty(onclose,SetFocus(9000))</onload>

	<onload>SetProperty(ResetScroll," ",home)</onload>
    <onload>AlarmClock(ClearValue,ClearProperty(ResetScroll,home),00:01,silent)</onload>

	<controls>

        <!-- Hide Details list for video -->
		<control type="list" id="10051">
			<itemlayout />
	        <focusedlayout />
            <posx>-20</posx>
			<posy>-20</posy>
			<width>1</width>
			<height>1</height>
		</control>

        <!-- Background and poster -->
        <control type="group">
            <control type="image">
                <width>1920</width>
                <height>1080</height>
                <texture>img/blackdot1.png</texture>
                <aspectratio>scale</aspectratio>
            </control>
            <control type="image">
                <width>100%</width>
                <height>100%</height>
                <aspectratio align="center">scale</aspectratio>
			    <texture background="true">$VAR[VideoInfoBackground]</texture>
            </control>
            <include content="BackgroundOverlayVideoInfo">
                <param name="parentid" value="9000"/>
            </include>
        </control>

        <include content="ShadowedImage">
            <param name="top">24</param>
            <param name="left">24</param>
            <param name="width">619</param>
            <param name="height">960</param>
            <param name="shadowoffset">16</param>
            <param name="texture">$INFO[Container(10051).ListItem.Art(thumb)]</param>
        </include>
   		<control type="group">
		    <visible>!Skin.HasSetting(ShowTopRightOverlays)</visible>
	        <control type="image" description="Watched Overlay">
		        <left>570</left>
		        <top>900</top>
		        <width>50</width>
		        <height>50</height>
		        <texture>OverlayWatched.png</texture>
		        <aspectratio>keep</aspectratio>
				<visible>Integer.IsGreater(Container(10051).ListItem.Playcount,0)</visible>
	        </control>
			<control type="image" description="Library Overlay">
		        <left>570</left>
		        <top>900</top>
		        <width>50</width>
		        <height>50</height>
		        <texture>library.png</texture>
		        <aspectratio>keep</aspectratio>
				<visible>!Integer.IsGreater(Container(10051).ListItem.Playcount,0) + !String.IsEmpty(Container(10051).ListItem.DBID)</visible>
	        </control>
		</control>
		<control type="group">
            <visible>Skin.HasSetting(ShowTopRightOverlays)</visible>
            <control type="group">
			    <visible>!Integer.IsGreater(Container(10051).ListItem.Property(UnWatchedEpisodes),0)</visible>
			    <control type="image">
	                <texture background="true">overlays/toprightwatched.png</texture>
	                <posx>521</posx>
	                <posy>40</posy>
	                <height>122</height>
	                <width>122</width>
	                <aspectratio>keep</aspectratio>
				    <visible>Integer.IsGreater(Container(10051).ListItem.Playcount,0)</visible>
                </control>
			    <control type="image">
	                <texture background="true">overlays/toprightlibrary.png</texture>
	                <posx>521</posx>
	                <posy>40</posy>
	                <height>122</height>
	                <width>122</width>
	                <aspectratio>keep</aspectratio>
				    <visible>!Integer.IsGreater(Container(10051).ListItem.Playcount,0) + !String.IsEmpty(Container(10051).ListItem.DBID)</visible>
                </control>
			</control>
            <control type="group">
			    <visible>Integer.IsGreater(Container(10051).ListItem.Property(UnwatchedEpisodes),0) + !Skin.HasSetting(Hide_Episode_Marks)</visible>
				<control type="image">
			        <texture background="true">overlays/toprightempty2.png</texture>
			        <posx>521</posx>
			        <posy>40</posy>
			        <height>122</height>
			        <width>122</width>
			    </control>
			    <control type="label">
				    <posx>586</posx>
			        <posy>60</posy>
				    <height>30</height>
				    <width>40</width>
				    <font>ListDetails</font>
				    <align>center</align>
				    <label>$INFO[Container(10051).ListItem.Property(UnwatchedEpisodes)]</label>
				    <textcolor>White2</textcolor>
			    </control>
			</control>
        </control>
        <!-- Powered by TMDb image -->
        <control type="image" description="Powered by TMDb">
            <posy>990</posy>
            <left>250</left>
            <height>70</height>
            <width>177</width>
            <texture>badges/ratings/powered-by-tmdb.png</texture>
            <aspectratio>keep</aspectratio>
            <aligny>center</aligny>
        </control>
        <!-- Rating bar for TMDB Online info -->
        <control type="grouplist" description="Ratings for embuary info items">
            <top>83</top>
            <left>705</left>
            <width>1275</width>
            <height>40</height>
            <itemgap>8</itemgap>
            <orientation>horizontal</orientation>
            <align>left</align>
            <control type="grouplist" description="Main Rating, TMDB">
                <width>320</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <visible>!String.IsEmpty(Container(10051).ListItem.Rating)</visible>
                <control type="image" description="TMDB logo">
                    <height>40</height>
                    <width>45</width>
                    <aligny>center</aligny>
                    <align>center</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/themoviedb3.png</texture>
                </control>
                <control type="label" description="Main Rating and Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(10051).ListItem.Rating]$INFO[Container(10051).ListItem.Votes, (, $LOCALIZE[205])]</label>
                    <visible>!String.IsEmpty(Container(10051).ListItem.Rating) + !String.IsEmpty(Container(10051).ListItem.Votes) + !String.IsEqual(Container(10051).ListItem.Votes,0)</visible>
                </control>
                <control type="label" description="Main Rating No Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(10051).ListItem.Rating]</label>
                    <visible>!String.IsEmpty(Container(10051).ListItem.Rating) + [String.IsEmpty(Container(10051).ListItem.Votes) | String.IsEqual(Container(10051).ListItem.Votes,0)]</visible>
                </control>
            </control>
            <control type="grouplist" description="RT Critics rating">
                <visible>!String.IsEmpty(Container(10051).ListItem.Property(rating.rotten)) + !String.IsEqual(Container(10051).ListItem.Property(rating.rotten),N/A)</visible>
                <width>130</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>3</itemgap>
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <aspectratio>keep</aspectratio>
                    <texture>$VAR[EmbuaryInfoRottenFreshLogoVar]</texture>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>60</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[Container(10051).ListItem.Property(rating.rotten)]%</label>
                </control>
            </control>
            <control type="grouplist" description="Metacritic rating">
                <visible>!String.IsEmpty(Container(10051).ListItem.Property(rating.metacritic)) + !String.IsEqual(Container(10051).ListItem.Property(rating.metacritic),N/A)</visible>
                <width>90</width>
                <orientation>horizontal</orientation>
                <align>left</align>
                <itemgap>5</itemgap>
                <control type="image">
                    <width>40</width>
                    <height>40</height>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/metacritic2.png</texture>
                </control>
                <control type="label">
                    <height>40</height>
                    <width>50</width>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <label>$INFO[Container(10051).ListItem.Property(rating.metacritic)]</label>
                </control>
            </control>
            <control type="grouplist" description="IMDb Rating">
                <width>320</width>
                <orientation>horizontal</orientation>
                <itemgap>5</itemgap>
                <visible>!String.IsEmpty(Container(10051).ListItem.Property(rating.imdb)) + !String.IsEqual(Container(10051).ListItem.Property(rating.imdb),N/A)</visible>
                <control type="image" description="IMDb logo">
                    <height>40</height>
                    <width>83</width>
                    <aligny>center</aligny>
                    <align>center</align>
                    <aspectratio>keep</aspectratio>
                    <texture>badges/ratings/imdb2.png</texture>
                </control>
                <control type="label" description="IMDb Rating and Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(10051).ListItem.Property(rating.imdb)]$INFO[Container(10051).ListItem.Property(votes.imdb), (, $LOCALIZE[205])]</label>
                </control>
                <control type="label" description="IMDB Rating No Votes">
                    <width>auto</width>
                    <height>40</height>
                    <font>ListDetails</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <label>$INFO[Container(10051).ListItem.Property(rating.imdb)]</label>
                    <visible>!String.IsEmpty(Container(10051).ListItem.Property(rating.imdb)) + [String.IsEmpty(Container(10051).ListItem.Property(votes.imdb)) | String.IsEqual(Container(10051).ListItem.Property(votes.imdb),0)]</visible>
                </control>
            </control>
        </control>
        <!-- Certification Flag for embuary info items -->
        <control type="group">
            <visible>!String.IsEmpty(Container(10051).ListItem.MPAA)</visible>
            <control type="image" description="Certification flag USA">
                <top>80</top>
                <left>1738</left>
                <height>50</height>
                <width>75</width>
                <aspectratio>keep</aspectratio>
                <align>center</align>
                <texture fallback="badges/mpaa/NR.png">$VAR[EmbuaryInfoCertFlag]</texture>
            </control>
        </control>
        <!-- Video details -->
        <control type="group" description="Media Info">
            <control type="group" description="top" id="300">
                <posx>700</posx>
                <posy>50</posy>
                <control type="label" description="Main Label">
                    <posy>-51</posy>
                    <width>950</width>
                    <height>75</height>
                    <font>InfoTitle</font>
                    <textcolor>$VAR[HighlightColor]</textcolor>
                    <align>left</align>
                    <aligny>center</aligny>
                    <label>$VAR[panelheading]</label>
                </control>
                <control type="image" description="Studio - Embuary Info">
                    <posy>-46</posy>
                    <left>1000</left>
                    <height>65</height>
                    <width>160</width>
                    <texture>$INFO[Container(10051).ListItem.Property(Studio.Icon.0)]</texture>
                    <aspectratio>keep</aspectratio>
                    <aligny>center</aligny>
                    <visible>!String.IsEmpty(Container(10051).ListItem.Property(Studio.Icon.0)) + String.IsEqual(Container(10051).ListItem.DBType,movie)</visible>
                </control>
                <control type="image" description="Studio - Embuary Info">
                    <posy>-46</posy>
                    <left>1000</left>
                    <height>65</height>
                    <width>160</width>
                    <texture>$INFO[Container(10051).ListItem.Property(Network.Icon.0)]</texture>
                    <aspectratio>keep</aspectratio>
                    <aligny>center</aligny>
                    <visible>!String.IsEmpty(Container(10051).ListItem.Property(Network.Icon.0)) + String.IsEqual(Container(10051).ListItem.DBType,tvshow)</visible>
                </control>
                <control type="image" description="Line Split">
                    <posy>23</posy>
                    <width>1180</width>
                    <height>1</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="image" description="Line Split">
                    <posy>83</posy>
                    <width>1180</width>
                    <height>1</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="textbox" id="900031" description="Plot">
                    <include>VisibleFadeEffectDelay</include>
                    <posy>90</posy>
                    <left>5</left>
                    <width>620</width>
                    <height>355</height>
                    <align>justify</align>
                    <font>InfoPlot</font>
                    <textcolor>$VAR[InfoPlotTextColor]</textcolor>
                    <shadowcolor>LiteShadow</shadowcolor>
                    <label fallback="19055">$VAR[Plots]$INFO[Window(home).Property(ResetScroll)]</label>
                </control>
                <control type="radiobutton" id="90003">
                    <posy>447</posy>
                    <left>588.3</left>
                    <ondown>9000</ondown>
                    <onright>9009</onright>
                    <align>center</align>
                    <aligny>center</aligny>
                    <textureradioonfocus colordiffuse="$VAR[FocusedTextColor]">icons/dots7.png</textureradioonfocus>
                    <textureradioonnofocus>icons/dots7.png</textureradioonnofocus>
                    <texturefocus border="4" colordiffuse="$VAR[HighlightColor]">img/WhiteRoundedST2.png</texturefocus>
                    <texturenofocus border="4">img/WhiteRoundedT.png</texturenofocus>
                    <width>37</width>
                    <height>17</height>
                    <radiowidth>37</radiowidth>
                    <radioheight>37</radioheight>
                    <radioposx>0.1</radioposx>
                    <radioposy>0</radioposy>
                    <font></font>
                    <selected>true</selected>
                    <onclick>SetProperty(TextViewerHeader,$ESCVAR[panelheading],Home)</onclick>
                    <onclick condition="String.IsEqual(ListItem.DBTYPE,movie) + !String.IsEmpty(Container(10051).ListItem.Tagline)">SetProperty(TextViewerSubHeader,$ESCINFO[Container(10051).ListItem.Tagline,[I],[/I]],Home)</onclick>
                    <onclick>SetProperty(TextViewerContent,$ESCVAR[Plots],Home)</onclick>
                    <onclick>ActivateWindow(1124)</onclick>
                </control>
                <control type="image" description="Line Split">
                    <posy>90</posy>
                    <left>637</left>
                    <width>1</width>
                    <height>375</height>
                    <texture>img/LineL.png</texture>
                    <aspectratio>stretch</aspectratio>
                </control>
                <control type="panel" id="9009">
                    <include>VisibleFadeEffectDelay</include>
                    <include>List_9009_Commons</include>
                    <onup>9009</onup>
                    <ondown>9009</ondown>
                    <onleft>90003</onleft>
                    <content>
                        <item>
                            <label>$LOCALIZE[20376]:</label>
                            <label2>$INFO[Container(10051).ListItem.OriginalTitle]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.OriginalTitle) + !String.IsEqual(Container(10051).ListItem.OriginalTitle,Container(10051).Listitem.Title)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[20339]:</label>
                            <label2>$INFO[Container(10051).ListItem.Director]</label2>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Director)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[20417]:</label>
                            <label2>$INFO[Container(10051).ListItem.Writer]</label2>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Writer)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[515]:</label>
                            <label2>$INFO[Container(10051).ListItem.Genre]</label2>
                            <onclick>SetProperty(Dialog.1.Label,$LOCALIZE[32018])</onclick>
                            <onclick condition="String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.1.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,Online,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(OnlineCallType,with_genres)++Skin.SetString(OnlineMediaType,$VAR[TMDbMediaType])++Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32108]"',items='$ESCINFO[Container(10051).ListItem.Genre]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="!String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.1.BuiltIn,SetProperty(SingleSearchType,Online,Home)||Skin.SetString(SingleSearchTerm,$INFO[ListItem.Genre])||Skin.SetString(OnlineCallType,with_genres)||Skin.SetString(OnlineMediaType,$VAR[TMDbMediaType])||Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])||ActivateWindow(1131))</onclick>
			                <onclick>SetProperty(Dialog.2.Label,$LOCALIZE[32017])</onclick>
			                <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,LocalMovieGenre,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32108]"',items='$ESCINFO[Container(10051).ListItem.Genre]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,tvshow) + String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,LocalTVShowGenre,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32108]"',items='$ESCINFO[Container(10051).ListItem.Genre]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(SingleSearchType,LocalMovieGenre,Home)||Skin.SetString(SingleSearchTerm,$INFO[Container(10051).ListItem.Genre])||Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])||ActivateWindow(1131))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,tvshow) + !String.Contains(Container(10051).ListItem.Genre, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(SingleSearchType,LocalTVShowGenre,Home)||Skin.SetString(SingleSearchTerm,$INFO[Container(10051).ListItem.Genre])||Skin.SetString(SingleSearchHeader,$VAR[GenreOnlineHeaderVar])||ActivateWindow(1131))</onclick>
			                <onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[137])</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Genre)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[2050]:</label>
                            <label2>$INFO[Container(10051).ListItem.Duration]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Duration) + !Skin.HasSetting(Enable.HourMinutes)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[2050]:</label>
                            <label2>$VAR[EmbuaryItemDurationHrMins]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Duration) + Skin.HasSetting(Enable.HourMinutes)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[21875]:</label>
                            <label2>$INFO[Container(10051).ListItem.Country]</label2>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + String.Contains(Container(10051).ListItem.Country, / )">SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,LocalMovieCountry,Home)++Skin.SetString(SingleSearchHeader,$LOCALIZE[32035])++Skin.SetString(SingleSearchTerm,???)++ActivateWindow(1131))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + String.Contains(Container(10051).ListItem.Country, / )">RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32115]"',items='$ESCINFO[Container(10051).ListItem.Country]',seperator='" / "',splitby='"++"')</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Country, / )">SetProperty(SingleSearchType,LocalMovieCountry,Home)</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Country, / )">Skin.SetString(SingleSearchTerm,$INFO[Container(10051).ListItem.Country])</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Country, / )">Skin.SetString(SingleSearchHeader,$LOCALIZE[32035])</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Country, / )">ActivateWindow(1131)</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Country)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[572]:</label>
                            <label2>$INFO[Container(10051).ListItem.Studio]</label2>
                            <onclick>SetProperty(Dialog.1.Label,$LOCALIZE[32018])</onclick>
                            <onclick condition="String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.1.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,Online,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(OnlineCallType,$VAR[TMDbStudioCall])++Skin.SetString(OnlineMediaType,$VAR[TMDbMediaType])++Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32109]"',items='$ESCINFO[Container(10051).ListItem.Studio]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="!String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.1.BuiltIn,SetProperty(SingleSearchType,Online,Home)||Skin.SetString(SingleSearchTerm,$INFO[ListItem.Studio])||Skin.SetString(OnlineCallType,$VAR[TMDbStudioCall])||Skin.SetString(OnlineMediaType,$VAR[TMDbMediaType])||Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])||ActivateWindow(1131))</onclick>
			                <onclick>SetProperty(Dialog.2.Label,$LOCALIZE[32017])</onclick>
			                <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,LocalMovieStudio,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32109]"',items='$ESCINFO[Container(10051).ListItem.Studio]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,tvshow) + String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(Dialog.Builtin,SetProperty(SingleSearchType,LocalTVShowStudio,Home)++Skin.SetString(SingleSearchTerm,???)++Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])++ActivateWindow(1131))||RunScript(script.embuary.helper,action=splitandcreateselect,header='"$LOCALIZE[32109]"',items='$ESCINFO[Container(10051).ListItem.Studio]',seperator='" / "',splitby='"++"'))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,movie) + !String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(SingleSearchType,LocalMovieStudio,Home)||Skin.SetString(SingleSearchTerm,$INFO[Container(10051).ListItem.Studio])||Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])||ActivateWindow(1131))</onclick>
                            <onclick condition="String.IsEqual(Container(10051).ListItem.DBType,tvshow) + !String.Contains(Container(10051).ListItem.Studio, / )">SetProperty(Dialog.2.BuiltIn,SetProperty(SingleSearchType,LocalTVShowStudio,Home)||Skin.SetString(SingleSearchTerm,$INFO[Container(10051).ListItem.Studio])||Skin.SetString(SingleSearchHeader,$VAR[StudioOnlineHeaderVar])||ActivateWindow(1131))</onclick>
			                <onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[137])</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Studio)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[20416]:</label>
                            <label2>$INFO[Container(10051).ListItem.Premiered]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Premiered)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32137]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Release)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Release))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32138]:</label>
                            <label2>$INFO[Window(home).Property(script.embuary.info-country_code)] - $INFO[Container(10051).ListItem.Property(region_release)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(region_release))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[33054]:</label>
                            <label2>$INFO[Container(10051).ListItem.Season]</label2>
                            <onclick>noop</onclick>
                            <visible>String.IsEqual(Container(10051).ListItem.DBType,tvshow) + !String.IsEmpty(Container(10051).ListItem.Season)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[20360]:</label>
                            <label2>$INFO[Container(10051).Listitem.Property(TotalEpisodes)] ($INFO[Container(10051).ListItem.Property(WatchedEpisodes),, $LOCALIZE[16102]] - $INFO[Container(10051).ListItem.Property(UnWatchedEpisodes), , $LOCALIZE[32260]])</label2>
                            <onclick>noop</onclick>
                            <visible>String.IsEqual(Container(10051).ListItem.DBType,tvshow) + !String.IsEmpty(Container(10051).ListItem.Property(TotalEpisodes)) + !String.IsEmpty(Container(10051).ListItem.Property(WatchedEpisodes)) + !String.IsEmpty(Container(10051).ListItem.Property(UnWatchedEpisodes))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[31037]:</label>
                            <label2>$INFO[Container(10051).ListItem.MPAA]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.MPAA)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[20457]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Collection)]</label2>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Collection))</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[126]:</label>
                            <label2>$VAR[EmbuaryInfoStatus]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Status)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32073]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Budget),$]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Budget)) + !String.IsEqual(Container(10051).ListItem.Property(Budget),N/A)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32074]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Revenue),$]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Revenue)) + !String.IsEqual(Container(10051).ListItem.Property(Revenue),N/A)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[32075]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(Awards)]</label2>
                            <onclick>SetProperty(TextViewerHeader,$ESCINFO[Container(10051).ListItem.Title],Home)</onclick>
                            <onclick>SetProperty(TextViewerSubHeader,$VAR[AwardsLabel],Home)</onclick>
                            <onclick>SetProperty(TextViewerContent,$ESCINFO[Container(10051).ListItem.Property(Awards)],Home)</onclick>
                            <onclick>ActivateWindow(1124)</onclick>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(Awards)) + !String.IsEqual(Container(10051).ListItem.Property(Awards),N/A)</visible>
                        </item>
                        <item>
                            <label>$LOCALIZE[573]:</label>
                            <label2>$INFO[Container(10051).ListItem.Property(File)]</label2>
                            <onclick>noop</onclick>
                            <visible>!String.IsEmpty(Container(10051).ListItem.Property(File))</visible>
                        </item>
                    </content>
                </control>
            </control>
        </control>
        <!-- Buttons -->
        <control type="grouplist" id="9000">
            <left>700</left>
            <posy>527</posy>
            <width>1180</width>
            <height>90</height>
            <align>center</align>
            <onup>90003</onup>
            <ondown>91001</ondown>
            <orientation>horizontal</orientation>
            <defaultcontrol>8000</defaultcontrol>
            <itemgap>16</itemgap>
            <control type="button" id="8000" description="Close">
                <height>90</height>
                <width min="210">auto</width>
                <font>Details</font>
                <align>center</align>
                <label>$LOCALIZE[15067]</label>
                <onclick>Dialog.Close(all)</onclick>
            </control>
            <control type="togglebutton" id="8100" description="Play/browse to Show">
                <height>90</height>
                <width min="210">auto</width>
                <align>center</align>
                <font>Details</font>
                <label>$LOCALIZE[208]</label>
                <altlabel>$LOCALIZE[1024]</altlabel>
                <texturenofocus border="4">img/WhiteRoundedT.png</texturenofocus>
                <alttexturenofocus border="4">img/WhiteRoundedT.png</alttexturenofocus>
                <usealttexture>String.IsEqual(Container(10051).ListItem.Property(call),tv)</usealttexture>
				<onclick condition="String.IsEqual(Container(10051).ListItem.Property(call),tv)">RunScript(script.embuary.helper,action=goto,path='"videodb://tvshows/titles/$INFO[Container(10051).ListItem.DBID]/"',target=videos)</onclick>
				<onclick condition="!String.IsEqual(Container(10051).ListItem.Property(call),tv)">RunScript(script.embuary.helper,action=playitem,dbid=$INFO[Container(10051).ListItem.DBID])</onclick>
				<visible>!String.IsEmpty(Container(10051).ListItem.DBID)</visible>
            </control>
            <control type="button" id="11" description="Trailer">
                <height>90</height>
                <width min="210">auto</width>
                <font>Details</font>
                <align>center</align>
                <label>$LOCALIZE[20410]</label>
                <onclick>RunScript(script.embuary.helper,action=goto,path='"plugin://plugin.video.youtube/kodion/search/query/?q=$INFO[Container(10051).ListItem.Title]&amp;search_type=videos"',target=videos)</onclick>
				<visible>System.AddonIsEnabled(plugin.video.youtube) + System.AddonIsEnabled(script.embuary.helper)</visible>
            </control>
            <control type="button" id="296" description="Show Fanart">
                <height>90</height>
                <width min="220">auto</width>
                <align>center</align>
                <font>Details</font>
                <label>$LOCALIZE[32068]</label>
                <onclick>SetProperty(fanart,$ESCINFO[Container(10051).ListItem.Art(fanart)],home)</onclick>
                <onclick>ActivateWindow(1126)</onclick>
                <visible>!String.IsEmpty(Container(10051).ListItem.Art(fanart))</visible>
            </control>
        </control>
        <!-- Cast and Lists -->
		<control type="grouplist" id="91001">
			<posx>700</posx>
            <posy>622</posy>
            <width>1180</width>
            <height>450</height>
			<onup>9000</onup>
            <itemgap>-44</itemgap>
            <defaultcontrol always="true">10052</defaultcontrol>
            <orientation>vertical</orientation>
			<usecontrolcoords>true</usecontrolcoords>
			<scrolltime tween="quadratic" easing="out">300</scrolltime>
			<control type="group" id="10099"></control>
			<!-- Cast -->
            <control type="group" id="100521">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10052).NumItems,0) | Container(10052).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[206] $INFO[Container(10052).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
        	        <top>40</top>
                    <left>10</left>
			        <width>1180</width>
			        <height>1</height>
			        <texture>img/LineL.png</texture>
			        <aspectratio>stretch</aspectratio>
			    </control>
            </control>
		    <control type="panel" id="10052">
			    <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
			    <preloaditems>2</preloaditems>
			    <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10052).NumItems,0) | Container(10052).IsUpdating</visible>
                <include content="CastLayout">
                    <param name="viewid">10052</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[Container(10052).ListItem.Label]</param>
			        <param name="belowdoublelabel2">[I]$INFO[Container(10052).ListItem.Label2][/I]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
            <!-- Crew / Guest Stars -->
            <control type="group" id="100561">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10056).NumItems,0) | Container(10056).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$VAR[EmbuaryInfoCrewLabel] $INFO[Container(10056).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
     		        <top>40</top>
                    <left>10</left>
	    	        <width>1180</width>
			        <height>1</height>
			        <texture>img/LineL.png</texture>
			        <aspectratio>stretch</aspectratio>
			    </control>
            </control>
            <control type="panel" id="10056">
			    <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
                <include content="CastLayout">
                    <param name="viewid">10056</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[ListItem.Label]</param>
    	            <param name="belowdoublelabel2">[I]$INFO[ListItem.Label2][/I]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
            <!-- Set -->
            <control type="group" id="100571">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10057).NumItems,0) | Container(10057).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$INFO[Container(10051).ListItem.Property(collection),$LOCALIZE[32097] ,] $INFO[Container(10057).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
			        <top>40</top>
                    <left>10</left>
			        <width>1180</width>
			        <height>1</height>
			        <texture>img/LineL.png</texture>
			        <aspectratio>stretch</aspectratio>
			    </control>
            </control>
		    <control type="panel" id="10057">
			    <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
    		    <preloaditems>2</preloaditems>
			    <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10057).NumItems,0) | Container(10057).IsUpdating</visible>
                <include content="CastLayout">
                    <param name="viewid">10057</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[ListItem.Label]</param>
	                <param name="belowdoublelabel2">$INFO[ListItem.Year]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
            <!-- Seasons -->
            <control type="group" id="100581">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10058).NumItems,0) | Container(10058).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[33054] $INFO[Container(10058).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
  		            <top>40</top>
                    <left>10</left>
    	            <width>1180</width>
		            <height>1</height>
		            <texture>img/LineL.png</texture>
		            <aspectratio>stretch</aspectratio>
		        </control>
            </control>
            <control type="panel" id="10058">
		        <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10058).NumItems,0) | Container(10058).IsUpdating</visible>
                <include content="CastLayout">
                    <param name="viewid">10058</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[ListItem.Title]</param>
    	            <param name="belowdoublelabel2">$INFO[ListItem.Year]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
		    <!-- Similar -->
            <control type="group" id="100531">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10053).NumItems,0) | Container(10053).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[32105] $INFO[Container(10053).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
   		            <top>40</top>
                    <left>10</left>
    	            <width>1180</width>
		            <height>1</height>
		            <texture>img/LineL.png</texture>
		            <aspectratio>stretch</aspectratio>
		        </control>
            </control>
            <control type="panel" id="10053">
		        <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10053).NumItems,0) | Container(10053).IsUpdating</visible>
                <include content="CastLayout">
                    <param name="viewid">10053</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[ListItem.Label]</param>
		            <param name="belowdoublelabel2">$INFO[ListItem.Year]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
            <!-- YouTube -->
            <control type="group" id="100541">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10054).NumItems,0) | Container(10054).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[32131] $INFO[Container(10054).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
   		            <top>40</top>
                    <left>10</left>
    	            <width>1180</width>
		            <height>1</height>
		            <texture>img/LineL.png</texture>
		            <aspectratio>stretch</aspectratio>
		        </control>
            </control>
            <control type="panel" id="10054">
		        <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10054).NumItems,0) | Container(10054).IsUpdating</visible>
                <include content="WideLayout">
                    <param name="viewid">10054</param>
                    <param name="belowdoublelabelvisibility">true</param>
                    <param name="belowdoublelabel1">$INFO[ListItem.Label]</param>
    	            <param name="belowdoublelabel2">$INFO[ListItem.Label2]</param>
                    <param name="belowlabelvisibility">false</param>
                </include>
		    </control>
            <!-- Backdrops -->
            <control type="group" id="100551">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10055).NumItems,0) | Container(10055).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[20445] $INFO[Container(10055).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
   		            <top>40</top>
                    <left>10</left>
    	            <width>1180</width>
		            <height>1</height>
		            <texture>img/LineL.png</texture>
		            <aspectratio>stretch</aspectratio>
		        </control>
            </control>
            <control type="panel" id="10055">
		        <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10055).NumItems,0) | Container(10055).IsUpdating</visible>
                <include content="WideLayout">
                    <param name="viewid">10055</param>
                    <param name="belowdoublelabelvisibility">false</param>
                    <param name="belowlabel">$INFO[ListItem.Label]</param>
                    <param name="belowlabelvisibility">true</param>
                    <param name="belowlabelheight">74</param>
                </include>
		    </control>
            <!-- Posters -->
            <control type="group" id="100591">
			    <top>44</top>
				<height>44</height>
				<visible>Integer.IsGreater(Container(10059).NumItems,0) | Container(10059).IsUpdating</visible>
                <control type="label">
                    <left>8</left>
                    <top>0</top>
                    <height>30</height>
                    <label>[COLOR=$VAR[HighlightColor]]$LOCALIZE[32130] $INFO[Container(10059).NumItems,(,)][/COLOR]</label>
                    <font>ListDetails</font>
                </control>
                <control type="image" description="Line Split">
   		            <top>40</top>
                    <left>10</left>
    	            <width>1180</width>
		            <height>1</height>
		            <texture>img/LineL.png</texture>
		            <aspectratio>stretch</aspectratio>
		        </control>
            </control>
            <control type="panel" id="10059">
		        <top>44</top>
                <left>10</left>
                <width>1180</width>
                <height>410</height>
                <orientation>horizontal</orientation>
	            <preloaditems>2</preloaditems>
		        <scrolltime tween="quadratic" easing="out">300</scrolltime>
				<visible>Integer.IsGreater(Container(10059).NumItems,0) | Container(10059).IsUpdating</visible>
                <include content="CastLayout">
                    <param name="viewid">10059</param>
                    <param name="belowdoublelabelvisibility">false</param>
                    <param name="belowlabel">$INFO[ListItem.Label]</param>
                    <param name="belowlabelvisibility">true</param>
                    <param name="belowlabelheight">74</param>
                </include>
		    </control>
        </control>
    </controls>
</window>
