	var standings_rs_alc =
[{
	w: '58',
	elim: '-',
	rs: '473',
	div: 'alc',
	gameid: '2010_07_31_oakmlb_chamlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_oakmlb_chamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100731&content_id=12837314&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '19-12',
	xtr: '2-4',
	nextg: '7/31 vs OAK, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_oakmlb_chamlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '19-10',
	ra: '419',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_oakmlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12827262&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '32-19',
	code: 'cws',
	pct: '.569',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '17-20',
	vsE: '7-11',
	clinch: '',
	vsL: '14-11',
	vsR: '44-33',
	xwl: '57-45',
	l: '44',
	strk: 'W5',
	lastg: '7/30 vs OAK, W 6-1',
	interleague: '15-3',
	road: '26-25',
	games_back_wildcard: null,
	team: 'Chicago'
}, {
	w: '57',
	elim: '59',
	rs: '510',
	div: 'alc',
	gameid: '2010_07_31_seamlb_minmlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_seamlb_minmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12835940&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '8-2',
	onerun: '17-16',
	xtr: '5-3',
	nextg: '7/31 vs SEA, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_seamlb_minmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '10-5',
	ra: '425',
	gb: '1.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_seamlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12825374&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '53',
	home: '31-20',
	code: 'min',
	pct: '.553',
	league_sensitive_team_name: 'Minnesota',
	vsC: '27-15',
	vsE: '12-16',
	clinch: '',
	vsL: '20-16',
	vsR: '37-30',
	xwl: '60-43',
	l: '46',
	strk: 'W6',
	lastg: '7/30 vs SEA, W 5-3',
	interleague: '8-10',
	road: '26-26',
	games_back_wildcard: '7.5',
	team: 'Minnesota'
}, {
	w: '52',
	elim: '55',
	rs: '449',
	div: 'alc',
	gameid: '2010_07_31_detmlb_bosmlb_1',
	status: 'I',
	pre: null,
	last10: '4-6',
	onerun: '12-14',
	xtr: '3-3',
	nextg: '7/31 @ BOS, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_detmlb_bosmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '14-14',
	ra: '467',
	gb: '6.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_detmlb_bosmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12804398&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '49',
	home: '35-17',
	code: 'det',
	pct: '.510',
	league_sensitive_team_name: 'Detroit',
	vsC: '16-21',
	vsE: '11-8',
	clinch: '',
	vsL: '18-11',
	vsR: '34-39',
	xwl: '49-53',
	l: '50',
	strk: 'W1',
	lastg: '7/30 @ BOS, W 6-5',
	interleague: '11-7',
	road: '17-33',
	games_back_wildcard: '12.0',
	team: 'Detroit'
}, {
	w: '43',
	elim: '45',
	rs: '445',
	div: 'alc',
	gameid: '2010_07_31_balmlb_kcamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_balmlb_kcamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12824704&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '14-19',
	xtr: '7-3',
	nextg: '7/31 vs BAL,  7:10P',
	vsW: '8-14',
	ra: '556',
	gb: '15.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_balmlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12825362&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '39',
	home: '21-29',
	code: 'kc',
	pct: '.417',
	league_sensitive_team_name: 'Kansas City',
	vsC: '16-22',
	vsE: '11-14',
	clinch: '',
	vsL: '9-15',
	vsR: '34-45',
	xwl: '41-62',
	l: '60',
	strk: 'W1',
	lastg: '7/30 vs BAL, W 7-5',
	interleague: '8-10',
	road: '22-31',
	games_back_wildcard: '21.5',
	team: 'Kansas City'
}, {
	w: '43',
	elim: '44',
	rs: '416',
	div: 'alc',
	gameid: '2010_08_01_clemlb_tormlb_1',
	status: 'S',
	pre: null,
	last10: '3-7',
	onerun: '14-13',
	xtr: '4-3',
	nextg: '8/1 @ TOR,  1:07P',
	vsW: '5-10',
	ra: '504',
	gb: '16.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_31_clemlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100731&content_id=12849852&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '38',
	home: '23-27',
	code: 'cle',
	pct: '.413',
	league_sensitive_team_name: 'Cleveland',
	vsC: '20-18',
	vsE: '13-20',
	clinch: '',
	vsL: '14-18',
	vsR: '29-43',
	xwl: '43-61',
	l: '61',
	strk: 'W1',
	lastg: '7/31 @ TOR, W 2-1',
	interleague: '5-13',
	road: '20-34',
	games_back_wildcard: '22.0',
	team: 'Cleveland'
}]
	var standings_rs_ale =
