﻿// 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 = 2009;
              myCal.month = 11;
myCal.viewEvent(27, 27, "#F781BE", "Copa Gironina de BTT - 2009", "http://www.umbert.cat/CopaGironinaBTT2009_CAT.htm");
              document.write(myCal.create());
myCal = new CALENDAR();
              myCal.year = 2009;
              myCal.month = 12;
              document.write(myCal.create());
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 1;
              document.write(myCal.create());
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 2;
myCal.viewEvent(28, 28, "#F781BE", "Caixa Girona - Fontcoberta", "http://www.umbert.cat/Caixa-GironaBTT2010_Fontcoberta_CAT.htm");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 3;
myCal.viewEvent(7, 7, "#F781BE", "Copa Caja Rural BTT - Trofeo Galtzagorri", "http://www.umbert.cat/Copa_Caja_Rural-Izkue_CAT.htm");
myCal.viewEvent(14, 14, "#00ffff", "SUPERPRESTIGIO MASSI - GRAN PREMIO MASSI - Banyoles", "http://www.umbert.cat/Open_CopaCatalana_BANYOLES_CAT.htm");
myCal.viewEvent(20, 21, "#ff00ff", "GRAN PREMIO MASSI - Corró d'Amunt", "http://www.umbert.cat/CopaCatalana_CORRO_CAT.htm");
myCal.viewEvent(28, 28, "#00ffff", "SUPERPRESTIGIO MASSI - Huelva", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 4;
myCal.viewEvent(11, 11, "#00ffff", "SUPERPRESTIGIO MASSI - Avilés", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
myCal.viewEvent(17, 18, "#ff00ff", "GRAN PREMIO MASSI - Flix", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
myCal.viewEvent(24, 24, "#99cccc", "Campionat de Catalunya Universitari BTT 2010", "");
myCal.viewEvent(25, 25, "#ff8000", "UCI World Cup XCO 1 - Yorkshire, Dalby Forest (GBR)", "");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 5;
myCal.viewEvent(2, 2, "#ff8000", "UCI World Cup XCO 2 - Houffalize (BEL)", "");
myCal.viewEvent(8, 9, "#00ffff", "SUPERPRESTIGIO MASSI - GRAN PREMIO MASSI - Vall de Lord", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
myCal.viewEvent(16, 16, "#003300", "MTB-Cross Country Bundesliga XC (HC) Heubach 2010 (GER)", "");
myCal.viewEvent(23, 23, "#ff8000", "UCI World Cup XCO 2 - Offenburg (GER)", "");
myCal.viewEvent(30, 30, "#00ffff", "SUPERPRESTIGIO MASSI - Cueva del Soplao ", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 6;
myCal.viewEvent(6, 6, "#ffff00", "Campeonato de Catalunya XC -Tavascan", "");
myCal.viewEvent(13, 13, "#ff00ff", "GRAN PREMIO MASSI - Santa Maria de Palautordera ", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
myCal.viewEvent(27, 27, "#00ffff", "SUPERPRESTIGIO MASSI - Port Ainé", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 7;
myCal.viewEvent(6, 9, "#5e610b", "European Continental Championships - XCO - Haifa (ISR)", "");
myCal.viewEvent(17, 18, "#ff0000", "Campeonato de España XC - Barcelona", "");
myCal.viewEvent(25, 25, "#ff8000", "UCI World Cup XCO 4 - Champéry (SUI)", "");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 8;
myCal.viewEvent(1, 1, "#ff8000", "UCI World Cup XCO 5 - Val di Sole (ITA)", "");
myCal.viewEvent(28, 28, "#ff8000", "UCI World Cup XCO 6 - Windham (USA)", "");
myCal.viewEvent(31, 31, "#00ff00", "UCI XCO WORLD CHAMPIONSHIPS - Mont-Saint-Anne (CAN)", "");
              document.write(myCal.create());			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 9;
myCal.viewEvent(1, 5, "#00ff00", "UCI XCO WORLD CHAMPIONSHIPS - Mont-Saint-Anne (CAN)", "");
myCal.viewEvent(19, 19, "#ff00ff", "GRAN PREMIO MASSI - Calaf ", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
              document.write(myCal.create());			  
			  
			  			  
myCal = new CALENDAR();
              myCal.year = 2010;
              myCal.month = 10;
myCal.viewEvent(3, 3, "#ff00ff", "GRAN PREMIO MASSI - Barcelona ", "http://www.umbert.cat/Open_CopaCatalana_CAT.htm");
              document.write(myCal.create());			  

