//////////////////// Agenda file for CalendarXP 9.0 /////////////////
// This file is totally configurable. You may remove all the comments in this file to minimize the download size.
/////////////////////////////////////////////////////////////////////

//////////////////// Define agenda events ///////////////////////////
// Usage -- fAddEvent(year, month, day, message, action, bgcolor, fgcolor, bgimg, boxit, html, etc);
// Note:
// 1. the (year,month,day) identifies the date of the agenda event.
// 2. the message param will be shown as tooltip and in the status bar.
// 3. setting the action param to null will disable that date with a line-through effect.
// 4. bgcolor is the background color.
// 5. fgcolor is the font color. Setting it to ""(empty string) will hide the date.
// 6. bgimg is the url of the background image file in use with the specific date.
// 7. if boxit is set other than false or null value, the date will be drawn in a box using boxit value as the color, or bgcolor if boxit is true.
// 8. html is the HTML string to be injected into the agenda cell, e.g. an <img> tag.
// 9. etc is any object you would like to associate with the date, so that you can retrieve it later via the fGetEvent().
// ** REMEMBER to unlock corresponding bits of the gAgendaMask option in the theme.
/////////////////////////////////////////////////////////////////////

//fAddEvent(2005,12,1," Click me to active your email client. ","popup('mailto:any@email.address.org?subject=email subject')","#87ceeb","dodgerblue",null,true);
// fAddEvent(2004,4,1," Let's google. ","popup('http://www.google.com','_top')","#87ceeb","dodgerblue",null,"gold");
// fAddEvent(2004,9,23, "Hello World!\nYou can't select me.", null, "#87ceeb", "dodgerblue");

