<!-- 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}/profile.css" />
        {if $profilearray[0].bgimage ne ""}
        <link rel="stylesheet" type="text/css" href="{$baseurl}/memberprofilecss.php?bgimage={$profilearray[0].bgimage}" />
        {/if}
    
<div class="colLeft">
	{include file="memberside.tpl"}
    
    <!-- Friends Begin -->
    <div class="containerHeader3">
		<span class="profileheading">{$lang34} ({insert name=get_member_friends_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
    <div class="containerD home_mainC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_friends assign=listprofilefriends userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=g loop=$listprofilefriends}
        {insert name=get_member_profilepicture assign=profilefpic value=var USERID=$listprofilefriends[g].FRIENDID}
        {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/{$listprofilefriends[g].FRIENDID}/{insert name=get_username_from_userid value=var USERID=$listprofilefriends[g].FRIENDID}"><img src="{$membersprofilepicurl}/thumbs/{$profilefpic}" alt="{insert name=get_username_from_userid value=var USERID=$listprofilefriends[g].FRIENDID}" title="{insert name=get_username_from_userid value=var USERID=$listprofilefriends[g].FRIENDID}" /></a>
			<a class="vTitle" href="{$baseurl}/members/profile/{$listprofilefriends[g].FRIENDID}/{insert name=get_username_from_userid value=var USERID=$listprofilefriends[g].FRIENDID}">{insert name=get_username_from_userid USERID=$listprofilefriends[g].FRIENDID}</a>
        </li>
        {/section}	
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Friends End -->
    
    <!-- Series Begin -->
    <div class="containerHeader3">
		<span class="profileheading">{$lang258} ({insert name=get_member_series_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
    <div class="containerD home_mainC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_series assign=listprofileseries userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=m loop=$listprofileseries}
        {if $smarty.section.m.index mod 2 eq "0" and $smarty.section.m.index gt "0"}</ul><ul class="vList_vFullSubscribersSub clearfix clear">{/if}
        <li>
        	<a href="{$baseurl}/videoseries/{$listprofileseries[m].SID}/{insert name=get_name_from_seriesid value=var SID=$listprofileseries[m].SID}"><img src="{$seriesurl}/{$listprofileseries[m].thumbnail}" alt="{insert name=get_name_from_seriesid value=var SID=$listprofileseries[m].SID}" title="{insert name=get_name_from_seriesid value=var SID=$listprofileseries[m].SID}" /></a>
			<a class="vTitle" href="{$baseurl}/videoseries/{$listprofileseries[m].SID}/{insert name=get_name_from_seriesid value=var SID=$listprofileseries[m].SID}">{insert name=get_name_from_seriesid value=var SID=$listprofileseries[m].SID}</a>
        </li>
        {/section}	
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Series End -->
            	
	<div class="clear"></div>
</div> 
<!-- end left column -->


<div class="colRight">
	<!-- Video Details Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$profilearray[0].username}'s {$lang26}</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer">
    	 <ul class="vList_vFullSubscribersSub clearfix clear">
        <li style="width:285px;">
        	<span class="metaLabelP">{$lang112}: </span>
            <varP>{$profilearray[0].firstname}&nbsp;{$profilearray[0].lastname}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang130}: </span>
            <varP>{$profilearray[0].birthday}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang134}: </span>
            <varP>{if $profilearray[0].gender eq "1"}Male{elseif $profilearray[0].gender eq "0"}Female{/if}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang140}: </span>
            <varP>{$profilearray[0].city}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang139}: </span>
            <varP>{$profilearray[0].country}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang113}: </span><br />
            <varP>{insert name=get_stripped_phrase value=a assign=pdesc details=$profilearray[0].description}{$pdesc}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang259}: </span>
            <varP><a href="{$profilearray[0].url}" target="_blank">{$profilearray[0].url}</a></var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang260}: </span>
            <varP>{insert name=get_time_to_days_ago value=var time=$profilearray[0].lastlogin}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang261}: </span>
            <varP>{insert name=get_time_to_days_ago value=var time=$profilearray[0].addtime}</var><br />
            <div style="padding-bottom:10px;"></div>
            <span class="metaLabelP">{$lang262}: </span>
            <varP><input readonly="readonly" value="{$baseurl}/members/profile/{$profilearray[0].USERID}/{$profilearray[0].username}" id="permaSelect" style="width:250px;" /></var><br />
           
            
        </li>
        <li>
        	{insert name=get_advertisement value=var AID="1"}
        </li>
        </ul> 
        <ul class="vList_vFullSubscribersSub clearfix clear">
        	<li style="width:400px;">          
                {if $smarty.session.USERID ne ""}
                	{if $smarty.session.USERID eq $profilearray[0].USERID}
                    	{$lang263}
                    {else}
        				<a href="#sendmessagelink" id="sendmessageto" onclick="showMe('sendmessageContainer');">{$lang264}</a>
                    {/if}
                {else}
    				<a href="{$baseurl}/login.php" id="sendmessageto">{$lang264}</a>								
            	{/if}
                
                &nbsp;&nbsp;&nbsp;
                                
            	{if $smarty.session.USERID ne ""}
                	{if $smarty.session.USERID eq $profilearray[0].USERID}
                    	{$lang263}
                    {else}
                    	{insert name=get_friends_status assign=isfriend value=var USERID=$profilearray[0].USERID}
            			{if $isfriend eq "false"}
        					<a href="#addtofriendslink" id="addtofriends" onclick="showMe('addtofriendsContainer');">{$lang265}</a>
                        {else}
                        	{$lang266}
                        {/if}
                    {/if}
                {else}
    				<a href="{$baseurl}/login.php" id="addtofriends">{$lang265}</a>								
            	{/if}
        	</li>
        </ul>       		
		<div class="clear"></div>
	</div>
    <!-- Video Details End -->
    
    {if $smarty.session.USERID ne "" && $smarty.session.USERID ne $profilearray[0].USERID}
    
    <!-- Send Message Begin -->
	<div class="containerD home_sideC" id="sendmessageContainer" align="left" style="display:none;">
    	<h2>{$lang264}</h2>
			<div>
            	<center>
 				<div id="sendmessagediv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
                	<form name="sendmessageform" method="POST" action="#">
                    <b>{$lang267}:</b><br />
                    <textarea name="sendmessagesubject" id="sendmessagesubject" rows="1" cols="60"></textarea><br />
                    <div style="padding-top:10px"></div>
                    <b>{$lang268}:</b><br />
            		<textarea name="sendmessagetext" id="sendmessagetext" rows="3" cols="60"></textarea><br />
            		<input class="submitButton" type="button" name="submitsendmessage" value="{$lang264}" onclick="fxSendMessage('sendmessagediv','sendmessagesubject','sendmessagetext',{$smarty.session.USERID},{$profilearray[0].USERID})">
					</form>
            	</div>
        		<div align="center" id="sendmessagesuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang269}</b></div></DIV>
        		<div align="center" id="sendmessagefailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang270}</b></div></DIV>
                <div align="center" id="msubjectfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang271}</b></div></DIV>
                <div align="center" id="mtextfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang272}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closesendmessage" name="Send_Message_Close" onclick="hideMe('sendmessageContainer');">[{$lang273}]</a></div>
    </div>
    <!-- Send Message End -->
    
    {/if}
    
    {if $smarty.session.USERID ne "" && $smarty.session.USERID ne $profilearray[0].USERID}
    
    <!-- Friend Request Begin -->
	<div class="containerD home_sideC" id="addtofriendsContainer" align="left" style="display:none;">
    	<h2>{$lang274}</h2>
			<div>
            	<center>
 				<div id="addtofriendsdiv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
                	<b>{$lang275}:</b> {$profilearray[0].username}
                    <div style="padding-top:10px"></div>
 					<form name="addtofriendsform" method="POST" action="#">
                    <b>{$lang268}:</b><br />
            		<textarea name="addtofriendsmessage" id="addtofriendsmessage" rows="3" cols="60"></textarea><br />
            		<input class="submitButton" type="button" name="submitfriendrequest" value="{$lang274}" onclick="fxAddToFriends('addtofriendsdiv','addtofriendsmessage',{$smarty.session.USERID},{$profilearray[0].USERID})">
					</form>
            	</div>
        		<div align="center" id="addtofriendssuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang276}</b></div></DIV>
        		<div align="center" id="addtofriendsfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang277}</b></div></DIV>
                <div align="center" id="addtofriendsexists" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang278}</b></div></DIV>
                </center>
            </div>
            <div align="center"><a href="#closefriendrequest" name="Friend_Request_Close" onclick="hideMe('addtofriendsContainer');">[{$lang279}]</a></div>
    </div>
    <!-- Friend Request End -->
    
    {/if}
    
    <!-- Subscribers Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang207} ({insert name=get_member_subscribers_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_subscribers assign=listprofilesubscribers userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=h loop=$listprofilesubscribers}
        {insert name=get_member_profilepicture assign=profilepic value=var USERID=$listprofilesubscribers[h].subscribee}
        <li>
        	<a href="{$baseurl}/members/profile/{$listprofilesubscribers[h].subscribee}/{insert name=get_username_from_userid value=var USERID=$listprofilesubscribers[h].subscribee}"><img src="{$membersprofilepicurl}/thumbs/{$profilepic}" alt="{$listprofilesubscribers[h].username}" title="{$listprofilesubscribers[h].username}" /></a>
			<a class="vTitle" href="{$baseurl}/members/profile/{$listprofilesubscribers[h].subscribee}/{insert name=get_username_from_userid value=var USERID=$listprofilesubscribers[h].subscribee}">{insert name=get_username_from_userid USERID=$listprofilesubscribers[h].subscribee}</a>
        </li>
        {/section}
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Subscribers End -->
    
	<!-- Videos Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang41} ({insert name=get_member_videos_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_videos assign=listprofilevideos userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=i loop=$listprofilevideos}
        <li>
        	<a href="{$baseurl}/videos/{$listprofilevideos[i].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$listprofilevideos[i].VIDEOID}"><img class="vThumb" src="{$vthumburl}/{$listprofilevideos[i].VIDEOID}-1.jpg" alt="{$listprofilevideos[i].title}" title="{$listprofilevideos[i].title}" /></a>
			<a class="vTitle" href="">{$listprofilevideos[i].title}</a>
        </li>
        {/section}
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Videos End -->
    
    <!-- Favorite Videos Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang257} ({insert name=get_member_favorited_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_favoritevideos assign=listprofilefvideos userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=k loop=$listprofilefvideos}
        <li>
        	<a href="{$baseurl}/videos/{$listprofilefvideos[k].VIDEOID}/{insert name=get_seotitle_from_videoid assign=title videoid=$listprofilefvideos[k].VIDEOID}"><img class="vThumb" src="{$vthumburl}/{$listprofilefvideos[k].VIDEOID}-1.jpg" alt="{$listprofilefvideos[k].title}" title="{$listprofilefvideos[k].title}" /></a>
			<a class="vTitle" href="">{insert name=get_title_from_videoid VIDEOID=$listprofilefvideos[k].VIDEOID}</a>
        </li>
        {/section}
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Favorite Videos End -->
    
    <!-- Channels Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang37} ({insert name=get_member_channels_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_channels assign=listprofilechannels userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=j loop=$listprofilechannels}
        <li>
        	<a href="{$baseurl}/{$listprofilechannels[j].seokey}"><img src="{$imageurl}/channels/{$listprofilechannels[j].photo}" alt="{$listprofilechannels[i].name}" title="{$listprofilechannels[j].name}" /></a>
			<a class="vTitle" href="{$baseurl}/{$listprofilechannels[j].seokey}">{$listprofilechannels[j].name}</a>
        </li>
        {/section}
        </ul>	
		<div class="clear"></div>
	</div>
    <!-- Channels End -->
    
    <!-- Subscribed To Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang280} ({insert name=get_member_subscribedto_count value=var USERID=$profilearray[0].USERID})</span>
	</div>
	<div class="containerD home_sideC" id="videoDetailsContainer" align="center">
		{insert name=get_profile_subscribedto assign=listprofilesubscribedto userid=$profilearray[0].USERID}
        <ul class="vList_vFullSubscribersSub clearfix clear">
    	{section name=l loop=$listprofilesubscribedto}
        {insert name=get_member_profilepicture assign=profilepics value=var USERID=$listprofilesubscribedto[l].subscriber}
        <li>
        	<a href="{$baseurl}/members/profile/{$listprofilesubscribedto[l].subscriber}/{insert name=get_username_from_userid value=var USERID=$listprofilesubscribedto[l].subscriber}"><img src="{$membersprofilepicurl}/thumbs/{$profilepics}" alt="{insert name=get_username_from_userid USERID=$listprofilesubscribedto[l].subscriber}" title="{insert name=get_username_from_userid USERID=$listprofilesubscribedto[l].subscriber}" /></a>
			<a class="vTitle" href="{$baseurl}/members/profile/{$listprofilesubscribedto[l].subscriber}/{insert name=get_username_from_userid value=var USERID=$listprofilesubscribedto[l].subscriber}">{insert name=get_username_from_userid USERID=$listprofilesubscribedto[l].subscriber}</a>
        </li>
        {/section}
        </ul>		
		<div class="clear"></div>
	</div>
    <!-- Subscribed To End -->
    
    
    
    
    
    
    
    
    
    <!-- Comments Begin -->
    <div class="containerHeader2">
		<span class="profileheading">{$lang254}</span>
	</div>
	<div id="commentsContainer" class="containerD home_sideC" style="display:">
    {insert name=get_profile_commentcount assign=commentcount userid=$profilearray[0].USERID}
    <h4>{if $commentcount eq "0"}{$lang281}{elseif $commentcount <= $max_comments_profile}{$lang97} {$commentcount} {$lang98}.{else}{$lang282} {$max_comments_profile} {$lang61} {$commentcount} {$lang283}.{/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="fxProfileComment('addcommentdiv','addcomment',{$smarty.session.USERID},{$profilearray[0].USERID})">
			</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>
        <br />
	   <div class="clear"></div>
	   
		<div id="videoCommentsPanel">
			<a name="comments"></a>
            {section name=vc loop=$showcomments}
			<div class="containerD clear" id="commentloop" style="border:1px solid #DFDFDF; padding:15px;">
				<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_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>
        {if $commentcount >= $max_comments_profile}<center><a href="">{$lang256} {$commentcount} {$lang98}</a></center>{/if}
	</div>
    <!-- Comments 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 -->