	var standings_rs_alc =
[{
	w: '79',
	elim: '-',
	rs: '660',
	div: 'alc',
	gameid: '2010_09_05_texmlb_minmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_texmlb_minmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14274598&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '26-21',
	xtr: '8-4',
	nextg: '9/5 vs TEX,  2:10P',
	vsW: '22-10',
	ra: '549',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_texmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14274612&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '44-23',
	code: 'min',
	pct: '.581',
	league_sensitive_team_name: 'Minnesota',
	vsC: '35-19',
	vsE: '14-18',
	clinch: '',
	vsL: '28-20',
	vsR: '51-37',
	xwl: '79-57',
	l: '57',
	strk: 'W2',
	lastg: '9/4 vs TEX, W 12-4',
	interleague: '8-10',
	road: '35-34',
	games_back_wildcard: null,
	team: 'Minnesota'
}, {
	w: '75',
	elim: '24',
	rs: '642',
	div: 'alc',
	gameid: '2010_09_05_chamlb_bosmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_chamlb_bosmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14279900&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '21-21',
	xtr: '5-9',
	nextg: '9/5 @ BOS,  1:35P',
	vsW: '20-11',
	ra: '561',
	gb: '3.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_chamlb_bosmlb_2\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14284024&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '20',
	home: '38-27',
	code: 'cws',
	pct: '.556',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '27-29',
	vsE: '13-17',
	clinch: '',
	vsL: '16-17',
	vsR: '59-43',
	xwl: '76-59',
	l: '60',
	strk: 'W5',
	lastg: '9/4 @ BOS, W 3-1',
	interleague: '15-3',
	road: '37-33',
	games_back_wildcard: '8.0',
	team: 'Chicago'
}, {
	w: '68',
	elim: '16',
	rs: '618',
	div: 'alc',
	gameid: '2010_09_05_detmlb_kcamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_detmlb_kcamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14291834&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '15-21',
	xtr: '5-7',
	nextg: '9/5 @ KC,  2:10P',
	vsW: '15-16',
	ra: '626',
	gb: '11.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_detmlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14287292&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '12',
	home: '43-25',
	code: 'det',
	pct: '.500',
	league_sensitive_team_name: 'Detroit',
	vsC: '27-28',
	vsE: '15-17',
	clinch: '',
	vsL: '22-18',
	vsR: '46-50',
	xwl: '67-69',
	l: '68',
	strk: 'W3',
	lastg: '9/4 @ KC, W 6-4',
	interleague: '11-7',
	road: '25-43',
	games_back_wildcard: '15.5',
	team: 'Detroit'
}, {
	w: '56',
	elim: '5',
	rs: '554',
	div: 'alc',
	gameid: '2010_09_05_detmlb_kcamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_detmlb_kcamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14291834&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '25-26',
	xtr: '10-7',
	nextg: '9/5 vs DET,  2:10P',
	vsW: '11-23',
	ra: '717',
	gb: '22.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_detmlb_kcamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14287292&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '1',
	home: '30-37',
	code: 'kc',
	pct: '.415',
	league_sensitive_team_name: 'Kansas City',
	vsC: '22-30',
	vsE: '15-16',
	clinch: '',
	vsL: '11-20',
	vsR: '45-59',
	xwl: '52-83',
	l: '79',
	strk: 'L3',
	lastg: '9/4 vs DET, L 4-6',
	interleague: '8-10',
	road: '26-42',
	games_back_wildcard: '27.0',
	team: 'Kansas City'
}, {
	w: '55',
	elim: '3',
	rs: '545',
	div: 'alc',
	gameid: '2010_09_05_clemlb_seamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_clemlb_seamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288260&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '19-18',
	xtr: '5-4',
	nextg: '9/5 @ SEA,  4:10P',
	vsW: '9-15',
	ra: '657',
	gb: '24.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_clemlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14301468&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: 'E',
	home: '29-39',
	code: 'cle',
	pct: '.404',
	league_sensitive_team_name: 'Cleveland',
	vsC: '24-29',
	vsE: '17-24',
	clinch: '',
	vsL: '16-25',
	vsR: '39-56',
	xwl: '57-79',
	l: '81',
	strk: 'W1',
	lastg: '9/4 @ SEA, W 4-2',
	interleague: '5-13',
	road: '26-42',
	games_back_wildcard: '28.5',
	team: 'Cleveland'
}]
	var standings_rs_ale =
