
function getRaces (championship) {	
	races = new Array ();

	if (championship=='WSBK') {

		races[0] = "26th February - Doha (Qatar)";
		races[1] = "5th Mars - Phillip Island (Australia)";
		races[2] = "23rd April - Valencia (Spain)";
		races[3] = "7th May - Monza (Italy)";
		races[4] = "28th May - Silverstone (UK)";
		races[5] = "25th June - Misano (San Marino)";
		races[6] = "23rd July - Brno (Czech Republic)";
		races[7] = "6th August - Brands Hatch (UK)";
		races[8] = "3rd September - Assen (Netherlands)";
		races[9] = "10th September - Lausitz (Germany)";
		races[10] = "1st October - Imola (Italy)";
		races[11] = "8th October - Magny Cours (France)";
	} else if (championship=='STK600') {
		races[0] = "23rd April - Valencia (Spain)";
		races[1] = "7th May - Monza (Italy)";
		races[2] = "28th May - Silverstone (UK)";
		races[3] = "25th June - Misano (San Marino)";
		races[4] = "23rd July - Brno (Czech Republic)";
		races[5] = "6th August - Brands Hatch (UK)";
		races[6] = "3rd September - Assen (Netherlands)";
		races[7] = "10th September - Lausitz (Germany)";
		races[8] = "1st October - Imola (Italy)";
		races[9] = "8th October - Magny Cours (France)";
	} else if (championship=='STK1000') {
		races[0] = "23rd April - Valencia (Spain)";
		races[1] = "7th May - Monza (Italy)";
		races[2] = "28th May - Silverstone (UK)";
		races[3] = "25th June - Misano (San Marino)";
		races[4] = "23rd July - Brno (Czech Republic)";
		races[5] = "6th August - Brands Hatch (UK)";
		races[6] = "3rd September - Assen (Netherlands)";
		races[7] = "10th September - Lausitz (Germany)";
		races[8] = "1st October - Imola (Italy)";
		races[9] = "8th October - Magny Cours (France)";
	} else if (championship=='SSP') {
		races[0] = "26th February - Doha (Qatar)";
		races[1] = "5th Mars - Phillip Island (Australia)";
		races[2] = "23rd April - Valencia (Spain)";
		races[3] = "7th May - Monza (Italy)";
		races[4] = "28th May - Silverstone (UK)";
		races[5] = "25th June - Misano (San Marino)";
		races[6] = "23rd July - Brno (Czech Republic)";
		races[7] = "6th August - Brands Hatch (UK)";
		races[8] = "3rd September - Assen (Netherlands)";
		races[9] = "10th September - Lausitz (Germany)";
		races[10] = "1st October - Imola (Italy)";
		races[11] = "8th October - Magny Cours (France)";
	} else if (championship=='MX1') {
		races[0] = "2nd April -  Zolder  Belgium";
		races[1] = "16th April - Bellpuig  Spain";
		races[2] = "23rd April - Agueda Portugal";
		races[3] = "7th May - Teutschentahl  Germany";
		races[4] = "21st May - Sugo  Japan";
		races[5] = "4th June - Sevlievo Bulgaria";
		races[6] = "11th June - Montevarchi  Italy";
		races[7] = "18th June - Matterley Basin, Winchester, UK";
		races[8] = "2nd July - Uddevalla, Sweden";
		races[9] = "16th July - Sun City, Republic of South Africa";
		races[10] = "30th July - Loket Czech Republic";
		races[11] = "6th August - Namur, Belgium";
		races[12] = "27th August - Desert Martin, Ireland";
		races[13] = "3rd September  - Lierop, The Netherlands";
		races[14] = "17th September - Ernee, France";
	} else if (championship=='MX2') {
		races[0] = "2nd April -  Zolder  Belgium";
		races[1] = "16th April - Bellpuig  Spain";
		races[2] = "23rd April - Agueda Portugal";
		races[3] = "7th May - Teutschentahl  Germany";
		races[4] = "21st May - Sugo  Japan";
		races[5] = "4th June - Sevlievo Bulgaria";
		races[6] = "11th June - Montevarchi  Italy";
		races[7] = "18th June - Matterley Basin, Winchester, UK";
		races[8] = "2nd July - Uddevalla, Sweden";
		races[9] = "16th July - Sun City, Republic of South Africa";
		races[10] = "30th July - Loket Czech Republic";
		races[11] = "6th August - Namur, Belgium";
		races[12] = "27th August - Desert Martin, Ireland";
		races[13] = "3rd September  - Lierop, The Netherlands";
		races[14] = "17th September - Ernee, France";
	} else {
		races[0] = "No races available";
	}

	return races;
}

