var weekday = new Array ("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
var monthname = new Array ("Jan.","Feb.","March","April","May","June","July","Aug.","Sep.","Oct.","Nov.","Dec.")
var Matches = new Array ()
var Teams = new Array ()
function DisplayMatchDate (TheDay) {
MonthIndex = TheDay.getMonth() // take off 1 to allow for the fact that is a 0 based array
MatchMonth = monthname[MonthIndex]
DateIndex = TheDay.getDate()
DayIndex = TheDay.getDay()
MatchDay = weekday[DayIndex]
MatchHours = TheDay.getHours()
MatchMins = TheDay.getMinutes()
if (MatchMins == 0) {
MatchMins = '00'
}
document.write ( '
| ' + MatchDay + ', ' + MatchMonth + ' ' + DateIndex + ' – ' + MatchHours + ':' + MatchMins + '* |
' )
}
function TOCItem(URL,URLDesc,ItemDesc){
this.URL = URL
this.URLDesc = URLDesc
this.ItemDesc = ItemDesc
this.URLSpanClass = URLSpanClass
this.ItemDescClass = ItemDescClass
}
function URLSpanClass(SpanClass){
document.write('' + this.URLDesc +'')
}
function ItemDescClass(SpanClass){
document.write('' + this.ItemDesc +'')
}
function GetTeamPos(TeamID){
for (var i = 0; i < Teams.length; i++){
if (Teams[i].ID == TeamID) {
return i
}
}
}
function Team(ID,Name,Coach,Flag){
this.ID = ID
this.Name = Name
this.Coach = Coach
this.Flag = Flag
}
function Match(MatchDate,Venue,Team1,Team2,Score1,Score2,ReportURL,ReportHeadline,Group,Winner){
this.MatchDate = MatchDate
this.Venue = Venue
this.Team1 = Team1
this.Team2 = Team2
this.Score1 = Score1
this.Score2 = Score2
this.ReportURL = ReportURL
this.ReportHeadline = ReportHeadline
this.Group = Group
this.Winner = Winner
//this.DisplayMatchDate = DisplayMatchDate
}
function DisplayMatch(TheMatch){
// This bit outputs the match date details
DisplayMatchDate(TheMatch.MatchDate)
// this outputs the venue
document.write ('| ' + TheMatch.Group + ': ' + TheMatch.Venue + ' |
')
FirstTeamPos = GetTeamPos(TheMatch.Team1)
FirstTeam = Teams[FirstTeamPos]
if (FirstTeam.Flag != null){
Flag1 = '
'
//Flag1 = FirstTeam.Flag
} else {
Flag1 = ''
}
SecondTeamPos = GetTeamPos(TheMatch.Team2)
SecondTeam = Teams[SecondTeamPos]
if (SecondTeam.Flag != null){
Flag2 = '
'
} else {
Flag2 = ''
}
if (TheMatch.Score1 != null){
Score1 = ' ' + TheMatch.Score1 + ' '
} else {
Score1 = ''
}
if (TheMatch.Score2 != null){
Score2 = ' ' + TheMatch.Score2 + ' '
} else {
Score2 = ''
}
if (TheMatch.ReportURL == 'x'){
ReportAnchor = ''
} else {
ReportAnchor = ' match report»'
}
// this displays the final line
document.write (' |
| ' + Flag1 + ' | | ' + Flag2 + ' |
| ' + FirstTeam.Name + ' | v | ' + SecondTeam.Name + ' |
| ' + Score1 + ' | | ' + Score2 + ' |
| ' + ReportAnchor + ' |
')
}
Teams[0] = new Team('POL','Poland','','t_pol.gif')
Teams[1] = new Team('GER','Germany','','t_ger.gif')
Teams[2] = new Team('CRC','Costa Rica','','t_crc.gif')
Teams[3] = new Team('ECU','Ecuador','','t_ecu.gif')
Teams[4] = new Team('ENG','England','Sven-Goran Eriksson','t_eng.gif')
Teams[5] = new Team('PAR','Paraguay','','t_par.gif')
Teams[6] = new Team('TRI','Trinidad & Tobago','','t_tri.gif')
Teams[7] = new Team('SWE','Sweden','','t_swe.gif')
Teams[8] = new Team('ARG','Argentina','','t_arg.gif')
Teams[9] = new Team('CIV','Côte d\'Ivoire','','t_civ.gif')
Teams[10] = new Team('SCG','Serbia & Montenegro','','t_scg.gif')
Teams[11] = new Team('NED','Netherlands','Dick Advocaat','t_ned.gif')
Teams[12] = new Team('MEX','Mexico','','t_mex.gif')
Teams[13] = new Team('IRN','Iran','','t_irn.gif')
Teams[14] = new Team('ANG','Angola','','t_ang.gif')
Teams[15] = new Team('POR','Portugal','Luiz Felipe Scolari','t_por.gif')
Teams[16] = new Team('ITA','Italy','','t_ita.gif')
Teams[17] = new Team('GHA','Ghana','','t_gha.gif')
Teams[18] = new Team('USA','USA','','t_usa.gif')
Teams[19] = new Team('CZE','Czech Republic','','t_cze.gif')
Teams[20] = new Team('BRA','Brazil','','t_bra.gif')
Teams[21] = new Team('CRO','Croatia','','t_cro.gif')
Teams[22] = new Team('AUS','Australia','','t_aus.gif')
Teams[23] = new Team('JPN','Japan','','t_jpn.gif')
Teams[24] = new Team('FRA','France','','t_fra.gif')
Teams[25] = new Team('SUI','Switzerland','','t_sui.gif')
Teams[26] = new Team('KOR','Republic of Korea','','t_kor.gif')
Teams[27] = new Team('TOG','Togo','','t_tog.gif')
Teams[28] = new Team('ESP','Spain','','t_esp.gif')
Teams[29] = new Team('UKR','Ukraine','','t_ukr.gif')
Teams[30] = new Team('TUN','Tunisia','','t_tun.gif')
Teams[31] = new Team('KSA','Saudi Arabia','','t_ksa.gif')
// MatchDay = new Date(2004,04,12,17,00,00)
// Matches[0] = new Match(MatchDay,'Munich','GER','CRC','3','','report1.html','headline 1','Group')
MatchDay = new Date(2006,05,09,18,00,00)
Matches[0] = new Match(MatchDay,'Munich','GER','CRC','4','2','x','','Group A')
MatchDay = new Date(2006,05,09,21,00,00)
Matches[1] = new Match(MatchDay,'Gelsenkirchen','POL','ECU','0','2','x','','Group A')
MatchDay = new Date(2006,05,10,15,00,00)
Matches[2] = new Match(MatchDay,'Frankfurt','ENG','PAR','1','0','x','','Group B')
MatchDay = new Date(2006,05,10,18,00,00)
Matches[3] = new Match(MatchDay,'Dortmund','TRI','SWE','0','0','x','','Group B')
MatchDay = new Date(2006,05,10,21,00,00)
Matches[4] = new Match(MatchDay,'Hamburg','ARG','CIV','2','1','x','','Group C')
MatchDay = new Date(2006,05,11,15,00,00)
Matches[5] = new Match(MatchDay,'Leipzig','SCG','NED','0','1','x','','Group C')
MatchDay = new Date(2006,05,11,18,00,00)
Matches[6] = new Match(MatchDay,'Nuremberg','MEX','IRN','3','1','x','','Group D')
MatchDay = new Date(2006,05,11,21,00,00)
Matches[7] = new Match(MatchDay,'Cologne','ANG','POR','0','1','x','','Group D')
MatchDay = new Date(2006,05,12,21,00,00)
Matches[8] = new Match(MatchDay,'Hanover','ITA','GHA','2','0','x','','Group E')
MatchDay = new Date(2006,05,12,18,00,00)
Matches[9] = new Match(MatchDay,'Gelsenkirchen','USA','CZE','0','3','/time/europe/2006/wcup/061206,usa.html','','Group E')
MatchDay = new Date(2006,05,13,21,00,00)
Matches[10] = new Match(MatchDay,'Berlin','BRA','CRO','1','0','/time/europe/2006/wcup/blogs/060614saporito,2.html','','Group F')
MatchDay = new Date(2006,05,12,15,00,00)
Matches[11] = new Match(MatchDay,'Kaiserlautern','AUS','JPN','3','1','/time/europe/2006/wcup/blogs/060612brockbank.html','','Group F')
MatchDay = new Date(2006,05,13,18,00,00)
Matches[12] = new Match(MatchDay,'Stuttgart','FRA','SUI','0','0','/time/europe/2006/wcup/061406,france.html','','Group G')
MatchDay = new Date(2006,05,13,15,00,00)
Matches[13] = new Match(MatchDay,'Frankfurt','KOR','TOG','2','1','x','','Group G')
MatchDay = new Date(2006,05,14,15,00,00)
Matches[14] = new Match(MatchDay,'Leipzig','ESP','UKR','4','0','x','','Group H')
MatchDay = new Date(2006,05,14,18,00,00)
Matches[15] = new Match(MatchDay,'Munich','TUN','KSA','2','2','x','','Group H')
MatchDay = new Date(2006,05,14,21,00,00)
Matches[16] = new Match(MatchDay,'Dortmund','GER','POL','1','0','/time/europe/2006/wcup/blogs/060614crumley.html','','Group A')
MatchDay = new Date(2006,05,15,15,00,00)
Matches[17] = new Match(MatchDay,'Hamburg','ECU','CRC','3','0','x','','Group A')
MatchDay = new Date(2006,05,15,18,00,00)
Matches[18] = new Match(MatchDay,'Nuremberg','ENG','TRI','2','0','x','','Group B')
MatchDay = new Date(2006,05,15,21,00,00)
Matches[19] = new Match(MatchDay,'Berlin','SWE','PAR','1','0','x','','Group B')
MatchDay = new Date(2006,05,16,15,00,00)
Matches[20] = new Match(MatchDay,'Gelsekirchen','ARG','SCG','6','0','x','','Group C')
MatchDay = new Date(2006,05,16,18,00,00)
Matches[21] = new Match(MatchDay,'Stuttgart','NED','CIV','2','1','x','','Group C')
MatchDay = new Date(2006,05,16,21,00,00)
Matches[22] = new Match(MatchDay,'Hanover','MEX','ANG','0','0','x','','Group D')
MatchDay = new Date(2006,05,17,15,00,00)
Matches[23] = new Match(MatchDay,'Frankfurt','POR','IRN','2','0','x','','Group D')
MatchDay = new Date(2006,05,17,21,00,00)
Matches[25] = new Match(MatchDay,'Kaiserlautern','ITA','USA','1','1','/time/europe/2006/wcup/061706,usa.html','','Group E')
MatchDay = new Date(2006,05,17,18,00,00)
Matches[24] = new Match(MatchDay,'Cologne','CZE','GHA','0','2','x','','Group E')
MatchDay = new Date(2006,05,18,18,00,00)
Matches[27] = new Match(MatchDay,'Munich','BRA','AUS','2','0','x','','Group F')
MatchDay = new Date(2006,05,18,15,00,00)
Matches[26] = new Match(MatchDay,'Nuremberg','JPN','CRO','0','0','x','','Group F')
MatchDay = new Date(2006,05,18,21,00,00)
Matches[28] = new Match(MatchDay,'Leipzig','FRA','KOR','1','1','x','','Group G')
MatchDay = new Date(2006,05,19,15,00,00)
Matches[29] = new Match(MatchDay,'Dortmund','TOG','SUI','0','2','x','','Group G')
MatchDay = new Date(2006,05,19,21,00,00)
Matches[31] = new Match(MatchDay,'Stuttgart','ESP','TUN','1','3','x','','Group H')
MatchDay = new Date(2006,05,19,18,00,00)
Matches[30] = new Match(MatchDay,'Hamburg','KSA','UKR','0','4','x','','Group H')
MatchDay = new Date(2006,05,20,16,00,00)
Matches[32] = new Match(MatchDay,'Berlin','ECU','GER','0','3','x','','Group A')
MatchDay = new Date(2006,05,20,16,00,00)
Matches[33] = new Match(MatchDay,'Hannover','CRC','POL','1','2','x','','Group A')
MatchDay = new Date(2006,05,20,21,00,00)
Matches[34] = new Match(MatchDay,'Cologne','SWE','ENG','2','2','x','','Group B')
MatchDay = new Date(2006,05,20,21,00,00)
Matches[35] = new Match(MatchDay,'Kaiserlautern','PAR','TRI','2','0','x','','Group B')
MatchDay = new Date(2006,05,21,21,00,00)
Matches[38] = new Match(MatchDay,'Frankfurt','NED','ARG','0','0','x','','Group C')
MatchDay = new Date(2006,05,21,21,00,00)
Matches[39] = new Match(MatchDay,'Munich','CIV','SCG','3','2','x','','Group C')
MatchDay = new Date(2006,05,21,16,00,00)
Matches[36] = new Match(MatchDay,'Gelsenkirchen','POR','MEX','2','1','x','','Group D')
MatchDay = new Date(2006,05,21,16,00,00)
Matches[37] = new Match(MatchDay,'Leipzig','IRN','ANG','1','1','x','','Group D')
MatchDay = new Date(2006,05,22,16,00,00)
Matches[40] = new Match(MatchDay,'Hamburg','CZE','ITA','0','2','x','','Group E')
MatchDay = new Date(2006,05,22,16,00,00)
Matches[41] = new Match(MatchDay,'Nuremburg','GHA','USA','2','1','x','','Group E')
MatchDay = new Date(2006,05,22,21,00,00)
Matches[42] = new Match(MatchDay,'Dortmund','JPN','BRA','1','4','x','','Group F')
MatchDay = new Date(2006,05,22,21,00,00)
Matches[43] = new Match(MatchDay,'Stuttgart','CRO','AUS','2','2','x','/time/europe/2006/wcup/060623brockbank.html','Group F')
MatchDay = new Date(2006,05,23,21,00,00)
Matches[44] = new Match(MatchDay,'Cologne','TOG','FRA','0','2','x','/time/europe/2006/wcup/062406,france.html','Group G')
MatchDay = new Date(2006,05,23,21,00,00)
Matches[45] = new Match(MatchDay,'Hannover','SUI','KOR','2','0','/time/europe/2006/wcup/062406,korea.html','','Group G')
MatchDay = new Date(2006,05,23,16,00,00)
Matches[46] = new Match(MatchDay,'Kaiserlautern','KSA','ESP','0','1','x','','Group H')
MatchDay = new Date(2006,05,23,16,00,00)
Matches[47] = new Match(MatchDay,'Berlin','UKR','TUN','1','0','x','','Group H')
// Stage 2 -- The knockouts!
MatchDay = new Date(2006,05,24,17,00,00)
Matches[48] = new Match(MatchDay,'Munich','GER','SWE','2','0','x','','Round of 16')
MatchDay = new Date(2006,05,24,21,00,00)
Matches[49] = new Match(MatchDay,'Leipzig','ARG','MEX','2','1','/time/europe/2006/wcup/062506,mexico.html','','Round of 16')
MatchDay = new Date(2006,05,25,17,00,00)
Matches[50] = new Match(MatchDay,'Stuttgart','ENG','ECU','1','0','x','','Round of 16')
MatchDay = new Date(2006,05,25,21,00,00)
Matches[51] = new Match(MatchDay,'Nuremberg','POR','NED','1','0','/time/europe/2006/wcup/062606,portugal.html','','Round of 16')
MatchDay = new Date(2006,05,26,17,00,00)
Matches[52] = new Match(MatchDay,'Kaiserlautern','ITA','AUS','1','0','x','','Round of 16')
MatchDay = new Date(2006,05,26,21,00,00)
Matches[53] = new Match(MatchDay,'Cologne','SUI','UKR','0 (0)','0 (3)','/time/europe/2006/wcup/blogs/060627crumley.html','','Round of 16')
// Matches[53] = new Match(MatchDay,'Cologne','SWI','UKR','0','0','x','','Round of 16')
MatchDay = new Date(2006,05,27,17,00,00)
Matches[54] = new Match(MatchDay,'Dortmund','BRA','GHA','3','0','x','','Round of 16')
MatchDay = new Date(2006,05,27,21,00,00)
Matches[55] = new Match(MatchDay,'Hannover','ESP','FRA','1','3','x','','Round of 16')
// The Quarter finals!
// Needs to be updated here to get the real teams in for the second set of quarter finals
MatchDay = new Date(2006,05,30,17,00,00)
Matches[56] = new Match(MatchDay,'Berlin','GER','ARG','1 (4)','1 (2)','/time/europe/2006/wcup/063006,germany.html','','Quarter Final','')
MatchDay = new Date(2006,05,30,21,00,00)
Matches[57] = new Match(MatchDay,'Hamburg','ITA','UKR','3','0','x','','Quarter Final','')
MatchDay = new Date(2006,06,01,17,00,00)
Matches[58] = new Match(MatchDay,'Gelsenkirchen','ENG','POR','0 (1)','0 (3)','/time/europe/2006/wcup/blogs/060702saporito.html','','Quarter Final','')
MatchDay = new Date(2006,06,01,21,00,00)
Matches[59] = new Match(MatchDay,'Frankfurt','BRA','FRA','0','1','x','','Quarter Final','')
// Semi Finals - these will be updated by the results in the quarter finals so no need to update
MatchDay = new Date(2006,06,04,21,00,00)
Matches[60] = new Match(MatchDay,'Dortmund','GER','ITA','0','2','/time/europe/2006/wcup/070406,germanyitaly.html','','Semi Final','')
MatchDay = new Date(2006,06,05,21,00,00)
Matches[61] = new Match(MatchDay,'Munich','POR','FRA','0','1','x','','Semi Final','')
// Third Place
MatchDay = new Date(2006,06,08,21,00,00)
Matches[62] = new Match(MatchDay,'Stuttgart','GER','POR','3','1','x','','3rd Place','')
// The Final
MatchDay = new Date(2006,07,09,20,00,00)
Matches[63] = new Match(MatchDay,'Berlin','ITA','FRA','1 (5)','1 (3)','x','','Final','')
// generate the details for the semi and quarter finals
/*
if (Matches[24].Winner.length > 0){
Matches[28].Team1 = Matches[24].Winner
}
if (Matches[26].Winner.length > 0){
Matches[28].Team2 = Matches[26].Winner
}
if (Matches[25].Winner.length > 0){
Matches[29].Team1 = Matches[25].Winner
}
if (Matches[27].Winner.length > 0){
Matches[29].Team2 = Matches[27].Winner
}
if (Matches[28].Winner.length > 0){
Matches[30].Team1 = Matches[28].Winner
}
if (Matches[29].Winner.length > 0){
Matches[30].Team2 = Matches[29].Winner
}
*/