	var standings_rs_alc =
[{
	w: '87',
	elim: '-',
	rs: '817',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '24-20',
	xtr: '7-7',
	nextg: null,
	vsW: '19-21',
	ra: '765',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '49-33',
	code: 'min',
	pct: '.534',
	league_sensitive_team_name: 'Minnesota',
	vsC: '46-27',
	vsE: '10-22',
	clinch: 'y',
	vsL: '28-32',
	vsR: '59-44',
	xwl: '86-77',
	l: '76',
	strk: 'W5',
	lastg: null,
	interleague: '12-6',
	road: '38-43',
	games_back_wildcard: null,
	team: 'Minnesota'
}, {
	w: '86',
	elim: 'E',
	rs: '743',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '28-22',
	xtr: '6-5',
	nextg: null,
	vsW: '22-14',
	ra: '745',
	gb: '1.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '51-30',
	code: 'det',
	pct: '.528',
	league_sensitive_team_name: 'Detroit',
	vsC: '39-34',
	vsE: '15-21',
	clinch: '',
	vsL: '29-20',
	vsR: '57-57',
	xwl: '81-82',
	l: '77',
	strk: 'L1',
	lastg: null,
	interleague: '10-8',
	road: '35-47',
	games_back_wildcard: '9.5',
	team: 'Detroit'
}, {
	w: '79',
	elim: 'E',
	rs: '724',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '19-27',
	xtr: '4-6',
	nextg: null,
	vsW: '15-18',
	ra: '732',
	gb: '7.5',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '43-38',
	code: 'cws',
	pct: '.488',
	league_sensitive_team_name: 'Chi White Sox',
	vsC: '34-38',
	vsE: '18-21',
	clinch: '',
	vsL: '25-24',
	vsR: '54-59',
	xwl: '80-82',
	l: '83',
	strk: 'L1',
	lastg: null,
	interleague: '12-6',
	road: '36-45',
	games_back_wildcard: '16.0',
	team: 'Chicago'
}, {
	w: '65',
	elim: 'E',
	rs: '773',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '19-21',
	xtr: '4-8',
	nextg: null,
	vsW: '11-21',
	ra: '865',
	gb: '21.5',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '35-46',
	code: 'cle',
	pct: '.401',
	league_sensitive_team_name: 'Cleveland',
	vsC: '30-42',
	vsE: '19-21',
	clinch: '',
	vsL: '17-23',
	vsR: '48-74',
	xwl: '73-89',
	l: '97',
	strk: 'L5',
	lastg: null,
	interleague: '5-13',
	road: '30-51',
	games_back_wildcard: '30.0',
	team: 'Cleveland'
}, {
	w: '65',
	elim: 'E',
	rs: '686',
	div: 'alc',
	gameid: null,
	status: null,
	pre: null,
	last10: '2-8',
	onerun: '16-25',
	xtr: '6-3',
	nextg: null,
	vsW: '11-22',
	ra: '842',
	gb: '21.5',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '33-48',
	code: 'kc',
	pct: '.401',
	league_sensitive_team_name: 'Kansas City',
	vsC: '32-40',
	vsE: '14-25',
	clinch: '',
	vsL: '20-36',
	vsR: '45-61',
	xwl: '66-96',
	l: '97',
	strk: 'L3',
	lastg: null,
	interleague: '8-10',
	road: '32-49',
	games_back_wildcard: '30.0',
	team: 'Kansas City'
}]
	var standings_rs_ale =
