﻿// JavaScript Document
/*
 +-------------------------------------------------------------------+
 |                 H T M L - C A L E N D A R   (v2.11)               |
 |                                                                   |
 | Copyright Gerd Tentler               www.gerd-tentler.de/tools    |
 | Created: May 27, 2003                Last modified: Nov. 29, 2009 |
 +-------------------------------------------------------------------+
 | This program may be used and hosted free of charge by anyone for  |
 | personal purpose as long as this copyright notice remains intact. |
 |                                                                   |
 | Obtain permission before selling the code for this program or     |
 | hosting this software on a commercial website or redistributing   |
 | this software over the Internet or in any other medium. In all    |
 | cases copyright must remain intact.                               |
 +-------------------------------------------------------------------+

 EXAMPLE #1:  myCal = new CALENDAR();
              document.write(myCal.create());

 EXAMPLE #2:  myCal = new CALENDAR(2004, 12);
              document.write(myCal.create());

 EXAMPLE #3:  myCal = new CALENDAR();
              myCal.year = 2004;
              myCal.month = 12;
              document.write(myCal.create());

 Returns HTML code
==========================================================================================================
"http://www.umbert.cat/" target="_blank"

*/


myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 1;
              document.write(myCal.create());

myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 2;
              document.write(myCal.create());

myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 3;
myCal.viewEvent(13, 13, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Banyoles", "http://www.umbert.cat/GPMassi_Banyoles_CAT.html");
myCal.viewEvent(20, 20, "#00ffff", "Open d'Espanya - Madrid - C1", "http://www.umbert.cat/Open2011_Madrid_CAT.html");
              document.write(myCal.create());
			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 4;
myCal.viewEvent(9, 10, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Corró d'Amunt", "http://www.umbert.cat/GPMassi_Corro_CAT.html");
myCal.viewEvent(17, 17, "#00ffff", "Open d'Espanya - Menorca - C2", "http://www.umbert.cat/Open2011_Menorca_CAT.html");
myCal.viewEvent(23, 24, "#ff6600", "Copa del Món - Pietermaritzburg (RSA)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
              document.write(myCal.create());
  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 5;
myCal.viewEvent(1, 1, "#00ffff", "Open d'Espanya - Huelva - C2", "http://www.umbert.cat/Open2011_Huelva_CAT.html");
myCal.viewEvent(7, 8, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Vall de Lord", "http://www.umbert.cat/GPMassi_ValldeLord_CAT.html");
myCal.viewEvent(15, 15, "#00ffff", "Open d'Espanya - Avilés - C2", "http://www.umbert.cat/Open2011_Aviles_CAT.html");
myCal.viewEvent(21, 22, "#ff6600", "Copa del Món - Dalby Forest (GBR)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
myCal.viewEvent(28, 29, "#ff6600", "Copa del Món - Offenburg (GER)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
              document.write(myCal.create());
			  			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 6;
myCal.viewEvent(5, 5, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - ?????", "");
myCal.viewEvent(12, 12, "#00ffff", "Open d'Espanya - Navaluenga (Avila) - C2", "http://www.umbert.cat/Open2011_Navaluenga_CAT.html");
myCal.viewEvent(26, 26, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Port Ainé-Gran Pallars", "http://www.umbert.cat/GPMassi_PortAine.html");
              document.write(myCal.create());
			  			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 7;
myCal.viewEvent(2, 3, "#ff6600", "Copa del Món - Mont Sainte Anne (CAN)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
myCal.viewEvent(9, 10, "#ff6600", "Copa del Món - Windham (USA)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
myCal.viewEvent(15, 17, "#ff3300", "Campionat d'Espanya", "http://www.umbert.cat/Camp_Esp_CAT.html");
              document.write(myCal.create());
			  			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 8;
myCal.viewEvent(4, 7, "#006600", "Campionat d'Europa - Dohnany (SVK)", "http://www.umbert.cat/Europeo_2011_CAT.html");
myCal.viewEvent(13, 14, "#ff6600", "Copa del Món - Nove Mesto Na Morave (CZE)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
myCal.viewEvent(20, 21, "#ff6600", "Copa del Món - Val di Sole (ITA)", "http://www.umbert.cat/Copa_del_mon_2011_CAT.html");
myCal.viewEvent(31, 31, "#00ff00", "Campionat del Món - Champéry (SUI)", "http://www.umbert.cat/Mundial_2011_CAT.html");
              document.write(myCal.create());
			  			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 9;
myCal.viewEvent(1, 4, "#00ff00", "Campionat del Món - Champéry (SUI)", "http://www.umbert.cat/Mundial_2011_CAT.html");			  
myCal.viewEvent(18, 18, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Calaf", "http://www.umbert.cat/GPMassi_Calaf_CAT.html");
              document.write(myCal.create());
			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 10;
myCal.viewEvent(2, 2, "#ff66ff", "Gran Premi Massi-Copa Catalana Internacional - Barcelona", "http://www.umbert.cat/GPMassi_Barcelona_CAT.html");
              document.write(myCal.create());			  
			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 11;
              document.write(myCal.create());
			  
myCal = new CALENDAR();
              myCal.year = 2011;
              myCal.month = 12;
              document.write(myCal.create());			  