[{
	w: '86',
	elim: '-',
	rs: '740',
	div: 'ale',
	gameid: '2010_09_05_tormlb_nyamlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_tormlb_nyamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14273614&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '8-2',
	onerun: '15-12',
	xtr: '4-3',
	nextg: '9/5 vs TOR, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_tormlb_nyamlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '23-10',
	ra: '553',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_tormlb_nyamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14274570&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '48-22',
	code: 'nyy',
	pct: '.632',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '23-13',
	vsE: '29-20',
	clinch: '',
	vsL: '31-18',
	vsR: '55-32',
	xwl: '86-50',
	l: '50',
	strk: 'W8',
	lastg: '9/4 vs TOR, W 7-5',
	interleague: '11-7',
	road: '38-28',
	games_back_wildcard: null,
	team: 'New York'
}, {
	w: '83',
	elim: '25',
	rs: '667',
	div: 'ale',
	gameid: '2010_09_05_tbamlb_balmlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_tbamlb_balmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14291188&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '24-22',
	xtr: '7-4',
	nextg: '9/5 @ BAL, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_tbamlb_balmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '18-9',
	ra: '526',
	gb: '2.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_tbamlb_balmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14292056&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '-',
	home: '43-26',
	code: 'tb',
	pct: '.615',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '24-11',
	vsE: '34-21',
	clinch: '',
	vsL: '31-15',
	vsR: '52-37',
	xwl: '82-53',
	l: '52',
	strk: 'L1',
	lastg: '9/4 @ BAL, L 4-8',
	interleague: '7-11',
	road: '40-26',
	games_back_wildcard: '-',
	team: 'Tampa Bay'
}, {
	w: '76',
	elim: '17',
	rs: '677',
	div: 'ale',
	gameid: '2010_09_05_chamlb_bosmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_chamlb_bosmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14279900&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '21-21',
	xtr: '5-10',
	nextg: '9/5 vs CWS,  1:35P',
	vsW: '20-13',
	ra: '614',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_chamlb_bosmlb_2\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14284024&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '20',
	home: '40-28',
	code: 'bos',
	pct: '.559',
	league_sensitive_team_name: 'Boston',
	vsC: '14-14',
	vsE: '29-28',
	clinch: '',
	vsL: '24-21',
	vsR: '52-39',
	xwl: '74-62',
	l: '60',
	strk: 'L2',
	lastg: '9/4 vs CWS, L 1-3',
	interleague: '13-5',
	road: '36-32',
	games_back_wildcard: '7.5',
	team: 'Boston'
}, {
	w: '69',
	elim: '11',
	rs: '628',
	div: 'ale',
	gameid: '2010_09_05_tormlb_nyamlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_tormlb_nyamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14273614&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '19-25',
	xtr: '4-5',
	nextg: '9/5 @ NYY, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_tormlb_nyamlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '13-11',
	ra: '599',
	gb: '16.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_tormlb_nyamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14274570&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '14',
	home: '35-27',
	code: 'tor',
	pct: '.511',
	league_sensitive_team_name: 'Toronto',
	vsC: '19-18',
	vsE: '30-26',
	clinch: '',
	vsL: '11-18',
	vsR: '58-48',
	xwl: '70-65',
	l: '66',
	strk: 'L3',
	lastg: '9/4 @ NYY, L 5-7',
	interleague: '7-11',
	road: '34-39',
	games_back_wildcard: '14.0',
	team: 'Toronto'
}, {
	w: '50',
	elim: 'E',
	rs: '506',
	div: 'ale',
	gameid: '2010_09_05_tbamlb_balmlb_1',
	status: 'P',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_tbamlb_balmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14291188&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '23-18',
	xtr: '11-3',
	nextg: '9/5 vs TB, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_tbamlb_balmlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '18-17',
	ra: '691',
	gb: '36.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_tbamlb_balmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14292056&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: 'E',
	home: '29-41',
	code: 'bal',
	pct: '.368',
	league_sensitive_team_name: 'Baltimore',
	vsC: '12-18',
	vsE: '13-40',
	clinch: '',
	vsL: '15-28',
	vsR: '35-58',
	xwl: '49-87',
	l: '86',
	strk: 'W1',
	lastg: '9/4 vs TB, W 8-4',
	interleague: '7-11',
	road: '21-45',
	games_back_wildcard: '33.5',
	team: 'Baltimore'
}]
	var standings_rs_alw =
