| 
<script>
 $( function() {
 $( "#tabs" ).tabs();
 } );
 </script>
 
 <div id="tabs">
 <ul>
 <li><a href="#tabs-1"><?php  echo WILang::get('profile_wall');?></a></li>
 <li><a href="#tabs-2"><?php  echo WILang::get('mess');?> </a></li>
 
 </ul>
 <div id="tabs-1">
 Profile Wall
 
 <div width="67%" valign="top">
 <span style="font-size:16px; font-weight:800;"><?php  $mainNameLine = $profile->Display_name($friendId); ?></span>
 <?php  $interactionBox = $profile->interactionBox($userId, $friendId); ?></div>
 
 <div class="interactive" id="friends_requests">
 
 <div class="interactContainers" id="add_friend">
 <div  class="cancel" align="right"><a href="#" onclick="profile.toggleInteractContainers('add_friend');">cancel</a> </div>
 Add <?php echo $profile->getInfo($friendId, "username" ) ?>  as a friend?  
 <a href="#" onclick="profile.addAsFriend(<?php echo $userId; ?>, <?php echo $friendId; ?>)" >Yes</a>
 <span id="add_friend_loader"><img class="friend" src="../WIAdmin/WIMedia/Img/loading.gif" width="28" height="10" alt="Loading" /></span>
 </div>
 
 <div class="interactContainers" id="remove_friend">
 <div align="right"><a href="#" onclick="return false" onmousedown="profile.toggleInteractContainers('remove_friend');">cancel</a> </div>
 Remove <?php echo $profile->getInfo($friendId, "username") ?> from your friend list?  
 <a href="#" onclick="return false" onmousedown="javascript:removeAsFriend(<?php echo $friendId; ?>, <?php echo $friendId; ?>, <?php echo $thisRandNum; ?>);">Yes</a>
 <span id="remove_friend_loader"><img class="loading_image" src="../WIAdmin/WIMedia/Img/loading.gif" alt="Loading" /></span>
 </div>
 <!-- START DIV that serves as an interaction status and results container that only appears when we instruct it to -->
 <div class="interactiveResults"></div>
 <!-- START DIV that contains the Private Message form -->
 <div class="interactContainers" id="private_message" style="background-color: #EAF4FF;">
 <form id="pmForm">
 <font size="+1">Sending Private Message to <strong><em><?php echo $profile->getInfo($friendId, "username") ?></em></strong></font><br /><br />
 Subject:
 <input name="pmSubject" id="pmSubject" type="text" maxlength="64" style="width:98%;" />
 Message:
 <textarea name="pmTextArea" id="pmTextArea" rows="4" style="width:98%;"></textarea>
 <input name="pm_sender_id" id="pm_sender_id" type="hidden" value="<?php echo $friendId; ?>" />
 <input name="pm_sender_name" id="pm_sender_name" type="hidden" value="<?php echo $profile->getInfo($friendId, "username") ?>" />
 <input name="pm_rec_id" id="pm_rec_id" type="hidden" value="<?php echo $userId; ?>" />
 <input name="pm_rec_name" id="pm_rec_name" type="hidden" value="<?php echo $profile->getInfo($userId, "username") ?>" />
 <input name="pmWipit" id="pmWipit" type="hidden" value="<?php echo $thisRandNum; ?>" />
 <span id="PMStatus" style="color:#F00;"></span>
 <br /><input name="pmSubmit" type="submit" value="Submit" onclick="profile.privateMessage(event);" /> or <a href="#" onclick="profile.toggleInteractContainers('private_message');">Close</a>
 <span id="pmFormProcessGif" style="display:none;"><img class="priv_mes" src="../WIAdmin/WIMedia/Img/loading.gif" width="28" height="10" alt="Loading" /></span></form>
 </div>
 <!-- END DIV that contains the Private Message form -->
 <div class="interactContainers" id="friend_requests" style="background-color:#FFF; height:240px; overflow:auto;">
 <div align="right"><a href="#" onclick="return false" onmousedown="profile.toggleInteractContainers('friend_requests');">close window</a>     </div>
 <h3>The following people are requesting you as a friend</h3>
 </div>
 
 
 
 
 </div>
 
 
 </div>
 <div id="tabs-2">
 
 Messages
 <!-- start of messages tab -->
 <?php if($userId === $friendId)
 {?>
 <?php include_once 'WIInc/messages_tabbed.php'; ?>
 <?php
 }else
 {
 }
 ?>
 </div>
 
 </div>
 |