<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
  <id>87260</id>
  <defaultcontrol>50</defaultcontrol>
  <allowoverlay>yes</allowoverlay>
	<define>#Fanart.1:#Trakt.Friends.Fanart.1</define>
  <define>#Fanart.2:#Trakt.Friends.Fanart.2</define>
  <controls>    
		
		<control>
      <id>1</id>
      <description>Background Image</description>
      <type>image</type>
      <posX>0</posX>
      <posY>0</posY>
      <width>1280</width>
      <height>720</height>
      <texture>Background.png</texture>
      <colordiffuse>ffffffff</colordiffuse>
			<animation effect="fade" time="300">WindowOpen</animation>
    </control>
		
		<import>Trakt.Common.Fanart.xml</import>
		
    <control>
      <id>1</id>
      <description>Overlay Image</description>
      <type>image</type>
      <posX>0</posX>
      <posY>0</posY>
      <width>1281</width>
      <height>720</height>
      <texture>mainoverlay.png</texture>
    </control>
		    
    <control>
      <description>Current View</description>
      <type>label</type>
      <id>0</id>
      <posX>20</posX>
      <posY>8</posY>
      <width>650</width>
      <font>font12</font>
      <label>#Trakt.CurrentView</label>
      <align>left</align>
      <animation effect="fade" time="150">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
    </control>    

    <control>
      <description>Item Count Label</description>
      <type>label</type>
      <label>#Trakt.Items</label>
      <id>0</id>
      <width>135</width>
      <posX>1244</posX>
      <posY>1</posY>
      <align>right</align>
      <font>font10</font>
      <textcolor>ffFFFFFF</textcolor>
      <animation effect="fade" time="250">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
    </control>
    
    <control>
      <description>Date Time</description>
      <type>label</type>
      <id>0</id>
      <posX>1244</posX>
      <posY>21</posY>
      <label>#date | #time</label>
      <align>right</align>
      <font>font10</font>
      <textcolor>ffa9d0f7</textcolor>  
      <animation effect="fade" time="150">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
    </control>
   
    <control>
      <description>group element</description>
      <type>group</type>
      <animation effect="fade" time="150">WindowOpen</animation>
      <animation effect="fade" time="250">WindowClose</animation>
      <animation effect="slide" time="150" start="1200,0">WindowOpen</animation>
      <animation effect="slide" time="250" end="1200,0">WindowClose</animation>
      <control>
        <type>facadeview</type>
        <id>50</id>
        <control>
          <description>listcontrol</description>
          <type>listcontrol</type>
          <id>50</id>
          <posX>660</posX>
          <posY>240</posY>
          <height>480</height>
          <width>620</width>
          <onleft>50</onleft>
          <onright>50</onright>
          <scrollOffset>5</scrollOffset>
          <itemWidth>89</itemWidth>
          <itemHeight>50</itemHeight>
          <textureHeight>60</textureHeight>
          <IconXOff>25</IconXOff>
          <IconYOff>4</IconYOff>
          <textXOff>25</textXOff>
          <textYOff>5</textYOff>
          <textXOff2>0</textXOff2>
          <textYOff2>5</textYOff2>
          <textXOff3>75</textXOff3>
          <textYOff3>10</textYOff3>
          <font>font11</font>
          <font2>font10</font2>
          <font3>font11</font3>
          <keepaspectratio>yes</keepaspectratio>
          <spinPosX>1175</spinPosX>
          <spinPosY>681</spinPosY>
          <spinCanFocus>no</spinCanFocus>
          <suffix>|</suffix>
        </control>
      </control>
    </control>
    
		<control>
      <description>Avatar</description>
      <type>image</type>
      <id>1</id>
      <posX>18</posX>
      <posY>240</posY>
      <height>138</height>
      <width>138</width>
      <keepaspectratio>yes</keepaspectratio>
      <zoom>yes</zoom>
      <texture flipY="true" diffuse="diffusemirrorwide.png">#selectedthumb</texture>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>
		
		<control>
      <type>label</type>
      <label>#Trakt.User.Username</label>
      <id>0</id>
      <posX>165</posX>
      <posY>240</posY>
      <font>font12</font>
      <textcolor>ffa9d0f7</textcolor>			
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
    <control>
      <type>textboxscrollup</type>
      <label>#Trakt.User.FullName</label>
      <id>0</id>
      <posX>165</posX>
      <posY>263</posY>
      <width>460</width>
      <height>60</height>
      <font>font11</font>
      <textcolor>ffffffff</textcolor>			
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
		
		<control>
      <description>Join Date</description>
      <id>0</id>
      <label>#Trakt.Translation.JoinDate.Label</label>
      <type>label</type>
      <posX>18</posX>
      <posY>438</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.User.JoinDate,)+!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
    <control>
      <description>Join Date Value</description>
      <id>12001</id>
      <label>#Trakt.User.JoinDate</label>
      <type>label</type>
      <posX>173</posX>
      <posY>439</posY>
      <width>400</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control> 
		
		<control>
      <description>Gender</description>
      <id>0</id>
      <label>#Trakt.Translation.Gender.Label</label>
      <type>label</type>
      <posX>18</posX>
      <posY>463</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.User.Gender,)+!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
    <control>
      <description>Gender Value</description>
      <id>12001</id>
      <label>#Trakt.User.Gender</label>
      <type>label</type>
      <posX>173</posX>
      <posY>464</posY>
      <width>400</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control> 
		
		<control>
      <description>Location</description>
      <id>0</id>
      <label>#Trakt.Translation.Location.Label</label>
      <type>label</type>
      <posX>18</posX>
      <posY>488</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.User.Location,)+!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
    <control>
      <description>Location Value</description>
      <id>12001</id>
      <label>#Trakt.User.Location</label>
      <type>label</type>
      <posX>173</posX>
      <posY>489</posY>
      <width>400</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control> 
		
		<control>
      <description>Protected</description>
      <id>0</id>
      <label>#Trakt.Translation.Protected.Label</label>
      <type>label</type>
      <posX>18</posX>
      <posY>513</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.User.Protected,)+!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>    
    <control>
      <description>Protected Value</description>
      <id>12001</id>
      <label>#Trakt.User.Protected</label>
      <type>label</type>
      <posX>173</posX>
      <posY>514</posY>
      <width>400</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <visible>!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>
		
    <control>
      <description>User About</description>
      <type>textboxscrollup</type>
      <id>0</id>
      <posX>18</posX>
      <posY>550</posY>
      <width>600</width>
      <height>100</height>
      <seperator>----------------------------------------------------------------------------------------------------</seperator>
      <font>font11</font>
      <label>#Trakt.User.About</label>
      <scrollStartDelaySec>12</scrollStartDelaySec>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.User.About,)+!string.equals(#Trakt.User.About,N/A)+!string.equals(#Trakt.View.Level,WatchedHistory)</visible>
    </control>
    
    <!-- Trakt Episodes -->
    <control>
      <description>Big Episode Thumb</description>
      <type>image</type>
      <id>1</id>
      <posX>28</posX>
      <posY>254</posY>
      <height>200</height>
      <width>354</width>
      <keepaspectratio>yes</keepaspectratio>
      <zoom>yes</zoom>
      <texture flipY="true" diffuse="diffusemirrorwide.png">#selectedthumb</texture>      
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
      <visible>string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    
    <control>
      <description>Episode Plot</description>
      <type>textboxscrollup</type>
      <id>631</id>
      <posX>30</posX>
      <posY>500</posY>
      <width>620</width>
      <height>150</height>
      <seperator>----------------------------------------------------------------------------------------------------</seperator>
      <font>font11</font>
      <label>#Trakt.Episode.Overview</label>
      <scrollStartDelaySec>12</scrollStartDelaySec>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Episode.Overview,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <type>label</type>
      <label>#Trakt.Translation.Season.Label #Trakt.Episode.Season</label>
      <id>0</id>
      <posX>400</posX>
      <posY>251</posY>
      <width>295</width>
      <font>font13</font>
      <textcolor>ffa9d0f7</textcolor>      
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Episode.Season,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <type>textbox</type>
      <label>#Trakt.Episode.Title</label>
      <id>0</id>
      <posX>400</posX>
      <posY>278</posY>
      <width>270</width>
      <height>100</height>
      <font>font12</font>
      <textcolor>ffffffff</textcolor>      
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Episode.Title,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <id>0</id>
      <label>#Trakt.Translation.Network.Label</label>
      <type>label</type>
      <posX>401</posX>
      <posY>369</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.Network,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <id>0</id>
      <label>#Trakt.Show.Network</label>
      <type>label</type>
      <posX>560</posX>
      <posY>370</posY>
      <width>100</width>
      <textcolor>ffffffff</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.Network,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <label>#Trakt.Translation.AirDay.Label</label>
      <type>label</type>
      <posX>400</posX>
      <posY>392</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.AirDay,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <id>0</id>
      <label>#Trakt.Show.AirDay</label>
      <type>label</type>
      <posX>560</posX>
      <posY>393</posY>
      <width>100</width>
      <textcolor>ffffffff</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.AirDay,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>        
    <control>
      <id>0</id>
      <label>#Trakt.Translation.AirTime.Label</label>
      <type>label</type>
      <posX>400</posX>
      <posY>415</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.AirTime,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <id>0</id>
      <label>#Trakt.Show.AirTime</label>
      <type>label</type>
      <posX>560</posX>
      <posY>416</posY>
      <width>180</width>
      <width>100</width>
      <textcolor>ffffffff</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.AirTime,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    
    <control>
      <label>#Trakt.Translation.Certification.Label</label>
      <type>label</type>
      <posX>400</posX>
      <posY>438</posY>
      <width>150</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
			<visible>!string.equals(#Trakt.Show.Certification,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    <control>
      <id>10005</id>
      <label>#Trakt.Show.Certification</label>
      <type>label</type>
      <posX>560</posX>
      <posY>439</posY>
      <width>180</width>
      <width>100</width>
      <textcolor>ffffffff</textcolor>
      <font>font10</font>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
			<visible>!string.equals(#Trakt.Show.Certification,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,episode)</visible>
    </control>
    
		<!-- Movies -->
		<control>
      <description>Cover Art</description>
      <type>image</type>
      <id>60</id>
      <posX>31</posX>
      <posY>254</posY>
      <width>257</width>
      <height>380</height>
      <texture>#selectedthumb</texture>
      <visible>string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    <control>
      <description>Cover Art Glass Overlay</description>
      <type>image</type>
      <id>0</id>
      <posX>31</posX>
      <posY>254</posY>
      <width>228</width>
      <height>177</height>
      <texture>glassoverlay2.png</texture>
      <visible>string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)+Control.HasThumb(60)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    
    <control>
      <description>Movie Title</description>
      <type>label</type>
      <id>0</id>
      <posX>308</posX>
      <posY>251</posY>
      <width>360</width>
      <font>font14</font>
      <label>#Trakt.Movie.Title</label>
      <textcolor>ffFFFFFF</textcolor>			
      <visible>!string.equals(#Trakt.Movie.Title,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    <control>
      <description>Year</description>
      <type>label</type>
      <label>#Trakt.Movie.Year</label>
      <id>0</id>
      <posX>309</posX>
      <posY>282</posY>
      <width>900</width>
      <font>font12</font>
      <textcolor>ffa9d0f7</textcolor>      
      <visible>!string.equals(#Trakt.Movie.Year,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    
    <control>
      <description>Summary</description>
      <type>textboxscrollup</type>
      <id>0</id>
      <posX>308</posX>
      <posY>310</posY>
      <width>370</width>
      <height>240</height>
      <textcolor>ffFFFFFF</textcolor>
      <seperator>-----------------------------------------------------------------------------------</seperator>
      <font>font11</font>
      <label>#Trakt.Movie.Overview</label>
      <visible>!string.equals(#Trakt.Movie.Overview,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>        
    <control>
      <description>Certification Label</description>
      <id>0</id>
      <type>label</type>
      <label>#Trakt.Translation.Certification.Label</label>
      <posX>310</posX>
      <posY>572</posY>
      <width>190</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Certification,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    <control>
      <description>Certification</description>
      <id>0</id>
      <type>label</type>
      <label>#Trakt.Movie.Certification</label>
      <posX>520</posX>
      <posY>573</posY>
      <width>200</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Certification,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>    
    <control>
      <description>Runtime Label</description>
      <id>0</id>
      <type>label</type>
      <label>#Trakt.Translation.Runtime.Label</label>
      <posX>310</posX>
      <posY>594</posY>
      <width>190</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Runtime,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    <control>
      <description>Runtime</description>
      <id>0</id>
      <type>label</type>
      <label>#Trakt.Movie.Runtime mins</label>
      <posX>520</posX>
      <posY>595</posY>
      <width>200</width>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Runtime,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>        
    <control>
      <description>Released Label</description>
      <type>label</type>
      <label>#Trakt.Translation.Released.Label</label>
      <posX>310</posX>
      <posY>616</posY>
      <width>190</width>
      <textcolor>ffa9d0f7</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Released,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
    <control>
      <description>Released</description>
      <id>0</id>
      <type>label</type>
      <label>#Trakt.Movie.Released</label>
      <posX>520</posX>
      <posY>617</posY>
      <textcolor>ffFFFFFF</textcolor>
      <font>font10</font>
      <visible>!string.equals(#Trakt.Movie.Released,)+string.equals(#Trakt.View.Level,WatchedHistory)+string.equals(#Trakt.Selected.Type,movie)</visible>
      <animation effect="fade" time="250" delay="0">WindowClose</animation>
      <animation effect="fade" time="250" delay="0">WindowOpen</animation>
    </control>
		
  </controls>
</window>