[{
	w: '75',
	elim: '-',
	rs: '653',
	div: 'alw',
	gameid: '2010_09_05_texmlb_minmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_texmlb_minmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14274598&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '24-19',
	xtr: '9-5',
	nextg: '9/5 @ MIN,  2:10P',
	vsW: '24-16',
	ra: '575',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_texmlb_minmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14274612&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '43-26',
	code: 'tex',
	pct: '.556',
	league_sensitive_team_name: 'Texas',
	vsC: '23-17',
	vsE: '14-23',
	clinch: '',
	vsL: '22-21',
	vsR: '53-39',
	xwl: '75-60',
	l: '60',
	strk: 'L2',
	lastg: '9/4 @ MIN, L 4-12',
	interleague: '14-4',
	road: '32-34',
	games_back_wildcard: null,
	team: 'Texas'
}, {
	w: '67',
	elim: '20',
	rs: '545',
	div: 'alw',
	gameid: '2010_09_05_anamlb_oakmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_anamlb_oakmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288004&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '20-16',
	xtr: '4-6',
	nextg: '9/5 vs LAA,  4:05P',
	vsW: '23-19',
	ra: '519',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_anamlb_oakmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14281402&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '12',
	home: '40-27',
	code: 'oak',
	pct: '.496',
	league_sensitive_team_name: 'Oakland',
	vsC: '18-15',
	vsE: '18-24',
	clinch: '',
	vsL: '17-19',
	vsR: '50-49',
	xwl: '71-64',
	l: '68',
	strk: 'W2',
	lastg: '9/4 vs LAA, W 3-1',
	interleague: '8-10',
	road: '27-41',
	games_back_wildcard: '16.0',
	team: 'Oakland'
}, {
	w: '65',
	elim: '17',
	rs: '585',
	div: 'alw',
	gameid: '2010_09_05_anamlb_oakmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_anamlb_oakmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288004&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '18-17',
	xtr: '5-4',
	nextg: '9/5 @ OAK,  4:05P',
	vsW: '24-19',
	ra: '621',
	gb: '10.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_anamlb_oakmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14281402&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '9',
	home: '34-32',
	code: 'ana',
	pct: '.478',
	league_sensitive_team_name: 'LA Angels',
	vsC: '17-19',
	vsE: '13-26',
	clinch: '',
	vsL: '18-23',
	vsR: '47-48',
	xwl: '64-72',
	l: '71',
	strk: 'L2',
	lastg: '9/4 @ OAK, L 1-3',
	interleague: '11-7',
	road: '31-39',
	games_back_wildcard: '18.5',
	team: 'Los Angeles'
}, {
	w: '53',
	elim: '5',
	rs: '437',
	div: 'alw',
	gameid: '2010_09_05_clemlb_seamlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_clemlb_seamlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288260&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '19-23',
	xtr: '3-10',
	nextg: '9/5 vs CLE,  4:10P',
	vsW: '12-29',
	ra: '579',
	gb: '22.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_clemlb_seamlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14301468&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: 'E',
	home: '32-38',
	code: 'sea',
	pct: '.390',
	league_sensitive_team_name: 'Seattle',
	vsC: '17-26',
	vsE: '15-19',
	clinch: '',
	vsL: '11-28',
	vsR: '42-55',
	xwl: '51-85',
	l: '83',
	strk: 'L1',
	lastg: '9/4 vs CLE, L 2-4',
	interleague: '9-9',
	road: '21-45',
	games_back_wildcard: '30.5',
	team: 'Seattle'
}]
	var standings_rs_nlc =
