#!/Perl/bin/perl.exe -w
#!C:/cygwin/bin/perl.exe -w
#*****************************************************************************
#
# Filename:	WorkoutTracker.pl
#
# CVS Revision:	$Revision: 1471 $
#
# Description:	This perl CGI script defines dates.
#
#*****************************************************************************

# define holidays & other special days
$www::CalendarClass{'-01-01'}     = 'NewYears';
$www::CalendarClass{'-02-14'}     = 'USValentines';
$www::CalendarClass{'-03-17'}     = 'USStPatricks';
$www::CalendarClass{'-03-20'}     = 'http://maxpixel.freegreatpicture.com/static/photo/1x/Japan-Natural-Cherry-Plant-Pink-Spring-Flowers-1225186.jpg';
$www::CalendarClass{'-11-11'}     = 'USVeterans';
$www::CalendarClass{'-07-04'}     = 'USIndependance';
$www::CalendarClass{'-12-25'}     = 'Christmas';
$www::CalendarClass{'-10-31'}     = 'USHalloween';

$www::CalendarClass{'2th-Sunday-5'}    = 'USMothers';
$www::CalendarClass{'3th-Sunday-6'}    = 'USFathers';
$www::CalendarClass{'3th-Monday-2'}    = 'USPresidents';
$www::CalendarClass{'4th-Thursday-11'} = 'USThanksgiving';
$www::CalendarClass{'1th-Monday-9'}    = 'USLabor';

# Races
$www::CalendarClass{'3th-Monday-4'}      = 'USBoston';
$www::CalendarClass{'2th-Saturday-5'}    = 'http://kineticmultisports.com/site/wp-content/uploads/2017/02/Kinetic_Triathlon-Festival-768x287.png';
$www::CalendarClass{'2th-Saturday-10'}   = 'USBaltimore';
$www::CalendarClass{'2th-Saturday-10'}   = 'http://www.setupevents.com/files/Watermans_Half_Slider_2012.jpg';
$www::CalendarClass{'1th-Sunday-11'}     = 'USNYC';
$www::CalendarClass{'3th-Saturday-11'}   = 'USJFK50';
$www::CalendarClass{'1th-Sunday-12'}     = 'ColumbiaMetricMarathon';
$www::CalendarClass{'3th-Saturday-9'}    = 'http://ilovedeepcreeklakerealestate.files.wordpress.com/2010/09/savage_man-triathlon.jpg';
$www::CalendarClass{'3th-Sunday-9'}      = 'http://ilovedeepcreeklakerealestate.files.wordpress.com/2010/09/savage_man-triathlon.jpg';
$www::CalendarClass{'2th-Sunday-9'}      = 'USDeDiamondman';
$www::CalendarClass{'2th-Sunday-7'}      = 'USXTERRA_EX2';
$www::CalendarClass{'1th-Sunday-10'}     = 'USColHalfFull';
$www::CalendarClass{'4th-Sunday-7'}      = 'http://m.ironman.com/~/media/0e982276d0764dee814065529b6ea02e/ironman%20lake%20placid%20230x120.png';
$www::CalendarClass{'4th-Saturday-11'}   = 'US2007NCRTM';

##$www::CalendarClass{'2007-05-20'} = 'USdelmarva';
$www::CalendarClass{'2005-10-30'} = 'USMCM';
$www::CalendarClass{'2007-10-28'} = 'USMCM';
$www::CalendarClass{'2008-10-12'} = 'USBrierman50';
$www::CalendarClass{'2007-11-18'} = 'USPhilly';
$www::CalendarClass{'2008-11-23'} = 'USPhilly';
$www::CalendarClass{'2008-09-07'} = 'USAnnapolisTri';
$www::CalendarClass{'2008-09-07'} = 'NOAnnapolisTri';
$www::CalendarClass{'2008-09-14'} = 'USNationsTri';
$www::CalendarClass{'2009-09-13'} = 'USNationsTri';
$www::CalendarClass{'2009-01-11'} = 'DisneyMarathon';
$www::CalendarClass{'2010-05-02'} = 'NJMarathon';
$www::CalendarClass{'2010-10-09'} = 'NOT_USBaltimore';
$www::CalendarClass{'2010-10-16'} = 'USBaltimore';

