     $(function() {
         $(function() {
             $.ajax({
                 type: "GET",
                 url: "/wp-content/plugins/akismet/schedule.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>

                   */

       $(xml).find('month').each(function(){

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

        // Attach the header to the container
        $('<h2>' + $(this).attr('id') + '</h2>').appendTo(container);

        // Create the table
        var table = $('<table width="97%" cellpadding="0" cellspacing="0"></table>');
		var firstrow = $('<tr class="chartheadrow"></tr>').appendTo(table);
        $('<td width="130px" class="charthead">Day</td><td width="50px" class="charthead">Date</td><td width="135px" class="charthead">Visitor</td><td width="135px" class="charthead">Home</td><td width="60px" class="charthead">Time</td><td width="71px" class="charthead">Result</td>').appendTo(firstrow);

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

          // Create row
          var row = $('<tr></tr>');

          // Generate the columns
          var gameArray = ['day','date','visitor','home','time','result'];
          for (var i=0;i<gameArray.length;i++) {

            // Generate cell and attach to row
            if ($(this).find('home').text() == 'K-W Braves') {
			$('<td class="away"></td>').addClass(gameArray[i]).html($(this).find(gameArray[i]).text()).appendTo(row); 
			}else {
			$('<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('#schedule');

      }); //close each(
                 }
         
             }); //close $.ajax(
         }); //close click(
     }); //close $(