[{
	w: '79',
	elim: '-',
	rs: '677',
	div: 'nlc',
	gameid: '2010_09_05_cinmlb_slnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_cinmlb_slnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288458&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '22-21',
	xtr: '9-7',
	nextg: '9/5 @ STL,  2:15P',
	vsW: '14-11',
	ra: '576',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_cinmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14280446&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '41-27',
	code: 'cin',
	pct: '.585',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '40-23',
	vsE: '17-15',
	clinch: '',
	vsL: '26-19',
	vsR: '53-37',
	xwl: '77-58',
	l: '56',
	strk: 'W1',
	lastg: '9/4 @ STL, W 6-1',
	interleague: '8-7',
	road: '38-29',
	games_back_wildcard: null,
	team: 'Cincinnati'
}, {
	w: '70',
	elim: '21',
	rs: '599',
	div: 'nlc',
	gameid: '2010_09_05_cinmlb_slnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_cinmlb_slnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14288458&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '2-8',
	onerun: '18-22',
	xtr: '5-7',
	nextg: '9/5 vs CIN,  2:15P',
	vsW: '13-15',
	ra: '517',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_cinmlb_slnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14280446&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '22',
	home: '42-24',
	code: 'stl',
	pct: '.526',
	league_sensitive_team_name: 'St. Louis',
	vsC: '32-30',
	vsE: '16-12',
	clinch: '',
	vsL: '23-23',
	vsR: '47-40',
	xwl: '75-58',
	l: '63',
	strk: 'L1',
	lastg: '9/4 vs CIN, L 1-6',
	interleague: '9-6',
	road: '28-39',
	games_back_wildcard: '6.5',
	team: 'St. Louis'
}, {
	w: '63',
	elim: '12',
	rs: '509',
	div: 'nlc',
	gameid: '2010_09_05_houmlb_arimlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_houmlb_arimlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14292658&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '17-15',
	xtr: '7-4',
	nextg: '9/5 @ ARI,  4:10P',
	vsW: '10-20',
	ra: '609',
	gb: '16.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_houmlb_arimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14294754&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '13',
	home: '35-33',
	code: 'hou',
	pct: '.467',
	league_sensitive_team_name: 'Houston',
	vsC: '36-24',
	vsE: '14-16',
	clinch: '',
	vsL: '23-14',
	vsR: '40-58',
	xwl: '57-78',
	l: '72',
	strk: 'W1',
	lastg: '9/4 @ ARI, W 6-5',
	interleague: '3-12',
	road: '28-39',
	games_back_wildcard: '14.5',
	team: 'Houston'
}, {
	w: '62',
	elim: '11',
	rs: '633',
	div: 'nlc',
	gameid: '2010_09_05_milmlb_phimlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_milmlb_phimlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14278646&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '23-18',
	xtr: '6-5',
	nextg: '9/5 @ PHI,  1:35P',
	vsW: '13-20',
	ra: '716',
	gb: '17.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_milmlb_phimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14291720&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '12',
	home: '33-35',
	code: 'mil',
	pct: '.459',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '31-31',
	vsE: '9-16',
	clinch: '',
	vsL: '19-24',
	vsR: '43-49',
	xwl: '60-75',
	l: '73',
	strk: 'L5',
	lastg: '9/4 @ PHI, L 4-5',
	interleague: '9-6',
	road: '29-38',
	games_back_wildcard: '15.5',
	team: 'Milwaukee'
}, {
	w: '59',
	elim: '7',
	rs: '594',
	div: 'nlc',
	gameid: '2010_09_05_nynmlb_chnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_nynmlb_chnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14270658&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '18-30',
	xtr: '4-6',
	nextg: '9/5 vs NYM,  2:20P',
	vsW: '12-15',
	ra: '676',
	gb: '20.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_nynmlb_chnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14270644&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '8',
	home: '32-39',
	code: 'chc',
	pct: '.434',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '25-39',
	vsE: '14-13',
	clinch: '',
	vsL: '20-26',
	vsR: '39-51',
	xwl: '60-76',
	l: '77',
	strk: 'W3',
	lastg: '9/4 vs NYM, W 5-3',
	interleague: '8-10',
	road: '27-38',
	games_back_wildcard: '19.0',
	team: 'Chicago'
}, {
	w: '45',
	elim: 'E',
	rs: '470',
	div: 'nlc',
	gameid: '2010_09_05_wasmlb_pitmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_wasmlb_pitmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14293100&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '4-6',
	onerun: '18-20',
	xtr: '4-5',
	nextg: '9/5 vs WSH,  1:35P',
	vsW: '10-19',
	ra: '737',
	gb: '34.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_wasmlb_pitmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14294760&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: 'E',
	home: '31-37',
	code: 'pit',
	pct: '.333',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '25-42',
	vsE: '8-16',
	clinch: '',
	vsL: '18-25',
	vsR: '27-65',
	xwl: '41-94',
	l: '90',
	strk: 'L1',
	lastg: '9/4 vs WSH, L 2-9',
	interleague: '2-13',
	road: '14-53',
	games_back_wildcard: '32.5',
	team: 'Pittsburgh'
}]
	var standings_rs_nle =