[{
	w: '103',
	elim: '-',
	rs: '915',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '22-16',
	xtr: '7-3',
	nextg: null,
	vsW: '23-15',
	ra: '753',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '57-24',
	code: 'nyy',
	pct: '.636',
	league_sensitive_team_name: 'NY Yankees',
	vsC: '25-9',
	vsE: '45-27',
	clinch: 'y',
	vsL: '36-18',
	vsR: '67-41',
	xwl: '95-67',
	l: '59',
	strk: 'W1',
	lastg: null,
	interleague: '10-8',
	road: '46-35',
	games_back_wildcard: null,
	team: 'New York'
}, {
	w: '95',
	elim: 'E',
	rs: '872',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '22-17',
	xtr: '4-6',
	nextg: null,
	vsW: '13-21',
	ra: '736',
	gb: '8.0',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '56-25',
	code: 'bos',
	pct: '.586',
	league_sensitive_team_name: 'Boston',
	vsC: '26-12',
	vsE: '45-27',
	clinch: 'w',
	vsL: '30-25',
	vsR: '65-42',
	xwl: '93-69',
	l: '67',
	strk: 'W4',
	lastg: null,
	interleague: '11-7',
	road: '39-42',
	games_back_wildcard: '-',
	team: 'Boston'
}, {
	w: '84',
	elim: 'E',
	rs: '803',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '20-25',
	xtr: '6-3',
	nextg: null,
	vsW: '12-21',
	ra: '754',
	gb: '19.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '52-29',
	code: 'tb',
	pct: '.519',
	league_sensitive_team_name: 'Tampa Bay',
	vsC: '19-20',
	vsE: '40-32',
	clinch: '',
	vsL: '30-30',
	vsR: '54-48',
	xwl: '86-76',
	l: '78',
	strk: 'L1',
	lastg: null,
	interleague: '13-5',
	road: '32-49',
	games_back_wildcard: '11.0',
	team: 'Tampa Bay'
}, {
	w: '75',
	elim: 'E',
	rs: '798',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '21-28',
	xtr: '7-13',
	nextg: null,
	vsW: '19-15',
	ra: '771',
	gb: '28.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '44-37',
	code: 'tor',
	pct: '.463',
	league_sensitive_team_name: 'Toronto',
	vsC: '23-15',
	vsE: '26-46',
	clinch: '',
	vsL: '22-28',
	vsR: '53-59',
	xwl: '84-78',
	l: '87',
	strk: 'L3',
	lastg: null,
	interleague: '7-11',
	road: '31-50',
	games_back_wildcard: '20.0',
	team: 'Toronto'
}, {
	w: '64',
	elim: 'E',
	rs: '741',
	div: 'ale',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '17-22',
	xtr: '5-7',
	nextg: null,
	vsW: '12-23',
	ra: '876',
	gb: '39.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '39-42',
	code: 'bal',
	pct: '.395',
	league_sensitive_team_name: 'Baltimore',
	vsC: '17-20',
	vsE: '24-48',
	clinch: '',
	vsL: '24-37',
	vsR: '40-61',
	xwl: '69-93',
	l: '98',
	strk: 'W4',
	lastg: null,
	interleague: '11-7',
	road: '25-56',
	games_back_wildcard: '31.0',
	team: 'Baltimore'
}]
	var standings_rs_alw =
[{
	w: '97',
	elim: '-',
	rs: '883',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '27-18',
	xtr: '7-4',
	nextg: null,
	vsW: '30-27',
	ra: '761',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '49-32',
	code: 'ana',
	pct: '.599',
	league_sensitive_team_name: 'LA Angels',
	vsC: '27-17',
	vsE: '26-17',
	clinch: 'y',
	vsL: '37-17',
	vsR: '60-48',
	xwl: '92-70',
	l: '65',
	strk: 'W3',
	lastg: null,
	interleague: '14-4',
	road: '48-33',
	games_back_wildcard: null,
	team: 'Los Angeles'
}, {
	w: '87',
	elim: 'E',
	rs: '784',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '19-18',
	xtr: '6-4',
	nextg: null,
	vsW: '30-27',
	ra: '740',
	gb: '10.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '48-33',
	code: 'tex',
	pct: '.537',
	league_sensitive_team_name: 'Texas',
	vsC: '21-19',
	vsE: '27-20',
	clinch: '',
	vsL: '29-27',
	vsR: '58-48',
	xwl: '85-77',
	l: '75',
	strk: 'L2',
	lastg: null,
	interleague: '9-9',
	road: '39-42',
	games_back_wildcard: '8.0',
	team: 'Texas'
}, {
	w: '85',
	elim: 'E',
	rs: '640',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '35-20',
	xtr: '9-7',
	nextg: null,
	vsW: '31-26',
	ra: '692',
	gb: '12.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '48-33',
	code: 'sea',
	pct: '.525',
	league_sensitive_team_name: 'Seattle',
	vsC: '22-25',
	vsE: '21-19',
	clinch: '',
	vsL: '28-30',
	vsR: '57-47',
	xwl: '75-87',
	l: '77',
	strk: 'W2',
	lastg: null,
	interleague: '11-7',
	road: '37-44',
	games_back_wildcard: '10.0',
	team: 'Seattle'
}, {
	w: '75',
	elim: 'E',
	rs: '759',
	div: 'alw',
	gameid: null,
	status: null,
	pre: null,
	last10: '3-7',
	onerun: '15-23',
	xtr: '3-10',
	nextg: null,
	vsW: '23-34',
	ra: '761',
	gb: '22.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '40-41',
	code: 'oak',
	pct: '.463',
	league_sensitive_team_name: 'Oakland',
	vsC: '26-17',
	vsE: '21-23',
	clinch: '',
	vsL: '19-31',
	vsR: '56-56',
	xwl: '81-81',
	l: '87',
	strk: 'L7',
	lastg: null,
	interleague: '5-13',
	road: '35-46',
	games_back_wildcard: '20.0',
	team: 'Oakland'
}]
	var standings_rs_nlc =