## not sure of the algorithm
##$www::CalendarClass{'3th-Sunday-5'}    = 'USColumbiaTri';
$www::CalendarClass{'2007-05-20'} = 'USColumbiaTri';
$www::CalendarClass{'2008-05-18'} = 'USColumbiaTri';
$www::CalendarClass{'2009-05-17'} = 'USColumbiaTri';
$www::CalendarClass{'2010-05-23'} = 'USColumbiaTri';
$www::CalendarClass{'2011-05-22'} = 'USColumbiaTri';
$www::CalendarClass{'2012-05-20'} = 'USColumbiaTri';
$www::CalendarClass{'2013-05-19'} = 'USColumbiaTri';
$www::CalendarClass{'2014-05-18'} = 'USColumbiaTri';
$www::CalendarClass{'2015-05-17'} = 'USColumbiaTri';
$www::CalendarClass{'2016-05-15'} = 'USColumbiaTri';

$www::CalendarClass{'2014-03-22'} = 'http://tri-mania.com/wp-content/uploads/2014/11/logo.jpg';
$www::CalendarClass{'2015-03-21'} = 'http://tri-mania.com/wp-content/uploads/2014/11/logo.jpg';

$www::CalendarClass{'2007-04-08'} = 'USEaster';
$www::CalendarClass{'2008-03-23'} = 'USEaster';
$www::CalendarClass{'2009-04-12'} = 'USEaster';
$www::CalendarClass{'2010-04-04'} = 'USEaster';
$www::CalendarClass{'2011-04-24'} = 'USEaster';
$www::CalendarClass{'2012-04-08'} = 'USEaster';
$www::CalendarClass{'2013-03-31'} = 'USEaster';
$www::CalendarClass{'2014-04-20'} = 'USEaster';
$www::CalendarClass{'2015-04-05'} = 'USEaster';
$www::CalendarClass{'2016-03-27'} = 'USEaster';

$www::CalendarClass{'2014-05-26'} = 'USMemorial';
$www::CalendarClass{'2015-05-25'} = 'USMemorial';
$www::CalendarClass{'2016-05-30'} = 'USMemorial';

$www::CalendarClass{'2010-08-22'} = 'USTimberman';
$www::CalendarClass{'2011-03-26'} = 'USNationsMarathon';
$www::CalendarClass{'2011-05-01'} = 'USGettysburgMarathon';
$www::CalendarClass{'2011-09-18'} = 'USErieMarathon';
$www::CalendarClass{'2011-07-24'} = 'USCrankyMonkey';
$www::CalendarClass{'2011-08-06'} = 'USCrankyMonkey';
$www::CalendarClass{'2011-08-28'} = 'USCrankyMonkey';

$www::CalendarClass{'2014-04-05'} = 'http://brigance.tbc.us/wp-content/uploads/2013/08/logo-BB.png';
$www::CalendarClass{'2014-08-23'} = 'http://3.bp.blogspot.com/-k02aNkmdc9Q/TjLPQ8irQRI/AAAAAAAAAFE/_tE1uX6--V0/s1600/logo.jpg';
$www::CalendarClass{'2014-08-24'} = $www::CalendarClass{'2014-08-23'} ;
$www::CalendarClass{'2014-09-06'} = 'http://www.civilwarcentury.com/images/Home1.jpg';
$www::CalendarClass{'2014-09-27'} = 'http://virginiatriathlonseries.com/image/cache/data/Slides/GaintAcorn2012Banner-900x447.gif';
$www::CalendarClass{'2014-09-28'} = $www::CalendarClass{'2014-09-27'};
$www::CalendarClass{'2014-09-12'} = 'http://my.ragnarrelay.com/relay/images/ragnar-logo-wonky.png';
$www::CalendarClass{'2014-09-13'} = $www::CalendarClass{'2014-09-12'};
$www::CalendarClass{'2014-09-20'} = 'http://www.ironman.com/~/media/d4ff020eb3174c7a930aff5695d269d0/ironman%20maryland%20230x110%201.png';
$www::CalendarClass{'2014-10-25'} = 'USBeach2Battleship';

$www::CalendarClass{'2015-06-14'} = 'http://www.vtsmts.com/wp-content/uploads/2014/10/GeneralSmallwood_Sprint-No-Date.png';
$www::CalendarClass{'2016-05-21'} = 'http://www.vtsmts.com/wp-content/uploads/2014/06/GeneralSmallwood_2014.jpg';
$www::CalendarClass{'2016-05-22'} = 'http://www.vtsmts.com/wp-content/uploads/2014/10/GeneralSmallwood_Sprint-No-Date.png';
$www::CalendarClass{'2015-09-12'} = 'http://www.civilwarcentury.com/images/Home1.jpg';
$www::CalendarClass{'2015-09-26'} = 'http://www.vtsmts.com/wp-content/uploads/2015/01/Giant-Acorn-Int_2015.png?09c3d1';
$www::CalendarClass{'2015-09-27'} = $www::CalendarClass{'2015-09-26'};

1;
