<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
	<id>4755</id>
	<defaultcontrol>50</defaultcontrol>
	<allowoverlay>yes</allowoverlay>
	<define>#header.label:OnlineVideos</define>
	<define>#header.image</define>
	<controls>

		<!-- *** WINDOW DEFAULTS *** -->    

		<control>
			<description>BackGround</description>
			<type>image</type>
			<id>1</id>
			<width>1920</width>
			<height>1080</height>
			<texture>background.png</texture>    
			<shouldCache>true</shouldCache>  
		</control>
		
	<control>
	  <description>Online Videos Selected Fanart</description>
      <type>image</type>
      <id>0</id>
      <posX>0</posX>
      <posY>0</posY>
      <width>1920</width>
      <height>1080</height>
      <visible>skin.hassetting(#skin.show.selectedbackdrops)</visible>
      <texture>hover_OnlineVideos.png</texture>
      <animation effect="fade" start="0" end="100" time="250" delay="350">WindowOpen</animation>
      <animation effect="fade" start="100" end="0" time="250" delay="0">WindowClose</animation>
	  <animation effect="zoom" start="105,105" end="110,110" time="20000" tween="cubic" easing="inout" pulse="true" reversible="false" condition="true">Conditional</animation>
      <animation effect="slide" start="0,0" end="-20,-20" time="10000" tween="cubic" easing="inout" pulse="true" reversible="false" condition="true">Conditional</animation>
    </control> 

		<!--            :: Overlays ::            -->	

		<control>
			<description>fanart overlay</description>
			<type>image</type>
			<id>0</id>
			<posX>0</posX>
			<posY>0</posY>
			<width>1920</width>
			<height>1080</height>
			<texture>fanart_overlay.png</texture>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<description>background listview</description>
			<type>image</type>
			<id>0</id>
			<posX>10</posX>
			<posY>252</posY>
			<width>1903</width>
			<height>790</height>
			<texture>panel_list_music.png</texture>
			<visible>[facadeview.list | Control.IsVisible(51)] + !string.equals(#OnlineVideos.state, details)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<description>background thumbs</description>
			<type>image</type>
			<id>0</id>
			<posX>10</posX>
			<posY>252</posY>
			<width>1903</width>
			<height>790</height>
			<texture>panel_thumbs.png</texture>
			<visible>[facadeview.smallicons | facadeview.largeicons] + Control.IsVisible(50) + !string.equals(#OnlineVideos.state, details)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<description>background listview</description>
			<type>image</type>
			<id>0</id>
			<posX>10</posX>
			<posY>252</posY>
			<width>1903</width>
			<height>790</height>
			<texture>panel_list.png</texture>
			<visible>string.equals(#OnlineVideos.state, details)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<id>0</id>
			<type>image</type>
			<posX>60</posX>
			<posY>88</posY>
			<width>68</width>
			<height>60</height>
			<texture>icon_movies.png</texture>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<import>common.time.xml</import>

		<control>
			<description>number of current downloads</description>
			<type>button</type>
			<id>47016</id>
			<posX>60</posX>
			<posY>120</posY>
			<width>40</width>
			<height>40</height>
			<textureFocus>OnlineVideos\disk.png</textureFocus>
			<textureNoFocus>OnlineVideos\disk.png</textureNoFocus>
			<label>#OnlineVideos.currentDownloads</label>
			<font>font10</font>
			<textXOff>-10</textXOff>
			<textYOff>4</textYOff>
			<textalign>center</textalign>
			<textcolor>FF000000</textcolor>
			<textcolorNoFocus>FF000000</textcolorNoFocus>
			<onleft>50</onleft>
			<onright>50</onright>
			<onup>17</onup>
			<ondown>2</ondown>
			<visible>!string.equals(#OnlineVideos.currentDownloads, 0)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<animation effect="zoom" start="100,100" end="115,115" time="800" condition="true" pulse="true">conditional</animation>
		</control>

		<!--            :: INFO LABELS ::            -->

		<control>
			<id>400</id>
			<type>image</type>
			<posX>121</posX>
			<posY>363</posY>
			<width>556</width>
			<height>313</height>
			<align>center</align>
			<keepaspectratio>yes</keepaspectratio>
			<texture>#selectedthumb</texture>
			<visible>facadeview.list+!control.isvisible(51)+![string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)|string.equals(#OnlineVideos.selectedSiteUtil,IMDb)]</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<description>Poster shadow</description>
			<type>image</type>
			<id>1</id>
			<posX>105</posX>
			<posY>346</posY>
			<width>429</width>
			<height>613</height>
			<texture>list_poster_shadow.png</texture>
			<visible>facadeview.list+!string.equals(#OnlineVideos.state,details)+control.hasthumb(500)+[string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)|string.equals(#OnlineVideos.selectedSiteUtil,IMDb)]</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<type>image</type>
			<description>movie poster</description>
			<id>500</id>
			<posX>123</posX>
			<posY>360</posY>
			<width>379</width>
			<height>563</height>
			<visible>facadeview.list+!string.equals(#OnlineVideos.state,details)+[string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)|string.equals(#OnlineVideos.selectedSiteUtil,IMDb)]</visible>
			<texture>#selectedthumb</texture>
		</control>

		<control>
			<description>selected site info box background</description>
			<id>0</id>
			<type>image</type>
			<posX>37</posX>
			<posY>190</posY>
			<width>730</width>
			<height>100</height>
			<texture>panel_now_playing_info.png</texture>
			<visible>!string.equals(#OnlineVideos.state,groups) + !string.equals(#OnlineVideos.state,sites)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>
		
		<control>
			<description>Selected Site Banner</description>
			<id>0</id>
			<type>image</type>
			<!--<posX>300</posX>
			<posY>985</posY>
			<width>177</width>
			<height>59</height>
			<align>left</align>
			<valign>middle</valign>-->
			<posX>70</posX>
			<posY>208</posY>
			<width>210</width>
			<height>70</height>
			<keepaspectratio>yes</keepaspectratio>
			<texture>#OnlineVideos.HeaderImage</texture>
			<visible>!string.equals(#OnlineVideos.state,groups) + !string.equals(#OnlineVideos.state,sites)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>
		
		<control>
			<description>Selected Site Label</description>
			<type>fadelabel</type>
			<id>0</id>
			<posX>300</posX>
			<posY>220</posY>
			<width>430</width>
			<font>TitanLight14</font>
			<textcolor>FF85CFFF</textcolor>
			<label>#OnlineVideos.selectedSite</label>
			<visible>!string.equals(#OnlineVideos.state,groups) + !string.equals(#OnlineVideos.state,sites)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>
		
		<control Style="smallTitle">
			<description>Heading Label for current View</description>
			<type>fadelabel</type>
			<id>1</id>
			<posX>510</posX>
			<posY>1015</posY>
			<label>#OnlineVideos.HeaderLabel</label>
			<visible>!Control.IsVisible(51)</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>    

		<control Style="InfoLabel">
			<description>Buffering Label in videos view in thumbs mode</description>
			<type>label</type>
			<id>0</id>
			<posX>1038</posX>
			<posY>592</posY>
			<label>#OnlineVideos.Translation.Buffered.Label</label>
			<visible>string.equals(#OnlineVideos.IsBuffering, true) + !string.equals(#OnlineVideos.state,details) + [facadeview.smallicons | facadeview.largeicons]</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control Style="InfoValueWide">
			<description>Buffering Percent in videos view in thumbs mode</description>
			<type>label</type>
			<id>0</id>
			<posX>1270</posX>
			<posY>592</posY>
			<label>#OnlineVideos.buffered%</label>
			<visible>string.equals(#OnlineVideos.IsBuffering, true) + !string.equals(#OnlineVideos.state,details) + [facadeview.smallicons | facadeview.largeicons]</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Description in List Mode</description>
			<type>textboxscrollup</type>
			<id>0</id>
			<posX>105</posX>
			<posY>700</posY>
			<width>610</width>
			<height>225</height>
			<font>TitanLight12</font>
			<label>#OnlineVideos.desc</label>
			<lineSpacing>0.92</lineSpacing>
			<visible>!string.equals(#OnlineVideos.state, details) + ![string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)|string.equals(#OnlineVideos.selectedSiteUtil,IMDb)] + facadeview.list</visible>
		</control>

		<control Style="InfoLabel">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Airdate Label in List Mode</description>
			<type>label</type>
			<id>0</id>
			<posX>105</posX>
			<posY>935</posY>
			<label>#OnlineVideos.Translation.Airdate.Label</label>
			<visible>string.equals(#OnlineVideos.state, videos)+ !string.equals(#OnlineVideos.aired,) + facadeview.list</visible>
		</control>

		<control Style="InfoValueWide">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Airdate Value in List Mode</description>
			<type>fadelabel</type>
			<id>0</id>
			<posX>700</posX>
			<posY>935</posY>
			<align>right</align>
			<width>400</width>
			<label>#OnlineVideos.aired</label>
			<visible>!string.equals(#OnlineVideos.state, details) + facadeview.list</visible>
		</control>

		<!--          :: Thumbviews ::            -->

		<control>
			<description>Title value</description>
			<type>fadelabel</type>
			<id>1</id>
			<posX>1040</posX>
			<posY>332</posY>
			<width>700</width>
			<label>#selecteditem</label>
			<font>fontB16</font>
			<textcolor>FF00b7ff</textcolor>
			<shadowAngle>120</shadowAngle>
			<shadowDistance>2</shadowDistance>
			<shadowColor>FF000000</shadowColor>
			<visible>!Control.IsVisible(51) + !string.contains(#selecteditem, ..)+!string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + [facadeview.smallicons | facadeview.largeicons]</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Description</description>
			<type>textboxscrollup</type>
			<id>0</id>
			<posX>1040</posX>
			<posY>635</posY>
			<width>790</width>
			<height>225</height>
			<font>TitanLight12</font>
			<label>#OnlineVideos.desc</label>
			<lineSpacing>0.92</lineSpacing>
			<visible>!string.equals(#OnlineVideos.state, details) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control Style="InfoLabel">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Length Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1038</posX>
			<posY>481</posY>
			<label>#OnlineVideos.Translation.Runtime.Label</label>
			<visible>string.equals(#OnlineVideos.state, videos) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + !string.equals(#OnlineVideos.selectedSiteUtil,IMDB) + !string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers) + !string.equals(#selecteditem2,) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control Style="InfoLabel">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>DateOfRelease Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1038</posX>
			<posY>481</posY>
			<label>#OnlineVideos.Translation.DateOfRelease.Label</label>
			<visible>string.equals(#OnlineVideos.state, videos) + !string.equals(#selecteditem2,) + [string.equals(#OnlineVideos.selectedSiteUtil,IMDB)|string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)] + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>   

		<control Style="InfoLabel">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Airdate Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1038</posX>
			<posY>445</posY>
			<label>#OnlineVideos.Translation.Airdate.Label</label>
			<visible>string.equals(#OnlineVideos.state, videos)+ !string.equals(#OnlineVideos.aired,) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + !string.equals(#OnlineVideos.selectedSiteUtil,IMDB) + !string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Sites Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1040</posX>
			<posY>481</posY>
			<width>240</width>
			<align>left</align>
			<font>TitanLight12</font>
			<textcolor>6aa5cb</textcolor>
			<label>#OnlineVideos.Translation.Sites.Label:</label>
			<visible>string.equals(#OnlineVideos.state, groups) + !string.equals(#selecteditem2,) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>  

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Language Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1040</posX>
			<posY>481</posY>
			<width>240</width>
			<align>left</align>
			<font>TitanLight12</font>
			<textcolor>6aa5cb</textcolor>
			<label>#(L(248)):</label>
			<visible>string.equals(#OnlineVideos.state, sites)+control.hastext(502) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + !string.contains(#selecteditem, ..) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>Videos Label</description>
			<type>label</type>
			<id>0</id>
			<posX>1040</posX>
			<posY>481</posY>
			<width>240</width>
			<align>left</align>
			<font>TitanLight12</font>
			<textcolor>6aa5cb</textcolor>
			<label>#OnlineVideos.Translation.Videos.Label:</label>
			<visible>string.equals(#OnlineVideos.state, categories) + !string.equals(#selecteditem2,) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control Style="InfoValueWide">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>language of site | number of sites in group | number of videos in category | length of video</description>
			<type>fadelabel</type>
			<id>0</id>
			<posX>1270</posX>
			<posY>445</posY>
			<label>#OnlineVideos.aired</label>
			<visible>!string.equals(#OnlineVideos.state, details) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<control Style="InfoValueWide">
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
			<description>number of sites in group | language of site | number of videos in category | length of video in thumbs mode</description>
			<type>fadelabel</type>
			<id>502</id>
			<posX>1270</posX>
			<posY>481</posY>
			<label>#selecteditem2</label>
			<visible>!string.equals(#OnlineVideos.state, details) + [facadeview.smallicons | facadeview.largeicons]</visible>
		</control>

		<import>myonlinevideos.hiddenmenu.xml</import>
		<import>myonlinevideos.details.xml</import>
		<import>myonlinevideos.details.imdb.xml</import>
		<import>myonlinevideos.details.ITMovieTrailers.xml</import>
		<import>myonlinevideos.details.youtube.xml</import>
		<import>myonlinevideos.facade.xml</import>  
		<import>common.overlay.xml</import>
		
		<control>
			<description>Buffering Label in listview mode</description>
			<type>label</type>
			<id>0</id>
			<posX>908</posX>
			<posY>518</posY>
			<width>66</width>
			<align>center</align>
			<valign>middle</valign>
			<font>font11</font>
			<textcolor>White</textcolor>
			<label>#OnlineVideos.buffered%</label>
			<visible>string.equals(#OnlineVideos.IsBuffering, true) + !string.equals(#OnlineVideos.state,details) + facadeview.list</visible>
			<animation effect="fade" time="250">WindowOpen</animation>
			<animation effect="fade" time="250">WindowClose</animation>
		</control>

	</controls>
</window>