[{
	w: '65',
	elim: '-',
	rs: '558',
	div: 'ale',
	gameid: '2010_07_31_nyamlb_tbamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_nyamlb_tbamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12822160&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '10-7',
	xtr: '4-2',
	nextg: '7/31 @ TB,  7:10P',
	vsW: '16-8',
	ra: '418',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_nyamlb_tbamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12812762&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '34-16',
	code: 'nyy',
	pct: '.637',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '16-9',
	vsE: '22-13',
	clinch: '',
	vsL: '22-14',
	vsR: '43-23',
	xwl: '64-38',
	l: '37',
	strk: 'L1',
	lastg: '7/30 @ TB, L 2-3',
	interleague: '11-7',
	road: '31-21',
	games_back_wildcard: null,
	team: 'New York'
}, {
	w: '64',
	elim: '60',
	rs: '519',
	div: 'ale',
	gameid: '2010_07_31_nyamlb_tbamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_nyamlb_tbamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12822160&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '8-2',
	onerun: '18-15',
	xtr: '6-3',
	nextg: '7/31 vs NYY,  7:10P',
	vsW: '11-6',
	ra: '392',
	gb: '1.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_nyamlb_tbamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12812762&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '-',
	home: '31-20',
	code: 'tb',
	pct: '.627',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '20-8',
	vsE: '26-13',
	clinch: '',
	vsL: '22-11',
	vsR: '42-27',
	xwl: '64-38',
	l: '38',
	strk: 'W7',
	lastg: '7/30 vs NYY, W 3-2',
	interleague: '7-11',
	road: '33-18',
	games_back_wildcard: '-',
	team: 'Tampa Bay'
}, {
	w: '58',
	elim: '53',
	rs: '537',
	div: 'ale',
	gameid: '2010_07_31_detmlb_bosmlb_1',
	status: 'I',
	pre: null,
	last10: '5-5',
	onerun: '17-17',
	xtr: '4-8',
	nextg: '7/31 vs DET, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_detmlb_bosmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '15-9',
	ra: '471',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_detmlb_bosmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12804398&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '54',
	home: '30-21',
	code: 'bos',
	pct: '.563',
	league_sensitive_team_name: 'Boston',
	vsC: '10-10',
	vsE: '20-21',
	clinch: '',
	vsL: '19-15',
	vsR: '39-30',
	xwl: '58-45',
	l: '45',
	strk: 'L1',
	lastg: '7/30 vs DET, L 5-6',
	interleague: '13-5',
	road: '28-24',
	games_back_wildcard: '6.5',
	team: 'Boston'
}, {
	w: '54',
	elim: '48',
	rs: '486',
	div: 'ale',
	gameid: '2010_08_01_clemlb_tormlb_1',
	status: 'S',
	pre: null,
	last10: '6-4',
	onerun: '13-21',
	xtr: '3-4',
	nextg: '8/1 vs CLE,  1:07P',
	vsW: '10-8',
	ra: '449',
	gb: '12.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_31_clemlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100731&content_id=12849852&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '49',
	home: '27-21',
	code: 'tor',
	pct: '.519',
	league_sensitive_team_name: 'Toronto',
	vsC: '17-15',
	vsE: '20-16',
	clinch: '',
	vsL: '8-15',
	vsR: '46-35',
	xwl: '56-48',
	l: '50',
	strk: 'L1',
	lastg: '7/31 vs CLE, L 1-2',
	interleague: '7-11',
	road: '27-29',
	games_back_wildcard: '11.0',
	team: 'Toronto'
}, {
	w: '32',
	elim: '27',
	rs: '372',
	div: 'ale',
	gameid: '2010_07_31_balmlb_kcamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_balmlb_kcamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12824704&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '2-8',
	onerun: '17-14',
	xtr: '8-3',
	nextg: '7/31 @ KC,  7:10P',
	vsW: '9-13',
	ra: '564',
	gb: '33.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_balmlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12825362&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '28',
	home: '18-33',
	code: 'bal',
	pct: '.311',
	league_sensitive_team_name: 'Baltimore',
	vsC: '6-12',
	vsE: '10-35',
	clinch: '',
	vsL: '10-24',
	vsR: '22-47',
	xwl: '33-70',
	l: '71',
	strk: 'L1',
	lastg: '7/30 @ KC, L 5-7',
	interleague: '7-11',
	road: '14-38',
	games_back_wildcard: '32.5',
	team: 'Baltimore'
}]
	var standings_rs_alw =
