        <div class="box">
            <div class="btitle"><h2>QUICK JUMPS</h2></div>
            <ul class="quick-links">
                <li><a href="{$relative}/user/{$username}">Profile</a></li>		
                {if $blog_module == '1'}<li><a href="{$relative}/user/{$username}/blog">Blog</a></li>{/if}
                {if $photo_module == '1'}<li><a href="{$relative}/user/{$username}/albums">Photo Albums</a></li>{/if}
                <li><a href="{$relative}/user/{$username}/playlist">Playlist</a></li>                                
                <li><a href="{$relative}/user/{$username}/videos/public">Public Videos</a></li>
                <li><a href="{$relative}/user/{$username}/videos/private">Private Videos</a></li>
                <li><a href="{$relative}/user/{$username}/favorite/videos">Favorite Videos</a></li>
                <li><a href="{$relative}/user/{$username}/wall">Wall</a></li>                
                <li><a href="{$relative}/user/{$username}/friends">Friends</a></li>
                <li><a href="{$relative}/user/{$username}/subscribers">Subscribers</a></li>
                <li><a href="{$relative}/user/{$username}/subscriptions">Subscriptions</a></li>
                {if isset($smarty.session.uid) && $smarty.session.uid == $user.UID}
                <li><a href="{$relative}/mail">Inbox</a></li>
                {/if}
            </ul>
            <div class="clear_left"></div>
        </div>
        <div class="box">    
            <div class="btitle"><h2>{$username|upper}'S PROFILE</h2></div>
            {if $smarty.session.username == $username}
            <div class="blinkp">
                &nbsp;&nbsp;<a href = "{$relative}/user/edit">Edit Profile</a> <strong>&middot;</strong>
                <a href = "{$relative}/user/avatar">Change Avatar</a>                              
            </div>
            {/if}
            <div class="clear_left"></div>
            <div class="profile_avatar">
                <input name="current_rating_user" type="hidden" value="{$user.rate}" id="current_user_rating" />
                <a href="{$relative}/user/{$username}">
                    <img src="{$relative}/media/users/{if $user.photo != ''}{$user.photo}{else}nopic-{$user.gender}.gif{/if}" title="{$user.username}'s avatar" alt="{$user.username}'s avatar" />
                </a>
                <div id="rating_user">
                    {insert name=user_rating assign=user_rating rating=$user.rate ratedby=$user.ratedby UID=$user.UID}
                    {$user_rating}
                </div>
                <div class="clear_left"></div>
                <div id="rating_text_user">
                    {$user.ratedby} ratings
                </div>
            </div>
            <div class="profile_info">
            <ul class="profile_info">
                <li><a href="{$relative}/user/{$user.username}">{$user.username}</a></li>
                <li>Popularity: <span class="grey">{$user.popularity} points</span></li>
                <li>Activity: <span class="grey">{$user.points} points</span></li>
                {insert name=age assign=age bdate=$user.bdate}
                {if $age != ''}<li>Age: <span class="grey">{$age}</span></li>{/if}
                <li>Gender: <span class="grey">{$user.gender}</span></li>
                {if $user.relation != ''}<li>Relationship Status: <span class="grey">{$user.relation}</span></li>{/if}
                {if $user.interested != ''}<li>Interested In: <span class="grey">{$user.interested}</span></li>{/if}
                {insert name=time_range assign=joined time=$user.addtime}
                <li>Joined: <span class="grey">{$joined}</span></li>
                {insert name=time_range assign=last_login time=$user.logintime}
                <li>Last Login: <span class="grey">{$last_login}</span></li>
                <li>Profile Viewed: <span class="grey">{$user.profile_viewed} time{if $user.profile_viewed > 1}s{/if}</span></li>
                <li>Has watched: <span class="grey">{$user.watched_video} video{if $user.watched_video > 1}s{/if}</span></li>
                <li>People have watched {$user.username}'s videos: <span class="grey">{$user.video_viewed} time{if $user.video_viewed > 1}s{/if}</span></li>
            </ul>
            <div class="clear_left"></div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="box">
      		<div class="btitle"><h2>CONTACT {$username|upper}</h2></div>
      		<div class="user_actions">
          		<ul>
                {insert name=is_blocked assign=is_blocked UID=$smarty.session.uid BID=$user.UID}
                {if !$is_blocked}
                {insert name=is_friend assign=is_friend UID=$smarty.session.uid FID=$user.UID}
                {if $is_friend}
                <li id="remove_friend"><a href="#remove_friend" id="remove_from_friends_{$user.UID}">Remove Friendship</a></li>
				{if $private_msgs == 'friends'}
                <li id="send_message"><a href="{$relative}/mail/compose/{$user.username}">Send Message</a></li>
				{/if}
                {else}
                <li id="add_friend"><a href="#invite_friend" id="invite_as_friend_{$user.UID}">Add To Friends</a></li>
                {/if}
                {/if}
				{if $private_msgs == 'all'}
				<li id="send_message"><a href="{$relative}/mail/compose/{$user.username}">Send Message</a></li>
				{/if}
                {insert name=is_subscribed assign=is_subscribed SUID=$smarty.session.uid UID=$user.UID}
                {if $is_subscribed}
                <li id="handle_subscription"><a href="#unsubscribe_user" id="unsubscribe_from_{$user.UID}">Unsubscribe</a></li>
                {else}
                <li id="handle_subscription"><a href="#subscribe_user" id="subscribe_to_{$user.UID}">Subscribe</a></li>
                {/if}
                <li id="report_user"><a href="#report_user" id="open_report_user">Report User</a></li>
                {if $is_blocked}
                <li id="block_user"><a href="#unblock_user" id="remove_block_{$user.UID}">Unblock User</a></li>
                {else}
                <li id="block_user"><a href="#block_user" id="add_block_{$user.UID}">Block User</a></li>
                {/if}
          		</ul>
          		<div class="clear_left"></div>
      		</div>
      		<div id="user_message" class="posting" style="display:none;"></div>
      		<div id="invite_message" style="display: none;">
          		<input name="owner_id" type="hidden" value="{$user.UID}" id="user_id" />
          		<div class="invite_header">
              		<div class="invite_left">Add To Friends</div>
              		<div class="invite_right"><a href="#close_invite_message" id="close_invite_message">close</a></div>
              		<div class="clear"></div>
          		</div>
          		<br />
          		<span>Message (optional):</span><br />
          		<textarea name="invite_friend_message" id="invite_friend_message" rows="5" cols="10"></textarea>
          		<div id="invite_friend_error" class="invite_error" style="display: none;"></div>
          		<div class="submit_box">
              		<input name="send_friend_invite" type="button" value="Send Invite" id="send_friend_invite" class="button" />
          		</div>
      		</div>
      		<div id="report_message" style="display: none;">        
          		<div class="invite_header">
              		<div class="invite_left">Report User</div>
              		<div class="invite_right"><a href="#close_report_user" id="close_report_message">close</a></div>
              		<div class="clear"></div>
          		</div>
          		<br />
          		<input name="report_reason" value="offensive" id="report_reason_1" type="radio" class="radio" checked="checked" /> Offensive<br />
          		<input name="report_reason" value="underage" id="report_reason_2" type="radio" class="radio" /> Underage<br />
          		<input name="report_reason" value="spammer" id="report_reason_3" type="radio" class="radio" /> Spammer<br />
          		<input name="report_reason" value="other" id="report_reason_4" type="radio" class="radio" /> Other<br />
          		<div id="other_message" style="display: none;">
              		<br />
              		<span>Message (optional):</span><br />
              		<textarea name="other_reason" id="other_reason" rows="5" cols="10"></textarea><br />
          		</div>
          		<br />
          		<div class="submit_box">
              		<input name="send_report_user" type="button" value="Flag User" id="send_flag_user_{$user.UID}" class="button" />
          		</div>
      		</div>
			<div class="clear"></div>
		</div>
        <div class="box">            
            <div class="btitle"><h2>MORE INFO ABOUT {$username}</h2></div>
            <ul class="user_info">
                {if isset($user.country) && $user.country != ''}
                <li>Country: <span class="grey">{$user.country}</span></li>
                {/if}
                {if isset($user.town) && $user.town != ''}
                <li>Hometown: <span class="grey">{$user.town}</span></li>
                {/if}
                {if isset($user.city) && $user.city != ''}
                <li>Current City: <span class="grey">{$user.city}</span></li>
                {/if}
                {if isset($user.school) && $user.school != ''}
                <li>School: <span class="grey">{$user.school}</span></li>
                {/if}
                {if isset($user.occupation) && $user.occupation != ''}
                <li>Job: <span class="grey">{$user.occupation}</span></li>
                {/if}
                {if isset($user.aboutme) && $user.aboutme != ''}
                <li>About Me: <span class="grey">{$user.aboutme}</span></li>
                {/if}
                {if isset($user.interest_hobby) && $user.interest_hobby != ''}
                <li>Here For: <span class="grey">{$user.interest_hobby}</span></li>
                {/if}
                {if isset($user.fav_movie_show) && $user.fav_movie_show != ''}
                <li>Favorite Sex Categories: <span class="grey">{$user.fav_movie_show}</span></li>
                {/if}
                {if isset($user.fav_music) && $user.fav_music != ''}
                <li>Favorite Ideal Sex Partner: <span class="grey">{$user.fav_music}</span></li>
                {/if}
                {if isset($user.fav_book) && $user.fav_book != ''}
                <li>My Erotogenic Zones: <span class="grey">{$user.fav_book}</span></li>
                {/if}
                {if isset($user.turnon) && $user.turnon != ''}
                <li>Turn Ons: <span class="grey">{$user.turnon}</span></li>
                {/if}
                {if isset($user.turnoff) && $user.turnoff != ''}
                <li>Turn Offs: <span class="grey">{$user.turnoff}</span></li>
                {/if}
                {if isset($user.interested) && $user.interested != ''}
                <li>Interested In: <span class="grey">{$user.interested}</span></li>
                {/if}
            </ul>
            <br />
        </div>