<!-- BEGIN MAIN CONTENT -->
<div id="videowatch_body">
	<div id="videowatch_top">
		<div id="videowatch">

		<link rel="stylesheet" type="text/css" href="{$cssurl}/playvideo.css" />
    
<div class="colLeft">
	<div id="companionImg" style="display:none;"></div><div class="clear"></div>
    		
            <div align="center" style="width:540px; background-color:#FFFFCC; padding-bottom:5px; padding-top:5px; font-size:16px"><b>{$lang479} - {$videoarray[0].title}</b></div>

	<!-- Comments container -->
    {if $videoarray[0].allowcomments ne "0"}
	<div id="commentsContainer" class="containerD home_mainC" style="display:">
		<div class="clear"></div>
	   <!-- Comments Begin -->
		<div id="videoCommentsPanel">
			<a name="comments"></a>
            {section name=vc loop=$showcomments}
			<div class="containerD clear" id="commentloop" style="border:1px solid #DFDFDF; padding-top:15px; padding-bottom:15px; padding-left:5px; padding-right:5px;">
				<a href="{$baseurl}/members/profile/{$showcomments[vc].USERID}/{insert name=get_username_from_userid value=var USERID=$showcomments[vc].USERID}" name="{insert name=get_username_from_userid value=var USERID=$showcomments[vc].USERID}">
                <img src="{insert name=get_member_avatar value=var USERID=$showcomments[vc].USERID}" alt="photo" /></a>
                <br />
                
                <a href="{$baseurl}/members/profile/{$showcomments[vc].USERID}/{insert name=get_username_from_userid value=var USERID=$showcomments[vc].USERID}" name="{insert name=get_username_from_userid value=var USERID=$showcomments[vc].USERID}">{insert name=get_username_from_userid value=var USERID=$showcomments[vc].USERID}</a>&nbsp;<span class="{insert name=get_member_icon value=var USERID=$showcomments[vc].USERID}">&nbsp;</span>
				<p>{insert name=get_stripped_phrase value=a assign=comdetails details=$showcomments[vc].details}{$comdetails}</p>
                <div align="right"><span class="metaLabel">{$lang64}:</span> <var>{insert name=get_video_comment_added_time assign=ctime cid=$showcomments[vc].CID}</var></div>
				<!-- <a href="" name="" class="commentResponses">Report this Comment</a> -->
			</div>
            <div style="padding-bottom:10px;"></div>
            {/section}
		</div>
		<div class="clear"></div>
        <div align="center">
            	<a href="{$baseurl}/videos/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}">{$lang167}</a>
        </div>
	</div>
    {else}
    <div class="home_mainH" style="display:">
		<h4>{$lang480}</h4>
	</div>
    {/if}
    <!-- Comments End -->
	<div class="clear"></div>
</div> 
<!-- end left column -->


