<!-- 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>{$videoarray[0].title}</b></div>
            
			<span id="player"> We recently encoded our videos in a newer Flash format. You need to 
				<br />
				get the latest <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> to see this video.
			</span>
	
			<script type="text/javascript">
				var so = new SWFObject('{$baseurl}/videowatchproplayer.swf','player','540','445','8');
				so.addVariable('file','{$videourl}/{$videoarray[0].VIDEOID}.flv');
				so.addVariable('height','445');
				so.addVariable('width','540');
				so.addVariable('location','{$baseurl}/videowatchproplayer.swf');
				so.addVariable('vid','{$videoarray[0].VIDEOID}');
				so.addVariable("baseurl","{$baseurl}/");
				so.addParam("wmode", "transparent");
				so.addParam("vmode", "transparent");	
				so.write('player');
			</script>
			
            {if $videoarray[0].SID ne "0"}
            <div align="center" style="width:540px; background-color:#FFFFCC; padding-bottom:5px; padding-top:5px"><b>{$lang258}: <a href="{$baseurl}/videoseries/{$videoarray[0].SID}/{insert name=get_seotitle_from_sid assign=title sid=$videoarray[0].SID}">{insert name=get_name_from_seriesid value=var SID=$videoarray[0].SID}</a></b></div>
            {/if}
			<div id="actionPanel" class="containerD home_mainC">			
			<div id="popUpPanels"></div>	
			
            <div class="rateThis" id="ratingBlock">
            {if $videoarray[0].allowratings ne "0"}
				<p><span id="ratingTitle">{$lang337}</span></p>
				<div class="rateStars">

					<div id="video_stars_rating" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')">
						<nobr>
						<nobr>
                        {insert name=get_rating_stars rating=$videoarray[0].rating}
						</nobr>
						</nobr>						
					</div>
                    <div id="video_stars_rating2" style="display:none;" onmouseout="showhidelists('video_stars_rating','video_stars_rating2')">
                    
                    	<span id="onestarempty" class="no_star" onmouseover="showhidelists('onestarfull','onestarempty')"></span>
                        <span id="onestarfull" style="display:none;" class="full_star" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')" onmouseout="showhidelists('onestarempty','onestarfull')" {if $smarty.session.USERID ne ""}onClick="fxVideoRater('2','{$videoarray[0].VIDEOID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        
                        <span id="twostarempty" class="no_star" onmouseover="showhidelists('onestarfull','onestarempty'); showhidelists('twostarfull','twostarempty')"></span>
                        <span id="twostarfull" style="display:none;" class="full_star" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')" onmouseout="showhidelists('twostarempty','twostarfull')" {if $smarty.session.USERID ne ""}onClick="fxVideoRater('4','{$videoarray[0].VIDEOID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        
                        <span id="threestarempty" class="no_star" onmouseover="showhidelists('onestarfull','onestarempty'); showhidelists('twostarfull','twostarempty'); showhidelists('threestarfull','threestarempty')"></span>
                        <span id="threestarfull" style="display:none;" class="full_star" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')" onmouseout="showhidelists('threestarempty','threestarfull')" {if $smarty.session.USERID ne ""}onClick="fxVideoRater('6','{$videoarray[0].VIDEOID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        
                        <span id="fourstarempty" class="no_star" onmouseover="showhidelists('onestarfull','onestarempty'); showhidelists('twostarfull','twostarempty'); showhidelists('threestarfull','threestarempty'); showhidelists('fourstarfull','fourstarempty')"></span>
                        <span id="fourstarfull" style="display:none;" class="full_star" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')" onmouseout="showhidelists('fourstarempty','fourstarfull')" {if $smarty.session.USERID ne ""}onClick="fxVideoRater('8','{$videoarray[0].VIDEOID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        
                        <span id="fivestarempty" class="no_star" onmouseover="showhidelists('onestarfull','onestarempty'); showhidelists('twostarfull','twostarempty'); showhidelists('threestarfull','threestarempty'); showhidelists('fourstarfull','fourstarempty'); showhidelists('fivestarfull','fivestarempty')"></span>
                        <span id="fivestarfull" style="display:none;" class="full_star" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')" onmouseout="showhidelists('fivestarempty','fivestarfull')" {if $smarty.session.USERID ne ""}onClick="fxVideoRater('10','{$videoarray[0].VIDEOID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        

                    </div>
					<div class="clear"></div>
				</div>
				<span><p>{$videoarray[0].ratingcount} {if $videoarray[0].ratingcount eq "1"}{$lang90}{else}{$lang91}{/if} </p></span>
            {else}
            <p><span id="ratingTitle">{$lang338}</span></p>
            <span><p>&nbsp;</p></span>
            {/if}
			</div>
		
			
			<ul id="secondaryActions">
				<li id="secondaryAction_1"> 
                    {if $smarty.session.USERID ne ""}
            		{insert name=get_fav_video_status assign=isfav value=var VIDEOID=$videoarray[0].VIDEOID}
            		{if $isfav eq "false"}
            		<div id="addtofav">
    				<a href="#addtofav" id="addtofavlink" onClick="fxFavVideo('addtofav',{$smarty.session.USERID},{$videoarray[0].VIDEOID})">{$lang339}</a>								
            		</div>
            		<div id="addtofavSuccess" style="display:none;">{$lang341}</div>
            		<div id="addtofavFailure" style="display:none;">{$lang342}</div>
            		{else}
            		<div id="addtofav"><a href="#addtofav">{$lang343}</a></div>
            		{/if}
					{else}
            		<div id="addtofav"><a href="{$baseurl}/login.php" id="subscribepublisher">{$lang339}</a></div>
            		{/if}
            	</li>
				<li id="secondaryAction_2">
                    {if $smarty.session.USERID ne ""}
                    	{if $smarty.session.VERIFIED eq "0"}
                    	<a href="#sharevideo" name="Share_Video" onclick="playvideoshow('showShareVideoNV');">{$lang340}</a>
                        {else}
                        <a href="#sharevideo" name="Share_Video" onclick="playvideoshow('showShareVideo');">{$lang340}</a>
                        {/if}
                    {else}
                    <a href="{$baseurl}/login.php" name="sharevideo">{$lang340}</a>
                    {/if}
            	</li>
				<li id="secondaryAction_3">
            		{if $smarty.session.USERID ne ""}
                    	{if $smarty.session.VERIFIED eq "0"}
                    	<a href="#reportvideo" name="Report_Video" onclick="playvideoshow('showReportVideoNV');">{$lang344}</a>
                        {else}
                        <a href="#reportvideo" name="Report_Video" onclick="playvideoshow('showReportVideo');">{$lang344}</a>
                        {/if}
                    {else}
                    <a href="{$baseurl}/login.php" name="reportvideo">{$lang344}</a>
                    {/if}
            	</li>
				<li id="secondaryAction_4">					 						
                    {if $smarty.session.USERID ne ""}
                    	{if $smarty.session.VERIFIED eq "0"}
                    	<a href="#addtochannel" name="Add_To_Channel" onclick="playvideoshow('showAddToChannelNV');">{$lang345}</a>
                        {else}
                        <a href="#addtochannel" name="Add_To_Channel" onclick="playvideoshow('showAddToChannel');">{$lang345}</a>
                        {/if}
                    {else}
                    <a href="{$baseurl}/login.php" name="addtochannel">{$lang345}</a>
                    {/if}
				</li>
				<li id="secondaryAction_5">
                	{if $allow_downloads eq "1"}
                    
                    	{if $videoarray[0].allowdownloads eq "0"}
                    	<a href="#downloadvideo" name="Download_Video" onclick="showMe('showDownloadBox');">{$lang346}</a>
                        {else}
                        	{if $who_can_download eq "1"}
                            	{if $smarty.session.USERID eq ""}
                    				<a href="{$baseurl}/login.php">{$lang219}</a>
                                {else}
                                	<a href="{$baseurl}/download/video/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}">{$lang219}</a>
                                {/if}
                    		{else}
                        		<a href="{$baseurl}/download/video/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}">{$lang219}</a>
                        	{/if}
                    {/if}
                    
                    {else}
                    	<a href="#downloadvideo" name="Download_Video" onclick="showMe('showDownloadBox');">{$lang346}</a>
                    {/if}   
                    
                    <div id="showDownloadBox" class="containerD panel" style="display:none;">
						<a href="#downloadvideo" onclick="hideMe('showDownloadBox');"><div class="close">X</div></a>		
						<h1>{$lang349}</h1>		
						<div style="height: 80px;width:500px;overflow:auto;overflow-x:hidden;">
                        	<center>
 							<table width="90%" align="center" cellpadding="10" cellspacing="0" border="0">
                            <tr>
                            <td align="center">
                        	{$lang347}
                            </td>
                            </tr>
                            </table>
                        	</center>
                        </div>
                    </div>		
				</li>
				<li id="secondaryAction_6">
            		<a href="#screencaps" name="Video_Captures" onclick="playvideoshow('showAllThumbs');">{$lang348}</a>
            	</li>
			</ul>
            
            <div class="clear" ></div>
		</div>


		<div id="showAllThumbs" class="containerD home_mainC" style="display:none;">
			<h2>{$lang350}</h2>
			<div>
            	<center>
 				<table width="90%" align="center" cellpadding="10" cellspacing="0" border="0">
                <tr>
                <td>
                <img src="{$vthumburl}/{$videoarray[0].VIDEOID}-1.jpg" class="vThumb" alt="{$videoarray[0].title} {$lang299}">
                </td>
                <td>
                <img src="{$vthumburl}/{$videoarray[0].VIDEOID}-2.jpg" class="vThumb" alt="{$videoarray[0].title} {$lang299}">
                </td>
                <td>
                <img src="{$vthumburl}/{$videoarray[0].VIDEOID}-3.jpg" class="vThumb" alt="{$videoarray[0].title} {$lang299}">
                </td>
                </tr>
                </table>
                </center>
            </div>
            <div align="center"><a href="#closescreencaps" name="Video_Captures_Close" onclick="hideMe('showAllThumbs');">[{$lang351}]</a></div>
        </div>
        
        {if $smarty.session.VERIFIED eq "0" || $smarty.session.VERIFIED eq ""}
        
        <div id="showReportVideoNV" class="containerD home_mainC" style="display:none;">
			<h2>{$lang352}</h2>
			<div>
            	<center>
        		<div align="center" id="showReportVideoNV2" style="width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang364}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closereportvideo" name="Report_Video_Close" onclick="hideMe('showReportVideoNV');">[{$lang363}]</a></div>
        </div>
        
        {else}
        
        <div id="showReportVideo" class="containerD home_mainC" style="display:none;">
			<h2>{$lang352}</h2>
			<div>
            	<center>
 				<div id="reportvideodiv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
 					<form name="reportvideoform" method="POST" action="#">
                    <b>{$lang353}:</b><br />
					<select name="vreportreason" id="vreportreason"> 
					<option selected value="{$lang354}">{$lang354}
					<option value="{$lang355}">{$lang355}
					<option value="{$lang356}">{$lang356}
					<option value="{$lang357}">{$lang357}
					</select>
            		<br /><br />
                    <b>{$lang358}:</b><br />
            		<textarea name="vreportremarks" id="vreportremarks" rows="3" cols="60"></textarea><br />
            		<input class="submitButton" type="button" name="reporttpost" value="{$lang359}" onclick="fxReportVideo('reportvideodiv','vreportremarks','vreportreason',{$smarty.session.USERID},{$videoarray[0].VIDEOID})">
					</form>
            	</div>
                <div align="center" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;" id="vreportreasonError"><div class="showError"><b>{$lang360}</b></div></div>
        		<div align="center" id="vreportsuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang361}</b></div></DIV>
        		<div align="center" id="vreportfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang362}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closereportvideo" name="Report_Video_Close" onclick="hideMe('showReportVideo');">[{$lang363}]</a></div>
        </div>
        
        {/if}
        
        <!-- Show Add To Channel Begin -->
        
        {if $smarty.session.VERIFIED eq "0" || $smarty.session.VERIFIED eq ""}
        
        <div id="showAddToChannelNV" class="containerD home_mainC" style="display:none;">
			<h2>{$lang365}</h2>
			<div>
            	<center>
        		<div align="center" id="showAddToChannelNV2" style="width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang364}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closeaddtochannel" name="Add_To_Channel_Close" onclick="hideMe('showAddToChannelNV');">[{$lang373}]</a></div>
        </div>
        
        {else}
        
        <div id="showAddToChannel" class="containerD home_mainC" style="display:none;">
			<h2>{$lang365}</h2>
			<div>
            	<center>
                {if $USERID eq $smarty.session.USERID}
 				<div id="addtochanneldiv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
 					<form name="addtochannelform" method="POST" action="#">
                    <b>{$lang366}:</b><br />
					<select name="vaddtochanvideo" id="vaddtochanvideo"> 
                    {insert name=get_active_channels assign=listactivechannels userid=$USERID}
    				{section name=ac loop=$listactivechannels}
                    <option value="{$listactivechannels[ac].CID}">{insert name=get_channelname_from_cid assign=channameloop value=var CID=$listactivechannels[ac].CID}{$channameloop}
                    {/section}
					</select>
            		<br /><br />
            		<input class="submitButton" type="button" name="addtochanpost" value="{$lang367}" onclick="fxAddVideoToChannel('addtochanneldiv','vaddtochanvideo',{$smarty.session.USERID},{$videoarray[0].VIDEOID})">
					</form>
            	</div>
                {else}
                	<div align="center" style="width:90%; padding-top:10px; padding-bottom:10px;" id="notyourvideo"><div class="showError"><b>{$lang368}</b></div></div>
                {/if}
                <div align="center" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;" id="vaddtochanvideoError"><div class="showError"><b>{$lang369}</b></div></div>
        		<div align="center" id="vaddtochansuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang370}</b></div></DIV>
        		<div align="center" id="vaddtochanfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang371}</b></div></DIV>
                <div align="center" id="vaddtochanexists" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang372}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closeaddtochannel" name="Add_To_Channel_Close" onclick="hideMe('showAddToChannel');">[{$lang373}]</a></div>
        </div>
        
        {/if}
        
        <!-- Show Add To Channel End -->
        
        {if $smarty.session.VERIFIED eq "0" || $smarty.session.VERIFIED eq ""}
        
        <div id="showShareVideoNV" class="containerD home_mainC" style="display:none;">
			<h2>{$lang374}</h2>
			<div>
            	<center>
        		<div align="center" id="showShareVideoNV2" style="width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang364}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closesharevideo" name="Share_Video_Close" onclick="hideMe('showShareVideoNV');">[{$lang382}]</a></div>
        </div>
        
        {else}
        
        <div id="showShareVideo" class="containerD home_mainC" style="display:none;">
			<h2>{$lang374}</h2>
			<div>
            	<center>
 				<div id="sharevideodiv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
 					<form name="sharevideoform" method="POST" action="#">
                    <b>{$lang375}:</b><br />({$lang376})<br />
					<textarea name="vshareto" id="vshareto" rows="1" cols="60"></textarea>
            		<br /><br />
                    <b>{$lang377}:</b><br />
            		<textarea name="vsharemessage" id="vsharemessage" rows="3" cols="60"></textarea><br />
            		<input class="submitButton" type="button" name="sharepost" value="{$lang340}" onclick="fxShareVideo('sharevideodiv','vsharemessage','vshareto',{$smarty.session.USERID},{$videoarray[0].VIDEOID})">
					</form>
            	</div>
                <div align="center" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;" id="vshareemptyError"><div class="showError"><b>{$lang378}</b></div></div>
                <div align="center" id="vsharehalffailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang379}</b></div></DIV>
        		<div align="center" id="vsharesuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang380}</b></div></DIV>
        		<div align="center" id="vsharefailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang381}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closesharevideo" name="Share_Video_Close" onclick="hideMe('showShareVideo');">[{$lang382}]</a></div>
        </div>
        
        {/if}
        
		<div id="ratingSuccess" style="display:none;" align="center" style="width:540px; padding-bottom:10px; padding-top:0px"><b>{$lang383}</b></div>
        <div id="ratingLogin" style="display:none;" align="center" style="width:540px; padding-bottom:10px; padding-top:0px"><b>{$lang384}</b></div>
        <div id="ratingExists" style="display:none;" align="center" style="width:540px; padding-bottom:10px; padding-top:0px"><b>{$lang385}</b></div>



	<!-- Comments container -->
    {if $videoarray[0].allowcomments ne "0"}
	<div class="home_mainH">
		<h4>{if $videoarray[0].commentcount eq "0"}{$lang386}{elseif $videoarray[0].commentcount <= $max_comments}{$lang97} {$videoarray[0].commentcount} {$lang98}.{else}{$lang282} {$max_comments} {$lang61} {$videoarray[0].commentcount} {$lang283}.{/if}</h4>
	</div>
	<div id="commentsContainer" class="containerD home_mainC">
		<div class="clear"></div>
        
        {if $smarty.session.USERID ne ""}
			<div id="addcommentdiv">
 			<form name="addcommentform" method="POST" action="#">
			<textarea name="addcomment" id="addcomment" rows="5" cols="90"></textarea><br />
            
            <input class="submitButton" type="button" name="commentpost" value="{$lang99}" onclick="fxVideoComment('addcommentdiv','addcomment',{$smarty.session.USERID},{$videoarray[0].VIDEOID})">
			</form>
            </div>
            
        {else}
	   		<a href="{$baseurl}/login.php">{$lang100}</a> {$lang101} <a href="{$baseurl}/login.php">{$lang102}</a> {$lang103}<br/><br/>
        {/if}
        <div align="center" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;" id="addcommentError"><div class="showError"><b>{$lang104}</b></div></div>
        <div align="center" id="vcommentssuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang105}</b></div></DIV>
        <div align="center" id="vcommentsfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang106}</b></div></DIV>
        <br />
	   <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="{$lang166}" /></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>
        {if $videoarray[0].commentcount >= $max_comments}<center><a href="{$baseurl}/comments/videos/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}">{$lang256} {$videoarray[0].commentcount} {$lang98}</a></center>{/if}
	</div>
    {else}
    <div class="home_mainH">
		<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 value=a 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/1/{$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>{insert name=get_video_favorited_count value=var VIDEOID=$videoarray[0].VIDEOID}</var>
			</span>
		</div>
		
		<div id="embedContainer">
			<p>{$lang393}</p>			
				<input onClick="this.select();" readonly="readonly" value="{$baseurl}/videos/{$videoarray[0].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$videoarray[0].VIDEOID}" id="permaSelect" />
			<p>{$lang394}</p>			
				<input onClick="this.select();" type="text" readonly="readonly" value="{if $videoarray[0].allowembeds eq '0'}{$lang395}{else}&lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;450&quot; height=&quot;375&quot; wmode=&quot;transparent&quot; src=&quot;{$baseurl}/videowatchproplayer.swf?file={$baseurl}/vdata/{$videoarray[0].VIDEOID}.flv&vid={$videoarray[0].VIDEOID}&baseurl={$baseurl}/&e=y&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;{$baseurl}/videowatchproplayer.swf?file={$baseurl}/vdata/{$videoarray[0].VIDEOID}.flv&vid={$videoarray[0].VIDEOID}&baseurl={$baseurl}/&e=y&quot;&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;/embed&gt;{/if}" id="embedSelect"/>
				<p style="height: 4px; width: 1px; _padding: 0;_margin: 0; _line-height: 0;">&nbsp;</p>
		</div>	
        
        
		<a style="text-decoration:none; font-size:11px; font-family:Arial; color: #2A4956;" href="#socialbookmarks">{$lang396}</a><br>
		<div style="border-top-style:solid; padding-top:3px; border-top-width: 1px; border-top-color: #2A4956; float: left;">
		<script type="text/javascript">
  		addthis_url    = location.href;   
  		addthis_title  = document.title;  
  		addthis_pub    = 'videowatchpro';     
		</script>
		<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
		</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>{$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>{$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 -->