[{
	w: '79',
	elim: '-',
	rs: '642',
	div: 'nle',
	gameid: '2010_09_05_atlmlb_flomlb_1',
	status: 'I',
	pre: null,
	last10: '6-4',
	onerun: '20-20',
	xtr: '6-6',
	nextg: '9/5 @ FLA, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_atlmlb_flomlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '19-15',
	ra: '515',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_atlmlb_flomlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14300406&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '49-19',
	code: 'atl',
	pct: '.581',
	league_sensitive_team_name: 'Atlanta',
	vsC: '22-12',
	vsE: '29-24',
	clinch: '',
	vsL: '24-24',
	vsR: '55-33',
	xwl: '81-55',
	l: '57',
	strk: 'W1',
	lastg: '9/4 @ FLA, W 2-0',
	interleague: '9-6',
	road: '30-38',
	games_back_wildcard: null,
	team: 'Atlanta'
}, {
	w: '78',
	elim: '26',
	rs: '628',
	div: 'nle',
	gameid: '2010_09_05_milmlb_phimlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_milmlb_phimlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14278646&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '8-2',
	onerun: '24-14',
	xtr: '11-6',
	nextg: '9/5 vs MIL,  1:35P',
	vsW: '22-10',
	ra: '549',
	gb: '1.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_milmlb_phimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14291720&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '-',
	home: '44-26',
	code: 'phi',
	pct: '.574',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '21-18',
	vsE: '25-22',
	clinch: '',
	vsL: '22-18',
	vsR: '56-40',
	xwl: '76-60',
	l: '58',
	strk: 'W5',
	lastg: '9/4 vs MIL, W 5-4',
	interleague: '10-8',
	road: '34-32',
	games_back_wildcard: '-',
	team: 'Philadelphia'
}, {
	w: '68',
	elim: '18',
	rs: '610',
	div: 'nle',
	gameid: '2010_09_05_atlmlb_flomlb_1',
	status: 'I',
	pre: null,
	last10: '6-4',
	onerun: '21-24',
	xtr: '4-7',
	nextg: '9/5 vs ATL, <a href="javascript:void(0)" onclick="launchGameday({gid:\'2010_09_05_atlmlb_flomlb_1\',mode:\'gameday\'})">LIVE</a>',
	vsW: '16-19',
	ra: '581',
	gb: '10.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_atlmlb_flomlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14300406&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '19',
	home: '34-33',
	code: 'fla',
	pct: '.507',
	league_sensitive_team_name: 'Florida',
	vsC: '15-13',
	vsE: '30-26',
	clinch: '',
	vsL: '28-12',
	vsR: '40-54',
	xwl: '70-64',
	l: '66',
	strk: 'L1',
	lastg: '9/4 vs ATL, L 0-2',
	interleague: '7-8',
	road: '34-33',
	games_back_wildcard: '9.0',
	team: 'Florida'
}, {
	w: '66',
	elim: '14',
	rs: '542',
	div: 'nle',
	gameid: '2010_09_05_nynmlb_chnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_nynmlb_chnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14270658&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '3-7',
	onerun: '19-27',
	xtr: '5-8',
	nextg: '9/5 @ CHC,  2:20P',
	vsW: '14-18',
	ra: '543',
	gb: '13.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_nynmlb_chnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14270644&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '15',
	home: '39-25',
	code: 'nym',
	pct: '.485',
	league_sensitive_team_name: 'NY Mets',
	vsC: '15-16',
	vsE: '24-31',
	clinch: '',
	vsL: '18-16',
	vsR: '48-54',
	xwl: '68-68',
	l: '70',
	strk: 'L2',
	lastg: '9/4 @ CHC, L 3-5',
	interleague: '13-5',
	road: '27-45',
	games_back_wildcard: '12.0',
	team: 'New York'
}, {
	w: '58',
	elim: '6',
	rs: '564',
	div: 'nle',
	gameid: '2010_09_05_wasmlb_pitmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_wasmlb_pitmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14293100&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '17-24',
	xtr: '2-9',
	nextg: '9/5 @ PIT,  1:35P',
	vsW: '15-18',
	ra: '638',
	gb: '21.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_wasmlb_pitmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14294760&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '7',
	home: '34-31',
	code: 'was',
	pct: '.426',
	league_sensitive_team_name: 'Washington',
	vsC: '15-19',
	vsE: '23-28',
	clinch: '',
	vsL: '14-21',
	vsR: '44-57',
	xwl: '60-76',
	l: '78',
	strk: 'W1',
	lastg: '9/4 @ PIT, W 9-2',
	interleague: '5-13',
	road: '24-47',
	games_back_wildcard: '20.0',
	team: 'Washington'
}]
	var standings_rs_nlw =