[{
	w: '60',
	elim: '-',
	rs: '521',
	div: 'alw',
	gameid: '2010_07_31_texmlb_anamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_texmlb_anamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12815324&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '18-14',
	xtr: '7-5',
	nextg: '7/31 @ LAA,  9:05P',
	vsW: '19-10',
	ra: '429',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_texmlb_anamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12815752&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '36-21',
	code: 'tex',
	pct: '.583',
	league_sensitive_team_name: 'Texas',
	vsC: '18-13',
	vsE: '9-16',
	clinch: '',
	vsL: '19-13',
	vsR: '41-30',
	xwl: '61-42',
	l: '43',
	strk: 'L1',
	lastg: '7/30 @ LAA, L 7-9',
	interleague: '14-4',
	road: '24-22',
	games_back_wildcard: null,
	team: 'Texas'
}, {
	w: '53',
	elim: '51',
	rs: '476',
	div: 'alw',
	gameid: '2010_07_31_texmlb_anamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_texmlb_anamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12815324&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '17-13',
	xtr: '4-4',
	nextg: '7/31 vs TEX,  9:05P',
	vsW: '21-15',
	ra: '497',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_texmlb_anamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12815752&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '47',
	home: '28-24',
	code: 'ana',
	pct: '.505',
	league_sensitive_team_name: 'LA Angels',
	vsC: '11-16',
	vsE: '10-14',
	clinch: '',
	vsL: '15-18',
	vsR: '38-34',
	xwl: '50-55',
	l: '52',
	strk: 'W1',
	lastg: '7/30 vs TEX, W 9-7',
	interleague: '11-7',
	road: '25-28',
	games_back_wildcard: '12.5',
	team: 'Los Angeles'
}, {
	w: '51',
	elim: '52',
	rs: '427',
	div: 'alw',
	gameid: '2010_07_31_oakmlb_chamlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_oakmlb_chamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100731&content_id=12837314&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '15-10',
	xtr: '4-6',
	nextg: '7/31 @ CWS, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_oakmlb_chamlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '16-15',
	ra: '415',
	gb: '8.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_oakmlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12827262&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '48',
	home: '30-22',
	code: 'oak',
	pct: '.500',
	league_sensitive_team_name: 'Oakland',
	vsC: '13-9',
	vsE: '14-17',
	clinch: '',
	vsL: '13-15',
	vsR: '38-36',
	xwl: '52-50',
	l: '51',
	strk: 'L2',
	lastg: '7/30 @ CWS, L 1-6',
	interleague: '8-10',
	road: '21-29',
	games_back_wildcard: '13.0',
	team: 'Oakland'
}, {
	w: '39',
	elim: '38',
	rs: '344',
	div: 'alw',
	gameid: '2010_07_31_seamlb_minmlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_seamlb_minmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12835940&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '13-20',
	xtr: '3-9',
	nextg: '7/31 @ MIN, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_seamlb_minmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '8-24',
	ra: '457',
	gb: '21.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_seamlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12825374&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '34',
	home: '24-28',
	code: 'sea',
	pct: '.375',
	league_sensitive_team_name: 'Seattle',
	vsC: '11-18',
	vsE: '11-14',
	clinch: '',
	vsL: '10-23',
	vsR: '29-42',
	xwl: '39-65',
	l: '65',
	strk: 'L5',
	lastg: '7/30 @ MIN, L 3-5',
	interleague: '9-9',
	road: '15-37',
	games_back_wildcard: '26.0',
	team: 'Seattle'
}]
	var standings_rs_nlc =
