 events = new Array(
/* Hieronder moeten agendapunten toegevoegd worden. 
   Als het om 1 dag gaat, bv 23 september 2005: 

     new CalendarEvent(23,9,2005, "Stochastics Afternoon", "http://w3.win.tue.nl/en/agenda/?&eventid=1968&editflag=1"),
   
   Als het om een langere periode gaat, bv. 23 augustus 2005 tot 26 augustus 2005:

     new CalendarEvent(23,8,2005,"Stochastics Afternoon", "http://w3.win.tue.nl/en/agenda/?&eventid=1968&editflag=1", 26,8,2005),

*/

     new CalendarEvent(30,10,2007,"Eurandom 14.30-16.30 h. - LG 1.105 Professor Roberto Fernandez Mini series of Lectures  on Fields and Processes: common framework and relations Lecture IV: Relation between processes and one-dimensional fields. Phase transitions in the half line", ""),
	 new CalendarEvent(5,11,2009, "RSS Seminar On the Thursday of this week (5 Nov), Sander Dommers from EURANDOM will give a talk from 11:00 am to 12:00 am. The place is Green room (LG. 1.105) at Eurandom.Ising models on power-law random graphs", ""),
	 new CalendarEvent(18,11,2009, "No Wednesday Informal Statisticians Meeting due to the annual Stochastics meeting in Lunteren",""),
	 new CalendarEvent(18,10,2006, "1.30-2.30 pm, HG 5.95 Wednesday Informal Statisticians Meeting: Olaf Wittich will give a 20-30 minute demonstration of  a CD from the book by Gerhard Winkler on Image Analysis. The CD has lively demonstrations of the use of statistical mechanics methods in image analysis.", ""),
	new CalendarEvent(3,10,2006, "Talk in the QPA seminar (Eurandom) from 3:00-4:00 p.m. on combinatorial optimization problems, i.e., travelling salesman, satisfiability, counting self-avoiding walks, and other NP-complete problems.", ""),
	new CalendarEvent(9,10,2009, "RSS Seminar Eurandom Dr. Marcelo R. Hilário, from IMPA - Rio de Janeiro, Brazil, will give a talk from 11:00 a.m. to 12:00 a.m.in Green room (LG. 1.105) Title: Fixation for Distributed Clustering Processes", ""),
		new CalendarEvent (4,10,2006, 
  	  "1.30-2.30 pm, HG 5.95 Wednesday Informal Statisticians Meeting: 	informal presentation on statistical estimation of cancellation in air line reservations by Wouter Couzy (KLM/Air France) with discussion afterwards",
	   ""),
	   new CalendarEvent (12,9,2006, 
  	  "11.00-12.00 am, EURANDOM LG 1.105 RSS seminar by Cristian Spitoni: 	Metastability for reversible Probabilistic Cellular Automata with cross interaction",
	   ""),
	   new CalendarEvent (13,9,2006, 
  	  "1.30-2.30 pm, EURANDOM GREEN ROOM Wednesday Informal Statisticians Meeting: 	Professor Laurie Davies will informally discuss some new idas of his on two topics: 1. analysis of virance, 2. nonparametric regression",
	   ""),
new CalendarEvent(22,9,2009, "12.30-13.30 pm, LG 1.105 EURANDOM Seminar Bo Zhang, Georgia institute of Technolgiy, Title: Refining square-root staffing for the Erlang A model", ""),
new CalendarEvent(16,9,2009, "No Wednesday Informal Statisticians Meeting, because of a departmental meeting where new staff members introduce themselves (including Harry van Zanten, 12.00 - 13.00 HG 8.61.", ""),
new CalendarEvent (25,9,2009, "RSS seminar :Dr. Elie Aidekon from Paris University Six will give a talk from 11:00 am to 12:00 am. The place is Green room (LG. 1.105) at Eurandom.Title: random walks in random environment on trees.", ""),
new CalendarEvent(1,7,2009, "No Wednesday Informal Statisticians Meeting in July and August", ""),
new CalendarEvent(25,9,2008, "11.00-12.00 p.m. LG 1.105, EURANDOM Seminar Elie Aidekon, Paris University Six, Title: Random walks in random environment on trees", ""),
new CalendarEvent(21,5,2008, "No Wednesday Informal Statisticians Meeting but Philips Lectures 14.00 - 16.30 pm, EURANDOM,  room LG 1.105 (Green room) Tom Kevenaar - Chief Architect priv-ID Biometrics Classification Theory for Biometric Authentication", ""),
new CalendarEvent(13,12,2006, "11.30-12.30 pm, Eurandom Yellow Room Wednesday Informal Statisticians Meeting: talk by Marlos Viana, University of Illinois at Chicago Title: Data Analytic Aspects of the Canonical Decomposition Theorem for Finite Groups ", ""),
new CalendarEvent(11,11,2009, "Wednesday Informal Statisticians Meeting 11 - 12 pm. in Diamantzaal (HG 9.42), Main Building (Hoofdgebouw) Yoichi Nishiyama (Inst. Statist. Math., Tokyo)Title of talk: Asymptotic theory of semiparametric Z-estimators for stochastic processes with applications to ergodic diffusions and time series", ""),
new CalendarEvent(7,10,2009, "No Wednesday Informal Statisticians Meeting because of the Young European Statisticians III workshop at EURANDOM from October 5 to October 7", ""),
new CalendarEvent(10,9,2007, "11.30-12.30 pm Main Building 6.29, Wednesday Informal Statisticians Meeting", ""),
new CalendarEvent(3,10,2007, "Reading group/workshop on basic facts about Markov Chain Monte Carlo methods 10.00 - 17.00 Main Building 6.29 organised by Olaf Wittich",""),
new CalendarEvent(19,9,2007, "No Wednesday Informal Statisticians Meeting due to talk by Prof. Ibragimov, Titel: On the Estimation of Analytic Functions, 11.15 a.m., LG 1.105 EURANDOM", ""),
new CalendarEvent(2,10,2009, "Mark Kac Seminar (Utrecht) Arem Sapozhnikov and Wouter Kager", ""),
new CalendarEvent(13,11,2009, "Mark Kac Seminar (Utrecht), Vincent Beffara and Frank Redig", ""),
new CalendarEvent(4,12,2009, "Mark Kac Seminar (Utrecht), Cristina Toninelli and Vladas Sidoravicius", ""),
new CalendarEvent(9,1,2008, "QPA Eurandom 14.00-15.00 h. - LG 1.105 Balakrishna Prabhu (TU/e - Eurandom), On two problems related to performance analysis of communication network systems", ""),
new CalendarEvent(11,3,2010," March 8-12, EURANDOM: YEP VII 2010(Young European Probabilists) workshop Probability, random trees and algorithms ", ""),
new CalendarEvent(12,3,2010," March 8-12, EURANDOM: YEP VII 2010(Young European Probabilists) workshop Probability, random trees and algorithms ", ""),
new CalendarEvent(29,5,2009, "RSS Seminar (Eurandom 11:00 am to 12:00 am.  - LG 1.110 (Yellow room) Robert Fitzner: A central limiting theorem for memory walks", ""),
new CalendarEvent(3,03,2010, "Wednesday Informal Statisticians Meeting: This week Jan Draisma (TU/e, Discrete Mathematics and Algebra Group) will give a talk during our meeting.11.30-12.30 Location: EURANDOM, green room (Laplace Building)Title: Trek separation for Gaussian graphical models (joint work with Seth Sullivant and Kelli Talaska)",""),
new CalendarEvent(24,2,2010, "Wednesday Informal Statisticians Meeting: Due to illness Jan Draisma is unable to talk on Gaussian graphical models today. We decided to cancel our meeting of this week.",""),
new CalendarEvent(24,8,2009, "(until 26-8-2009) RSS Seminar (Eurandom)workshop Order, disorder and double disorder", ""),
new CalendarEvent(29,5,2008, "EURANDOM 11.30-12.30, LG 1.105 (MRM)Alexander Herbertsson, department of Economics/Centre for finance School of Business, Economics and Law at the University of Gothenburg, Sweden Default contagion in large homogeneous portfolios", ""),
// onderstaande regel laten staan
null);










