{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://creativecommons.org/licenses/by-nc-nd/3.0/
//////
*}

<div id="hwdvids">
	<div class="standard">
		<div class="padding"><div id="hwdvs_player_container{$random}">{$video_player}</div></div>
		{if $print_extended}
			{literal}
				<script type='text/javascript'>window.addEvent('domready', function(){ hwdvs_insert_playlist_video{/literal}{$random}{literal}({/literal}{$vid}{literal}) });</script>
			{/literal}
			<div style="clear:both;"></div>

			<div id="thumbnails_container">
				{foreach name=outer item=data from=$list}
					<div class="thumbnail">
						{$data->thumbnail}
					</div>
				{/foreach}
			</div>
		
			<div style="clear:both;"></div>
		{/if}
	</div>    
</div>

{if $print_extended}
{literal}
<script language='javascript' type='text/javascript'>
	var fullWidth = document.getElementById("hwdvs_player_container{/literal}{$random}{literal}").offsetWidth;
	document.getElementById("thumbnails_container").style.width = fullWidth + "px";
</script>
{/literal}
{/if}