<div class="actionBox">
                	<!--<a href="#"><i class="chat">&nbsp;</i> <span>Chat Now</span></a>-->
                    <?php
						if(!$is_already_friend):
					?>
                    <a href="<?php echo base_url(); ?>friends/send_friend_request/<?php echo my_encrypt($row->id); ?>" title="Send a Friend Request"><i class="adfrnd">&nbsp;</i> <span>Add Friend</span></a>
                   <?php endif; ?>
                   
				   <?php
                   	if($msg_show):
				   ?>
                    <a href="javascript:;" title="Send Message to this person" onclick="setRecieverSession('<?php echo $username;?>')"><i class="message">&nbsp;</i> <span>Send Message</span></a>
                    
                    <?php
						endif;
						if(!$is_already_favourite):
					?>
                    <a href="<?php echo base_url(); ?>friends/add_to_favourite/<?php echo my_encrypt($row->id); ?>" title="Add to Favourite"><i class="favico">&nbsp;</i> <span>Add to Favourite</span></a>
                    <?php 
						endif; 
                   		if($gallery_show):
					?>
                    
                    <a href="<?php echo base_url(); ?>gallery/photos/<?php echo $row->username; ?>" title="See more photo of this user"><i class="gallery">&nbsp;</i> <span>Gallery</span></a>
                    
                    <?php
						endif;
					?>
                    
                    <a href="<?php echo base_url(); ?>friends/block_friend/<?php echo my_encrypt($row->id); ?>" title="Block this Person"><i class="block">&nbsp;</i> <span>Block</span></a>
                <div class="clear"></div>
                
                	<!--Popup-->
                	<div class="confirmpopup" id="addFriend">
                    	<div class="contentpoup">
                        <h6>Friend Request</h6>
                        <p>Your friend request has been sent.</p>
                        <div class="linksbox"><a href="#" onclick = "document.getElementById('addFriend').style.display='none';document.getElementById('fade').style.display='none'">Close</a> </div>
                        </div>
                    </div>
                    <div class="darkwindow" id="fade">&nbsp;</div>
                
                </div>