[{
	w: '91',
	elim: '-',
	rs: '730',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '2-8',
	onerun: '24-21',
	xtr: '5-6',
	nextg: null,
	vsW: '19-15',
	ra: '640',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '46-35',
	code: 'stl',
	pct: '.562',
	league_sensitive_team_name: 'St. Louis',
	vsC: '46-34',
	vsE: '17-16',
	clinch: 'y',
	vsL: '28-21',
	vsR: '63-50',
	xwl: '91-71',
	l: '71',
	strk: 'L3',
	lastg: null,
	interleague: '9-6',
	road: '45-36',
	games_back_wildcard: null,
	team: 'St. Louis'
}, {
	w: '83',
	elim: 'E',
	rs: '707',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '16-22',
	xtr: '9-7',
	nextg: null,
	vsW: '15-20',
	ra: '672',
	gb: '7.5',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '46-34',
	code: 'chc',
	pct: '.516',
	league_sensitive_team_name: 'Chi Cubs',
	vsC: '47-32',
	vsE: '15-17',
	clinch: '',
	vsL: '16-16',
	vsR: '67-62',
	xwl: '84-77',
	l: '78',
	strk: 'L1',
	lastg: null,
	interleague: '6-9',
	road: '37-44',
	games_back_wildcard: '8.5',
	team: 'Chicago'
}, {
	w: '80',
	elim: 'E',
	rs: '785',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '20-23',
	xtr: '5-5',
	nextg: null,
	vsW: '14-20',
	ra: '818',
	gb: '11.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '40-41',
	code: 'mil',
	pct: '.494',
	league_sensitive_team_name: 'Milwaukee',
	vsC: '42-37',
	vsE: '19-15',
	clinch: '',
	vsL: '21-18',
	vsR: '59-64',
	xwl: '78-84',
	l: '82',
	strk: 'W3',
	lastg: null,
	interleague: '5-10',
	road: '40-41',
	games_back_wildcard: '12.0',
	team: 'Milwaukee'
}, {
	w: '78',
	elim: 'E',
	rs: '673',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '19-20',
	xtr: '8-7',
	nextg: null,
	vsW: '10-22',
	ra: '723',
	gb: '13.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '40-41',
	code: 'cin',
	pct: '.481',
	league_sensitive_team_name: 'Cincinnati',
	vsC: '46-34',
	vsE: '16-19',
	clinch: '',
	vsL: '19-25',
	vsR: '59-59',
	xwl: '76-86',
	l: '84',
	strk: 'W2',
	lastg: null,
	interleague: '6-9',
	road: '38-43',
	games_back_wildcard: '14.0',
	team: 'Cincinnati'
}, {
	w: '74',
	elim: 'E',
	rs: '643',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '3-7',
	onerun: '24-23',
	xtr: '3-7',
	nextg: null,
	vsW: '21-15',
	ra: '770',
	gb: '17.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '44-37',
	code: 'hou',
	pct: '.457',
	league_sensitive_team_name: 'Houston',
	vsC: '31-47',
	vsE: '16-17',
	clinch: '',
	vsL: '17-21',
	vsR: '57-67',
	xwl: '68-94',
	l: '88',
	strk: 'L3',
	lastg: null,
	interleague: '6-9',
	road: '30-51',
	games_back_wildcard: '18.0',
	team: 'Houston'
}, {
	w: '62',
	elim: 'E',
	rs: '636',
	div: 'nlc',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '12-22',
	xtr: '2-9',
	nextg: null,
	vsW: '12-24',
	ra: '768',
	gb: '28.5',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '40-41',
	code: 'pit',
	pct: '.385',
	league_sensitive_team_name: 'Pittsburgh',
	vsC: '24-52',
	vsE: '18-16',
	clinch: '',
	vsL: '18-26',
	vsR: '44-73',
	xwl: '67-94',
	l: '99',
	strk: 'L2',
	lastg: null,
	interleague: '8-7',
	road: '22-58',
	games_back_wildcard: '29.5',
	team: 'Pittsburgh'
}]
	var standings_rs_nle =
