def find_gid_for_date(year, month, day, games_page)
      begin 
        results = []
        if games_page
          # look for game listings
          @hp = Hpricot(games_page) 
          a = @hp.at('ul')  
          (a/"a").each do |link|
            # game listings include the 'gid' characters
            if link.inner_html.include?('gid') && link.inner_html.include?(@abrev)
              str = link.inner_html
              results << str[5..str.length-2]
            end
          end
          return results
        end
        puts "No games data found for #{year}, #{month}, #{day}, #{@abrev}."
        return nil
      rescue
        puts "Exception in find_gid_for_date: No games data found for #{year}, #{month}, #{day}, #{@abrev}."
      end
    end
def find_gid_for_date(year, month, day, games_page)
      begin 
        results = []
        if games_page
          # look for game listings
          @hp = Hpricot(games_page) 
          a = @hp.at('ul')  
          (a/"a").each do |link|
            # game listings include the 'gid' characters
            if link.inner_html.include?('gid') && link.inner_html.include?(@abrev)
              str = link.inner_html
              results << str[5..str.length-2]
            end
          end
          return results
        end
        puts "No games data found for #{year}, #{month}, #{day}, #{@abrev}."
        return nil
      rescue
        puts "Exception in find_gid_for_date: No games data found for #{year}, #{month}, #{day}, #{@abrev}."
      end
    end
Returns an array of the game ids associated with the given date and team
 because of double-headers it is possible for one team to play more than one game
 on a single date.
 Each game listing looks like this:
    <li><a href="gid_2009_09_15_kcamlb_detmlb_1/">gid_2009_09_15_kcamlb_detmlb_1/</a></li>