

{include file='header.tpl'}

   <div class="rightColContainer">
        {if $print_search}

		<!-- Search -->
		<div class="yellowbox-bl"><div class="yellowbox-br"><div class="yellowbox-tl"><div class="yellowbox-tr"><div class="center">
			<div class="cModule searchbox">
				<form name="search" id="cFormSearch" method="post" action="{$form_search}">

					<fieldset class="fieldset">

						<div class="input_wrap clrfix">			            	
							<div class="input-field-l">{$searchinput}</div>
							<div class="readon-wrap1"><div class="readon1-l"></div><a href="javascript:void(0);" class="search_button readon-main"><span class="readon1-m"><span class="readon1-r"><input type="submit" name="submit" class="button" value="Search" /></span></span></a></div><div class="clr"></div>
						</div>

					</fieldset>

				</form>
			</div>
		</div></div></div></div></div>
		<div class="clr"></div>
		<!-- Search -->

        {/if}		

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

	<div>{$videoplayer->socialbmlinks}</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 class="cModule" style="overflow: hidden;">
	      <h3 class="frontTitle">Video Options</h3>
		<div class="standard">
		  <div class="padding">
            		<div>{$videoplayer->switchquality}</div>
			<div>{$videoplayer->downloadoriginal}</div>
			<div>{$videoplayer->vieworiginal}</div>
			<div>{$videoplayer->downloadflv}</div>
			<div id="addremfav">{$videoplayer->favourties}</div>
			<div>{$videoplayer->reportmedia}</div>
			<div style="clear:both;"></div>
			<div id="ajaxresponse"></div>
			<div style="clear:both;"></div>
		  </div>
		</div>

		<div class="standard">
		  <div class="padding">
		    {if $print_addtogroup}{$videoplayer->addtogroup}<div id="add2groupresponse"></div>{/if}
		  </div>
		</div>
	    </div>
    </div>

    <div class="leftColContainer">

	<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>
		<center>{$videoplayer->player}</center>
	</div>
	
	<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>

		<div style="float:right;">
		    <div class="padding">{$videoplayer->avatar}</div>
		</div>
		<div style="float:right;">
		    <div class="padding">{$videoplayer->ratingsystem}</div>
		</div>
		
		<div class="padding">
		  {if $print_videourl}
		  <div>
		    <h4 style="padding:3px;margin:0;">{$smarty.const._HWDVIDS_TITLE_PERMALINK}</h4>
		    <form name="vlink"><input type="text" value="{$videoplayer->videourl}" width="90%" onclick="copyit('vlink.vlink')" name="vlink" /></form>
		  </div>
		  {/if}
		  {if $print_embedcode}
		  <div>
		    <h4 style="padding:3px;margin:0;">{$smarty.const._HWDVIDS_INFO_VIDEMBEDCODE}</h4>
		    <form name="elink"><input type="text" value="{$videoplayer->embedcode}" width="90%" onclick="copyit('elink.elink')" name="elink" /></form>
		  </div>
		  {/if}
		</div>
      		<div style="clear:left;"></div>
      				
		{if $print_description}<h4 style="padding:3px 0;margin:0;">{$smarty.const._HWDVIDS_DESC}</h4>{$videoplayer->description}{/if}
		{if $print_tags}<h4 style="padding:3px 0;margin:0;">{$smarty.const._HWDVIDS_TAGS}</h4>{$videoplayer->tags}{/if}
		<div>{$videoplayer->category}</div>

		<!--{$videoplayer->views}-->
		<!--{$videoplayer->upload_date}-->

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

    <div style="clear:both;"></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}

{include file='footer.tpl'}