[{
	w: '93',
	elim: '-',
	rs: '820',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '24-21',
	xtr: '11-5',
	nextg: null,
	vsW: '20-13',
	ra: '709',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '45-36',
	code: 'phi',
	pct: '.574',
	league_sensitive_team_name: 'Philadelphia',
	vsC: '23-16',
	vsE: '44-28',
	clinch: 'y',
	vsL: '29-16',
	vsR: '64-53',
	xwl: '92-70',
	l: '69',
	strk: 'W1',
	lastg: null,
	interleague: '6-12',
	road: '48-33',
	games_back_wildcard: null,
	team: 'Philadelphia'
}, {
	w: '87',
	elim: 'E',
	rs: '772',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '30-20',
	xtr: '7-7',
	nextg: null,
	vsW: '17-16',
	ra: '766',
	gb: '6.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '43-38',
	code: 'fla',
	pct: '.537',
	league_sensitive_team_name: 'Florida',
	vsC: '18-21',
	vsE: '42-30',
	clinch: '',
	vsL: '29-22',
	vsR: '58-53',
	xwl: '82-80',
	l: '75',
	strk: 'L1',
	lastg: null,
	interleague: '10-8',
	road: '44-37',
	games_back_wildcard: '5.0',
	team: 'Florida'
}, {
	w: '86',
	elim: 'E',
	rs: '735',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '27-25',
	xtr: '9-7',
	nextg: null,
	vsW: '18-17',
	ra: '641',
	gb: '7.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '40-41',
	code: 'atl',
	pct: '.531',
	league_sensitive_team_name: 'Atlanta',
	vsC: '20-20',
	vsE: '41-31',
	clinch: '',
	vsL: '31-22',
	vsR: '55-54',
	xwl: '91-71',
	l: '76',
	strk: 'L6',
	lastg: null,
	interleague: '7-8',
	road: '46-35',
	games_back_wildcard: '6.0',
	team: 'Atlanta'
}, {
	w: '70',
	elim: 'E',
	rs: '671',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '5-5',
	onerun: '19-24',
	xtr: '4-7',
	nextg: null,
	vsW: '14-21',
	ra: '757',
	gb: '23.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '41-40',
	code: 'nym',
	pct: '.432',
	league_sensitive_team_name: 'NY Mets',
	vsC: '23-17',
	vsE: '28-44',
	clinch: '',
	vsL: '16-27',
	vsR: '54-65',
	xwl: '72-90',
	l: '92',
	strk: 'W3',
	lastg: null,
	interleague: '5-10',
	road: '29-52',
	games_back_wildcard: '22.0',
	team: 'New York'
}, {
	w: '59',
	elim: 'E',
	rs: '710',
	div: 'nle',
	gameid: null,
	status: null,
	pre: null,
	last10: '7-3',
	onerun: '22-24',
	xtr: '6-9',
	nextg: null,
	vsW: '11-18',
	ra: '874',
	gb: '34.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '33-48',
	code: 'was',
	pct: '.364',
	league_sensitive_team_name: 'Washington',
	vsC: '16-27',
	vsE: '25-47',
	clinch: '',
	vsL: '10-23',
	vsR: '49-80',
	xwl: '66-96',
	l: '103',
	strk: 'W7',
	lastg: null,
	interleague: '7-11',
	road: '26-55',
	games_back_wildcard: '33.0',
	team: 'Washington'
}]
	var standings_rs_nlw =
