var standings_rs_alc = [{
	w: '80',
	elim: '-',
	rs: '717',
	div: 'alc',
	gameid: '2008_09_07_anamlb_chamlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '20-14',
	xtr: '8-3',
	nextg: '9/7 v LAA,  2:05P',
	vsW: '18-12',
	ra: '621',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_anamlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429826&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-22',
	code: 'cws',
	pct: '.567',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '37-23',
	vsE: '13-20',
	vsR: '51-44',
	vsL: '29-17',
	xwl: '80-61',
	strk: 'W3',
	l: '61',
	lastg: '9/6 v LAA, W 7-6',
	interleague: '12-6',
	team: 'Chicago',
	road: '32-39'
}, {
	w: '78',
	elim: '19',
	rs: '721',
	div: 'alc',
	gameid: '2008_09_07_detmlb_minmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '24-24',
	xtr: '7-8',
	nextg: '9/7 v DET,  2:10P',
	vsW: '18-19',
	ra: '645',
	gb: '2.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_detmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428285&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '47-24',
	code: 'min',
	pct: '.549',
	league_sensitive_team_name: 'Minnesota',
	vsC: '37-22',
	vsE: '9-19',
	vsR: '51-45',
	vsL: '27-19',
	xwl: '78-64',
	strk: 'L1',
	l: '64',
	lastg: '9/6 v DET, L 4-6',
	interleague: '14-4',
	team: 'Minnesota',
	road: '31-40'
}, {
	w: '68',
	elim: '11',
	rs: '681',
	div: 'alc',
	gameid: '2008_09_07_clemlb_kcamlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '12-15',
	xtr: '4-9',
	nextg: '9/7 @ KC,  2:10P',
	vsW: '19-18',
	ra: '639',
	gb: '11.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_clemlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429275&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-33',
	code: 'cle',
	pct: '.486',
	league_sensitive_team_name: 'Cleveland',
	vsC: '26-32',
	vsE: '17-10',
	vsR: '51-52',
	vsL: '17-20',
	xwl: '74-66',
	strk: 'L1',
	l: '72',
	lastg: '9/6 @ KC, L 1-3',
	interleague: '6-12',
	team: 'Cleveland',
	road: '30-39'
}, {
	w: '68',
	elim: '9',
	rs: '713',
	div: 'alc',
	gameid: '2008_09_07_detmlb_minmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '15-21',
	xtr: '3-8',
	nextg: '9/7 @ MIN,  2:10P',
	vsW: '17-14',
	ra: '730',
	gb: '12.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_detmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428285&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '36-35',
	code: 'det',
	pct: '.479',
	league_sensitive_team_name: 'Detroit',
	vsC: '26-36',
	vsE: '12-19',
	vsR: '45-56',
	vsL: '23-18',
	xwl: '69-73',
	strk: 'W1',
	l: '74',
	lastg: '9/6 @ MIN, W 6-4',
	interleague: '13-5',
	team: 'Detroit',
	road: '32-39'
}, {
	w: '61',
	elim: '3',
	rs: '582',
	div: 'alc',
	gameid: '2008_09_07_clemlb_kcamlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '19-18',
	xtr: '6-6',
	nextg: '9/7 v CLE,  2:10P',
	vsW: '13-15',
	ra: '706',
	gb: '19.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_clemlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429275&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '33-40',
	code: 'kc',
	pct: '.433',
	league_sensitive_team_name: 'Kansas City',
	vsC: '21-34',
	vsE: '14-26',
	vsR: '32-60',
	vsL: '29-20',
	xwl: '58-83',
	strk: 'W1',
	l: '80',
	lastg: '9/6 v CLE, W 3-1',
	interleague: '13-5',
	team: 'Kansas City',
	road: '28-40'
}]
var standings_rs_ale = [{
	w: '85',
	elim: '-',
	rs: '658',
	div: 'ale',
	gameid: '2008_09_07_tbamlb_tormlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '26-15',
	xtr: '8-6',
	nextg: '9/7 @ TOR,  1:07P',
	vsW: '22-12',
	ra: '572',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_tbamlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3426880&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '53-21',
	code: 'tb',
	pct: '.607',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '17-13',
	vsE: '34-24',
	vsR: '61-36',
	vsL: '24-19',
	xwl: '79-61',
	strk: 'L2',
	l: '55',
	lastg: '9/6 @ TOR, L 4-7',
	interleague: '12-6',
	team: 'Tampa Bay',
	road: '32-34'
}, {
	w: '83',
	elim: '20',
	rs: '750',
	div: 'ale',
	gameid: '2008_09_07_bosmlb_texmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '17-20',
	xtr: '7-2',
	nextg: '9/7 @ TEX,  3:05P',
	vsW: '21-16',
	ra: '600',
	gb: '2.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_bosmlb_texmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429818&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-19',
	code: 'bos',
	pct: '.589',
	league_sensitive_team_name: 'Boston',
	vsC: '21-9',
	vsE: '30-26',
	vsR: '62-47',
	vsL: '21-11',
	xwl: '85-56',
	strk: 'L1',
	l: '58',
	lastg: '9/6 @ TEX, L 8-15',
	interleague: '11-7',
	team: 'Boston',
	road: '35-39'
}, {
	w: '76',
	elim: '12',
	rs: '692',
	div: 'ale',
	gameid: '2008_09_07_nyamlb_seamlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '24-17',
	xtr: '6-2',
	nextg: '9/7 @ SEA,  4:10P',
	vsW: '17-11',
	ra: '648',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_nyamlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3427735&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-31',
	code: 'nyy',
	pct: '.535',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '18-18',
	vsE: '31-29',
	vsR: '56-45',
	vsL: '20-21',
	xwl: '75-67',
	strk: 'W1',
	l: '66',
	lastg: '9/6 @ SEA, W 7-4',
	interleague: '10-8',
	team: 'New York',
	road: '36-35'
}, {
	w: '75',
	elim: '12',
	rs: '630',
	div: 'ale',
	gameid: '2008_09_07_tbamlb_tormlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '21-28',
	xtr: '6-8',
	nextg: '9/7 v TB,  1:07P',
	vsW: '17-19',
	ra: '543',
	gb: '10.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_tbamlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3426880&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '42-29',
	code: 'tor',
	pct: '.532',
	league_sensitive_team_name: 'Toronto',
	vsC: '21-11',
	vsE: '29-26',
	vsR: '59-46',
	vsL: '16-20',
	xwl: '80-61',
	strk: 'W7',
	l: '66',
	lastg: '9/6 v TB, W 7-4',
	interleague: '8-10',
	team: 'Toronto',
	road: '33-37'
}, {
	w: '63',
	elim: 'E',
	rs: '711',
	div: 'ale',
	gameid: '2008_09_08_clemlb_balmlb_1',
	status: 'P',
	pre: null,
	last10: '1-9',
	onerun: '20-25',
	xtr: '5-6',
	nextg: '9/8 v CLE,  7:05P',
	vsW: '15-18',
	ra: '760',
	gb: '22.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_oakmlb_balmlb_2\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428637&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '33-33',
	code: 'bal',
	pct: '.447',
	league_sensitive_team_name: 'Baltimore',
	vsC: '17-14',
	vsE: '20-39',
	vsR: '49-52',
	vsL: '14-26',
	xwl: '66-75',
	strk: 'L8',
	l: '78',
	lastg: '9/6 v OAK, L 1-5',
	interleague: '11-7',
	team: 'Baltimore',
	road: '30-45'
}]
var standings_rs_alw = [{
	w: '85',
	elim: '-',
	rs: '654',
	div: 'alw',
	gameid: '2008_09_07_anamlb_chamlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '27-20',
	xtr: '3-5',
	nextg: '9/7 @ CWS,  2:05P',
	vsW: '24-16',
	ra: '600',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_anamlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429826&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-28',
	code: 'ana',
	pct: '.603',
	league_sensitive_team_name: 'LA Angels',
	vsC: '23-17',
	vsE: '28-15',
	vsR: '60-42',
	vsL: '25-14',
	xwl: '76-65',
	strk: 'L2',
	l: '56',
	lastg: '9/6 @ CWS, L 6-7',
	interleague: '10-8',
	team: 'Los Angeles',
	road: '42-28'
}, {
	w: '70',
	elim: '5',
	rs: '785',
	div: 'alw',
	gameid: '2008_09_07_bosmlb_texmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '27-16',
	xtr: '5-5',
	nextg: '9/7 v BOS,  3:05P',
	vsW: '23-19',
	ra: '852',
	gb: '16.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_bosmlb_texmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429818&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '36-35',
	code: 'tex',
	pct: '.490',
	league_sensitive_team_name: 'Texas',
	vsC: '20-21',
	vsE: '17-25',
	vsR: '54-47',
	vsL: '16-26',
	xwl: '66-77',
	strk: 'W1',
	l: '73',
	lastg: '9/6 v BOS, W 15-8',
	interleague: '10-8',
	team: 'Texas',
	road: '34-38'
}, {
	w: '65',
	elim: '1',
	rs: '559',
	div: 'alw',
	gameid: '2008_09_08_oakmlb_detmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '21-23',
	xtr: '7-7',
	nextg: '9/8 @ DET,  7:05P',
	vsW: '18-23',
	ra: '591',
	gb: '20.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_oakmlb_balmlb_2\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428637&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '36-35',
	code: 'oak',
	pct: '.458',
	league_sensitive_team_name: 'Oakland',
	vsC: '20-23',
	vsE: '17-23',
	vsR: '41-53',
	vsL: '24-24',
	xwl: '67-75',
	strk: 'W2',
	l: '77',
	lastg: '9/6 @ BAL, W 5-1',
	interleague: '10-8',
	team: 'Oakland',
	road: '29-42'
}, {
	w: '55',
	elim: 'E',
	rs: '588',
	div: 'alw',
	gameid: '2008_09_07_nyamlb_seamlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '16-26',
	xtr: '5-7',
	nextg: '9/7 v NYY,  4:10P',
	vsW: '17-24',
	ra: '699',
	gb: '30.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_nyamlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3427735&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '29-42',
	code: 'sea',
	pct: '.390',
	league_sensitive_team_name: 'Seattle',
	vsC: '15-24',
	vsE: '14-29',
	vsR: '36-57',
	vsL: '19-29',
	xwl: '59-82',
	strk: 'L1',
	l: '86',
	lastg: '9/6 v NYY, L 4-7',
	interleague: '9-9',
	team: 'Seattle',
	road: '26-44'
}]
var standings_rs_nlc = [{
	w: '86',
	elim: '-',
	rs: '766',
	div: 'nlc',
	gameid: '2008_09_07_chnmlb_cinmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '19-19',
	xtr: '8-6',
	nextg: '9/7 @ CIN,  1:15P',
	vsW: '23-10',
	ra: '589',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_chnmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429267&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '51-24',
	code: 'chc',
	pct: '.606',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '39-27',
	vsE: '18-10',
	vsR: '59-42',
	vsL: '27-14',
	xwl: '88-54',
	strk: 'W1',
	l: '56',
	lastg: '9/6 @ CIN, W 14-9',
	interleague: '6-9',
	team: 'Chicago',
	road: '35-32'
}, {
	w: '82',
	elim: '17',
	rs: '671',
	div: 'nlc',
	gameid: '2008_09_07_sdnmlb_milmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '27-12',
	xtr: '11-6',
	nextg: '9/7 v SD,  2:05P',
	vsW: '20-12',
	ra: '593',
	gb: '4.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_sdnmlb_milmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3430304&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-28',
	code: 'mil',
	pct: '.577',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '39-25',
	vsE: '16-15',
	vsR: '51-43',
	vsL: '31-17',
	xwl: '79-63',
	strk: 'W2',
	l: '60',
	lastg: '9/6 v SD, W 1-0',
	interleague: '7-8',
	team: 'Milwaukee',
	road: '39-32'
}, {
	w: '76',
	elim: '11',
	rs: '682',
	div: 'nlc',
	gameid: '2008_09_07_flomlb_slnmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '21-24',
	xtr: '6-11',
	nextg: '9/7 v FLA,  2:15P',
	vsW: '18-12',
	ra: '632',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_flomlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428703&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-32',
	code: 'stl',
	pct: '.535',
	league_sensitive_team_name: 'St. Louis',
	vsC: '30-32',
	vsE: '21-14',
	vsR: '52-40',
	vsL: '24-26',
	xwl: '76-66',
	strk: 'W1',
	l: '66',
	lastg: '9/6 v FLA, W 5-3',
	interleague: '7-8',
	team: 'St. Louis',
	road: '38-34'
}, {
	w: '75',
	elim: '10',
	rs: '633',
	div: 'nlc',
	gameid: '2008_09_07_houmlb_colmlb_1',
	status: 'P',
	pre: null,
	last10: '9-1',
	onerun: '19-20',
	xtr: '5-3',
	nextg: '9/7 @ COL,  3:05P',
	vsW: '18-14',
	ra: '658',
	gb: '11.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_houmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428185&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-29',
	code: 'hou',
	pct: '.528',
	league_sensitive_team_name: 'Houston',
	vsC: '35-31',
	vsE: '15-11',
	vsR: '53-49',
	vsL: '22-18',
	xwl: '68-74',
	strk: 'W1',
	l: '67',
	lastg: '9/6 @ COL, W 2-0',
	interleague: '7-11',
	team: 'Houston',
	road: '36-38'
}, {
	w: '63',
	elim: 'E',
	rs: '620',
	div: 'nlc',
	gameid: '2008_09_07_chnmlb_cinmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '21-16',
	xtr: '6-8',
	nextg: '9/7 v CHC,  1:15P',
	vsW: '13-17',
	ra: '714',
	gb: '23.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_chnmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3429267&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '37-36',
	code: 'cin',
	pct: '.444',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '23-39',
	vsE: '18-17',
	vsR: '37-56',
	vsL: '26-23',
	xwl: '62-80',
	strk: 'L1',
	l: '79',
	lastg: '9/6 v CHC, L 9-14',
	interleague: '9-6',
	team: 'Cincinnati',
	road: '26-43'
}, {
	w: '60',
	elim: 'E',
	rs: '643',
	div: 'nlc',
	gameid: '2008_09_07_pitmlb_sfnmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '21-18',
	xtr: '11-4',
	nextg: '9/7 @ SF,  4:05P',
	vsW: '11-15',
	ra: '774',
	gb: '25.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_pitmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3431219&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '34-37',
	code: 'pit',
	pct: '.426',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '28-40',
	vsE: '15-17',
	vsR: '46-58',
	vsL: '14-23',
	xwl: '59-82',
	strk: 'L1',
	l: '81',
	lastg: '9/6 @ SF, L 6-7',
	interleague: '6-9',
	team: 'Pittsburgh',
	road: '26-44'
}]
var standings_rs_nle = [{
	w: '79',
	elim: '-',
	rs: '693',
	div: 'nle',
	gameid: '2008_09_07_phimlb_nynmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '15-16',
	xtr: '9-8',
	nextg: '9/7 v PHI,  2:15P',
	vsW: '20-15',
	ra: '609',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_05_phimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080905&content_id=3422859&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '41-26',
	code: 'nym',
	pct: '.560',
	league_sensitive_team_name: 'NY Mets',
	vsC: '18-18',
	vsE: '32-23',
	vsR: '51-46',
	vsL: '28-16',
	xwl: '79-62',
	strk: 'L1',
	l: '62',
	lastg: '9/5 v PHI, L 0-3',
	interleague: '9-6',
	team: 'New York',
	road: '38-36'
}, {
	w: '77',
	elim: '20',
	rs: '679',
	div: 'nle',
	gameid: '2008_09_07_phimlb_nynmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '23-22',
	xtr: '6-7',
	nextg: '9/7 @ NYM,  2:15P',
	vsW: '20-12',
	ra: '585',
	gb: '2.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_05_phimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080905&content_id=3422859&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-29',
	code: 'phi',
	pct: '.546',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '23-16',
	vsE: '30-25',
	vsR: '49-45',
	vsL: '28-19',
	xwl: '80-61',
	strk: 'W1',
	l: '64',
	lastg: '9/5 @ NYM, W 3-0',
	interleague: '4-11',
	team: 'Philadelphia',
	road: '38-35'
}, {
	w: '72',
	elim: '14',
	rs: '659',
	div: 'nle',
	gameid: '2008_09_07_flomlb_slnmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '22-18',
	xtr: '9-5',
	nextg: '9/7 @ STL,  2:15P',
	vsW: '20-16',
	ra: '690',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_flomlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428703&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-34',
	code: 'fla',
	pct: '.507',
	league_sensitive_team_name: 'Florida',
	vsC: '16-18',
	vsE: '31-26',
	vsR: '50-51',
	vsL: '22-19',
	xwl: '68-74',
	strk: 'L1',
	l: '70',
	lastg: '9/6 @ STL, L 3-5',
	interleague: '5-10',
	team: 'Florida',
	road: '34-36'
}, {
	w: '62',
	elim: '3',
	rs: '659',
	div: 'nle',
	gameid: '2008_09_07_wasmlb_atlmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '7-27',
	xtr: '2-9',
	nextg: '9/7 v WSH,  1:30P',
	vsW: '17-14',
	ra: '687',
	gb: '18.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_wasmlb_atlmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428490&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-33',
	code: 'atl',
	pct: '.434',
	league_sensitive_team_name: 'Atlanta',
	vsC: '12-26',
	vsE: '25-34',
	vsR: '45-55',
	vsL: '17-26',
	xwl: '69-74',
	strk: 'L1',
	l: '81',
	lastg: '9/6 v WSH, L 5-8',
	interleague: '8-7',
	team: 'Atlanta',
	road: '24-48'
}, {
	w: '55',
	elim: 'E',
	rs: '557',
	div: 'nle',
	gameid: '2008_09_07_wasmlb_atlmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '19-26',
	xtr: '6-6',
	nextg: '9/7 @ ATL,  1:30P',
	vsW: '9-20',
	ra: '710',
	gb: '25.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_wasmlb_atlmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428490&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '31-40',
	code: 'was',
	pct: '.385',
	league_sensitive_team_name: 'Washington',
	vsC: '15-25',
	vsE: '23-33',
	vsR: '35-56',
	vsL: '20-32',
	xwl: '56-87',
	strk: 'W1',
	l: '88',
	lastg: '9/6 @ ATL, W 8-5',
	interleague: '8-10',
	team: 'Washington',
	road: '24-48'
}]
var standings_rs_nlw = [{
	w: '72',
	elim: '-',
	rs: '598',
	div: 'nlw',
	gameid: '2008_09_07_arimlb_lanmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '17-21',
	xtr: '5-9',
	nextg: '9/7 v ARI,  4:10P',
	vsW: '31-25',
	ra: '574',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_arimlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428049&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '44-30',
	code: 'la',
	pct: '.507',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '20-17',
	vsE: '16-18',
	vsR: '48-51',
	vsL: '24-19',
	xwl: '74-68',
	strk: 'W7',
	l: '70',
	lastg: '9/6 v ARI, W 7-2',
	interleague: '5-10',
	team: 'Los Angeles',
	road: '28-40'
}, {
	w: '71',
	elim: '21',
	rs: '640',
	div: 'nlw',
	gameid: '2008_09_07_arimlb_lanmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '18-18',
	xtr: '4-4',
	nextg: '9/7 @ LAD,  4:10P',
	vsW: '35-23',
	ra: '626',
	gb: '0.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_arimlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428049&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-31',
	code: 'ari',
	pct: '.504',
	league_sensitive_team_name: 'Arizona',
	vsC: '15-17',
	vsE: '15-21',
	vsR: '45-53',
	vsL: '26-17',
	xwl: '72-69',
	strk: 'L2',
	l: '70',
	lastg: '9/6 @ LAD, L 2-7',
	interleague: '6-9',
	team: 'Arizona',
	road: '31-39'
}, {
	w: '67',
	elim: '15',
	rs: '663',
	div: 'nlw',
	gameid: '2008_09_07_houmlb_colmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '22-18',
	xtr: '5-5',
	nextg: '9/7 v HOU,  3:05P',
	vsW: '24-33',
	ra: '722',
	gb: '5.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_houmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3428185&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-32',
	code: 'col',
	pct: '.469',
	league_sensitive_team_name: 'Colorado',
	vsC: '21-17',
	vsE: '15-18',
	vsR: '44-60',
	vsL: '23-16',
	xwl: '66-77',
	strk: 'L1',
	l: '76',
	lastg: '9/6 v HOU, L 0-2',
	interleague: '7-8',
	team: 'Colorado',
	road: '28-44'
}, {
	w: '61',
	elim: '11',
	rs: '546',
	div: 'nlw',
	gameid: '2008_09_07_pitmlb_sfnmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '27-18',
	xtr: '7-5',
	nextg: '9/7 v PIT,  4:05P',
	vsW: '26-26',
	ra: '664',
	gb: '10.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_pitmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3431219&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '31-40',
	code: 'sf',
	pct: '.433',
	league_sensitive_team_name: 'San Francisco',
	vsC: '10-29',
	vsE: '19-13',
	vsR: '46-52',
	vsL: '15-28',
	xwl: '58-83',
	strk: 'W1',
	l: '80',
	lastg: '9/6 v PIT, W 7-6',
	interleague: '6-12',
	team: 'San Francisco',
	road: '30-40'
}, {
	w: '54',
	elim: '3',
	rs: '544',
	div: 'nlw',
	gameid: '2008_09_07_sdnmlb_milmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '15-27',
	xtr: '5-7',
	nextg: '9/7 @ MIL,  2:05P',
	vsW: '25-34',
	ra: '661',
	gb: '18.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_06_sdnmlb_milmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080906&content_id=3430304&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '32-39',
	code: 'sd',
	pct: '.380',
	league_sensitive_team_name: 'San Diego',
	vsC: '14-23',
	vsE: '12-16',
	vsR: '38-54',
	vsL: '16-34',
	xwl: '59-83',
	strk: 'L2',
	l: '88',
	lastg: '9/6 @ MIL, L 0-1',
	interleague: '3-15',
	team: 'San Diego',
	road: '22-49'
}]/**
 * @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') {
		star_mlb_options['division']	= arguments[0];
	}
	if (arguments[1] != null && arguments[1] != 'undefined') {
		star_mlb_options['team']		= arguments[1];
	}

	// 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;
	}

	// Build the links.
	var 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 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']		= 'atl';
//addLoadEvent(star_mlb_standings);
