var standings_rs_alc = [{
	w: '89',
	elim: '-',
	rs: '811',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '22-17',
	xtr: '8-4',
	nextg: null,
	vsW: '18-13',
	ra: '729',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_06_tbamlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081006&content_id=3598449&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '54-28',
	code: 'cws',
	pct: '.546',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '44-29',
	vsE: '15-26',
	clinch: 'y',
	vsR: '58-54',
	vsL: '31-20',
	xwl: '89-74',
	strk: 'W3',
	l: '74',
	lastg: '10/6 v TB, L 2-6',
	interleague: '12-6',
	team: 'Chicago',
	road: '35-46'
}, {
	w: '88',
	elim: 'E',
	rs: '829',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '26-26',
	xtr: '8-10',
	nextg: null,
	vsW: '18-19',
	ra: '745',
	gb: '1.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_30_minmlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080930&content_id=3576796&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '53-28',
	code: 'min',
	pct: '.540',
	league_sensitive_team_name: 'Minnesota',
	vsC: '43-30',
	vsE: '13-22',
	clinch: '',
	vsR: '59-51',
	vsL: '29-24',
	xwl: '89-74',
	strk: 'L1',
	l: '75',
	lastg: '9/30 @ CWS, L 0-1',
	interleague: '14-4',
	team: 'Minnesota',
	road: '35-47'
}, {
	w: '81',
	elim: 'E',
	rs: '805',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '14-17',
	xtr: '5-9',
	nextg: null,
	vsW: '19-18',
	ra: '761',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_clemlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566191&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '45-36',
	code: 'cle',
	pct: '.500',
	league_sensitive_team_name: 'Cleveland',
	vsC: '36-36',
	vsE: '20-15',
	clinch: '',
	vsR: '60-58',
	vsL: '21-23',
	xwl: '85-77',
	strk: 'L1',
	l: '81',
	lastg: '9/28 @ CWS, L 1-5',
	interleague: '6-12',
	team: 'Cleveland',
	road: '36-45'
}, {
	w: '75',
	elim: 'E',
	rs: '691',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '20-18',
	xtr: '7-6',
	nextg: null,
	vsW: '17-15',
	ra: '781',
	gb: '13.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_kcamlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565580&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-43',
	code: 'kc',
	pct: '.463',
	league_sensitive_team_name: 'Kansas City',
	vsC: '31-41',
	vsE: '14-26',
	clinch: '',
	vsR: '39-63',
	vsL: '36-24',
	xwl: '72-90',
	strk: 'L1',
	l: '87',
	lastg: '9/28 @ MIN, L 0-6',
	interleague: '13-5',
	team: 'Kansas City',
	road: '37-44'
}, {
	w: '74',
	elim: 'E',
	rs: '821',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '3-7',
	onerun: '16-25',
	xtr: '3-9',
	nextg: null,
	vsW: '19-18',
	ra: '857',
	gb: '14.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_29_detmlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080929&content_id=3573203&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-41',
	code: 'det',
	pct: '.457',
	league_sensitive_team_name: 'Detroit',
	vsC: '27-45',
	vsE: '15-20',
	clinch: '',
	vsR: '48-66',
	vsL: '26-22',
	xwl: '78-84',
	strk: 'L2',
	l: '88',
	lastg: '9/29 @ CWS, L 2-8',
	interleague: '13-5',
	team: 'Detroit',
	road: '34-47'
}]
var standings_rs_ale = [{
	w: '97',
	elim: '-',
	rs: '774',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '29-18',
	xtr: '10-6',
	nextg: null,
	vsW: '22-12',
	ra: '671',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_27_tbamlb_phimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081027&content_id=3649393&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '57-24',
	code: 'tb',
	pct: '.599',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '20-18',
	vsE: '43-29',
	clinch: 'y',
	vsR: '72-41',
	vsL: '25-24',
	xwl: '91-71',
	strk: 'W1',
	l: '65',
	lastg: '10/27 @ PHI, L 3-4',
	interleague: '12-6',
	team: 'Tampa Bay',
	road: '40-41'
}, {
	w: '95',
	elim: 'E',
	rs: '845',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '22-23',
	xtr: '8-3',
	nextg: null,
	vsW: '22-16',
	ra: '694',
	gb: '2.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_19_bosmlb_tbamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081019&content_id=3631575&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '56-25',
	code: 'bos',
	pct: '.586',
	league_sensitive_team_name: 'Boston',
	vsC: '24-10',
	vsE: '38-34',
	clinch: 'w',
	vsR: '70-54',
	vsL: '25-13',
	xwl: '95-67',
	strk: 'W1',
	l: '67',
	lastg: '10/19 @ TB, L 1-3',
	interleague: '11-7',
	team: 'Boston',
	road: '39-42'
}, {
	w: '89',
	elim: 'E',
	rs: '789',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '8-2',
	onerun: '27-18',
	xtr: '7-3',
	nextg: null,
	vsW: '18-14',
	ra: '727',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_nyamlb_bosmlb_2\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3570165&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-33',
	code: 'nyy',
	pct: '.549',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '21-19',
	vsE: '40-32',
	clinch: '',
	vsR: '65-51',
	vsL: '24-22',
	xwl: '87-75',
	strk: 'L1',
	l: '73',
	lastg: '9/28 @ BOS, L 3-4',
	interleague: '10-8',
	team: 'New York',
	road: '41-40'
}, {
	w: '86',
	elim: 'E',
	rs: '714',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '24-32',
	xtr: '6-9',
	nextg: null,
	vsW: '17-19',
	ra: '610',
	gb: '11.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_tormlb_balmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565490&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '47-34',
	code: 'tor',
	pct: '.531',
	league_sensitive_team_name: 'Toronto',
	vsC: '24-12',
	vsE: '37-35',
	clinch: '',
	vsR: '66-53',
	vsL: '20-23',
	xwl: '93-69',
	strk: 'W1',
	l: '76',
	lastg: '9/28 @ BAL, W 10-1',
	interleague: '8-10',
	team: 'Toronto',
	road: '39-42'
}, {
	w: '68',
	elim: 'E',
	rs: '782',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '1-9',
	onerun: '21-29',
	xtr: '5-6',
	nextg: null,
	vsW: '15-18',
	ra: '869',
	gb: '28.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_tormlb_balmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565490&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '37-43',
	code: 'bal',
	pct: '.422',
	league_sensitive_team_name: 'Baltimore',
	vsC: '20-18',
	vsE: '22-50',
	clinch: '',
	vsR: '52-61',
	vsL: '16-32',
	xwl: '73-88',
	strk: 'L1',
	l: '93',
	lastg: '9/28 v TOR, L 1-10',
	interleague: '11-7',
	team: 'Baltimore',
	road: '31-50'
}]
var standings_rs_alw = [{
	w: '100',
	elim: '-',
	rs: '765',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '31-21',
	xtr: '3-5',
	nextg: null,
	vsW: '36-21',
	ra: '697',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_06_anamlb_bosmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081006&content_id=3598847&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '50-31',
	code: 'ana',
	pct: '.617',
	league_sensitive_team_name: 'LA Angels',
	vsC: '24-17',
	vsE: '30-16',
	clinch: 'y',
	vsR: '67-46',
	vsL: '33-16',
	xwl: '88-74',
	strk: 'W1',
	l: '62',
	lastg: '10/6 @ BOS, L 2-3',
	interleague: '10-8',
	team: 'Los Angeles',
	road: '50-31'
}, {
	w: '79',
	elim: 'E',
	rs: '901',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '28-18',
	xtr: '5-6',
	nextg: null,
	vsW: '30-27',
	ra: '967',
	gb: '21.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_texmlb_anamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566166&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-41',
	code: 'tex',
	pct: '.488',
	league_sensitive_team_name: 'Texas',
	vsC: '22-22',
	vsE: '17-26',
	clinch: '',
	vsR: '58-52',
	vsL: '21-31',
	xwl: '76-86',
	strk: 'L1',
	l: '83',
	lastg: '9/28 @ LAA, L 0-7',
	interleague: '10-8',
	team: 'Texas',
	road: '39-42'
}, {
	w: '75',
	elim: 'E',
	rs: '646',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '25-24',
	xtr: '8-7',
	nextg: null,
	vsW: '26-31',
	ra: '690',
	gb: '24.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_oakmlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566743&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-38',
	code: 'oak',
	pct: '.466',
	league_sensitive_team_name: 'Oakland',
	vsC: '22-24',
	vsE: '17-23',
	clinch: '',
	vsR: '50-58',
	vsL: '25-28',
	xwl: '76-85',
	strk: 'L5',
	l: '86',
	lastg: '9/28 @ SEA, L 3-4',
	interleague: '10-8',
	team: 'Oakland',
	road: '32-48'
}, {
	w: '61',
	elim: 'E',
	rs: '671',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '18-30',
	xtr: '5-7',
	nextg: null,
	vsW: '22-35',
	ra: '811',
	gb: '39.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_oakmlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566743&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '35-46',
	code: 'sea',
	pct: '.377',
	league_sensitive_team_name: 'Seattle',
	vsC: '15-28',
	vsE: '15-29',
	clinch: '',
	vsR: '40-70',
	vsL: '21-31',
	xwl: '67-95',
	strk: 'W3',
	l: '101',
	lastg: '9/28 v OAK, W 4-3',
	interleague: '9-9',
	team: 'Seattle',
	road: '26-55'
}]
var standings_rs_nlc = [{
	w: '97',
	elim: '-',
	rs: '855',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '24-22',
	xtr: '10-6',
	nextg: null,
	vsW: '23-10',
	ra: '671',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_04_chnmlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081004&content_id=3591548&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '55-26',
	code: 'chc',
	pct: '.602',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '48-33',
	vsE: '20-12',
	clinch: 'y',
	vsR: '66-48',
	vsL: '31-16',
	xwl: '98-63',
	strk: 'L1',
	l: '64',
	lastg: '10/4 @ LAD, L 1-3',
	interleague: '6-9',
	team: 'Chicago',
	road: '42-38'
}, {
	w: '90',
	elim: 'E',
	rs: '750',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '28-17',
	xtr: '12-8',
	nextg: null,
	vsW: '20-13',
	ra: '689',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_05_phimlb_milmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081005&content_id=3594184&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '49-32',
	code: 'mil',
	pct: '.556',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '47-32',
	vsE: '16-19',
	clinch: 'w',
	vsR: '57-52',
	vsL: '33-20',
	xwl: '87-75',
	strk: 'W1',
	l: '72',
	lastg: '10/5 v PHI, L 2-6',
	interleague: '7-8',
	team: 'Milwaukee',
	road: '41-40'
}, {
	w: '86',
	elim: 'E',
	rs: '712',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '21-21',
	xtr: '5-3',
	nextg: null,
	vsW: '19-14',
	ra: '743',
	gb: '11.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_atlmlb_houmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565331&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '47-33',
	code: 'hou',
	pct: '.534',
	league_sensitive_team_name: 'Houston',
	vsC: '43-35',
	vsE: '17-15',
	clinch: '',
	vsR: '60-55',
	vsL: '26-20',
	xwl: '77-84',
	strk: 'W1',
	l: '75',
	lastg: '9/28 v ATL, W 3-1',
	interleague: '7-11',
	team: 'Houston',
	road: '39-42'
}, {
	w: '86',
	elim: 'E',
	rs: '779',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '24-28',
	xtr: '6-12',
	nextg: null,
	vsW: '21-13',
	ra: '725',
	gb: '11.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_cinmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565525&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '46-35',
	code: 'stl',
	pct: '.531',
	league_sensitive_team_name: 'St. Louis',
	vsC: '36-41',
	vsE: '22-14',
	clinch: '',
	vsR: '59-47',
	vsL: '27-29',
	xwl: '86-76',
	strk: 'W6',
	l: '76',
	lastg: '9/28 v CIN, W 11-4',
	interleague: '7-8',
	team: 'St. Louis',
	road: '40-41'
}, {
	w: '74',
	elim: 'E',
	rs: '704',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '28-20',
	xtr: '9-8',
	nextg: null,
	vsW: '15-18',
	ra: '800',
	gb: '23.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_cinmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565525&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-38',
	code: 'cin',
	pct: '.457',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '31-47',
	vsE: '19-17',
	clinch: '',
	vsR: '44-63',
	vsL: '30-25',
	xwl: '72-90',
	strk: 'L5',
	l: '88',
	lastg: '9/28 @ STL, L 4-11',
	interleague: '9-6',
	team: 'Cincinnati',
	road: '31-50'
}, {
	w: '67',
	elim: 'E',
	rs: '735',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '3-7',
	onerun: '22-21',
	xtr: '12-6',
	nextg: null,
	vsW: '14-20',
	ra: '884',
	gb: '30.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_pitmlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566031&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-42',
	code: 'pit',
	pct: '.414',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '32-49',
	vsE: '15-17',
	clinch: '',
	vsR: '53-67',
	vsL: '14-28',
	xwl: '68-94',
	strk: 'W1',
	l: '95',
	lastg: '9/28 @ SD, W 6-1',
	interleague: '6-9',
	team: 'Pittsburgh',
	road: '28-53'
}]
var standings_rs_nle = [{
	w: '92',
	elim: '-',
	rs: '799',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '27-23',
	xtr: '6-7',
	nextg: null,
	vsW: '20-12',
	ra: '680',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_27_tbamlb_phimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081027&content_id=3649393&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-33',
	code: 'phi',
	pct: '.568',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '27-16',
	vsE: '41-31',
	clinch: 'y',
	vsR: '60-48',
	vsL: '32-22',
	xwl: '93-69',
	strk: 'W3',
	l: '70',
	lastg: '10/27 v TB, W 4-3',
	interleague: '4-11',
	team: 'Philadelphia',
	road: '44-37'
}, {
	w: '89',
	elim: 'E',
	rs: '799',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '16-19',
	xtr: '9-9',
	nextg: null,
	vsW: '20-15',
	ra: '715',
	gb: '3.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_flomlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565671&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-33',
	code: 'nym',
	pct: '.549',
	league_sensitive_team_name: 'NY Mets',
	vsC: '20-20',
	vsE: '40-32',
	clinch: '',
	vsR: '55-52',
	vsL: '34-21',
	xwl: '89-73',
	strk: 'L1',
	l: '73',
	lastg: '9/28 v FLA, L 2-4',
	interleague: '9-6',
	team: 'New York',
	road: '41-40'
}, {
	w: '84',
	elim: 'E',
	rs: '770',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '24-19',
	xtr: '9-5',
	nextg: null,
	vsW: '20-16',
	ra: '767',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_flomlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565671&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '45-36',
	code: 'fla',
	pct: '.522',
	league_sensitive_team_name: 'Florida',
	vsC: '19-20',
	vsE: '40-31',
	clinch: '',
	vsR: '61-56',
	vsL: '23-21',
	xwl: '81-80',
	strk: 'W1',
	l: '77',
	lastg: '9/28 @ NYM, W 4-2',
	interleague: '5-10',
	team: 'Florida',
	road: '39-41'
}, {
	w: '72',
	elim: 'E',
	rs: '753',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '11-30',
	xtr: '3-10',
	nextg: null,
	vsW: '20-14',
	ra: '778',
	gb: '20.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_atlmlb_houmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565331&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-38',
	code: 'atl',
	pct: '.444',
	league_sensitive_team_name: 'Atlanta',
	vsC: '13-28',
	vsE: '31-41',
	clinch: '',
	vsR: '52-57',
	vsL: '20-33',
	xwl: '79-83',
	strk: 'L1',
	l: '90',
	lastg: '9/28 @ HOU, L 1-3',
	interleague: '8-7',
	team: 'Atlanta',
	road: '29-52'
}, {
	w: '59',
	elim: 'E',
	rs: '641',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '1-9',
	onerun: '20-29',
	xtr: '7-7',
	nextg: null,
	vsW: '9-23',
	ra: '825',
	gb: '32.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_wasmlb_phimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3565426&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '34-46',
	code: 'was',
	pct: '.366',
	league_sensitive_team_name: 'Washington',
	vsC: '15-25',
	vsE: '27-44',
	clinch: '',
	vsR: '37-66',
	vsL: '22-36',
	xwl: '62-99',
	strk: 'L4',
	l: '102',
	lastg: '9/28 @ PHI, L 3-8',
	interleague: '8-10',
	team: 'Washington',
	road: '25-56'
}]
var standings_rs_nlw = [{
	w: '84',
	elim: '-',
	rs: '700',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '19-24',
	xtr: '6-12',
	nextg: null,
	vsW: '40-32',
	ra: '648',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_10_15_phimlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20081015&content_id=3623499&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-33',
	code: 'la',
	pct: '.519',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '23-18',
	vsE: '16-18',
	clinch: 'y',
	vsR: '53-57',
	vsL: '31-21',
	xwl: '87-75',
	strk: 'L1',
	l: '78',
	lastg: '10/15 v PHI, L 1-5',
	interleague: '5-10',
	team: 'Los Angeles',
	road: '36-45'
}, {
	w: '82',
	elim: 'E',
	rs: '720',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '22-23',
	xtr: '4-6',
	nextg: null,
	vsW: '44-28',
	ra: '706',
	gb: '2.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_colmlb_arimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3568284&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-33',
	code: 'ari',
	pct: '.506',
	league_sensitive_team_name: 'Arizona',
	vsC: '17-22',
	vsE: '15-21',
	clinch: '',
	vsR: '54-60',
	vsL: '28-20',
	xwl: '82-80',
	strk: 'W3',
	l: '80',
	lastg: '9/28 v COL, W 2-1',
	interleague: '6-9',
	team: 'Arizona',
	road: '34-47'
}, {
	w: '74',
	elim: 'E',
	rs: '747',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '25-20',
	xtr: '6-6',
	nextg: null,
	vsW: '31-41',
	ra: '822',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_colmlb_arimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3568284&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-38',
	code: 'col',
	pct: '.457',
	league_sensitive_team_name: 'Colorado',
	vsC: '21-18',
	vsE: '15-21',
	clinch: '',
	vsR: '48-67',
	vsL: '26-21',
	xwl: '74-88',
	strk: 'L3',
	l: '88',
	lastg: '9/28 @ ARI, L 1-2',
	interleague: '7-8',
	team: 'Colorado',
	road: '31-50'
}, {
	w: '72',
	elim: 'E',
	rs: '640',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '31-21',
	xtr: '10-5',
	nextg: null,
	vsW: '36-36',
	ra: '759',
	gb: '12.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_lanmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3567968&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '37-44',
	code: 'sf',
	pct: '.444',
	league_sensitive_team_name: 'San Francisco',
	vsC: '11-29',
	vsE: '19-13',
	clinch: '',
	vsR: '56-59',
	vsL: '16-31',
	xwl: '69-93',
	strk: 'W1',
	l: '90',
	lastg: '9/28 v LAD, W 3-1',
	interleague: '6-12',
	team: 'San Francisco',
	road: '35-46'
}, {
	w: '63',
	elim: 'E',
	rs: '637',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '16-28',
	xtr: '6-8',
	nextg: null,
	vsW: '29-43',
	ra: '764',
	gb: '21.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_28_pitmlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080928&content_id=3566031&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '35-46',
	code: 'sd',
	pct: '.389',
	league_sensitive_team_name: 'San Diego',
	vsC: '16-25',
	vsE: '15-16',
	clinch: '',
	vsR: '43-62',
	vsL: '20-37',
	xwl: '68-94',
	strk: 'L1',
	l: '99',
	lastg: '9/28 v PIT, L 1-6',
	interleague: '3-15',
	team: 'San Diego',
	road: '28-53'
}]
/**
 * @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];
	}

	// 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 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']	= 'nlc';
star_mlb_options['team']		= '';
addLoadEvent(star_mlb_standings);