// allerlei functies die nodig zijn om de agenda weer te geven.


function CalendarEvent(day, month, year, title, url, endday, endmonth, endyear) {
  this.date = new Date(year, month-1, day);
  if (endyear == null) this.endDate = null;
  else this.endDate = new Date(endyear, endmonth-1, endday);
  this.title = title;
  this.url = url;
}

function sortCalendar() {
  var n = events.length-1;
  // the last element is null, which makes it easier to edit for the secretary since every line ends with a comma.
  sortedEvents = new Array(n); 
  
  for (var i = 0; i < n; i++) 
    sortedEvents[i] = events[i];
  
  for (var i = 0; i < n; i++) {
    for (var j = i+1; j < n; j++) {
	  if (sortedEvents[i].date.getTime() > sortedEvents[j].date.getTime()) {
	    var tmp = sortedEvents[i];
		sortedEvents[i] = sortedEvents[j];
		sortedEvents[j] = tmp;
	  }
	}
  }
}


function printCalendar() {
  sortCalendar();  
  s = '<div class="agenda">\n';
  s += '<h3>Events Calendar P&amp;S</h3>\n';
  var now = new Date();
  var nEvents = 0;  
  for (var i = 0; i < sortedEvents.length; i++) {
    var e = sortedEvents[i];
	if (e.date.getTime() > now.getTime() - 24*60*60*1000) {
	  nEvents++;
	  var year = e.date.getYear();
	  if (year < 1900) year += 1900;
  	  s += "<h4>"+e.date.getDate()+"-"+(e.date.getMonth()+1)+"-"+year;
	  if (e.endDate != null) {
	    year = e.endDate.getYear();
  	    if (year < 1900) year += 1900;
	    s += " until " + e.endDate.getDate()+"-"+(e.endDate.getMonth()+1)+"-"+year;
	  }
	  s +="</h4>\n";
  	  if (e.url != "") s += '<a href="'+e.url+'" class="column3link">';
	  s += e.title;
	  if (e.url != "") s += '</a>';
	  s += "\n<p>\n";
	}
  }
  s += '<a href="http://w3.win.tue.nl/en/agenda/" class="column3link">Events Calendar W&amp;I</a>\n';
  s += "</div>\n";
  if (nEvents == 0) s = "";
  else {
    s = '<td id="column3">\n' +s+'\n</td>\n';
  }
  return s;
}
   
document.writeln(printCalendar());