function fetchProfileSummaryForProfileBox($fbId = 0, $canvasLink = URL_CANVAS)
 {
     $user = '';
     $userinfo = '';
     require_once PATH_CORE . '/classes/user.class.php';
     UserInfoTable::loadUserFromFbId($this->db, $fbId, &$user, &$userinfo);
     $code = '';
     // to do - strip this down to essential css
     //$code.='<style type="text/css">'.htmlentities(file_get_contents(PATH_FACEBOOK_STYLES.'/default.css', true)).'</style>';
     $css = htmlentities(file_get_contents(PATH_FACEBOOK_STYLES . '/default.css', true));
     $css = preg_replace('/\\s+-(moz|webkit).*/', '', $css);
     $css = str_replace('\\"', "'", $css);
     $code = '<style type="text/css">' . $css . '</style>';
     $code .= '<div id="profileBox">';
     $code .= '<div>';
     $code .= str_replace("{canvasLink}", $canvasLink, $this->commonTeam['ProfileBoxIntro']);
     if ($fbId != 0) {
         $this->setupLibraries();
         $code .= '<h2><fb:name uid="' . $fbId . '" capitalize="true" linked="true" useyou="false" /></h2>';
         $pointsRow = $this->profileSummaryRow("<span class=\"pointValue\">{$user->cachedPointTotal} <span class=\"pts\">points</span></span>\n\t\t\t&nbsp;" . ($showUserLevels ? $this->renderUserLevel($user->userLevel) : ''), '', '', true, true);
         $code .= '<div class="pointsTable_profile">
               <table cellspacing="0">
                 <tbody>
                 ' . $pointsRow . '        
                 </tbody>
               </table>
     			</div><!__end "pointsTable_profile"__>';
     }
     $code .= str_replace("{canvasLink}", $canvasLink, $this->commonTeam['ProfileBoxIntroJoinButton']);
     $code .= '</div><!--end "box"-->';
     //dev for rick
     if ($fbId == 756923320) {
         $code .= date("m-d H:i:s");
     }
     $code .= '</div><!--end profileBox-->';
     return $code;
 }