[{
	w: '57',
	elim: '-',
	rs: '453',
	div: 'nlc',
	gameid: '2010_07_31_pitmlb_slnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_pitmlb_slnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12829790&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '17-16',
	xtr: '5-5',
	nextg: '7/31 vs PIT,  7:15P',
	vsW: '11-14',
	ra: '382',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_pitmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12814060&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '35-16',
	code: 'stl',
	pct: '.553',
	league_sensitive_team_name: 'St. Louis',
	vsC: '23-18',
	vsE: '14-8',
	clinch: '',
	vsL: '19-16',
	vsR: '38-30',
	xwl: '59-44',
	l: '46',
	strk: 'W1',
	lastg: '7/30 vs PIT, W 1-0',
	interleague: '9-6',
	road: '22-30',
	games_back_wildcard: null,
	team: 'St. Louis'
}, {
	w: '57',
	elim: '59',
	rs: '510',
	div: 'nlc',
	gameid: '2010_07_31_atlmlb_cinmlb_1',
	status: 'I',
	pre: null,
	last10: '5-5',
	onerun: '17-18',
	xtr: '7-7',
	nextg: '7/31 vs ATL, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_atlmlb_cinmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '8-8',
	ra: '443',
	gb: '0.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_atlmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12832444&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '57',
	home: '31-23',
	code: 'cin',
	pct: '.548',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '29-17',
	vsE: '12-15',
	clinch: '',
	vsL: '18-15',
	vsR: '39-32',
	xwl: '59-45',
	l: '47',
	strk: 'L1',
	lastg: '7/30 vs ATL, L 4-6',
	interleague: '8-7',
	road: '26-24',
	games_back_wildcard: '2.0',
	team: 'Cincinnati'
}, {
	w: '48',
	elim: '50',
	rs: '486',
	div: 'nlc',
	gameid: '2010_07_31_milmlb_houmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_milmlb_houmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12813936&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '16-11',
	xtr: '4-3',
	nextg: '7/31 @ HOU,  7:05P',
	vsW: '9-11',
	ra: '560',
	gb: '9.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_milmlb_houmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12813800&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '48',
	home: '24-28',
	code: 'mil',
	pct: '.462',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '21-25',
	vsE: '9-14',
	clinch: '',
	vsL: '14-19',
	vsR: '34-37',
	xwl: '45-59',
	l: '56',
	strk: 'L3',
	lastg: '7/30 @ HOU, L 0-5',
	interleague: '9-6',
	road: '24-28',
	games_back_wildcard: '11.0',
	team: 'Milwaukee'
}, {
	w: '46',
	elim: '49',
	rs: '432',
	div: 'nlc',
	gameid: '2010_07_31_chnmlb_colmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_chnmlb_colmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100731&content_id=12846752&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '13-22',
	xtr: '4-5',
	nextg: '7/31 @ COL,  8:10P',
	vsW: '11-6',
	ra: '487',
	gb: '11.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_chnmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100731&content_id=12837966&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '47',
	home: '26-27',
	code: 'chc',
	pct: '.447',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '19-30',
	vsE: '8-11',
	clinch: '',
	vsL: '17-18',
	vsR: '29-39',
	xwl: '46-57',
	l: '57',
	strk: 'L3',
	lastg: '7/30 @ COL, L 2-17',
	interleague: '8-10',
	road: '20-30',
	games_back_wildcard: '12.5',
	team: 'Chicago'
}, {
	w: '43',
	elim: '47',
	rs: '369',
	div: 'nlc',
	gameid: '2010_07_31_milmlb_houmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_milmlb_houmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12813936&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '10-11',
	xtr: '6-2',
	nextg: '7/31 vs MIL,  7:05P',
	vsW: '9-19',
	ra: '495',
	gb: '13.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_milmlb_houmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12813800&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '45',
	home: '24-29',
	code: 'hou',
	pct: '.422',
	league_sensitive_team_name: 'Houston',
	vsC: '26-20',
	vsE: '5-8',
	clinch: '',
	vsL: '13-12',
	vsR: '30-47',
	xwl: '38-64',
	l: '59',
	strk: 'W3',
	lastg: '7/30 vs MIL, W 5-0',
	interleague: '3-12',
	road: '19-30',
	games_back_wildcard: '15.0',
	team: 'Houston'
}, {
	w: '36',
	elim: '40',
	rs: '357',
	div: 'nlc',
	gameid: '2010_07_31_pitmlb_slnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_pitmlb_slnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12829790&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '14-17',
	xtr: '3-4',
	nextg: '7/31 @ STL,  7:15P',
	vsW: '8-14',
	ra: '541',
	gb: '20.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_pitmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12814060&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '38',
	home: '23-26',
	code: 'pit',
	pct: '.353',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '21-29',
	vsE: '5-10',
	clinch: '',
	vsL: '15-17',
	vsR: '21-49',
	xwl: '33-69',
	l: '66',
	strk: 'L2',
	lastg: '7/30 @ STL, L 0-1',
	interleague: '2-13',
	road: '13-40',
	games_back_wildcard: '22.0',
	team: 'Pittsburgh'
}]
	var standings_rs_nle =