[{
	w: '95',
	elim: '-',
	rs: '780',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '28-22',
	xtr: '12-9',
	nextg: null,
	vsW: '46-26',
	ra: '611',
	gb: '-',
	wrap: null,
	elimination_number_wildcard: null,
	home: '50-31',
	code: 'la',
	pct: '.586',
	league_sensitive_team_name: 'LA Dodgers',
	vsC: '22-19',
	vsE: '18-13',
	clinch: 'y',
	vsL: '27-20',
	vsR: '68-47',
	xwl: '99-63',
	l: '67',
	strk: 'W2',
	lastg: null,
	interleague: '9-9',
	road: '45-36',
	games_back_wildcard: null,
	team: 'Los Angeles'
}, {
	w: '92',
	elim: 'E',
	rs: '804',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '23-20',
	xtr: '4-5',
	nextg: null,
	vsW: '33-39',
	ra: '715',
	gb: '3.0',
	wrap: null,
	elimination_number_wildcard: '-',
	home: '51-30',
	code: 'col',
	pct: '.568',
	league_sensitive_team_name: 'Colorado',
	vsC: '31-11',
	vsE: '17-16',
	clinch: 'w',
	vsL: '27-26',
	vsR: '65-44',
	xwl: '90-72',
	l: '70',
	strk: 'L2',
	lastg: null,
	interleague: '11-4',
	road: '41-40',
	games_back_wildcard: '-',
	team: 'Colorado'
}, {
	w: '88',
	elim: 'E',
	rs: '657',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '21-22',
	xtr: '9-7',
	nextg: null,
	vsW: '38-34',
	ra: '611',
	gb: '7.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '52-29',
	code: 'sf',
	pct: '.543',
	league_sensitive_team_name: 'San Francisco',
	vsC: '22-18',
	vsE: '19-16',
	clinch: '',
	vsL: '23-21',
	vsR: '65-53',
	xwl: '86-76',
	l: '74',
	strk: 'W1',
	lastg: null,
	interleague: '9-6',
	road: '36-45',
	games_back_wildcard: '4.0',
	team: 'San Francisco'
}, {
	w: '75',
	elim: 'E',
	rs: '638',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '6-4',
	onerun: '23-18',
	xtr: '10-7',
	nextg: null,
	vsW: '33-39',
	ra: '769',
	gb: '20.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '42-39',
	code: 'sd',
	pct: '.463',
	league_sensitive_team_name: 'San Diego',
	vsC: '21-22',
	vsE: '16-16',
	clinch: '',
	vsL: '26-29',
	vsR: '49-58',
	xwl: '67-95',
	l: '87',
	strk: 'L1',
	lastg: null,
	interleague: '5-10',
	road: '33-48',
	games_back_wildcard: '17.0',
	team: 'San Diego'
}, {
	w: '70',
	elim: 'E',
	rs: '720',
	div: 'nlw',
	gameid: null,
	status: null,
	pre: null,
	last10: '4-6',
	onerun: '20-27',
	xtr: '10-5',
	nextg: null,
	vsW: '30-42',
	ra: '782',
	gb: '25.0',
	wrap: null,
	elimination_number_wildcard: 'E',
	home: '36-45',
	code: 'ari',
	pct: '.432',
	league_sensitive_team_name: 'Arizona',
	vsC: '20-21',
	vsE: '15-19',
	clinch: '',
	vsL: '17-30',
	vsR: '53-62',
	xwl: '75-87',
	l: '92',
	strk: 'W1',
	lastg: null,
	interleague: '5-10',
	road: '34-47',
	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']	= 'nle';
star_mlb_options['team']		= 'nym';
addLoadEvent(star_mlb_standings);