[{
	w: '76',
	elim: '-',
	rs: '581',
	div: 'nlw',
	gameid: '2010_09_05_colmlb_sdnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_colmlb_sdnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14281384&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '1-9',
	onerun: '23-19',
	xtr: '7-7',
	nextg: '9/5 vs COL,  4:05P',
	vsW: '28-27',
	ra: '477',
	gb: '-',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_colmlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14281366&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: null,
	home: '38-28',
	code: 'sd',
	pct: '.567',
	league_sensitive_team_name: 'San Diego',
	vsC: '23-7',
	vsE: '16-18',
	clinch: '',
	vsL: '25-15',
	vsR: '51-43',
	xwl: '79-55',
	l: '58',
	strk: 'L9',
	lastg: '9/4 vs COL, L 2-6',
	interleague: '9-6',
	road: '38-30',
	games_back_wildcard: null,
	team: 'San Diego'
}, {
	w: '75',
	elim: '26',
	rs: '600',
	div: 'nlw',
	gameid: '2010_09_05_sfnmlb_lanmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_sfnmlb_lanmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14304344&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '24-20',
	xtr: '10-7',
	nextg: '9/5 @ LAD,  8:00P',
	vsW: '24-28',
	ra: '532',
	gb: '2.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_sfnmlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14268494&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '24',
	home: '42-27',
	code: 'sf',
	pct: '.551',
	league_sensitive_team_name: 'San Francisco',
	vsC: '25-11',
	vsE: '19-14',
	clinch: '',
	vsL: '20-17',
	vsR: '55-44',
	xwl: '75-61',
	l: '61',
	strk: 'W1',
	lastg: '9/4 @ LAD, W 5-4',
	interleague: '7-8',
	road: '33-34',
	games_back_wildcard: '3.0',
	team: 'San Francisco'
}, {
	w: '71',
	elim: '23',
	rs: '631',
	div: 'nlw',
	gameid: '2010_09_05_colmlb_sdnmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_colmlb_sdnmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14281384&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '6-4',
	onerun: '24-24',
	xtr: '7-8',
	nextg: '9/5 @ SD,  4:05P',
	vsW: '29-24',
	ra: '589',
	gb: '5.5',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_colmlb_sdnmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14281366&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '21',
	home: '43-22',
	code: 'col',
	pct: '.526',
	league_sensitive_team_name: 'Colorado',
	vsC: '17-16',
	vsE: '16-18',
	clinch: '',
	vsL: '29-23',
	vsR: '42-41',
	xwl: '72-63',
	l: '64',
	strk: 'W2',
	lastg: '9/4 @ SD, W 6-2',
	interleague: '9-6',
	road: '28-42',
	games_back_wildcard: '6.5',
	team: 'Colorado'
}, {
	w: '69',
	elim: '20',
	rs: '587',
	div: 'nlw',
	gameid: '2010_09_05_sfnmlb_lanmlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_sfnmlb_lanmlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14304344&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '5-5',
	onerun: '22-20',
	xtr: '7-4',
	nextg: '9/5 vs SF,  8:00P',
	vsW: '31-19',
	ra: '582',
	gb: '8.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_sfnmlb_lanmlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14268494&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '18',
	home: '41-30',
	code: 'la',
	pct: '.507',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '21-17',
	vsE: '13-20',
	clinch: '',
	vsL: '18-21',
	vsR: '51-46',
	xwl: '69-67',
	l: '67',
	strk: 'L1',
	lastg: '9/4 vs SF, L 4-5',
	interleague: '4-11',
	road: '28-37',
	games_back_wildcard: '9.0',
	team: 'Los Angeles'
}, {
	w: '56',
	elim: '7',
	rs: '627',
	div: 'nlw',
	gameid: '2010_09_05_houmlb_arimlb_1',
	status: 'S',
	pre: 'javascript:void(launchGameday({gid:\'2010_09_05_houmlb_arimlb_1\',mode:\'preview\',lurl:\'/news/article.jsp?ymd=20100904&content_id=14292658&vkey=news_mlb&fext=.jsp&c_id=mlb\'}))',
	last10: '7-3',
	onerun: '17-18',
	xtr: '5-7',
	nextg: '9/5 vs HOU,  4:10P',
	vsW: '20-34',
	ra: '727',
	gb: '21.0',
	wrap: 'javascript:void(launchGameday({gid:\'2010_09_04_houmlb_arimlb_1\',mode:\'wrap\',lurl:\'/news/wrap.jsp?ymd=20100904&content_id=14294754&vkey=wrapup2005&fext=.jsp&c_id=mlb\'}))',
	elimination_number_wildcard: '5',
	home: '34-37',
	code: 'ari',
	pct: '.412',
	league_sensitive_team_name: 'Arizona',
	vsC: '14-21',
	vsE: '16-16',
	clinch: '',
	vsL: '15-23',
	vsR: '41-57',
	xwl: '59-77',
	l: '80',
	strk: 'L1',
	lastg: '9/4 vs HOU, L 5-6',
	interleague: '6-9',
	road: '22-43',
	games_back_wildcard: '22.0',
	team: 'Arizona'
}]



