function drawScores(gamedate,domObject,level)
{
  stringdate = "" + gamedate;
  $.getJSON("/" + stringdate.substring(0,4) + "/" + stringdate.substring(4,6)  + "/" + stringdate.substring(6,8)  + "/games.js", function(aJSON) {
    var scoreboard = ""
    //$.each(aJSON['mlb'], function(i,item) {
      
      subset = aJSON.mlb;
      if (level=="aaa")
      {
        subset = aJSON.aaa;
      }
      else
      {
        subset = aJSON.mlb;
      }
      
      $.each(subset, function(j,gitem) {
        reported_inn = gitem.inning;
        if (gitem.status)
        {
          if (gitem.status=="F" || gitem.status=="FM" || gitem.status=="FT")
          {
            reported_inn = "F";
          }
        }
        //if(gitem.inning>0)
        if(2>1)
        {
        scoreboard = scoreboard + "<li id='scoreboard" + gitem.id + "' style='clear:both; '><div class='inning'><a href='/game/" + gitem.date + "/" + gitem.id +"'><span class='sparkline' style='padding-left:10px;' >" + gitem.prob_summary + "</span></a><!--" + reported_inn + "--></div><div style='margin-bottom: 12px;'><div class='home_team' '><div class='score'>" + gitem.home_runs + "</div> <a href='/game/" + gitem.date + "/" + gitem.id +"/home' style='color:#83881'>" + gitem.home_team_name + "</a></div> <div class='away_team' ><div class='score'>" + gitem.away_runs + "</div> <a href='/game/" + gitem.date + "/" + gitem.id +"/away' style='color:#A99577'>" + gitem.away_team_name + "</a></div></div></li>";
        }
      //end each game loop for aJSON
      //});
    //end each level in aJSON loop
    });
  
  $(domObject).html("<ul class='score_ul'>" + scoreboard + "</ul>");
  
  $(domObject + " .sparkline").sparkline('html', {type: 'bar',chartRangeMax: 50, chartRangeMin: -50, barWidth:2, barColor:'#AFB9AC', negBarColor: '#D1B994',  lineColor: '#AFB9AC', fillColor: '#E3E7E3', maxSpotColor:'', minSpotColor: '', height: '24px', spotColor: '#AFB9AC', zeroAxis: 1}).css("text-align","left");  
   
  //end getJSON for other games
  });
  
}