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

		<link rel="stylesheet" type="text/css" href="{$cssurl}/playvideo.css" />
        <link rel="stylesheet" type="text/css" href="{$cssurl}/channel.css" />
        {if $channelarray[0].bgimage ne ""}
        <link rel="stylesheet" type="text/css" href="{$baseurl}/memberchannelcss.php?bgimage={$channelarray[0].bgimage}" />
        {/if}
    


<div class="containerD home_profile" id="profiletop">
    	<div style="float: left; text-align: left;">
        	<h1>{$channelarray[0].name}</h1>
    	</div>
        <div style="float: right; text-align: right;">
        	<!-- Join This Channel Begin -->
        	{if $smarty.session.USERID ne ""}
            
            {if $smarty.session.USERID eq $USERID}
    			<a href="#">{$lang80}</a>
            {else}
            	{insert name=get_subscribed_status_channel assign=issubscribed value=var CID=$CID}
            	{if $issubscribed eq "false"}
            		<div id="subscribe">
    				<a href="#" id="subscribepublisher" onClick="fxSubscribeChannel('subscribe',{$smarty.session.USERID},{$CID})">{$lang81}</a>								
            		</div>
            		<div id="subscribeSuccess" style="display:none;">
            			<a href="#">{$lang82}</a>
            		</div>
            		<div id="subscribeFailure" style="display:none;">
            			<a href="#">{$lang83}</a>
            		</div>
            	{else}
    				<a href="#">{$lang84}</a>							
            	{/if}
            {/if}
            
			{else}
    			<a href="{$baseurl}/login.php" id="subscribepublisher">{$lang81}</a>								
            {/if}
            <!-- Join This Channel End -->
        </div>
        	
		
        <br />
        
        <ul class="vList_vFullSubscribersSub clearfix clear">
        <li style="width:440px;">
        	<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','440','400','8');
				so.addVariable('file','{$videourl}/{$channelvideos[0].VIDEOID}.flv');
				so.addVariable('height','400');
				so.addVariable('width','440');
				so.addVariable('location','{$baseurl}/videowatchproplayer.swf');
				so.addVariable('vid','{$channelvideos[0].VIDEOID}');
				so.addVariable("baseurl","{$baseurl}/");
				so.addParam("wmode", "transparent");
				so.addParam("vmode", "transparent");	
				so.write('player');
			</script>
        </li>
        <li style="width:410px;">
            
            <!-- Channel Videos Begin -->
    		<div class="containerD clear" id="seriesSubscribersBox" style="width:410px; display:'';"> 
        			<p id="relatedBoxTitle"><a href="#" name="">{$lang85}</a></p>
      				<div class="containerP" id="relatedVideos"> 
        				
					{section name=sv loop=$channelvideos}
                    
                    {insert name=get_channel_video_details assign=cvdetails value=var VIDEOID=$channelvideos[sv].VIDEOID}
                    {section name=z loop=$cvdetails max=1}
                    {insert name=assign_username_from_userid assign=svuserid value=var USERID=$cvdetails[z].USERID}
                    
					<div class="containerD" id="infoMeta">
            		<table width="100%" border="0" cellpadding="0" cellspacing="0">
                		<tr>
                		<td width="110px" align="center">
            				<a href="{$baseurl}/videos/{$cvdetails[z].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$cvdetails[z].VIDEOID}" title="{$cvdetails[z].title} Thumbnail"><img src="{$vthumburl}/{$cvdetails[z].VIDEOID}-1.jpg" oversrc="{$vthumburl}/{$cvdetails[z].VIDEOID}-3.jpg" class="vThumb" alt="{$cvdetails[z].title} Thumbnail"></a>
                		</td>
                		<td width="280px">
                			<a href="{$baseurl}/videos/{$cvdetails[z].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$cvdetails[z].VIDEOID}" class="vTitle" title="{$cvdetails[z].title}">{$cvdetails[z].title}</a>
            				<span class="metaLabel">{$lang86}: <a href="{$baseurl}/members/profile/{$cvdetails[z].USERID}/{$svuserid}" name=""><b>{$svuserid}</b></a>&nbsp;<span class="{insert name=get_member_icon value=var USERID=$cvdetails[z].USERID}">&nbsp;</span></span><br />
            				<span class="metaLabel">{$lang60}: </span>		
            				<var>{$cvdetails[z].viewcount}</var> &nbsp; &nbsp;
							<span class="metaLabel">{$lang63}: </span>
            				<var>{$cvdetails[z].commentcount}</var> &nbsp; &nbsp;
            				<br />                                
            				<span class="metaLabel">
                				<nobr>
								{insert name=get_rating_stars rating=$cvdetails[z].rating}
								</nobr>
                            </span>
            				<var></var><br /> 
            			</td>
                		</tr>
                        {if $smarty.session.USERID eq $cvdetails[z].USERID || $smarty.session.USERID eq $channelarray[0].MID}
                        <tr>
                        <td colspan="2" align="center">
                        	<form name="rv" id="rv" method="post" style="padding:0; margin:0" action="">
                    		<INPUT type=image value="remove" src="{$imageurl}/buttons/{$smarty.session.language}/removesmall.gif" height="20px" style="height:20px;padding:0; margin:0; border:0;" border="0" name="removevideo">
                            <input type="hidden" name="RVIDEOID" value="{$cvdetails[z].VIDEOID}" />
                            <input type="hidden" name="removevideo" id="removevideo" value="remove" />
                    		</form>
                        </td>
                        </tr>
                        {/if}
                	</table>
					</div>
                    {/section}
                    {/section}


      				</div>
      				<div class="clear"></div>
    		</div>
    		<!-- Channel Videos End -->
    
    
        </li>
        </ul>
            
