var CurrentDate = new Date();
var thisMonth = CurrentDate.getMonth() + 1;
var thisDay = CurrentDate.getDate();
var thisYear = CurrentDate.getYear();
var thisHour = CurrentDate.getHours();
var thisMinute = CurrentDate.getMinutes();



if (navigator.appName == 'Netscape'){
	thisYear = thisYear + 1900;
}

var thisDate = (thisYear * 10000) + (thisMonth * 100) + thisDay;
var thisDateTime = (thisDate * 10000) + (thisHour * 100) + thisMinute;



// **************
// ** Holidays **
// **************

// Thanksgiving
if (thisMonth == 11 && thisDay == 27){
	document.writeln("<br><b><font size=+1 color=#FF0000><i>Happy Thanksgiving!</i></font></b><br><br>");
}

// Christmas
if (thisMonth == 12 && thisDay == 25){
	document.writeln("<br><center>");
	document.writeln("<img src=images/barholly.gif width=540 height=24 border=0>");
	document.writeln("<br><br>");
	document.writeln('<img src="images/christmas08.gif" alt="" width="194" height="70" border="0" align="middle">');
	document.writeln("<br><br>");
	document.writeln("<img src=images/barholly.gif width=540 height=24 border=0>");
	document.writeln("</center><br><br>");
}

