// last 10 results for NYY
var data = new Array(9);
data[0] = ['Sun 9/25','BOS','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_25_bosmlb_nyamlb_1&mode=box">W 6-2</a>','Burnett (W)'];
data[1] = ['Sun 9/25','BOS','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_25_bosmlb_nyamlb_2&mode=box">L 4-7</a>','Proctor (L)'];
data[2] = ['Mon 9/26','@ TB','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_26_nyamlb_tbamlb_1&mode=box">L 2-5</a>','Noesi (L)'];
data[3] = ['Tue 9/27','@ TB','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_27_nyamlb_tbamlb_1&mode=box">L 3-5</a>','Soriano (L)'];
data[4] = ['Wed 9/28','@ TB','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_28_nyamlb_tbamlb_1&mode=box">L 7-8</a>','Proctor (L)'];
data[5] = ['Fri 9/30','DET','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_09_30_detmlb_nyamlb_1&mode=box">W 9-3</a>','Nova (W)'];
data[6] = ['Sun 10/2','DET','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_10_02_detmlb_nyamlb_1&mode=box">L 3-5</a>','Garcia (L)'];
data[7] = ['Mon 10/3','@ DET','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_10_03_nyamlb_detmlb_1&mode=box">L 4-5</a>','Soriano (L)'];
data[8] = ['Tue 10/4','@ DET','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_10_04_nyamlb_detmlb_1&mode=box">W 10-1</a>','Burnett (W)'];
data[9] = ['Thu 10/6','DET','<a href="http://mlb.mlb.com/mlb/gameday/index.jsp?gid=2011_10_06_detmlb_nyamlb_1&mode=box">L 2-3</a>','Nova (L)'];
//

document.write ('<div>')
document.write ('<table class="schedule" align="center" cellspacing="0"><tbody>')

for (var i=0; i<data.length; i++) {
	document.write ('<tr>');
	document.write ('<td class="left">' + data[i][0] + '&nbsp;&nbsp;</td>');
	for (var j=1; j<data[i].length; j++) {
		document.write ('<td class="left">' + data[i][j] + '&nbsp;&nbsp;</td>');
		}
	document.write ('</tr>');
	if ( i < data.length - 1 ) {
		var team1 = data[i][1].replace("@","");
		var team2 = data[i+1][1].replace("@","");
		if ( team1 != team2 ) { 
			document.write ('<tr>');
			document.write ('<td></td>');
			document.write ('<td colspan=3><hr style="border-top:2px dotted silver;border-bottom:0;"></td>');
			document.write ('</tr>');
			}	
		}
	}

document.write ('</tbody></table>')
document.write ('</div>')
document.write ('<div align="center"><p><a href="http://newyork.yankees.mlb.com/schedule/sortable.jsp?c_id=nyy&year=2011">Game-By-Game Results</a></div>')