</div>

<div class="containerD home_profile" id="profilemiddle">
	<ul class="vList_vFullSubscribersSub clearfix clear">
        <li style="width:110px;">
        	<div>
            	<img src="{$cthumburl}/{$channelarray[0].photo}" class="vThumb" alt="{$channelarray[0].name} Thumbnail">
                {$lang87}:&nbsp;<a href="{$baseurl}/members/profile/{$USERID}/{insert name=assign_username_from_userid assign=chanusername value=var USERID=$USERID}{$chanusername}">{$chanusername}</a>
            </div>
        </li>
        <li style="width:190px;">
        	<b>{$lang88}:</b><br />
        	{insert name=get_stripped_phrase value=a assign=cdetail details=$channelarray[0].details}{$cdetail}
        </li>
        <li style="width:150px;">
        	<b>{$lang89}:</b><br />
            <span class="metaLabel">{$lang59}: </span><var>{insert name=get_channel_members_count value=var CID=$CID}</var><br />
            <span class="metaLabel">{$lang60}: </span><var>{$channelarray[0].viewcount}</var><br />
            <span class="metaLabel">{$lang41}: </span><var>{insert name=get_channel_videos_count value=var CID=$CID}</var>
            
            
            
            
            
            <div class="rateThis" id="ratingBlock">
				<div class="rateStars">

					<div id="video_stars_rating" onmouseover="showhidelists('video_stars_rating2','video_stars_rating')">
						<nobr>
						<nobr>
                        {insert name=get_rating_stars rating=$channelarray[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="fxChannelsRater('2','{$CID}')"{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="fxChannelsRater('4','{$CID}')"{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="fxChannelsRater('6','{$CID}')"{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="fxChannelsRater('8','{$CID}')"{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="fxChannelsRater('10','{$CID}')"{else}onClick="showhidelists('ratingLogin','ratingSuccess')"{/if}></span>
                        

                    </div>
					<div class="clear"></div>
				</div>
				<span><p>{$channelarray[0].ratingcount} {if $channelarray[0].ratingcount eq "1"}{$lang90}{else}{$lang91}{/if} </p></span>
                
			</div>
            
            
            
            
            
        </li>
        <li style="width:350px;">
            <!-- Advertisement Begin -->
    			{insert name=get_advertisement value=var AID="4"}
    		<!-- Advertisement End -->
        </li>
    </ul>        
</div>



<div class="colLeft">

	<!-- Rating Messages -->
    	<div id="ratingSuccess" style="display:none;" align="center" style="width:581px; padding-bottom:10px; padding-top:10px" class="showSuccess"><b>{$lang92}</b></div>
        	<div id="ratingLogin" style="display:none;" align="center" style="width:581px; padding-bottom:10px; padding-top:10px" class="showError"><b>{$lang93}</b></div>
        	<div id="ratingExists" style="display:none;" align="center" style="width:581px; padding-bottom:10px; padding-top:10px" class="showError"><b>{$lang94}</b></div>
	<!-- Rating Messages -->


	<!-- Comments Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang95}</span>
	</div>
	<div id="commentsContainer" class="containerD home_sideC" style="display:">
    {insert name=get_channel_commentcount assign=commentcount cid=$channelarray[0].CID}
    <h4>{if $commentcount eq "0"}{$lang96}{else}{$lang97} {$commentcount} {$lang98}.{/if}</h4>
		<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="fxChannelComment('addcommentdiv','addcomment',{$smarty.session.USERID},{$channelarray[0].CID})">
			</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:80%; 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:80%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang105}</b></div></DIV>
        <div align="center" id="vcommentsfailure" style="display:none;width:80%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang106}</b></div></DIV>
        <div align="center" id="vcommentsnotmember" style="display:none;width:80%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang107}</b></div></DIV>
        <br />
	   <div class="clear"></div>
	   
		<div id="videoCommentsPanel">
			<a name="comments"></a>
            {section name=vc loop=$showcomments}
            {insert name=assign_username_from_userid assign=vcuserid value=var USERID=$showcomments[vc].USERID}
			<div class="containerD clear" id="commentloop" style="border:1px solid #DFDFDF; padding:15px;">
				<a href="{$baseurl}/members/profile/{$showcomments[vc].USERID}/{$vcuserid}" name="{$vcuserid}">
                <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}/{$vcuserid}" name="{$vcuserid}">{$vcuserid}</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_profile_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>
    <!-- Comments End -->
    
            	
	<div class="clear"></div>
</div> 
<!-- end left column -->


<div class="colRight">
	
    
   
    
    
    
   
    
    <!-- Members Begin -->
    <div class="containerHeader3">
		<span class="profileheading">{$lang108}</span>
	</div>
    <div class="containerD home_mainC" id="videoDetailsContainer" align="left">
		{insert name=get_channel_members assign=listchannelmembers cid=$CID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=g loop=$listchannelmembers}
        {insert name=assign_username_from_userid assign=guserid value=var USERID=$listchannelmembers[g].USERID}
        {insert name=get_member_profilepicture assign=profilefpic value=var USERID=$listchannelmembers[g].USERID}
        {if $smarty.section.g.index mod 2 eq "0" and $smarty.section.g.index gt "0"}</ul><ul class="vList_vFullSubscribersSub clearfix clear">{/if}
        <li>
        	<a href="{$baseurl}/members/profile/{$listchannelmembers[g].USERID}/{$guserid}"><img class="vThumb" src="{$membersprofilepicurl}/thumbs/{$profilefpic}" alt="{$guserid}" title="{$guserid}" /></a>
			<a class="vTitle" href="{$baseurl}/members/profile/{$listchannelmembers[g].USERID}/{$guserid}">{insert name=get_username_from_userid USERID=$listchannelmembers[g].USERID}</a>
        </li>
        {/section}	
        </ul>
        <div class="clear"></div>
	</div>
    <!-- Members End -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
</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 -->