fAddEvent(2005,12,1, "Den Meeting, 3:30 pm; Leadership Committee, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2005,12,2, "Lock In No. 2", "#87ceeb", "dodgerblue");
fAddEvent(2005,12,15, "Firestation Visit, 3:45 pm; Pack Meeting, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2005,12,17, "Olive Plaza Gift Giving, 10:00 am; Pizza and Movie afterward", "#87ceeb", "dodgerblue");
fAddEvent(2006,1,5, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,1,12, "Leadership Meeting, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,1,19, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,1,26, "Pack Meeting, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,1,14, "Pack Goes Sledding, 8:00 am", "#87ceeb", "dodgerblue");
fAddEvent(2006,2,11, "Pinewood Derby, 9:00 am", "#87ceeb", "dodgerblue");
fAddEvent(2006,2,16, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,2,2, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,2,10, "Pinewood Derby Cars Must Be Completed and Checked In, Time TBA", "#87ceeb", "dodgerblue");

fAddEvent(2006,3,16, "Pack Meeting, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,3,2, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,3,23, "Den Meeting and Lacrosse, 3:30-6:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,3,9, "Leadership Committee, 7:00 pm", "#87ceeb", "dodgerblue");

fAddEvent(2006,4,6, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,4,13, "Leadership Committee, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,4,20, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,4,21, "District Pinewood Derby Check In, 6:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,4,22, "District Pinewood Derby Race, 10:00 am, Outing to KMTR, 6:10 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,4,27, "Pack Meeting, 7:00 pm", "#87ceeb", "dodgerblue");

fAddEvent(2006,5,4, "Den Meeting, 3:30 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,5,11, "Leadership Committee, 7:00 pm", "#87ceeb", "dodgerblue");
fAddEvent(2006,5,18, "Den Meeting, 3:30 pm at Alton Baker Park", "#87ceeb", "dodgerblue");
fAddEvent(2006,5,25, "Pack Meeting, Armitage Park", "#87ceeb", "dodgerblue");

fAddEvent(2006,6,4, "Pack Pizza and Bowling", "#87ceeb", "dodgerblue");
fAddEvent(2006,6,22, "Residential Camp 1", "#87ceeb", "dodgerblue");
fAddEvent(2006,6,23, "Residential Camp 1", "#87ceeb", "dodgerblue");
fAddEvent(2006,6,24, "Residential Camp 1", "#87ceeb", "dodgerblue");
fAddEvent(2006,6,25, "Residential Camp 1", "#87ceeb", "dodgerblue");

fAddEvent(2006,7,7, "Scout Night at the Ems", "#87ceeb", "dodgerblue");
fAddEvent(2006,7,20, "Bar-B-Que and Swimming, 5:30 pm", "#87ceeb", "dodgerblue");

fAddEvent(2006,8,10, "Residential Camp 2 (through 13th)", "#87ceeb", "dodgerblue");

fAddEvent(2006,8,11, "Pack Campout", "#87ceeb", "dodgerblue");
fAddEvent(2006,8,12, "Pack Campout", "#87ceeb", "dodgerblue");
fAddEvent(2006,8,13, "Pack Campout", "#87ceeb", "dodgerblue");

fAddEvent(2006,8,17, "Residential Camp 3", "#87ceeb", "dodgerblue");
fAddEvent(2006,8,18, "Residential Camp 3", "#87ceeb", "dodgerblue");
fAddEvent(2006,8,19, "Residential Camp 3", "#87ceeb", "dodgerblue");
fAddEvent(2006,8,20, "Residential Camp 3", "#87ceeb", "dodgerblue");

fAddEvent(2006,9,29, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");
fAddEvent(2006,9,30, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");
fAddEvent(2006,10,1, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");

fAddEvent(2006,10,7, "Lone Pine Farms, 10 am", "#87ceeb", "green");
fAddEvent(2006,10,12, "Den Meeting (Dens 2 and 3), 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2006,10,13, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");
fAddEvent(2006,10,14, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");
fAddEvent(2006,10,15, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");
fAddEvent(2006,10,17, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2006,10,26, "Den Meeting (Den 2 and 7), 3:45, Coburg Fire Station", "#87ceeb", "gold");
fAddEvent(2006,10,1, "Fun with Son Weekend, Camp Baker", "#87ceeb", "dodgerblue");

fAddEvent(2006,11,4, "Scouting for Food, Sheldon Parking Lot, 9:00 am", "#87ceeb", "dodgerblue");
fAddEvent(2006,11,11, "Scouting for Food, Sheldon Parking Lot, 10:00 am", "#87ceeb", "dodgerblue");
fAddEvent(2006,11,9, "Den Meeting (Den 2), 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2006,11,21, "Pack Meeting and Cake Auction, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2006,11,30, "Possible Den Meeting, 3:30, EBF", "#87ceeb", "gold");

fAddEvent(2006,12,12, "Pack Meeting with rehearsal for Olive Plaza, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2006,11,16, "Olive Plaza Event, Time TBA", "#87ceeb", "dodgerblue");

fAddEvent(2007,1,7, "Leadership Committee, 7:00 pm, Dick Jacobson's House", "#87ceeb", "dodgerblue");
fAddEvent(2007,1,11, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,1,16, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2007,1,25, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");

fAddEvent(2007,2,6, "Leadership Committee, 7:00 pm, Dick Jacobson's House", "#87ceeb", "dodgerblue");
fAddEvent(2007,2,16, "Pinewood Derby Car Check In, 6:30-8:30 pm, Meadowlark/Buena Vista Cafeteria", "#87ceeb", "dodgerblue");
fAddEvent(2007,2,17, "Pinewood Derby, 9:00 am, Meadowlark/Buena Vista Cafeteria", "#87ceeb", "dodgerblue");
fAddEvent(2007,2,20, "Pack Meeting, Webelos Crossovor", "#87ceeb", "indianred");
fAddEvent(2007,2,8, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,2,22, "Den Meeting-CANCELLED, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,2,24, "Pack Snow Trip", "#87ceeb", "dodgerblue");

fAddEvent(2007,3,6, "Leadership Committee, 7:00 pm, Dick Jacobson's House", "#87ceeb", "dodgerblue");
fAddEvent(2007,3,1, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,3,22, "Blue and Gold Banquet, Vets Club, 1626 Willamette, 6-8 pm", "#87ceeb", "indianred");
fAddEvent(2007,3,15, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");

fAddEvent(2007,4,10, "Leadership Committee, 7:00 pm, Dick Jacobson's House", "#87ceeb", "dodgerblue");
fAddEvent(2007,4,5, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,4,17, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2007,4,19, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");

fAddEvent(2007,5,8, "Leadership Committee, 7:00 pm, Dick Jacobson's House", "#87ceeb", "dodgerblue");
fAddEvent(2007,5,10, "Den Meeting, 3:30, EBF", "#87ceeb", "gold");
fAddEvent(2007,5,15, "Final Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");

fAddEvent(2007,9,8, "Grand Opening, Scout Service Center, 10-11:00 am, 2525 Martin Luther King Jr. Blvd.", "#87ceeb", "dodgerblue");
fAddEvent(2007,9,11, "Roundup Night, Call for place/time", "#87ceeb", "indianred");
fAddEvent(2007,9,18, "Pack Meeting and Popcorn Sale Kickoff, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2007,10,16, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2007,11,20, "Pack Meeting and Cake Auction, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2007,12,15, "Olive Plaza Giftgiving", "#87ceeb", "dodgerblue");
fAddEvent(2008,1,15, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2008,2,16, "Pinewood Derby", "#87ceeb", "dodgerblue");
fAddEvent(2008,2,19, "Pack Meeting and Blue & Gold Banquet", "#87ceeb", "indianred");
fAddEvent(2008,3,18, "Pack Meeting and Crossover, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2008,4,15, "Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2008,5,15, "Final Pack Meeting, 7:00, Meadowlark/BV Cafeteria", "#87ceeb", "indianred");
fAddEvent(2008,6,8, "June Pack Activity", "#87ceeb", "dodgerblue");



///////////// Recurring Events /////////////////////////
// fHoliday() provides you a flexible way to create recurring events easily.
// Once defined, it'll be used by the calendar engine to render each date cell.
// An agenda array [message, action, bgcolor, fgcolor, bgimg, boxit, html, etc] 
// is expected as return value, which are similar to the params of fAddEvent().
// Returning null value will result in default style as defined in the theme.
// ** REMEMBER to unlock corresponding bits of the gAgendaMask option in the theme.
////////////////////////////////////////////////////////
function fHoliday(y,m,d) {
	var rE=fGetEvent(y,m,d), r=null;

	// you may have sophisticated holiday calculation set here, following are only simple examples.
	if (m==1&&d==1)
		r=[" Jan 1, "+y+" \n Happy New Year! ",gsAction,"skyblue","red"];
	else if (m==12&&d==21)
		r=[" Dec 21, "+y+" \n Winter Solstice! ",gsAction,"skyblue","red"];
	else if (m==12&&d==25)
		r=[" Dec 25, "+y+" \n Merry Christmas and First Night of Chanuka! ",gsAction,"skyblue","red"];
	else if (m==7&&d==1)
		r=[" Jul 1, "+y+" \n Canada Day ",gsAction,"skyblue","red"];
	else if (m==7&&d==4)
		r=[" Jul 4, "+y+" \n Independence Day ",gsAction,"skyblue","red"];
	else if (m==11&&d==11)
		r=[" Nov 11, "+y+" \n Veteran's Day ",gsAction,"skyblue","red"];
	else if (m==1&&d<25) {
		var date=fGetDateByDOW(y,1,3,1);	// Martin Luther King, Jr. Day is the 3rd Monday of Jan
		if (d==date) r=[" Jan "+d+", "+y+" \n Martin Luther King, Jr. Day ",gsAction,"skyblue","red"];
	}
	else if (m==2&&d<20) {
		var date=fGetDateByDOW(y,2,3,1);	// President's Day is the 3rd Monday of Feb
		if (d==date) r=[" Feb "+d+", "+y+" \n President's Day ",gsAction,"skyblue","red"];
	}
	else if (m==2&&d<8) {
		var date=fGetDateByDOW(y,2,1,7);	// Scout Sunday is the first Sunday of Feb
		if (d==date) r=[" Feb "+d+", "+y+" \n Scout Sunday ",gsAction,"skyblue","red"];
	}
	else if (m==9&&d<15) {
		var date=fGetDateByDOW(y,9,1,1);	// Labor Day is the 1st Monday of Sep
		if (d==date) r=[" Sep "+d+", "+y+" \n Labor Day ",gsAction,"skyblue","red"];
	}
	else if (m==11&&d>15) {
		var date=fGetDateByDOW(y,11,4,4);	// Thanksgiving is the 4th Thursday of November
		if (d==date) r=[" Nov "+d+", "+y+" \n Thanksgiving Day (U.S.) ",gsAction,"skyblue","red"];
	}
	else if (m==5&&d>20) {
		var date=fGetDateByDOW(y,5,5,1);	// Memorial day is the last Monday of May
		if (d==date) r=[" May "+d+", "+y+" \n Memorial Day ",gsAction,"skyblue","red"];
	}

	
	return rE?rE:r;	// favor events over holidays
}



