function showBlockActionsMenu($sCaption, $bNoDB = false)
 {
     global $logged;
     global $p_arr;
     $oTemplMenu = new BxTemplMenu($this->oTemplConfig);
     if (!$logged['member'] or !$p_arr) {
         return '';
     }
     $memberID = (int) $_COOKIE['memberID'];
     $profileID = (int) $p_arr['ID'];
     if ($memberID == $profileID) {
         return '';
     }
     /* * * * Ray IM Integration * * * */
     $check_res_im = checkAction($memberID, ACTION_ID_USE_RAY_IM);
     if (getParam('enable_ray') == 'on' and get_user_online_status($profileID) and $check_res_im[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED) {
         $sSndPassword = getPassword($memberID);
         $IMNow = $oTemplMenu->getActionsMenuItem('action_im.gif', _t('_ChatNow', $p_arr['NickName']), "javascript:void(0);", '', '', "openRayWidget( 'im', 'user', '{$memberID}', '{$sSndPassword}', '{$profileID}' );");
     } else {
         $IMNow = '';
     }
     /* * * * Ray IM Integration [END]* * * */
     $ret = '<div class="menuBlock">';
     $ret .= '<div class="menu_item_block">';
     $ret .= '<div class="menu_item_block_left">';
     $ret .= $oTemplMenu->getActionsMenuItem('action_send.gif', _t('_SendLetter'), "compose.php?ID={$profileID}");
     $ret .= $oTemplMenu->getActionsMenuItem('action_fave.gif', _t('_Fave'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=hot&amp;ID={$profileID}',    '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     $ret .= $oTemplMenu->getActionsMenuItem('action_friends.gif', _t('_Befriend'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=friend&amp;ID={$profileID}', '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     $ret .= $oTemplMenu->getActionsMenuItem('action_greet.gif', _t('_Greet'), "javascript:void(0);", '', '', "window.open( 'greet.php?sendto={$profileID}',                  '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     $ret .= $IMNow;
     if (!$this->oTemplConfig->bAnonymousMode) {
         $ret .= $oTemplMenu->getActionsMenuItem('action_email.gif', _t('_Get E-mail'), "javascript:void(0);", '', '', "window.open( 'freemail.php?ID={$profileID}', '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     }
     $ret .= '</div>';
     $ret .= '<div class="menu_item_block_right">';
     $ret .= $oTemplMenu->getActionsMenuItem('action_photos.gif', $this->getLinkStat('prPhoto', _t('_ProfilePhotos'), $profileID), "photos_gallery.php?ID={$profileID}");
     $ret .= $oTemplMenu->getActionsMenuItem('action_videos.gif', $this->getLinkStat('prVideo', _t('_ProfileVideos'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '{$profileID}' );");
     //				$ret .= $oTemplMenu -> getActionsMenuItem( 'action_videos.gif', _t('_ProfileVideos'),   "javascript:void(0);", '', '', "openRayWidget( 'video', 'player', '$profileID' );" );
     $ret .= $oTemplMenu->getActionsMenuItem('action_music.gif', $this->getLinkStat('prMusic', _t('_ProfileMusic'), $profileID), "javascript:void(0);", '', '', "openRayWidget( 'mp3', 'player', '{$profileID}', '" . getPassword($memberID) . "', '{$memberID}');");
     $ret .= $oTemplMenu->getActionsMenuItem('action_share.gif', _t('_Share'), "javascript:void(0);", '', '', "return launchTellFriendProfile({$profileID});");
     $ret .= $oTemplMenu->getActionsMenuItem('action_report.gif', _t('_Report'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=spam&amp;ID={$profileID}',   '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     $ret .= $oTemplMenu->getActionsMenuItem('action_block.gif', _t('_Block'), "javascript:void(0);", '', '', "window.open( 'list_pop.php?action=block&amp;ID={$profileID}',  '', 'width={$this->oTemplConfig->popUpWindowWidth},height={$this->oTemplConfig->popUpWindowHeight},menubar=no,status=no,resizable=no,scrollbars=yes,toolbar=no,location=no' );");
     $ret .= '</div>';
     $ret .= '<div class="clear_both"></div>';
     $ret .= '</div>';
     $ret .= '</div>';
     if ($bNoDB) {
         return $ret;
     } else {
         echo DesignBoxContent(_t($sCaption), $ret, 1);
     }
 }