

{include file='header.tpl'}

<div id="recent-activities" class="app-box">
<div class="app-box-header">
<div class="app-box-header">
	<h2 class="expand app-box-title"><div style="overflow:hidden;height:28px;">{$videoplayer->title}</div></h2>
</div>
</div>
	<div style="padding-top:10px;"><center>{$videoplayer->player}</center></div>
</div>

   <div class="rightColContainer">
        {if $print_search}
	<!-- Search -->
	<div class="cModule searchbox">
		<form name="search" id="cFormSearch" method="post" action="{$form_search}">

			<fieldset class="fieldset">

			<div class="input_wrap clrfix">
				<a href="javascript:void(0);" onclick="jQuery('#cFormSearch').submit();" class="search_button"><span>{$smarty.const._HWDVIDS_SEARCHBAR}</span></a>
				{$searchinput}
			</div>

			<!--<div class="small">Try our <a href="{$mosConfig_live_site}/index.php?option=com_community&view=search&task=advancesearch">{$smarty.const._HWDVIDS_ADSEARCH}</a></div>-->

			</fieldset>

		</form>
	</div>
	<!-- Search -->
        {/if}			

        {if $print_ads}{if $advert4}<div id="hwdadverts-padding">{$advert4}</div>{/if}{/if}
	
	<div style="padding: 5px 0;">{$videoplayer->nextprev}</div>

{if $print_uservideolist}
	    <div class="cModule" style="overflow: hidden;">
	      <h3 class="frontTitle">{$smarty.const._HWDVIDS_TITLE_MOREBYUSR} {$videoplayer->uploader}</h3>
	      <div class="list">
		<div class="box">
		  {foreach name=outer item=data from=$userlist}
		  {if $smarty.foreach.outer.index % 2-1 == 0}
		    <div style="width: 48%; float:right;">
		  {else}
		    <div style="width: 48%; float:left;">
		  {/if}
		  {include file="video_list_simple.tpl"}
		  </div>
		  {if $smarty.foreach.outer.last}
		     <div style="clear:both;"></div>
		  {elseif $smarty.foreach.outer.index % 2-1 == 0}
		     <div style="clear:both;"></div></div><div class="box">
		  {/if}
		  {/foreach}
		</div>
	      </div>   
	    </div>
{/if}

{if $print_relatedlist}
	    <div class="cModule" style="overflow: hidden;">
	      <h3 class="frontTitle">{$smarty.const._HWDVIDS_RELATED}</h3>
	      <div class="list">
		<div class="box">
		  {foreach name=outer item=data from=$listrelated}
		  {if $smarty.foreach.outer.index % 2-1 == 0}
		    <div style="width: 48%; float:right;">
		  {else}
		    <div style="width: 48%; float:left;">
		  {/if}
		  {include file="video_list_simple.tpl"}
		  </div>
		  {if $smarty.foreach.outer.last}
		     <div style="clear:both;"></div>
		  {elseif $smarty.foreach.outer.index % 2-1 == 0}
		     <div style="clear:both;"></div></div><div class="box">
		  {/if}
		  {/foreach}
		</div>
	      </div> 
	    </div>
{/if}

{if $print_categoryvideolist}
	    <div class="cModule" style="overflow: hidden;">
	      <h3 class="frontTitle">{$smarty.const._HWDVIDS_MORECATVIDS}</h3>
	      <div class="list">
		<div class="box">
		  {foreach name=outer item=data from=$categoryvideolist}
		  {if $smarty.foreach.outer.index % 2-1 == 0}
		    <div style="width: 48%; float:right;">
		  {else}
		    <div style="width: 48%; float:left;">
		  {/if}
		  {include file="video_list_simple.tpl"}
		  </div>
		  {if $smarty.foreach.outer.last}
		     <div style="clear:both;"></div>
		  {elseif $smarty.foreach.outer.index % 2-1 == 0}
		     <div style="clear:both;"></div></div><div class="box">
		  {/if}
		  {/foreach}
		</div>
	      </div> 
	    </div>
{/if}
    </div>

    <div class="leftColContainer">
	
	<div id="recent-activities" class="app-box">
	<div class="app-box-header">
	<div class="app-box-header">
		<div style="float:right;padding: 5px 0;">{$videoplayer->editvideo} {$videoplayer->deletevideo}</div>
		<h2 class="expand app-box-title">Video Information</h2>
	</div>
	</div>
    
    		{include file='video_details.tpl'}

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

    
    {if $print_comments}
	<div id="recent-activities" class="app-box">
	<div class="app-box-header">
	<div class="app-box-header">
		<h2 class="expand app-box-title">Video Comments</h2>
	</div>
	</div>
		{$videoplayer->comments}
	</div>
    {/if}
    
    </div>

    <div style="clear:both;"></div>




{include file='footer.tpl'}
