{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the display for the video player page.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- TO BE ADDED
//////
*}

{include file='header.tpl'}

<div class="sic-container">
  
  <div id="sic-right" class="sic-right">

    {if $print_ads}{if $advert4}<div class="standard-right"><div class="padding"><div id="hwdadverts-nopadding">{$advert4}</div></div></div>{/if}{/if}
    
    {if $print_uservideolist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_TITLE_MOREBYUSR} {$videoplayer->uploader}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$userlist}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}
    
    {if $print_relatedlist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_RELATED}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$listrelated}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}

    {if $print_categoryvideolist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_MORECATVIDS}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$categoryvideolist}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}
    
  </div>
  
  <div class="sic-center">
  
    <div class="standard">
    <div class="padding">
      <h2>{$videoplayer->title} {$videoplayer->editvideo} {$videoplayer->deletevideo}</h2>
      <center>{$videoplayer->player}</center>
    </div>
    </div>

    <div class="standard">
    <div class="padding">
          {include file='video_details.tpl'}
    </div>
    </div>

    {if $print_ads}{if $advert3}<div class="standard"><div class="padding"><div id="hwdadverts-nopadding">{$advert3}</div></div></div>{/if}{/if}

  </div>
</div>


<div style="clear:both;"></div>
{if $print_comments}
    <div class="standard">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_TITLE_VIDCOMMS}</h2>
    </div>
      {$videoplayer->comments}
    </div>
{/if} 
<div style="clear:both;"></div>

{literal}
<script language='javascript' type='text/javascript'>
	var fullWidth = document.getElementById("hwdvids").offsetWidth;
	var sideWidth = fullWidth - {/literal}{$flvplay_width}{literal};
	document.getElementById("sic-right").style.width = sideWidth + "px";
</script>
{/literal}

{include file='footer.tpl'}