/**

 * @desc function star_mlb_standings()

 * The function star_mlb_standings() builds a small table of current standings

 *   and outputs it as a table inside the given html object.

 *

 * @param string division

 * @param string team

 */

function star_mlb_standings() {

	// Deal with any passed arguments.

	if (arguments[0] != null && arguments[0] != 'undefined' && in_array(arguments[0], ["alc","ale","alw","nlc","nle","nlw"])) {

		star_mlb_options['division']	= arguments[0];

	}

	if (arguments[1] != null && arguments[1] != 'undefined' && in_array(arguments[1], ["oak","ana","hou","tor","atl","mil","stl","chc","tb","ari","la","sf","cle","sea","fla","nym","was","bal","sd","phi","pit","tex","cin","bos","col","kc","det","min","cws","nyy"])) {

		star_mlb_options['team']		= arguments[1];

	}



	var showDivs	= true;

	var showSubHead	= true;



	// Build team mascots array.

	var mascots	= new Object;


	mascots['oak']	= 'A\'s';


	mascots['ana']	= 'Angels';


	mascots['hou']	= 'Astros';


	mascots['tor']	= 'Blue Jays';


	mascots['atl']	= 'Braves';


	mascots['mil']	= 'Brewers';


	mascots['stl']	= 'Cardinals';


	mascots['chc']	= 'Cubs';


	mascots['tb']	= 'Devil Rays';


	mascots['ari']	= 'Diamondbacks';


	mascots['la']	= 'Dodgers';


	mascots['sf']	= 'Giants';


	mascots['cle']	= 'Indians';


	mascots['sea']	= 'Mariners';


	mascots['fla']	= 'Marlins';


	mascots['nym']	= 'Mets';


	mascots['was']	= 'Nationals';


	mascots['bal']	= 'Orioles';


	mascots['sd']	= 'Padres';


	mascots['phi']	= 'Phillies';


	mascots['pit']	= 'Pirates';


	mascots['tex']	= 'Rangers';


	mascots['cin']	= 'Reds';


	mascots['bos']	= 'Red Sox';


	mascots['col']	= 'Rockies';


	mascots['kc']	= 'Royals';


	mascots['det']	= 'Tigers';


	mascots['min']	= 'Twins';


	mascots['cws']	= 'White Sox';


	mascots['nyy']	= 'Yankees';




	// Get the object to contain the standings content.

	var standingsBody	= document.getElementById('star_mlb_standings_body');



	// Get the object to contain the standings head.

	var standingsHead	= document.getElementById('star_mlb_standings_head');



	// Get the variable that contains the current standings and the head.

	var standings_rs	= '';

	var standings_head	= '';



	// Deal with the division.

	var division	= star_mlb_options['division'];

	if (division == null || division == 'undefined') {

		division	= 'nlc';

	}



	// Deal with the team.

	var team		= star_mlb_options['team'];



	switch (division) {

		// American League East.

		case 'ale':

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="American League">AL</acronym> East';

		break;



		// American League Central.

		case 'alc':

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="American League">AL</acronym> Central';

		break;



		// American League West.

		case 'alw':

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="American League">AL</acronym> West';

		break;



		// National League East.

		case 'nle':

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="National League">NL</acronym> East';

		break;



		// National League West.

		case 'nlw':

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="National League">NL</acronym> West';

		break;



		// National League Central.

		case 'nlc':

		default:

			standings_rs	= eval('standings_rs_' + division);

			standings_head	= '<acronym title="National League">NL</acronym> Central';

		break;

	}



	if (!showSubHead) {

		standings_head	= '';

	}



	// Build the links.

	var standings	= '';

	if (showDivs) {

		standings	+= '<div class="center">';

		if (division == 'alw') {

			standings	+= '<acronym title="American League West">ALW</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'alw\');"><acronym title="American League West">ALW</acronym></a>\n';

		}

		if (division == 'alc') {

			standings	+= '<acronym title="American League Central">ALC</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'alc\');"><acronym title="American League Central">ALC</acronym></a>\n';

		}

		if (division == 'ale') {

			standings	+= '<acronym title="American League East">ALE</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'ale\');"><acronym title="American League East">ALE</acronym></a>\n';

		}

		if (division == 'nlw') {

			standings	+= '<acronym title="National League West">NLW</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'nlw\');"><acronym title="National League West">NLW</acronym></a>\n';

		}

		if (division == 'nlc') {

			standings	+= '<acronym title="National League Central">NLC</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'nlc\');"><acronym title="National League Central">NLC</acronym></a>\n';

		}

		if (division == 'nle') {

			standings	+= '<acronym title="National League East">NLE</acronym>\n';

		} else {

			standings	+= '<a href="javascript:star_mlb_standings(\'nle\');"><acronym title="National League East">NLE</acronym></a><br />\n';

		}

		standings	+= '</div>';

	}



	// Start the standings table.

	standings		+= '<table class="ruler"><thead><tr><th>Team</th><th><acronym title="Wins">W</acronym></th><th><acronym title="Losses">L</acronym></th><th><acronym title="Winning Percentage">Pct.</acronym></th><th><acronym title="Games Back">GB</acronym></th></tr></thead><tbody>';



	// Iterate through each of the teams, displaying their data.

	for (i = 0; i < standings_rs.length; i++) {

		// Bold the selected team.

		if (standings_rs[i].code == team) {

			standings_rs[i].league_sensitive_team_name	= standings_rs[i].league_sensitive_team_name;

		}



		// Check URL for last game wrap.

		if (standings_rs[i].wrap != null) {

			var url	= '<a href="http://mlb.mlb.com/news/boxscore.jsp?gid=' + standings_rs[i].gameid + '" title="Last game: ' + standings_rs[i].lastg + '">' + standings_rs[i].league_sensitive_team_name + '</a>';

		} else {

			var url	= '<span title="Last game: ' + standings_rs[i].lastg + '">' + standings_rs[i].league_sensitive_team_name + '</span>';

		}

		standings	+= '<tr>';

		standings	+= '<td>' + url + '</td>';

		standings	+= '<td>' + standings_rs[i].w + '</td>';

		standings	+= '<td>' + standings_rs[i].l + '</td>';

		standings	+= '<td>' + standings_rs[i].pct + '</td>';

		standings	+= '<td>' + standings_rs[i].gb + '</td>';

		standings	+= '</tr>';

	}



	// Close the table.

	standings	+= '</tbody></table>';



	// Include a link to full standings.

	standings	+= '<a class="bold" href="http://mlb.mlb.com/mlb/standings/index.jsp">Expanded Standings</a>';



	// Set the standings object to the standings table.

	standingsBody.innerHTML	= standings;

	standingsHead.innerHTML	= standings_head;

	if (typeof(tableruler) == 'function') {

		tableruler();

	}

}



function in_array(needle, haystack, strict) {

	// http://kevin.vanzonneveld.net

	// +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)

	// *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);

	// *     returns 1: true



	var found = false, key, strict = !!strict;



	for (key in haystack) {

		if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {

			found	= true;

			break;

		}

	}



	return found;

}



function addLoadEvent(func) {

	var oldonload	= window.onload;

	if (typeof window.onload != 'function') {

		window.onload	= func;

	} else {

		window.onload	= function() {

			if (oldonload) {

				oldonload();

			}

			func();

		}

	}

}



var star_mlb_options = new Object;

star_mlb_options['division']	= 'nlw';

star_mlb_options['team']		= 'la';

addLoadEvent(star_mlb_standings);