// Hanukkah
if (thisDateTime >= 200812211647 && thisDateTime < 200812291652){
	document.writeln("<br><center>");
	document.writeln("<table border=0><tr><td align=center>");

	if (thisDateTime >= 200812211647 && thisDateTime < 200812221647){
		document.writeln("<img src=images/menorah/menorah1.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812221647 && thisDateTime < 200812231648){
		document.writeln("<img src=images/menorah/menorah2.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812231648 && thisDateTime < 200812241648){
		document.writeln("<img src=images/menorah/menorah3.gif width=97 height=150 border=0>");
	}	
	if (thisDateTime >= 200812241648 && thisDateTime < 200812251649){
		document.writeln("<img src=images/menorah/menorah4.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812251649 && thisDateTime < 200812261650){
		document.writeln("<img src=images/menorah/menorah5.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812261650 && thisDateTime < 200812271650){
		document.writeln("<img src=images/menorah/menorah6.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812271650 && thisDateTime < 200812281651){
		document.writeln("<img src=images/menorah/menorah7.gif width=97 height=150 border=0>");
	}
	if (thisDateTime >= 200812281651 && thisDateTime < 200812291652){
		document.writeln("<img src=images/menorah/menorah8.gif width=97 height=150 border=0>");
	}
	
	document.writeln("<br><b><font size=+1 color=#FF0000><i>Happy Hanukkah!</i></font></b><br><br>");
	document.writeln("</td></tr></table></center>");
	
}

// New Years
if (thisMonth == 1 && thisDay == 1){
	document.writeln("<br><b><font size=+1 color=#FF0000><i>Happy New Year!</i></font></b><br><br>");
}

// Valentine's Day
if (thisMonth == 2 && thisDay == 14){
	document.writeln("<br><b><font size=+1 color=#FF0000><i>Happy Valentine's Day!</i></font></b><br><br>");
}

// St. Patrick's Day
if (thisMonth == 3 && thisDay == 17){
	document.writeln("<br><b><font size=+1 color=#008800><i>Happy St. Patrick's Day!</i></font></b><br>");
	document.writeln("<b><font color=#008800><i>Beannachtí na féile Pádraig agat!</i></font></b><br><br>");
}


// **************
// ** Messages **
// **************

document.writeln('<img src = "photos/2009 Camporee/slide2.jpg" alt="Camporee" height=100 width=150 hspace=30>');
document.writeln('<img src = "photos/2009 Camporee/slide3.jpg" alt="Camporee" height=100 width=150 hspace=30>');
document.writeln('<img src = "downloads/WoodBadge.jpg" alt="Wood Badge Reunion" height=100 width=150 hspace=30>');
document.writeln('<br>');
document.writeln('<br>');

document.writeln('<br>');
document.writeln('<br>');


document.writeln('<br><font size="4"><b><u>UPCOMING EVENTS</u></b></font><br><br>');




if (thisDate < 20100901){
	document.writeln("<hr><b>Webelos Woods Directions.</b><br>");
	document.writeln('<br>');
	document.writeln('1382 Cumberstone Rd, Harwood, MD 20776.');
	document.writeln('<br><br>');
	document.writeln('Rt 2 South from Annapolis. <br>');
	document.writeln('Turn onto Rt 214 East <br>');
	document.writeln('Turn Right onto Muddy Creek Rd and go 4.5 miles<br>');
	document.writeln('Turn Left onto Cumberstone Rd and go 1.2 miles<br>');
	document.writeln('Go Thorugh the Gateway <br>');
	document.writeln('Turn Right at the Old Tractor <br>');
	
  document.writeln('<br>');
}


if (thisDate < 20100502) {
      document.writeln('<hr><br><b>Camporee 2010</b><br><br>')
      document.writeln('Join us for an international adventure as we explore Scouting traditions from around the world!');
      document.writeln(' The theme of The Capitol District Camporee for 2010 will be “Scouting Around the World”, and will feature games, ...</b>.');
      document.writeln('<a href="downloads/2010_Camporee_Flyer.pdf" target = _blank> (more info...)</a><br><br>');
  }

if (thisDate < 20100502) {
  document.writeln('<hr><br><b>Wood Badge Reunion</b><br><br>')
  document.writeln('All interested Scouters are invited to Return To Gilwell Sunday May 2nd.  Purchase tickets before April 15!');
  document.writeln('<a href="downloads/2010_WoodBadgeReunionFlyer.pdf" target = _blank> (more info...)</a><br><br>');
}

if (thisDate < 20100508) {
    document.writeln('<hr><br><b>Archery Instructor Certification Course</b><br><br>')
    document.writeln('Find yourself scrambling every year to get qualified people to run your Cub Day Camp archery program? ');
    document.writeln('Do you get inquiries from units or Camporee program people asking who in your district is qualified to ');
    document.writeln('run archery at Broad Creek?  Need archery merit badge instructors in your district? ');
    document.writeln('<a href="https://www.doubleknot.com/registration/calendardetail.asp?ActivityKey=767371" target = _blank> (more info and online registration...)</a><br><br>');
}

if (thisDate < 20100515) {
    document.writeln('<hr><br><b>Red Cross CPR/AED Adult Class</b><br><br>')
    document.writeln('Jim McNitt is teaching the Adult CPR/AED class at Trinity United Methodist Church ');
    document.writeln('Wednesday evening May 12 and Friday evening May 14. ');
    document.writeln('<a href="downloads/flyers/RedCrossTraining.html" target = _blank> (more info...)</a><br><br>');
}

if (thisDate < 20100701) {
    document.writeln('<hr><br><b>Camp Tomahawk</b><br><br>');
    document.writeln('This years theme is <b>Cubs In Time: 100 Years Of Scouting</b>.  ');
    document.writeln('Join us at the Anne Arundel County Fairgrounds <b>July 12 - 16</b> for a week chock full of BBs, Archery, Fishing,');
    document.writeln('and other fun and exciting Cub Scout activities.  ');
    document.writeln('<a href="downloads/2010_Camp_Tomahawk_Flyer.pdf" target=_blank>(more info...)</a>');
    document.writeln('<br><br>');
}



if (thisDate < 20100823) {
    document.writeln('<hr><br><b>Webelos Woods Pre Registration</b><br><br>')
    document.writeln('Download the excel 2007 file and email it to: ');
    document.writeln('Doug Anderson:  anderson@chesapeake.net. ');
    document.writeln('<a href="downloads/Webeloswoods2010/Webelos Woods 2010 Registration Form.xlsx" target = _blank> (WW2010 Registration Form...)</a><br><br>');
}



if (thisDate < 20100114) {
    document.writeln('<b>Advanced Winter Camping Trip</b><br>');
    document.writeln('Sign up now for the Advanced Winter Camping Trip,');
    document.writeln('being held Friday Feb. 12 through Sunday Feb. 14. ');
    document.writeln('Registration deadline is January 14, at Roundtable.');
    document.writeln('<a href="AdvancedWinterCampingFlyer.html" target = "_blank"> more info...</a>');
    document.writeln('<br>');
    document.writeln('<br><br>');

}

if (thisDate < 20100128) {
    document.writeln('<b>Baltimore Area Council Recognition Dinner</b><br>');

    document.writeln('<br>');
    document.writeln('Get your tickets now for the 2010 BAC Recognition Dinner,');
    document.writeln('being held Thursday January 28 at the B&O Railroad Museum in Baltimore. ');
    document.writeln('Check out the flyer <a href="downloads/BAC_Recognition_Dinner_2010.pdf" target = "_blank"> here. </a>');
    //Doug Fish's email address
    document.writeln('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#102;&#105;&#115;&#104;&#64;&#116;&#104;&#105;&#114;&#100;&#115;&#116;&#111;&#114;&#109;&#46;&#99;&#111;&#109;">Doug Fish</a>');
    document.writeln('has tickets for sale.');
    document.writeln('<br><br>');

}

if (thisDate < 20100219) {
    document.writeln('<hr><b>The Capitol District Klondike Derby </b><br>');

    document.writeln('<br>');
    document.writeln('The District Klondike Derby will be held Saturday Feb. 20, starting at 7:30 am, at the Gladway Farm in Bowie.');
    document.writeln('<a href="2010_Klondike_Town_Mayors_Guide.html" target = "_blank"> (more info...) </a><br>');
}

if (thisDate < 20100227) {
    document.writeln('<hr><br><b>The Capitol District Pinewood Derby </b><br>');

    document.writeln('<br>');
    document.writeln('The Capitol District Pinewood Derby will take place <b>Saturday, February 27th</b>, at the Westfield Annapolis Mall.  Registration begins at 9:00 AM with derby racing starting at 12:00 noon.');
    document.writeln('<a href="downloads/2010_Capital_District_Pinewood_Derby_Rules.pdf" target = "_blank"> Derby rules can be found here </a>');
    document.writeln('<br><br>');

}

if (thisDate < 20100301) {
    document.writeln('<hr><br><b>Trainer Development Conference</b><br>');
    document.writeln('The BAC Trainer Development Conference originally scheduled for Saturday Feb. 6 has been rescheduled to Saturday Feb. 27.<br>,');
    document.writeln('<br><br>');
}


if (thisDate < 20100210) {
    document.writeln('<hr><b>Scouting For Food</b><br>');
   
    document.writeln('<br>');
    document.writeln('Bag Distribution: <b>Thursday, February 11, 2010</b> at the Roundtable<br>,');
    document.writeln('<br><br>');
}


document.writeln('<br><font size="4"><b><u>ONGOING EVENTS</u></b></font><br><br>');


// encrypt Steve Rose's email
var emailriddlerarray = [115, 98, 46, 114, 111, 115, 101, 64, 118, 101, 114, 105, 122, 111, 110, 46, 110, 101, 116]
var encryptedemail_id68 = '' //variable to contain encrypted email 
for (var i = 0; i < emailriddlerarray.length; i++)
    encryptedemail_id68 += String.fromCharCode(emailriddlerarray[i])


document.writeln('<b>The Capitol District Roundtable</b>');
document.writeln('<br>');

if (thisDate < 20100201) {
document.writeln('<br>');
document.writeln('<font size="+1">');
document.writeln('<b>*** Temporary Location Change ***</b><br>');
document.writeln('The January 2010 Roundtable will be held at Annapolis High School, on Riva Rd.. ');
document.writeln('<br></font>');
document.writeln('<br>');
document.writeln('<hr>');
document.writeln('<br>');
}


document.writeln('All Scout Leaders are encouraged to attend the District Roundtable, held on the 2nd Thursday of every month (except June and July), \n');
document.writeln('at Chesapeake Christian Fellowship Church, 377 W Central Ave in Davidsonville, at Route 214 and Brick Church Road',
		'<A HREF="http://www.mapquest.com/maps? &city=Davidsonville&state=MD&address=377+W+Central+Ave&country= US&CID=lfmaplink" target="_blank"> (Map This Location)</A> <br>');
document.writeln('<br>');
document.writeln('Venture Roundtable begins at 7:00 pm<br>');
document.writeln('Cub Scout and Boy Scout Roundtable begins at 7:30 pm<br>');

document.writeln('<br>');
document.write('For more Info contact <a href="mailto:' + encryptedemail_id68 + '?subject=Scout Leaders Roundtable">District Commissioner Steve Rose</a><br>');

document.writeln('<br>');


document.writeln('<font size="-1">');
document.writeln('<hr><b>Operation Welcome Home Maryland</b>');
document.writeln('<br>');
document.writeln('Hundreds of our Sailors, Airmen, Soldiers and Marines return from the military actions in Iraq and Afghanistan every week through the gates of the');
document.writeln(' Baltimore/Washington International Thurgood Marshall Airport. From January 2009 through October 2009, Operation Welcome Home volunteers ');
document.writeln('have greeted 168 flights and 34,329 Soldiers, Sailors, Airmen and Marines, an average of 233 per flight!  Bob Hogan, our District coordinator for this ');
document.writeln('community service invites you to come on out and help welcome them home!<br><br>');
document.writeln('Take a look at <a href="http://www.operationwelcomehomemd.org/" target = "_blank">Operation Welcome Home Marylands event calendar </a>');
document.writeln('to see the current month’s event dates, or call their hotline at (410) 630-1555 for recorded information about the next event. ');
document.writeln('Be sure to call the hotline again before you leave for the airport, to confirm the flight has not been delayed or cancelled. <br><br> ');
document.writeln('Thank you for considering this valuable community service project!');
document.writeln('<br>');


if (thisDate < 20110101) {
    document.writeln("<hr><b>2010 is the 100th anniversary of the founding of the Boy Scouts of America.</b><br>");
    document.writeln('<br>');
    document.writeln('Mark your calendar to go see ');
    document.writeln('<a href="http://www.baltimorebsa.org/openrosters/ViewOrgPageLink.asp?LinkKey=30076&orgkey=749" target = "_blank">');
    document.writeln('Adventure Base 100, </a> ');
    document.writeln(' coming to the Baltimore Inner Harbor in July 2010 <br>');
    document.writeln('Check out the ');
    document.writeln('<a href="http://www.baltimorebsa.org/openrosters/ViewOrgPageLink.asp?LinkKey=30084&orgkey=749" target = "_blank">');
    document.writeln('Baltimore Area Council </a>');
    document.writeln('	an the <a href="http://scouting.org/100years/100years/" target = "_blank">National Council </a>');
    document.writeln('100th Anniversary sites for more news and events<br>');

    document.writeln('<br>');
}

if (thisDate < 20101004) {
    document.writeln('<hr>');
    document.writeln('<b>Star Spangled Camporee</b>');
    document.writeln('<br><br>');
    document.writeln('<table cellpadding="5">');
    document.writeln('<tr>');
    document.writeln('<td valign="middle">');
    document.writeln('<img src="images/starspangledbanner15smv.gif" alt="" width="63" height="100" border="0">');
    document.writeln('</td>');
    document.writeln('<td>');
    document.writeln('<font size="-1">');
    document.writeln('The Baltimore Area Council will celebrate the 100th Anniversary of Scouting in America by holding');
    document.writeln('a camporee at Fort McHenry and the surrounding Baltimore City Parks during October 1 - 3, 2010.');
    document.writeln('<br><br>');
    document.writeln('View the invitation from Honorary Co-Chair Brigadier General James A. Adkins');
    document.writeln('<a href="downloads/flyers/StarSpangledCamporeeInvitation.pdf" target="_blank">here....</a> ');
    document.writeln('<br><br>');
    document.writeln('The registration brochure can be found ');
    document.writeln('<a href="downloads/flyers/StarSpangledCamporeeBrochure.pdf" target="_blank">here....</a> ');
    document.writeln('<br><br>');
    document.writeln('See the ');
    document.writeln('<a href="downloads/flyers/StarSpangledCamporee.pdf" target="_blank">flyer</a> ');
    document.writeln('to get more information about this exciting opportunity for your scouts.');
    document.writeln('<br><br>');
    document.writeln('If you really want to get into the Star Spangled Spirit, check out the ');
    document.writeln('<a href="downloads/flyers/StarSpangledCouncilStripsLoops.pdf" target="_blank">');
    document.writeln('Star Spangled Council Strips and Shoulder Loops.');
    document.writeln('</a>');
    document.writeln('</font>');
    document.writeln('<br><br>');
    document.writeln('<font size="1">');
    document.writeln('Flag clipart courtesy of <a href="http://www.historical-flag.com" target="_blank">Historical-Flag.com</a>');
    document.writeln('</font>');
    document.writeln('</td>');
    document.writeln('</tr>');
    document.writeln('</table>');
    document.writeln('<br>');
}

if (thisDate < 20110101) {
    document.writeln("<hr><b>&quot;On My Honor, I Will Do My Best.....To Help Other People....&quot;</b><br>");
    document.writeln('<br>');
    document.writeln('We want to brag about the Scouts and Scouters in our District who are a strong positive influence in our communities.');
    document.writeln('<br><br>');
    document.writeln('One way to do that is to keep a careful record of all our good deeds, service projects and Eagle Scout projects.&nbsp;');
    document.writeln('These add up to hundreds (perhaps even thousands) of hours of service to others.&nbsp;');
    document.writeln('Information on reporting the hours of service your Scouts, Scouters and parents contribute is available at Roundtable, ');
    document.writeln('or from your Unit Commissioner');
    document.writeln('<br>');


    document.writeln('<br>');
}


document.writeln('</font>');

//history
if (thisDate < 20100306) {
    document.writeln('<hr><br><b>Scouting For Food Update</b><br><br>');
    document.writeln('The County Food Bank will be open Saturday from 8:00am to 2:00pm, but will stay open if donations are still coming in. ');
    document.writeln('<a href="http://www.aafoodbank.org/More_About_the_Food_Bank.html" target = _blank>(directions to the Food Bank)</a>');
    document.writeln('Make sure to provide the Food Bank volunteer(s) with your Pack, Troop or Crew number.  ');
    document.writeln('Also make sure to update <a href="http://www.goodturnforamerica.org" target = _blank>Good Turn For America.</a>');
    document.writeln('<br>');
    document.writeln('Contact <a href=&#109;&#097;&#105;&#108;&#116;&#111;:&#109;&#099;&#119;&#102;&#114;&#105;&#101;&#115;&#101;&#064;&#118;&#101;&#114;&#105;&#122;&#111;&#110;&#046;&#110;&#101;&#116;&#032;&#032;>Mark Friese</a>,  410-956-0767, if you need more bags.');
    document.writeln('<br><br>');

}

if (thisDate < 20100327) {
    document.writeln('<hr><br><b>The Klondike Derby</b><br><br>')
    document.writeln('The Klondike Derby has been rescheduled to <b>March 27</b>.');
    document.writeln('<a href="2010_Klondike_Town_Mayors_Guide.html" target = _blank> (more info...)</a><br><br>');
}
if (thisDate < 20100410) {
    document.writeln('<hr><br><b>100 Pints For 100 Years Blood Drive</b><br><br>')
    document.writeln('Please consider donating a pint of blood at American Legion Post 226 in Edgewater on April 10.');
    document.writeln('<br><br>Important Note from Blood Drive Coordinator Tricia:<br><br><em>');
    document.writeln('At the present time the Red Cross cannot accept appointments due to an issue with their appointment system. ');
    document.writeln('They are working to correct the problem; but until then, in order to schedule an appointment to donate, ');
    document.writeln('you <a href="mailto:GiveBlood100Years@yahoo.com">MUST email me. </a> ');
    document.writeln(' Please provide me with your name, Troop or Pack # and your preferred time slot (between 9am-3pm). </em><br><br>');
    document.writeln('We are getting very close to our goal - Thank You All for your support! ');
    document.writeln('<br>.....Tricia Stecklein, Blood Drive Coordinator       ');
    document.writeln('<a href="downloads/Blood_Drive.pdf" target = _blank> (more info...)</a><br><br>');
}

if (thisDate < 20100417) {
    document.writeln('<hr><br><b>Outdoor Leader Training</b><br><br>')
    document.writeln('Basic Adult Leader Outdoor Orientation (BALOO), Outdoor Leader Skills for Webelos Leaders, and Intro to Outdoor Leader Skills ');
    document.writeln('will be offered the weekend of April 17-18 at the Scout Hut.</b>.');
    document.writeln('<a href="downloads/flyers/Outdoor_Leader_Training_2010.pdf" target = _blank> (more info...)</a><br><br>');
}

if (thisDate < 20091013){
	document.writeln("<hr><b>Webelos Woods Directions.</b><br>");
	document.writeln('<br>');
	document.writeln('1382 Cumberstone Rd, Harwood, MD 20776.');
	document.writeln('<br><br>');
	document.writeln('Rt 2 South from Annapolis. <br>');
	document.writeln('Turn onto Rt 214 East <br>');
	document.writeln('Turn Right onto Muddy Creek Rd and go 4.5 miles<br>');
	document.writeln('Turn Left onto Cumberstone Rd and go 1.2 miles<br>');
	document.writeln('Go Thorugh the Gateway <br>');
	document.writeln('Turn Right at the Old Tractor <br>');

	
  document.writeln('<br>');
}

if (thisDate < 20091122){
	document.writeln("<hr><b>Sign up now for the American Red Cross (ARC) Standard First Aid (SFA) and CPR/Automated External Defibrillator (AED) Class scheduled for Saturday, November 21, 2009, from 8 AM to 5 PM at Trinity United Methodist Church on 1300 West St in Annapolis.</b><br>");
	document.writeln('<br>');
	document.writeln('This is an excellent class for adult leaders who lead boys in areas where professional medical care is available within 30 minutes.  You will learn how to safely approach a victim, recognize and care for life-threatening conditions, and check for and care for other injuries and illnesses until the professional emergency medical responders arrive. You will aslo learn the skills and knowledge to perform CPR and use an AED on people 12 years and older.  The CPR/AED – Adult certificate is good for one year. ');
	document.writeln('The SFA certificate is good for 3 years. Cost is $35 (a bargain!) and includes the participants manual and a CPR filtershield. Contact Intructor Jim McNitt at jmcnitt222@aol.com or at 410-353-2865. Max class size is 10 students. ');
	document.writeln('<br><br>');
}

if (thisDate < 20091013){
	document.writeln('<hr><b>Webelos Woods</b><br>');
	document.writeln('October 9-11, 2009<br>');
	document.writeln("Location has been determined<br>");
	document.writeln("<br>");
	document.writeln("This exciting weekend is the kickoff for your Webelos Scout Program.&nbsp;");
	document.writeln("It is also an opportunity for your Webelos to show off the Scout skills they have learned and to learn new ones.");
	document.writeln('<br><br>');
	document.writeln('<a href="webeloswoods.html">See the Webelos Woods page for details.</a>');
	document.writeln('<br>');
}

if (thisDate < 20091107){
	document.writeln('<hr><b>Cub Scout Pow Wow</b><br>');
	document.writeln('November 7, 2009<br>');
	document.writeln("<br>");
	document.writeln('This is a great opportunity to have some fun, learn something new, and meet other Cub Leaders.&nbsp;');
	document.writeln("You won't want to miss this!!");
	document.writeln('<br><br>');
	document.writeln('<a href="downloads/flyers/2009PowWow_flyer.pdf" target="_blank">See the flyer for details.</a>');
	document.writeln('<br>');
}




if (thisDate < 20091230){
	document.writeln('<hr><b>5 positive, proactive ways you can help Scouts Through United Way</b><br>');
	document.writeln('<br>');

	document.writeln('<a href="downloads/flyers/United Way statement ad.pdf" target="_blank">See the flyer for details.</a>');
	document.writeln('<br>');
}