<div class="colRight">
	<!-- Advertisement Begin -->
	<div id="playvideotopad">
    	<center>{insert name=get_advertisement value=var AID="5"}</center>
		<div class="clear"></div>
	</div>
    <!-- Advertisement End -->
	
	<!-- Video Details Begin -->
	<div class="containerD home_sideC" id="videoDetailsContainer">
		 
			<div class="containerD container_bg floatL" id="infoMeta">
			
    		<span class="metaLabel">{$lang86}: <a href="{$baseurl}/members/profile/{$videoarray[0].USERID}/{insert name=get_username_from_userid value=var USERID=$videoarray[0].USERID}"><b>{insert name=get_username_from_userid value=var USERID=$videoarray[0].USERID}</b></a>&nbsp;<span class="{insert name=get_member_icon value=var USERID=$videoarray[0].USERID}">&nbsp;</span></span><br />
            <span class="metaLabel">{$lang387}: </span>		
            <var><a href="{$baseurl}/members/videos/{$videoarray[0].USERID}/{insert name=get_username_from_userid value=var USERID=$videoarray[0].USERID}">{insert name=get_member_videos_count value=var USERID=$videoarray[0].USERID}</a></var> &nbsp; &nbsp;
			<span class="metaLabel">{$lang388}: </span>
            <var><a href="{$baseurl}/members/subscribers/{$videoarray[0].USERID}/{insert name=get_username_from_userid value=var USERID=$videoarray[0].USERID}">{insert name=get_member_subscribers_count value=var USERID=$videoarray[0].USERID}</a></var> &nbsp; &nbsp;
            <span class="metaLabel">{$lang389}: </span>
            <var><a href="{$baseurl}/members/channels/{$videoarray[0].USERID}/{insert name=get_username_from_userid value=var USERID=$videoarray[0].USERID}">{insert name=get_member_channels_count value=var USERID=$videoarray[0].USERID}</a></var>
            {if $smarty.session.USERID ne ""}
            
            {if $smarty.session.USERID eq $videoarray[0].USERID}
            <div id="subscribe">
    		{$lang390}</a>								
            </div>
            {else}
            {insert name=get_subscribed_status assign=issubscribed value=var USERID=$videoarray[0].USERID}
            {if $issubscribed eq "false"}
            <div id="subscribe">
    		<a href="#" id="subscribepublisher" onClick="fxSubscribe('subscribe',{$smarty.session.USERID},{$videoarray[0].USERID})">{$lang290}</a>								
            </div>
            <div id="subscribeSuccess" style="display:none;">
            	{$lang291}.
            </div>
            <div id="subscribeFailure" style="display:none;">
            	{$lang292}.
            </div>
            {else}
            <div id="subscribe">
    		{$lang293}</a>								
            </div>
            {/if}
            {/if}
            
			{else}
            <div id="subscribe">
    		<a href="{$baseurl}/login.php" id="subscribepublisher">{$lang290}</a>								
            </div>
            {/if}
            <br />                                
            
            <span class="metaLabel">{$lang113}: </span>
            <var>{$videoarray[0].description}</var><br />
            <span class="metaLabel">{$lang218}: </span>
            <var>
            {insert name=get_video_categories_list assign=categories VIDEOID=$VIDEOID}
            {section name=cc loop=$categories}
            <A href="{$baseurl}/browse/categories/videos/z/{$categories[cc].CATID}/1/{$categories[cc].name}">{$categories[cc].name}</A>
            {/section}
            </var><br />
			<span class="metaLabel">{$lang325}: </span> <var>
			<span id="tagsBox" class="tagsBox">
			<span id="tagsBoxInner">
            	{insert name=get_tags_video assign=looptags videoid=$VIDEOID}
                {section name=tt loop=$looptags}
                <span class="tag" id="1">
					<a href="{$baseurl}/search/videos/a/0/{$looptags[tt]}"  name="{$looptags[tt]}" >{$looptags[tt]}</a>
				</span>
                {/section} 
			</span>
			</span>
            </var><br />
            <span class="metaLabel">{$lang64}: </span>		
            <var> {insert name=get_video_added_date assign=DID videoid=$videoarray[0].VIDEOID}</var>
			<span class="metaLabel">{$lang181}: </span> 
            <var>{insert name=get_runtime value=var runtime=$videoarray[0].runtime}</var><br/>
			<span class="metaLabel">{$lang60}: </span> 
            <var>{$videoarray[0].viewcount}</var> &nbsp;|&nbsp; 
            <span class="metaLabel">{$lang391}: </span> 
            <var>{$videoarray[0].downloadcount}</var> 
			<span name="favCount" id="favCount"> &nbsp;|&nbsp; 
            <span class="metaLabel">{$lang392}: </span> 
            <var><a href="">{insert name=get_video_favorited_count value=var VIDEOID=$videoarray[0].VIDEOID}</a></var>
			</span>
		</div>
		<div class="clear"></div>
	</div>
    <!-- Video Details End -->


  	<div style="position: relative;" id="rightBottomDiv">    
    	<ul class="tabHeader" id="relatedTabs">
	    	<li class="tabFirst" id="Tab">
	        	<h1><A HREF="javascript:void(0)" ID='relatedvideosbox2' onclick="showhidelists('relatedVideosBox','userVideosBox')">{$lang397}</A></h1>
	      	</li>
            <li class="tabFirst" id="Tab">
	        	<h1><A HREF="javascript:void(0)" onClick="showhidelists('userVideosBox','relatedVideosBox')">{$lang398}</A></h1>
	      	</li>
    	</ul>
        <div class="containerD clear" id="relatedVideosBox" style="display:'';"> 
        	<p id="relatedBoxTitle"><a href="#" name="">{$lang399}</a></p>
      		<div class="containerD container_bg floatL" id="relatedVideos"> 
        		<ul class="vList_h floatL">
        
        		<!-- Loop Related Videos Begin -->
                {section name=rv loop=$relatedvideos}
          		<li>
                	<a href="{$baseurl}/videos/{$relatedvideos[rv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$relatedvideos[rv].VIDEOID}"><img src="{$vthumburl}/{$relatedvideos[rv].VIDEOID}-1.jpg" class="vThumb" alt="{$relatedvideos[rv].title}" title="{$relatedvideos[rv].title}"/></a> 
            		<a href="{$baseurl}/videos/{$relatedvideos[rv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$relatedvideos[rv].VIDEOID}" class="vTitle" name="{$relatedvideos[rv].title}"> {$relatedvideos[rv].title}</a> 
            			<ul class="vMeta">
							<li><var>{insert name=get_runtime value=var runtime=$relatedvideos[rv].runtime}</var></li>
              				<li><span class="metaLabel">{$lang64}:</span> <var>{insert name=get_video_added_date assign=DID videoid=$relatedvideos[rv].VIDEOID}</var></li>
              				<li><span class="metaLabel">{$lang60}:</span> <var>{$relatedvideos[rv].viewcount}</var></li>
            			</ul>
          		</li>
                {/section}
                <!-- Loop Related Videos End -->
            
          		<div class="clear"></div>
        		</ul>
        		<div class="clear"></div>
      		</div>
      		<div class="clear"></div>
    	</div>
        
        <div class="containerD clear" id="userVideosBox" style="display:none;"> 
       		<p id="relatedBoxTitle"><a href="#" name="">{$lang400}</a></p>
      		<div class="containerD container_bg floatL" id="relatedVideos"> 
        		<ul class="vList_h floatL">
        
        		<!-- Loop Member Videos Begin -->
          		{section name=mv loop=$membervideos}
          		<li>
                	<a href="{$baseurl}/videos/{$membervideos[mv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$membervideos[mv].VIDEOID}"><img src="{$vthumburl}/{$membervideos[mv].VIDEOID}-1.jpg" class="vThumb" alt="{$membervideos[mv].title}" title="{$membervideos[mv].title}"/></a> 
            		<a href="{$baseurl}/videos/{$membervideos[mv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$membervideos[mv].VIDEOID}" class="vTitle" name="{$membervideos[mv].title}"> {$membervideos[mv].title}</a> 
            			<ul class="vMeta">
							<li><var>{insert name=get_runtime value=var runtime=$membervideos[mv].runtime}</var></li>
              				<li><span class="metaLabel">{$lang64}:</span> <var>{insert name=get_video_added_date assign=DID videoid=$membervideos[mv].VIDEOID}</var></li>
              				<li><span class="metaLabel">{$lang60}:</span> <var>{$membervideos[mv].viewcount}</var></li>
            			</ul>
          		</li>
                {/section}
                <!-- Loop Member Videos End -->
            
          		<div class="clear"></div>
        		</ul>
        		<div class="clear"></div>
      		</div>
      		<div class="clear"></div>
    	</div>


    	<div id="newvideoslist"> 
      	<h1>{$lang401}</h1>
			<ul class="vList_vFull clearfix">
            
            	<!-- Loop Newest Videos Begin -->
                {section name=nv loop=$newestvideos}
				<li>
                	<a href="{$baseurl}/videos/{$newestvideos[nv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$newestvideos[nv].VIDEOID}" name="{$newestvideos[nv].title}"><img src="{$vthumburl}/{$newestvideos[nv].VIDEOID}-1.jpg" class="vThumb" alt="{$newestvideos[nv].title}" title="{$newestvideos[nv].title}"/></a>           
          			<a href="{$baseurl}/videos/{$newestvideos[nv].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$newestvideos[nv].VIDEOID}" class="vTitle"> {$newestvideos[nv].title}</a> 
           		</li>
                {/section}
                <!-- Loop Newest Videos End -->
                
         	</ul>
      		<div class="clear"></div>
    	</div>
    	<div class="clear"></div>
  	</div>

</div>
<!-- end right column -->

<div class="clear"></div>

<!-- Advertisement Begin -->
<div align="center">
<div style="padding-top:10px">
{insert name=get_advertisement value=var AID="3"}
</div>
</div>
<!-- Advertisement End -->

	  


	</div>
</div>		
{include file="bottom.tpl"}		
</div>
<!-- END MAIN CONTENT -->