     $(function() {
         $(function() {
             $.ajax({
                 type: "GET",
                 url: "/wp-content/plugins/akismet/training.xml",
                 dataType: "xml",
                 success: function(xml) {

                   /*

                     Markup this generates for every month

                     <div>
                       <h2>Month Name
          <table>
            <tr>
              <td>Field</td>
              <td>Field</td>
              <td>Field</td>
              <td>Field</td>
              <td>Field</td>
            </tr>
          </table>
        </div>

                   */


         // Div container for h2/table
        var container = $('<div></div>');

        // Create the table
        var table = $('<table width="97%" cellpadding="0" cellspacing="0"></table>');
        var firstrow = $('<tr class="chartheadrow"></tr>').appendTo(table);
        $('<td class="charthead"></td>').html($(xml).find('year').text()).appendTo(firstrow);

        // Create rows and append them to the table
        $(xml).find('date').each(function(){

          // Create row
         var row = $('<tr></tr>');
		$('<td></td>').html($(this).text()).appendTo(row); 
         
		 // Generate the columns
        //  var gameArray = ['date'];
        //  for (var i=0;i<gameArray.length;i++) {
		//	$('<td></td>').addClass(gameArray[i]).html($(this).find(gameArray[i]).text()).appendTo(row); 
        //  }

          // Attach row to table
          row.appendTo(table);          
        });

        // Put table in our div container
        table.appendTo(container);

        // Attach our month to the schedule area
        
		container.appendTo('#training');
        $("#training tr:odd").css("background-color", "#a9a290");
                 }
         
             }); //close $.ajax(
         }); //close click(
     }); //close $(

