function fetchTeamIntro()
 {
     // <!--"teamIcon" is the intro paragraph with polar-bear character background image -->
     $code .= '<div id="teamPanel"><div id="teamIcon">';
     $code .= $this->commonTeam['TeamIntro'] . '<p><a ' . (!isset($_POST['fb_sig_logged_out_facebook']) ? 'requirelogin="******"' : '') . ' href="?p=signup' . (isset($_GET['referid']) ? '&referid=' . $_GET['referid'] : '') . '" class="btn_1 btn_1_lg">' . $this->commonTeam['JoinTheTeam'] . '</a></p>
           <div class="pointsTable">
               <table cellspacing="0">
                 <tbody>';
     require_once PATH_CORE . '/classes/challenges.class.php';
     $ct = new ChallengeTable($this->db);
     $challenges = $ct->getTitlesAndPointsByShortName(array('postStory', 'invite', 'shareStory', 'friendSignup', 'vote', 'comment', 'blog', 'addAppTab'));
     $code .= '<tr>' . $this->buildLegendEntry('postStory', $challenges['postStory']) . '</tr>' . '<tr>' . $this->buildLegendEntry('stories', $challenges['vote']) . '</tr>' . '<tr>' . $this->buildLegendEntry('stories', $challenges['shareStory']) . '</tr>' . '<tr>' . $this->buildLegendEntry('invite', $challenges['invite']) . '</tr>';
     $code .= '</tbody>
               </table>
     	</div><!--end "pointsTable"-->		';
     $code .= '</div><!--end "teamIcon"--></div><!--end "teamPanel"-->';
     return $code;
 }
 function fetchUpperBox()
 {
     $code = '';
     $code .= '<div id="teamPanel"><div id="teamIcon" class="panel_block">';
     // video - to do - ask Zibby if there are two videos, or only one...
     $code .= $this->commonTeam['IntroThumb'];
     // includes thumb div with video or image or whatever
     $code .= '<div class="storyBlockWrap">';
     if ($this->page->session->isMember) {
         // member just joined
         if (isset($_GET['newsignup'])) {
             $code .= $this->commonTeam['NewSignupIntro'];
         } else {
             // pre-existing member
             $code .= $this->commonTeam['MemberIntro'];
         }
         // to do - automate this list???
         // removed from nonMember view
         $code .= '<p class="bold">Earn points from your story activity</p>';
         require_once PATH_CORE . '/classes/challenges.class.php';
         $ct = new ChallengeTable($this->db);
         $challenges = $ct->getTitlesAndPointsByShortName(array('postStory', 'invite', 'shareStory', 'friendSignup', 'vote', 'comment', 'blog', 'addAppTab', 'addBookmarkTool'));
         $code .= '<div class="pointsTable">
               <table cellspacing="0">
                 <tbody>';
         $code .= '<tr>' . $this->teamObj->buildLegendEntry('postStory', $challenges['postStory']) . $this->teamObj->buildLegendEntry('stories', $challenges['vote']) . '</tr>';
         $code .= '<tr>' . $this->teamObj->buildLegendEntry('stories', $challenges['shareStory']) . $this->teamObj->buildLegendEntry('challenges', $challenges['addBookmarkTool']) . '</tr>';
         /*
         	                        '<td><a href="#" onclick="switchPage(\'postStory\');return false;">Post a story</a></td>'.
         	                        '<td class="pointValue">Earn 10 <span class="pts">pts</span></td>'.
         	                        '<td><a href="#" onclick="switchPage(\'stories\');return false;">Vote on stories</a></td>'.
         	                        '<td class="pointValue">Earn 5 <span class="pts">pts</span></td>'.
         	                      '</tr>'.
         	                      '<tr>'.
         	                        '<td><a href="#" onclick="switchPage(\'stories\');return false;">Share a story</a></td>'.
         	                        '<td class="pointValue">Earn 25 <span class="pts">pts</span></td>'.
         	                        '<td><a href="#" onclick="switchPage(\'postStory\');return false;">Add bookmark tool</a></td>'.
         	                        '<td class="pointValue">Earn 25 <span class="pts">pts</span></td>'.
         	                      '</tr>'.
         */
         $code .= '</tbody>' . '</table>' . '</div><!--end "pointsTable"-->';
     } else {
         $code .= $this->commonTeam['NonMemberIntro'];
     }
     $code .= '</div><!--end "storyBlockWrap"-->';
     $code .= '</div><!--end "team bob panel_block"--></div><!--end "teamPanel"-->';
     return $code;
 }