var standings_rs_alc = [{
	w: '80',
	elim: '-',
	rs: '719',
	div: 'alc',
	gameid: '2008_09_08_tormlb_chamlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '20-15',
	xtr: '8-3',
	nextg: '9/8 v TOR,  8:11P',
	vsW: '18-13',
	ra: '624',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_anamlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433374&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-23',
	code: 'cws',
	pct: '.563',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '37-23',
	vsE: '13-20',
	vsR: '51-44',
	vsL: '29-18',
	xwl: '80-62',
	strk: 'L1',
	l: '62',
	lastg: '9/7 v LAA, L 2-3',
	interleague: '12-6',
	team: 'Chicago',
	road: '32-39'
}, {
	w: '78',
	elim: '18',
	rs: '726',
	div: 'alc',
	gameid: '2008_09_09_kcamlb_minmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '24-24',
	xtr: '7-8',
	nextg: '9/9 v KC,  8:10P',
	vsW: '18-19',
	ra: '652',
	gb: '2.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_detmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432996&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '47-25',
	code: 'min',
	pct: '.545',
	league_sensitive_team_name: 'Minnesota',
	vsC: '37-23',
	vsE: '9-19',
	vsR: '51-46',
	vsL: '27-19',
	xwl: '78-65',
	strk: 'L2',
	l: '65',
	lastg: '9/7 v DET, L 5-7',
	interleague: '14-4',
	team: 'Minnesota',
	road: '31-40'
}, {
	w: '69',
	elim: '11',
	rs: '684',
	div: 'alc',
	gameid: '2008_09_08_clemlb_balmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '12-15',
	xtr: '4-9',
	nextg: '9/8 @ BAL,  7:05P',
	vsW: '19-18',
	ra: '640',
	gb: '10.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_clemlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3434195&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-33',
	code: 'cle',
	pct: '.489',
	league_sensitive_team_name: 'Cleveland',
	vsC: '27-32',
	vsE: '17-10',
	vsR: '52-52',
	vsL: '17-20',
	xwl: '75-66',
	strk: 'W1',
	l: '72',
	lastg: '9/7 @ KC, W 3-1',
	interleague: '6-12',
	team: 'Cleveland',
	road: '31-39'
}, {
	w: '69',
	elim: '9',
	rs: '720',
	div: 'alc',
	gameid: '2008_09_08_oakmlb_detmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '15-21',
	xtr: '3-8',
	nextg: '9/8 v OAK,  7:05P',
	vsW: '17-14',
	ra: '735',
	gb: '11.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_detmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432996&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '36-35',
	code: 'det',
	pct: '.483',
	league_sensitive_team_name: 'Detroit',
	vsC: '27-36',
	vsE: '12-19',
	vsR: '45-56',
	vsL: '24-18',
	xwl: '70-73',
	strk: 'W2',
	l: '74',
	lastg: '9/7 @ MIN, W 7-5',
	interleague: '13-5',
	team: 'Detroit',
	road: '33-39'
}, {
	w: '61',
	elim: '2',
	rs: '583',
	div: 'alc',
	gameid: '2008_09_09_kcamlb_minmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '19-18',
	xtr: '6-6',
	nextg: '9/9 @ MIN,  8:10P',
	vsW: '13-15',
	ra: '709',
	gb: '19.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_clemlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3434195&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '33-41',
	code: 'kc',
	pct: '.430',
	league_sensitive_team_name: 'Kansas City',
	vsC: '21-35',
	vsE: '14-26',
	vsR: '32-60',
	vsL: '29-21',
	xwl: '58-84',
	strk: 'L1',
	l: '81',
	lastg: '9/7 v CLE, L 1-3',
	interleague: '13-5',
	team: 'Kansas City',
	road: '28-40'
}]
var standings_rs_ale = [{
	w: '85',
	elim: '-',
	rs: '658',
	div: 'ale',
	gameid: '2008_09_08_tbamlb_bosmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '26-16',
	xtr: '8-6',
	nextg: '9/8 @ BOS,  7:05P',
	vsW: '22-12',
	ra: '573',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_tbamlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433065&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '53-21',
	code: 'tb',
	pct: '.603',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '17-13',
	vsE: '34-25',
	vsR: '61-36',
	vsL: '24-20',
	xwl: '79-62',
	strk: 'L3',
	l: '56',
	lastg: '9/7 @ TOR, L 0-1',
	interleague: '12-6',
	team: 'Tampa Bay',
	road: '32-35'
}, {
	w: '84',
	elim: '20',
	rs: '757',
	div: 'ale',
	gameid: '2008_09_08_tbamlb_bosmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '17-20',
	xtr: '7-2',
	nextg: '9/8 v TB,  7:05P',
	vsW: '22-16',
	ra: '602',
	gb: '1.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_bosmlb_texmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433542&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '48-19',
	code: 'bos',
	pct: '.592',
	league_sensitive_team_name: 'Boston',
	vsC: '21-9',
	vsE: '30-26',
	vsR: '63-47',
	vsL: '21-11',
	xwl: '86-56',
	strk: 'W1',
	l: '58',
	lastg: '9/7 @ TEX, W 7-2',
	interleague: '11-7',
	team: 'Boston',
	road: '36-39'
}, {
	w: '76',
	elim: '12',
	rs: '631',
	div: 'ale',
	gameid: '2008_09_08_tormlb_chamlb_1',
	status: 'P',
	pre: null,
	last10: '8-2',
	onerun: '22-28',
	xtr: '6-8',
	nextg: '9/8 @ CWS,  8:11P',
	vsW: '17-19',
	ra: '543',
	gb: '9.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_tbamlb_tormlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433065&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-29',
	code: 'tor',
	pct: '.535',
	league_sensitive_team_name: 'Toronto',
	vsC: '21-11',
	vsE: '30-26',
	vsR: '60-46',
	vsL: '16-20',
	xwl: '81-61',
	strk: 'W8',
	l: '66',
	lastg: '9/7 v TB, W 1-0',
	interleague: '8-10',
	team: 'Toronto',
	road: '33-37'
}, {
	w: '76',
	elim: '11',
	rs: '694',
	div: 'ale',
	gameid: '2008_09_08_nyamlb_anamlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '24-17',
	xtr: '6-2',
	nextg: '9/8 @ LAA, 10:05P',
	vsW: '17-12',
	ra: '653',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_nyamlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432552&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-31',
	code: 'nyy',
	pct: '.531',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '18-18',
	vsE: '31-29',
	vsR: '56-45',
	vsL: '20-22',
	xwl: '75-68',
	strk: 'L1',
	l: '67',
	lastg: '9/7 @ SEA, L 2-5',
	interleague: '10-8',
	team: 'New York',
	road: '36-36'
}, {
	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.0',
	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: '86',
	elim: '-',
	rs: '657',
	div: 'alw',
	gameid: '2008_09_08_nyamlb_anamlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '28-20',
	xtr: '3-5',
	nextg: '9/8 v NYY, 10:05P',
	vsW: '24-16',
	ra: '602',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_anamlb_chamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433374&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-28',
	code: 'ana',
	pct: '.606',
	league_sensitive_team_name: 'LA Angels',
	vsC: '24-17',
	vsE: '28-15',
	vsR: '60-42',
	vsL: '26-14',
	xwl: '77-65',
	strk: 'W1',
	l: '56',
	lastg: '9/7 @ CWS, W 3-2',
	interleague: '10-8',
	team: 'Los Angeles',
	road: '43-28'
}, {
	w: '70',
	elim: '3',
	rs: '787',
	div: 'alw',
	gameid: '2008_09_09_texmlb_seamlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '27-16',
	xtr: '5-5',
	nextg: '9/9 @ SEA, 10:10P',
	vsW: '23-19',
	ra: '859',
	gb: '17.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_bosmlb_texmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433542&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '36-36',
	code: 'tex',
	pct: '.486',
	league_sensitive_team_name: 'Texas',
	vsC: '20-21',
	vsE: '17-26',
	vsR: '54-48',
	vsL: '16-26',
	xwl: '66-78',
	strk: 'L1',
	l: '74',
	lastg: '9/7 v BOS, L 2-7',
	interleague: '10-8',
	team: 'Texas',
	road: '34-38'
}, {
	w: '65',
	elim: 'E',
	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: '21.0',
	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: '56',
	elim: 'E',
	rs: '593',
	div: 'alw',
	gameid: '2008_09_09_texmlb_seamlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '16-26',
	xtr: '5-7',
	nextg: '9/9 v TEX, 10:10P',
	vsW: '17-24',
	ra: '701',
	gb: '30.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_nyamlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432552&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '30-42',
	code: 'sea',
	pct: '.394',
	league_sensitive_team_name: 'Seattle',
	vsC: '15-24',
	vsE: '15-29',
	vsR: '37-57',
	vsL: '19-29',
	xwl: '60-82',
	strk: 'W1',
	l: '86',
	lastg: '9/7 v NYY, W 5-2',
	interleague: '9-9',
	team: 'Seattle',
	road: '26-44'
}]
var standings_rs_nlc = [{
	w: '86',
	elim: '-',
	rs: '769',
	div: 'nlc',
	gameid: '2008_09_09_chnmlb_slnmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '19-20',
	xtr: '8-6',
	nextg: '9/9 @ STL,  8:15P',
	vsW: '23-10',
	ra: '593',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_chnmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433266&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '51-24',
	code: 'chc',
	pct: '.601',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '39-28',
	vsE: '18-10',
	vsR: '59-43',
	vsL: '27-14',
	xwl: '88-55',
	strk: 'L1',
	l: '57',
	lastg: '9/7 @ CIN, L 3-4',
	interleague: '6-9',
	team: 'Chicago',
	road: '35-33'
}, {
	w: '82',
	elim: '16',
	rs: '672',
	div: 'nlc',
	gameid: '2008_09_08_cinmlb_milmlb_1',
	status: 'P',
	pre: null,
	last10: '5-5',
	onerun: '27-12',
	xtr: '11-6',
	nextg: '9/8 v CIN,  8:05P',
	vsW: '20-13',
	ra: '603',
	gb: '4.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_sdnmlb_milmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433673&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '43-29',
	code: 'mil',
	pct: '.573',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '39-25',
	vsE: '16-15',
	vsR: '51-44',
	vsL: '31-17',
	xwl: '79-64',
	strk: 'L1',
	l: '61',
	lastg: '9/7 v SD, L 1-10',
	interleague: '7-8',
	team: 'Milwaukee',
	road: '39-32'
}, {
	w: '77',
	elim: '11',
	rs: '685',
	div: 'nlc',
	gameid: '2008_09_09_chnmlb_slnmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '21-24',
	xtr: '6-11',
	nextg: '9/9 v CHC,  8:15P',
	vsW: '18-12',
	ra: '633',
	gb: '9.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_flomlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433151&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-32',
	code: 'stl',
	pct: '.538',
	league_sensitive_team_name: 'St. Louis',
	vsC: '30-32',
	vsE: '22-14',
	vsR: '53-40',
	vsL: '24-26',
	xwl: '77-66',
	strk: 'W2',
	l: '66',
	lastg: '9/7 v FLA, W 3-1',
	interleague: '7-8',
	team: 'St. Louis',
	road: '38-34'
}, {
	w: '76',
	elim: '10',
	rs: '640',
	div: 'nlc',
	gameid: '2008_09_08_pitmlb_houmlb_1',
	status: 'P',
	pre: null,
	last10: '9-1',
	onerun: '19-20',
	xtr: '5-3',
	nextg: '9/8 v PIT,  8:05P',
	vsW: '19-14',
	ra: '663',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_houmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432882&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-29',
	code: 'hou',
	pct: '.531',
	league_sensitive_team_name: 'Houston',
	vsC: '35-31',
	vsE: '15-11',
	vsR: '53-49',
	vsL: '23-18',
	xwl: '69-74',
	strk: 'W2',
	l: '67',
	lastg: '9/7 @ COL, W 7-5',
	interleague: '7-11',
	team: 'Houston',
	road: '37-38'
}, {
	w: '64',
	elim: 'E',
	rs: '624',
	div: 'nlc',
	gameid: '2008_09_08_cinmlb_milmlb_1',
	status: 'P',
	pre: null,
	last10: '6-4',
	onerun: '22-16',
	xtr: '6-8',
	nextg: '9/8 @ MIL,  8:05P',
	vsW: '13-17',
	ra: '717',
	gb: '22.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_chnmlb_cinmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433266&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-36',
	code: 'cin',
	pct: '.448',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '24-39',
	vsE: '18-17',
	vsR: '37-56',
	vsL: '27-23',
	xwl: '63-80',
	strk: 'W1',
	l: '79',
	lastg: '9/7 v CHC, W 4-3',
	interleague: '9-6',
	team: 'Cincinnati',
	road: '26-43'
}, {
	w: '60',
	elim: 'E',
	rs: '649',
	div: 'nlc',
	gameid: '2008_09_08_pitmlb_houmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '21-18',
	xtr: '11-4',
	nextg: '9/8 @ HOU,  8:05P',
	vsW: '11-16',
	ra: '785',
	gb: '25.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_pitmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433473&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '34-37',
	code: 'pit',
	pct: '.423',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '28-40',
	vsE: '15-17',
	vsR: '46-58',
	vsL: '14-24',
	xwl: '59-83',
	strk: 'L2',
	l: '82',
	lastg: '9/7 @ SF, L 6-11',
	interleague: '6-9',
	team: 'Pittsburgh',
	road: '26-45'
}]
var standings_rs_nle = [{
	w: '79',
	elim: '-',
	rs: '695',
	div: 'nle',
	gameid: '2008_09_07_phimlb_nynmlb_2',
	status: 'I',
	pre: null,
	last10: '6-4',
	onerun: '15-16',
	xtr: '9-8',
	nextg: '9/7 v PHI, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2008_09_07_phimlb_nynmlb_2\',mode:\'gameday\'})">LIVE</a>',
	vsW: '20-15',
	ra: '615',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_phimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433240&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '41-27',
	code: 'nym',
	pct: '.556',
	league_sensitive_team_name: 'NY Mets',
	vsC: '18-18',
	vsE: '32-24',
	vsR: '51-46',
	vsL: '28-17',
	xwl: '79-63',
	strk: 'L2',
	l: '63',
	lastg: '9/7 v PHI, L 2-6',
	interleague: '9-6',
	team: 'New York',
	road: '38-36'
}, {
	w: '78',
	elim: '20',
	rs: '685',
	div: 'nle',
	gameid: '2008_09_07_phimlb_nynmlb_2',
	status: 'I',
	pre: null,
	last10: '5-5',
	onerun: '23-22',
	xtr: '6-7',
	nextg: '9/7 @ NYM, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2008_09_07_phimlb_nynmlb_2\',mode:\'gameday\'})">LIVE</a>',
	vsW: '20-12',
	ra: '587',
	gb: '1.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_phimlb_nynmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433240&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-29',
	code: 'phi',
	pct: '.549',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '23-16',
	vsE: '31-25',
	vsR: '50-45',
	vsL: '28-19',
	xwl: '81-61',
	strk: 'W2',
	l: '64',
	lastg: '9/7 @ NYM, W 6-2',
	interleague: '4-11',
	team: 'Philadelphia',
	road: '39-35'
}, {
	w: '72',
	elim: '13',
	rs: '660',
	div: 'nle',
	gameid: '2008_09_08_flomlb_phimlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '22-18',
	xtr: '9-5',
	nextg: '9/8 @ PHI,  7:05P',
	vsW: '20-16',
	ra: '693',
	gb: '7.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_flomlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433151&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-34',
	code: 'fla',
	pct: '.503',
	league_sensitive_team_name: 'Florida',
	vsC: '16-19',
	vsE: '31-26',
	vsR: '50-52',
	vsL: '22-19',
	xwl: '68-75',
	strk: 'L2',
	l: '71',
	lastg: '9/7 @ STL, L 1-3',
	interleague: '5-10',
	team: 'Florida',
	road: '34-37'
}, {
	w: '62',
	elim: '2',
	rs: '663',
	div: 'nle',
	gameid: '2008_09_09_colmlb_atlmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '7-27',
	xtr: '2-10',
	nextg: '9/9 v COL,  7:00P',
	vsW: '17-14',
	ra: '694',
	gb: '18.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_wasmlb_atlmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432980&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '38-34',
	code: 'atl',
	pct: '.431',
	league_sensitive_team_name: 'Atlanta',
	vsC: '12-26',
	vsE: '25-35',
	vsR: '45-56',
	vsL: '17-26',
	xwl: '69-75',
	strk: 'L2',
	l: '82',
	lastg: '9/7 v WSH, L 4-7',
	interleague: '8-7',
	team: 'Atlanta',
	road: '24-48'
}, {
	w: '56',
	elim: 'E',
	rs: '564',
	div: 'nle',
	gameid: '2008_09_09_wasmlb_nynmlb_1',
	status: 'P',
	pre: null,
	last10: '7-3',
	onerun: '19-26',
	xtr: '7-6',
	nextg: '9/9 @ NYM,  7:10P',
	vsW: '9-20',
	ra: '714',
	gb: '24.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_wasmlb_atlmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432980&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '31-40',
	code: 'was',
	pct: '.389',
	league_sensitive_team_name: 'Washington',
	vsC: '15-25',
	vsE: '24-33',
	vsR: '35-56',
	vsL: '21-32',
	xwl: '57-87',
	strk: 'W2',
	l: '88',
	lastg: '9/7 @ ATL, W 7-4',
	interleague: '8-10',
	team: 'Washington',
	road: '25-48'
}]
var standings_rs_nlw = [{
	w: '73',
	elim: '-',
	rs: '603',
	div: 'nlw',
	gameid: '2008_09_08_lanmlb_sdnmlb_1',
	status: 'P',
	pre: null,
	last10: '8-2',
	onerun: '17-21',
	xtr: '5-9',
	nextg: '9/8 @ SD, 10:05P',
	vsW: '32-25',
	ra: '577',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_arimlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433326&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '45-30',
	code: 'la',
	pct: '.510',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '20-17',
	vsE: '16-18',
	vsR: '49-51',
	vsL: '24-19',
	xwl: '74-69',
	strk: 'W8',
	l: '70',
	lastg: '9/7 v ARI, W 5-3',
	interleague: '5-10',
	team: 'Los Angeles',
	road: '28-40'
}, {
	w: '71',
	elim: '19',
	rs: '643',
	div: 'nlw',
	gameid: '2008_09_08_arimlb_sfnmlb_1',
	status: 'P',
	pre: null,
	last10: '3-7',
	onerun: '18-18',
	xtr: '4-4',
	nextg: '9/8 @ SF, 10:15P',
	vsW: '35-24',
	ra: '631',
	gb: '1.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_arimlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433326&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '40-31',
	code: 'ari',
	pct: '.500',
	league_sensitive_team_name: 'Arizona',
	vsC: '15-17',
	vsE: '15-21',
	vsR: '45-53',
	vsL: '26-18',
	xwl: '72-70',
	strk: 'L3',
	l: '71',
	lastg: '9/7 @ LAD, L 3-5',
	interleague: '6-9',
	team: 'Arizona',
	road: '31-40'
}, {
	w: '67',
	elim: '13',
	rs: '668',
	div: 'nlw',
	gameid: '2008_09_09_colmlb_atlmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '22-18',
	xtr: '5-5',
	nextg: '9/9 @ ATL,  7:00P',
	vsW: '24-33',
	ra: '729',
	gb: '6.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_houmlb_colmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3432882&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '39-33',
	code: 'col',
	pct: '.465',
	league_sensitive_team_name: 'Colorado',
	vsC: '21-18',
	vsE: '15-18',
	vsR: '44-60',
	vsL: '23-17',
	xwl: '66-78',
	strk: 'L2',
	l: '77',
	lastg: '9/7 v HOU, L 5-7',
	interleague: '7-8',
	team: 'Colorado',
	road: '28-44'
}, {
	w: '62',
	elim: '10',
	rs: '557',
	div: 'nlw',
	gameid: '2008_09_08_arimlb_sfnmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '27-18',
	xtr: '7-5',
	nextg: '9/8 v ARI, 10:15P',
	vsW: '26-26',
	ra: '670',
	gb: '10.5',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_pitmlb_sfnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433473&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '32-40',
	code: 'sf',
	pct: '.437',
	league_sensitive_team_name: 'San Francisco',
	vsC: '11-29',
	vsE: '19-13',
	vsR: '47-52',
	vsL: '15-28',
	xwl: '59-83',
	strk: 'W2',
	l: '80',
	lastg: '9/7 v PIT, W 11-6',
	interleague: '6-12',
	team: 'San Francisco',
	road: '30-40'
}, {
	w: '55',
	elim: '2',
	rs: '554',
	div: 'nlw',
	gameid: '2008_09_08_lanmlb_sdnmlb_1',
	status: 'P',
	pre: null,
	last10: '4-6',
	onerun: '15-27',
	xtr: '5-7',
	nextg: '9/8 v LAD, 10:05P',
	vsW: '25-34',
	ra: '662',
	gb: '18.0',
	wrap: 'javascript:void(launchGameday({gid:\'2008_09_07_sdnmlb_milmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20080907&content_id=3433673&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	home: '32-39',
	code: 'sd',
	pct: '.385',
	league_sensitive_team_name: 'San Diego',
	vsC: '15-23',
	vsE: '12-16',
	vsR: '38-54',
	vsL: '17-34',
	xwl: '60-83',
	strk: 'W1',
	l: '88',
	lastg: '9/7 @ MIL, W 10-1',
	interleague: '3-15',
	team: 'San Diego',
	road: '23-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' && 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']		= 'cin';
addLoadEvent(star_mlb_standings);