[{
	w: '59',
	elim: '-',
	rs: '473',
	div: 'nle',
	gameid: '2010_07_31_atlmlb_cinmlb_1',
	status: 'I',
	pre: null,
	last10: '5-5',
	onerun: '15-14',
	xtr: '5-5',
	nextg: '7/31 @ CIN, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_atlmlb_cinmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '13-10',
	ra: '396',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_atlmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12832444&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '34-13',
	code: 'atl',
	pct: '.578',
	league_sensitive_team_name: 'Atlanta',
	vsC: '18-8',
	vsE: '19-19',
	clinch: '',
	vsL: '17-17',
	vsR: '42-26',
	xwl: '59-43',
	l: '43',
	strk: 'W1',
	lastg: '7/30 @ CIN, W 6-4',
	interleague: '9-6',
	road: '25-30',
	games_back_wildcard: null,
	team: 'Atlanta'
}, {
	w: '56',
	elim: '57',
	rs: '482',
	div: 'nle',
	gameid: '2010_07_31_phimlb_wasmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_phimlb_wasmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12830898&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '8-2',
	onerun: '16-10',
	xtr: '8-5',
	nextg: '7/31 @ WSH,  7:05P',
	vsW: '12-7',
	ra: '435',
	gb: '3.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_phimlb_wasmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12828018&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '57',
	home: '34-18',
	code: 'phi',
	pct: '.544',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '19-14',
	vsE: '15-18',
	clinch: '',
	vsL: '12-13',
	vsR: '44-34',
	xwl: '56-47',
	l: '47',
	strk: 'L1',
	lastg: '7/30 @ WSH, L 1-8',
	interleague: '10-8',
	road: '22-29',
	games_back_wildcard: '2.5',
	team: 'Philadelphia'
}, {
	w: '52',
	elim: '53',
	rs: '467',
	div: 'nle',
	gameid: '2010_07_31_flomlb_sdnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_flomlb_sdnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12818020&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '17-18',
	xtr: '2-6',
	nextg: '7/31 @ SD,  8:35P',
	vsW: '15-18',
	ra: '451',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_flomlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12817800&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '53',
	home: '28-26',
	code: 'fla',
	pct: '.505',
	league_sensitive_team_name: 'Florida',
	vsC: '9-7',
	vsE: '21-18',
	clinch: '',
	vsL: '20-12',
	vsR: '32-39',
	xwl: '53-50',
	l: '51',
	strk: 'W2',
	lastg: '7/30 @ SD, W 4-2',
	interleague: '7-8',
	road: '24-25',
	games_back_wildcard: '6.5',
	team: 'Florida'
}, {
	w: '52',
	elim: '53',
	rs: '444',
	div: 'nle',
	gameid: '2010_07_31_arimlb_nynmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_arimlb_nynmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12812118&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '11-21',
	xtr: '4-8',
	nextg: '7/31 vs ARI,  7:10P',
	vsW: '11-16',
	ra: '407',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_arimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12812130&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '53',
	home: '32-18',
	code: 'nym',
	pct: '.505',
	league_sensitive_team_name: 'NY Mets',
	vsC: '9-10',
	vsE: '19-20',
	clinch: '',
	vsL: '15-13',
	vsR: '37-38',
	xwl: '56-47',
	l: '51',
	strk: 'L1',
	lastg: '7/30 vs ARI, L 6-9',
	interleague: '13-5',
	road: '20-33',
	games_back_wildcard: '6.5',
	team: 'New York'
}, {
	w: '45',
	elim: '46',
	rs: '422',
	div: 'nle',
	gameid: '2010_07_31_phimlb_wasmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_phimlb_wasmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12830898&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '16-19',
	xtr: '1-6',
	nextg: '7/31 vs PHI,  7:05P',
	vsW: '10-13',
	ra: '468',
	gb: '14.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_phimlb_wasmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12828018&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '46',
	home: '28-22',
	code: 'was',
	pct: '.437',
	league_sensitive_team_name: 'Washington',
	vsC: '11-14',
	vsE: '19-18',
	clinch: '',
	vsL: '11-15',
	vsR: '34-43',
	xwl: '47-56',
	l: '58',
	strk: 'W2',
	lastg: '7/30 vs PHI, W 8-1',
	interleague: '5-13',
	road: '17-36',
	games_back_wildcard: '13.5',
	team: 'Washington'
}]
	var standings_rs_nlw =
