	var standings_rs_alc =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alc',
	gameid: '2010_04_05_clemlb_chamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs CLE,  2:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'cws',
	pct: '-',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Chicago'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alc',
	gameid: '2010_04_05_clemlb_chamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ CWS,  2:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'cle',
	pct: '-',
	league_sensitive_team_name: 'Cleveland',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Cleveland'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alc',
	gameid: '2010_04_05_detmlb_kcamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ KC,  4:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'det',
	pct: '-',
	league_sensitive_team_name: 'Detroit',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Detroit'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alc',
	gameid: '2010_04_05_detmlb_kcamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs DET,  4:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'kc',
	pct: '-',
	league_sensitive_team_name: 'Kansas City',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Kansas City'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alc',
	gameid: '2010_04_05_minmlb_anamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ LAA, 10:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'min',
	pct: '-',
	league_sensitive_team_name: 'Minnesota',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Minnesota'
}]
	var standings_rs_ale =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'ale',
	gameid: '2010_04_06_balmlb_tbamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/6 @ TB,  7:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'bal',
	pct: '-',
	league_sensitive_team_name: 'Baltimore',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Baltimore'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'ale',
	gameid: '2010_04_04_nyamlb_bosmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/4 vs NYY,  8:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'bos',
	pct: '-',
	league_sensitive_team_name: 'Boston',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Boston'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'ale',
	gameid: '2010_04_04_nyamlb_bosmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/4 @ BOS,  8:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'nyy',
	pct: '-',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'New York'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'ale',
	gameid: '2010_04_06_balmlb_tbamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/6 vs BAL,  7:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'tb',
	pct: '-',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Tampa Bay'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'ale',
	gameid: '2010_04_05_tormlb_texmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ TEX,  2:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'tor',
	pct: '-',
	league_sensitive_team_name: 'Toronto',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Toronto'
}]
	var standings_rs_alw =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alw',
	gameid: '2010_04_05_minmlb_anamlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs MIN, 10:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'ana',
	pct: '-',
	league_sensitive_team_name: 'LA Angels',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Los Angeles'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alw',
	gameid: '2010_04_05_seamlb_oakmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs SEA, 10:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'oak',
	pct: '-',
	league_sensitive_team_name: 'Oakland',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Oakland'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alw',
	gameid: '2010_04_05_seamlb_oakmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ OAK, 10:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'sea',
	pct: '-',
	league_sensitive_team_name: 'Seattle',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Seattle'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'alw',
	gameid: '2010_04_05_tormlb_texmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs TOR,  2:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'tex',
	pct: '-',
	league_sensitive_team_name: 'Texas',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Texas'
}]
	var standings_rs_nlc =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_chnmlb_atlmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ ATL,  4:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'chc',
	pct: '-',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Chicago'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_slnmlb_cinmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs STL,  1:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'cin',
	pct: '-',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Cincinnati'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_sfnmlb_houmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs SF,  7:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'hou',
	pct: '-',
	league_sensitive_team_name: 'Houston',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Houston'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_colmlb_milmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs COL,  2:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'mil',
	pct: '-',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Milwaukee'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_lanmlb_pitmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs LAD,  1:35P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'pit',
	pct: '-',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Pittsburgh'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlc',
	gameid: '2010_04_05_slnmlb_cinmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ CIN,  1:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'stl',
	pct: '-',
	league_sensitive_team_name: 'St. Louis',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'St. Louis'
}]
	var standings_rs_nle =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nle',
	gameid: '2010_04_05_chnmlb_atlmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs CHC,  4:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'atl',
	pct: '-',
	league_sensitive_team_name: 'Atlanta',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Atlanta'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nle',
	gameid: '2010_04_05_flomlb_nynmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ NYM,  1:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'fla',
	pct: '-',
	league_sensitive_team_name: 'Florida',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Florida'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nle',
	gameid: '2010_04_05_flomlb_nynmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs FLA,  1:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'nym',
	pct: '-',
	league_sensitive_team_name: 'NY Mets',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'New York'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nle',
	gameid: '2010_04_05_phimlb_wasmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ WSH,  1:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'phi',
	pct: '-',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Philadelphia'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nle',
	gameid: '2010_04_05_phimlb_wasmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs PHI,  1:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'was',
	pct: '-',
	league_sensitive_team_name: 'Washington',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Washington'
}]
	var standings_rs_nlw =
[{
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlw',
	gameid: '2010_04_05_sdnmlb_arimlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 vs SD,  5:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'ari',
	pct: '-',
	league_sensitive_team_name: 'Arizona',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Arizona'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlw',
	gameid: '2010_04_05_colmlb_milmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ MIL,  2:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'col',
	pct: '-',
	league_sensitive_team_name: 'Colorado',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Colorado'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlw',
	gameid: '2010_04_05_lanmlb_pitmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ PIT,  1:35P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'la',
	pct: '-',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'Los Angeles'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlw',
	gameid: '2010_04_05_sdnmlb_arimlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ ARI,  5:10P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'sd',
	pct: '-',
	league_sensitive_team_name: 'San Diego',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'San Diego'
}, {
	w: '0',
	elim: '163',
	rs: '0',
	div: 'nlw',
	gameid: '2010_04_05_sfnmlb_houmlb_1',
	status: 'S',
	pre: null,
	last10: '0-0',
	onerun: '0-0',
	xtr: '0-0',
	nextg: '4/5 @ HOU,  7:05P',
	vsW: '0-0',
	ra: '0',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '0-0',
	code: 'sf',
	pct: '-',
	league_sensitive_team_name: 'San Francisco',
	vsC: '0-0',
	vsE: '0-0',
	clinch: '',
	vsL: '-',
	vsR: '-',
	xwl: '0-0',
	l: '0',
	strk: '-',
	lastg: null,
	interleague: '0-0',
	road: '0-0',
	games_back_wildcard: '-',
	team: 'San Francisco'
}]

/**
 * @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']		= 'nym';
addLoadEvent(star_mlb_standings);
