<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<window>
	<id>4755</id>
	<defaultcontrol>50</defaultcontrol>
	<allowoverlay>yes</allowoverlay>
	<define>#header.label: Online Videos</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>
    
		<!--            :: 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>34</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>
    
    <control>
		<description>Filter</description>
		<type>label</type>
		<id>1</id>      
		<posX>300</posX>
		<posY>62</posY>
		<width>700</width>
		<label>#OnlineVideos.filter</label>
		<font>font10</font>
		<textcolor>ffd6cbbf</textcolor>      
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
    </control>             
    
    <import>common.time.xml</import>
	
	<!--            :: 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 Style="smallTitle">
		<description>Selected item Label</description>
		<type>fadelabel</type>
		<id>1</id>
		<posX>510</posX>
		<posY>1015</posY>
		<label>#selecteditem</label>
		<visible>!Control.IsVisible(51) + !string.contains(#selecteditem, ..)+ facadeview.list</visible>
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
    </control>    
	
	<control Style="InfoLabel">
		<description>Buffering Label</description>
		<type>label</type>
		<id>0</id>
		<posX>98</posX>
		<posY>930</posY>
		<label>#OnlineVideos.buffered % #OnlineVideos.Translation.Buffered.Label</label>
		<visible>string.equals(#OnlineVideos.IsBuffering, true) + facadeview.list</visible>
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
    </control>
	
	<control Style="InfoLabel">
		<description>Buffering Label</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) + [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 Label</description>
		<type>label</type>
		<id>0</id>
		<posX>1270</posX>
		<posY>592</posY>
		<label>#OnlineVideos.buffered%</label>
		<visible>string.equals(#OnlineVideos.IsBuffering, true) + [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>
		<id>500</id>
		<type>image</type>
		<posX>95</posX>
		<posY>249</posY>
		<width>542</width>
		<height>310</height>
		<keepaspectratio>yes</keepaspectratio>
		<texture flipY="true" diffuse="Thumb_Mask.png" mask="onlinevideos_poster_mask.png">Onlinevideos\Icons\#OnlineVideos.selectedSite.png</texture>
		<visible>facadeview.list + !string.equals(#OnlineVideos.state, videos) + !string.equals(#OnlineVideos.state, details)</visible>
	</control>
	
	 <!--          :: Thumbviews ::            -->
	
	
 	<control Style="smallTitle">
		<animation effect="fade" time="250">WindowOpen</animation>
		<animation effect="fade" time="250">WindowClose</animation>
		<description>Selected item Label</description>
		<type>fadelabel</type>
		<id>1</id>
		<posX>510</posX>
		<posY>1015</posY>
		<label>#selecteditem</label>
		<visible>!Control.IsVisible(51) + !string.contains(#selecteditem, ..)+!string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + [facadeview.smallicons | facadeview.largeicons]</visible>
    </control>    
	
	<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>FF987e60</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.contains(#selecteditem, ..) + [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>445</posY>
		<label>#OnlineVideos.Translation.DateOfRelease.Label</label>
		<visible>string.equals(#OnlineVideos.state, videos) + control.hastext(512) + [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>release 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)+control.hastext(502) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + !string.equals(#OnlineVideos.selectedSiteUtil,IMDB) + !string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers) + !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>Language Label</description>
		<type>label</type>
		<id>0</id>
		<posX>678</posX>
		<posY>867</posY>
		<width>240</width>
		<align>left</align>
		<font>TitanLight12</font>
		<textcolor>a99176</textcolor>
		<label>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>678</posX>
		<posY>867</posY>
		<width>240</width>
		<align>left</align>
		<font>TitanLight12</font>
		<textcolor>a99176</textcolor>
		<label>#OnlineVideos.Translation.Videos.Label:</label>
		<visible>[string.equals(#OnlineVideos.state, categories)+control.hastext(502)] + !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>Sites Label</description>
		<type>label</type>
		<id>0</id>
		<posX>678</posX>
		<posY>867</posY>
		<width>240</width>
		<align>left</align>
		<font>TitanLight12</font>
		<textcolor>a99176</textcolor>
		<label>#OnlineVideos.Translation.Sites.Label:</label>
		<visible>string.equals(#OnlineVideos.state, groups)+control.hastext(502) + !string.contains(#selecteditem, ..) + [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>502</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>language of site | number of sites in group | number of videos in category | length of video</description>
		<type>fadelabel</type>
		<id>502</id>
		<posX>1270</posX>
		<posY>481</posY>
		<label>#selecteditem2</label>
		<visible>string.equals(#OnlineVideos.state, videos) + !string.equals(#OnlineVideos.selectedSiteUtil, YouTube) + !string.equals(#OnlineVideos.selectedSiteUtil,IMDB) + !string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers) + !string.contains(#selecteditem, ..) + [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>512</id>
		<posX>1270</posX>
		<posY>445</posY>
		<label>#selecteditem2</label>
		<visible>string.equals(#OnlineVideos.state, videos) + [string.equals(#OnlineVideos.selectedSiteUtil,IMDB)|string.equals(#OnlineVideos.selectedSiteUtil,ITMovieTrailers)] + [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.youtube.xml</import>
    <import>myonlinevideos.facade.xml</import>  
    <import>common.overlay.xml</import>
  </controls>
</window>