[{
	w: '60',
	elim: '-',
	rs: '440',
	div: 'nlw',
	gameid: '2010_07_31_flomlb_sdnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_flomlb_sdnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12818020&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '20-12',
	xtr: '7-5',
	nextg: '7/31 vs FLA,  8:35P',
	vsW: '21-16',
	ra: '347',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_flomlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12817800&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '32-21',
	code: 'sd',
	pct: '.594',
	league_sensitive_team_name: 'San Diego',
	vsC: '15-5',
	vsE: '15-14',
	clinch: '',
	vsL: '19-10',
	vsR: '41-31',
	xwl: '61-40',
	l: '41',
	strk: 'L1',
	lastg: '7/30 vs FLA, L 2-4',
	interleague: '9-6',
	road: '28-20',
	games_back_wildcard: null,
	team: 'San Diego'
}, {
	w: '59',
	elim: '58',
	rs: '465',
	div: 'nlw',
	gameid: '2010_07_31_lanmlb_sfnmlb_1',
	status: 'I',
	pre: null,
	last10: '7-3',
	onerun: '16-16',
	xtr: '7-6',
	nextg: '7/31 vs LAD, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_lanmlb_sfnmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '16-21',
	ra: '384',
	gb: '2.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_lanmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12834752&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '-',
	home: '31-20',
	code: 'sf',
	pct: '.567',
	league_sensitive_team_name: 'San Francisco',
	vsC: '19-7',
	vsE: '17-9',
	clinch: '',
	vsL: '15-13',
	vsR: '44-32',
	xwl: '61-43',
	l: '45',
	strk: 'W1',
	lastg: '7/30 vs LAD, W 6-5',
	interleague: '7-8',
	road: '28-25',
	games_back_wildcard: '-',
	team: 'San Francisco'
}, {
	w: '54',
	elim: '54',
	rs: '458',
	div: 'nlw',
	gameid: '2010_07_31_lanmlb_sfnmlb_1',
	status: 'I',
	pre: null,
	last10: '5-5',
	onerun: '18-14',
	xtr: '6-3',
	nextg: '7/31 @ SF, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_07_31_lanmlb_sfnmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '25-11',
	ra: '450',
	gb: '7.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_lanmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12834752&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '55',
	home: '32-21',
	code: 'la',
	pct: '.524',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '17-15',
	vsE: '8-12',
	clinch: '',
	vsL: '14-18',
	vsR: '40-31',
	xwl: '52-51',
	l: '49',
	strk: 'L3',
	lastg: '7/30 @ SF, L 5-6',
	interleague: '4-11',
	road: '22-28',
	games_back_wildcard: '4.5',
	team: 'Los Angeles'
}, {
	w: '53',
	elim: '53',
	rs: '495',
	div: 'nlw',
	gameid: '2010_07_31_chnmlb_colmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_chnmlb_colmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100731&content_id=12846752&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '2-8',
	onerun: '15-18',
	xtr: '6-5',
	nextg: '7/31 vs CHC,  8:10P',
	vsW: '21-16',
	ra: '453',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_chnmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100731&content_id=12837966&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '54',
	home: '33-18',
	code: 'col',
	pct: '.515',
	league_sensitive_team_name: 'Colorado',
	vsC: '11-13',
	vsE: '12-15',
	clinch: '',
	vsL: '20-16',
	vsR: '33-34',
	xwl: '56-47',
	l: '50',
	strk: 'W2',
	lastg: '7/30 vs CHC, W 17-2',
	interleague: '9-6',
	road: '20-32',
	games_back_wildcard: '5.5',
	team: 'Colorado'
}, {
	w: '38',
	elim: '38',
	rs: '461',
	div: 'nlw',
	gameid: '2010_07_31_arimlb_nynmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_07_31_arimlb_nynmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100730&content_id=12812118&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '12-15',
	xtr: '3-7',
	nextg: '7/31 @ NYM,  7:10P',
	vsW: '10-29',
	ra: '585',
	gb: '23.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_07_30_arimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100730&content_id=12812130&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '39',
	home: '24-29',
	code: 'ari',
	pct: '.369',
	league_sensitive_team_name: 'Arizona',
	vsC: '10-16',
	vsE: '12-11',
	clinch: '',
	vsL: '7-17',
	vsR: '31-48',
	xwl: '41-62',
	l: '65',
	strk: 'W1',
	lastg: '7/30 @ NYM, W 9-6',
	interleague: '6-9',
	road: '14-36',
	games_back_wildcard: '20.5',
	team: 'Arizona'
}]

/**
 * @desc function star_mlb_standings()
 * The function star_mlb_standings() builds a small table of current standings
 *   and outputs it as a table inside the given html object.
 *
 * @param string division
 * @param string team
 */
function star_mlb_standings() {
	// Deal with any passed arguments.
	if (arguments[0] != null && arguments[0] != 'undefined' && in_array(arguments[0], ["alc","ale","alw","nlc","nle","nlw"])) {
		star_mlb_options['division']	= arguments[0];
	}
	if (arguments[1] != null && arguments[1] != 'undefined' && in_array(arguments[1], ["oak","ana","hou","tor","atl","mil","stl","chc","tb","ari","la","sf","cle","sea","fla","nym","was","bal","sd","phi","pit","tex","cin","bos","col","kc","det","min","cws","nyy"])) {
		star_mlb_options['team']		= arguments[1];
	}

	var showDivs	= true;
	var showSubHead	= true;

	// Build team mascots array.
	var mascots	= new Object;
	mascots['oak']	= 'A\'s';
	mascots['ana']	= 'Angels';
	mascots['hou']	= 'Astros';
	mascots['tor']	= 'Blue Jays';
	mascots['atl']	= 'Braves';
	mascots['mil']	= 'Brewers';
	mascots['stl']	= 'Cardinals';
	mascots['chc']	= 'Cubs';
	mascots['tb']	= 'Devil Rays';
	mascots['ari']	= 'Diamondbacks';
	mascots['la']	= 'Dodgers';
	mascots['sf']	= 'Giants';
	mascots['cle']	= 'Indians';
	mascots['sea']	= 'Mariners';
	mascots['fla']	= 'Marlins';
	mascots['nym']	= 'Mets';
	mascots['was']	= 'Nationals';
	mascots['bal']	= 'Orioles';
	mascots['sd']	= 'Padres';
	mascots['phi']	= 'Phillies';
	mascots['pit']	= 'Pirates';
	mascots['tex']	= 'Rangers';
	mascots['cin']	= 'Reds';
	mascots['bos']	= 'Red Sox';
	mascots['col']	= 'Rockies';
	mascots['kc']	= 'Royals';
	mascots['det']	= 'Tigers';
	mascots['min']	= 'Twins';
	mascots['cws']	= 'White Sox';
	mascots['nyy']	= 'Yankees';

	// Get the object to contain the standings content.
	var standingsBody	= document.getElementById('star_mlb_standings_body');

	// Get the object to contain the standings head.
	var standingsHead	= document.getElementById('star_mlb_standings_head');

	// Get the variable that contains the current standings and the head.
	var standings_rs	= '';
	var standings_head	= '';

	// Deal with the division.
	var division	= star_mlb_options['division'];
	if (division == null || division == 'undefined') {
		division	= 'nlc';
	}

	// Deal with the team.
	var team		= star_mlb_options['team'];

	switch (division) {
		// American League East.
		case 'ale':
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="American League">AL</acronym> East';
		break;

		// American League Central.
		case 'alc':
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="American League">AL</acronym> Central';
		break;

		// American League West.
		case 'alw':
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="American League">AL</acronym> West';
		break;

		// National League East.
		case 'nle':
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="National League">NL</acronym> East';
		break;

		// National League West.
		case 'nlw':
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="National League">NL</acronym> West';
		break;

		// National League Central.
		case 'nlc':
		default:
			standings_rs	= eval('standings_rs_' + division);
			standings_head	= '<acronym title="National League">NL</acronym> Central';
		break;
	}

	if (!showSubHead) {
		standings_head	= '';
	}

	// Build the links.
	var standings	= '';
	if (showDivs) {
		standings	+= '<div class="center">';
		if (division == 'alw') {
			standings	+= '<acronym title="American League West">ALW</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'alw\');"><acronym title="American League West">ALW</acronym></a>\n';
		}
		if (division == 'alc') {
			standings	+= '<acronym title="American League Central">ALC</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'alc\');"><acronym title="American League Central">ALC</acronym></a>\n';
		}
		if (division == 'ale') {
			standings	+= '<acronym title="American League East">ALE</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'ale\');"><acronym title="American League East">ALE</acronym></a>\n';
		}
		if (division == 'nlw') {
			standings	+= '<acronym title="National League West">NLW</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'nlw\');"><acronym title="National League West">NLW</acronym></a>\n';
		}
		if (division == 'nlc') {
			standings	+= '<acronym title="National League Central">NLC</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'nlc\');"><acronym title="National League Central">NLC</acronym></a>\n';
		}
		if (division == 'nle') {
			standings	+= '<acronym title="National League East">NLE</acronym>\n';
		} else {
			standings	+= '<a href="javascript:star_mlb_standings(\'nle\');"><acronym title="National League East">NLE</acronym></a><br />\n';
		}
		standings	+= '</div>';
	}

	// Start the standings table.
	standings		+= '<table class="ruler"><thead><tr><th>Team</th><th><acronym title="Wins">W</acronym></th><th><acronym title="Losses">L</acronym></th><th><acronym title="Winning Percentage">Pct.</acronym></th><th><acronym title="Games Back">GB</acronym></th></tr></thead><tbody>';

	// Iterate through each of the teams, displaying their data.
	for (i = 0; i < standings_rs.length; i++) {
		// Bold the selected team.
		if (standings_rs[i].code == team) {
			standings_rs[i].league_sensitive_team_name	= standings_rs[i].league_sensitive_team_name;
		}

		// Check URL for last game wrap.
		if (standings_rs[i].wrap != null) {
			var url	= '<a href="http://mlb.mlb.com/news/boxscore.jsp?gid=' + standings_rs[i].gameid + '" title="Last game: ' + standings_rs[i].lastg + '">' + standings_rs[i].league_sensitive_team_name + '</a>';
		} else {
			var url	= '<span title="Last game: ' + standings_rs[i].lastg + '">' + standings_rs[i].league_sensitive_team_name + '</span>';
		}
		standings	+= '<tr>';
		standings	+= '<td>' + url + '</td>';
		standings	+= '<td>' + standings_rs[i].w + '</td>';
		standings	+= '<td>' + standings_rs[i].l + '</td>';
		standings	+= '<td>' + standings_rs[i].pct + '</td>';
		standings	+= '<td>' + standings_rs[i].gb + '</td>';
		standings	+= '</tr>';
	}

	// Close the table.
	standings	+= '</tbody></table>';

	// Include a link to full standings.
	standings	+= '<a class="bold" href="http://mlb.mlb.com/mlb/standings/index.jsp">Expanded Standings</a>';

	// Set the standings object to the standings table.
	standingsBody.innerHTML	= standings;
	standingsHead.innerHTML	= standings_head;
	if (typeof(tableruler) == 'function') {
		tableruler();
	}
}

function in_array(needle, haystack, strict) {
	// http://kevin.vanzonneveld.net
	// +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
	// *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);
	// *     returns 1: true

	var found = false, key, strict = !!strict;

	for (key in haystack) {
		if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
			found	= true;
			break;
		}
	}

	return found;
}

function addLoadEvent(func) {
	var oldonload	= window.onload;
	if (typeof window.onload != 'function') {
		window.onload	= func;
	} else {
		window.onload	= function() {
			if (oldonload) {
				oldonload();
			}
			func();
		}
	}
}

var star_mlb_options = new Object;
star_mlb_options['division']	= 'nle';
star_mlb_options['team']		= 'phi';
addLoadEvent(star_mlb_standings);
