
	var rows = new Array(12);
	var CalendarDate = new Array(50);
	var CalendarEvent = new Array(50);
	var month = new Array(50);
	var day = new Array(50);
	var time = new Array(50);
	var body = new Array(50);
	var event = new Array(50);
	var TheDate = new Array(50);
	var TheTDDate = new Array(50);
	var CalendarCount = 0; 
	var EventCount = 0; 
	var MonthCount = 0;
	
	var MonthName = new Array(12);		
	MonthName[0]  = "January";					  
	MonthName[1]  = "February";
	MonthName[2]  = "March";
	MonthName[3]  = "April";
	MonthName[4]  = "May";
	MonthName[5]  = "June";
	MonthName[6]  = "July";
	MonthName[7]  = "August";
	MonthName[8]  = "September";
	MonthName[9]  = "October";
	MonthName[10] = "November";
	MonthName[11] = "December";	 
	
	var ClassDescription = new Array(18);
	var GPS               = 0; 
	var BoatTennesee      = 1;
	var BoatSmart         = 2;
	var EXCOM             = 3;
	var EngineMaintenance = 4;
	var Weather	          = 5;
	var Knots             = 6;
	var PaddleSmartSeminar= 7;
	var CruisePlanning    = 8;
	var InstructorDev     = 9;
	var Seamanship        = 10;
	var JuniorNavigator   = 11;
	var Piloting          = 12;
	var SkipperSaver      = 13;
	var Radio             = 14;
	var AdvancedPiloting  = 15;
	var BoatHandling      = 16;
	var ChartSeminar      = 17;
	var MarineRadarSeminar= 18;

	ClassDescription[PaddleSmartSeminar]      = '<div style="float: left; padding-right: 5px;"><img src="../Images/Kayak2.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[PaddleSmartSeminar]      +='<b>Paddle Smart</b>&nbsp;- ';
	ClassDescription[PaddleSmartSeminar]      +='Welcome to the world of paddlesports.   According to the National Marine Manufacturers Association, ';
	ClassDescription[PaddleSmartSeminar]      +='kayaks and canoes accounted for some 54% of new boats sold in 2006 – over 493,000 crafts.  ';
	ClassDescription[PaddleSmartSeminar]      +='Kayaking, canoeing or rowing are enjoyable opportunities to get close to nature, have a great ';
	ClassDescription[PaddleSmartSeminar]      +='time, and get some quality exercise in the process.  This seminar is intended for those about ';
	ClassDescription[PaddleSmartSeminar]      +='to join the sport and those considering purchasing paddling equipment.';
	ClassDescription[PaddleSmartSeminar]      +='<br><br>Cost: $25.00 Members,  $30.00 Non-Members.   ';

	ClassDescription[MarineRadarSeminar]      = '<div style="float: left; padding-right: 5px;"><img src="../Images/radar.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[MarineRadarSeminar]      +='<b>Marine RADAR</b>&nbsp;- ';
	ClassDescription[MarineRadarSeminar]      +='This seminar covers how radar functions, radar selection, operation of the radar under various ';
	ClassDescription[MarineRadarSeminar]      +='conditions including setting of controls, display interpretation, basic navigation, and collision ';
	ClassDescription[MarineRadarSeminar]      +='avoidance using radar. The kit includes The Radar Book written by Kevin Monahan ($25 retail) and ';
	ClassDescription[MarineRadarSeminar]      +='Student Notes with copies of slides.';
	ClassDescription[MarineRadarSeminar]      +='<br><br>';

	ClassDescription[ChartSeminar]      = '<div style="float: left; padding-right: 5px;"><img src="../Images/Map.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[ChartSeminar]      +='<b>How to Read a Chart Seminar</b>&nbsp;- ';
	ClassDescription[ChartSeminar]      +=' provides information essential to your safety afloat. Even with GPS and electronic navigation, ';
	ClassDescription[ChartSeminar]      +='the chart is needed to tell you what is around you and between you and your intended destination. A system ';
	ClassDescription[ChartSeminar]      +='of symbols is used by cartographers to tell you what lies below the surface of the water and the depths of ';
	ClassDescription[ChartSeminar]      +='water. The chart also is your link with the GPS via its grid scale, compass rose, and distance scales. ';
	ClassDescription[ChartSeminar]      +='A brief introduction to latitude and longitude provides insight to the operation of GPS receivers. The ';
	ClassDescription[ChartSeminar]      +='NOAA Chart No. 1 is the quintessential reference to chart details, but is very difficult to understand. ';
	ClassDescription[ChartSeminar]      +='This seminar walks you through what you really need to know in an entertaining and interesting fashion, ';
	ClassDescription[ChartSeminar]      +='and provides you with a Maptech Waterproof flip-fold waterproof Chart Symbols and On-the-Water Guide to ';
	ClassDescription[ChartSeminar]      +='take along on the boat with you.<br><br>'; 

	ClassDescription[BoatHandling]      = '<div style="float: left; padding-right: 5px;"><img src="../Images/BoatHandling.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[BoatHandling]      +='<b>Boat Handling Under Power Seminar</b>&nbsp;- shows boaters how to depart and dock under a variety of conditions as well ';
	ClassDescription[BoatHandling]      +='as all about trimming the boat underway. The seminar materials include a ';
	ClassDescription[BoatHandling]      +="waterproof USPS <i>Captain's Quick Guide</i> and Student Notes.<br><br>Cost: $20.00 Members,  $25.00 Non-Members. ";

	ClassDescription[AdvancedPiloting]  = '<div style="float: left; padding-right: 5px;"><img src="../Images/AdvancedPiloting.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[AdvancedPiloting]  +='<b>Advanced Piloting</b>&nbsp;- The second part of the study of inland and coastal navigation, with strong emphasis ';
	ClassDescription[AdvancedPiloting]  +='on the latter is <i>Advanced Piloting</i>. The student learns many more advanced positioning techniques and is introduced ';
	ClassDescription[AdvancedPiloting]  +='to the phenomena of tides and tidal currents and their impact on piloting. Also covered are the simple use of the ';
	ClassDescription[AdvancedPiloting]  +='marine sextant and various modern electronic navigation systems for positioning and course planning.';

	ClassDescription[Radio]             = '<div style="float: left; padding-right: 5px;"><img src="../Images/Radio.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[Radio]             +='<b>VHF & VHF/DSC Radio Seminar</b>&nbsp;- ';
	ClassDescription[Radio]             +='VHF radio is the mainstay of coastal communication and essential for emergency communications. ';
	ClassDescription[Radio]             +='Digital Selective Calling (DSC) is rapidly becoming a reality as more Coast Guard Rescue 21 System ';
	ClassDescription[Radio]             +='operations go live. DSC vastly simplifies and improves rescue and routine call signaling – making ';
	ClassDescription[Radio]             +='it easier to make a call while the system frees up Channel 16 for essential communications. However, ';
	ClassDescription[Radio]             +='you need to know how to use it. This seminar answers those needs and explains basic VHF operation. ';
	ClassDescription[Radio]             +='A CD is included with a DSC Simulator that allows you to practice on your computer at home. ';
	ClassDescription[Radio]             +='A handy waterproof McGraw-Hill Captain’s Quick Guide Using VHF is included with essential information ';
	ClassDescription[Radio]             +='that you should have aboard, which will explain to anyone on your crew how to use the radio.';
	ClassDescription[Radio]             +='<br><br>'; 

	ClassDescription[SkipperSaver]      = '<div style="float: left; padding-right: 5px;"><img src="../Images/Skipper Saver.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[SkipperSaver]      +='<b>Skipper Saver Seminar</b>&nbsp;- <i>Man overboard</i> is not the only emergency that can occur on a boat, ';
	ClassDescription[SkipperSaver]      +='but it may be the most dreaded. Skipper Saver teaches your family members and friends what to do and how to ';
	ClassDescription[SkipperSaver]      +='operate the boat if you become disabled for any reason from a fall overboard to something as simple as a ';
	ClassDescription[SkipperSaver]      +='sprained ankle or seasickness. This guide is must-reading for anyone who may have to take over operation of a vessel in an emergency.';

	ClassDescription[Piloting]          = '<div style="float: left; padding-right: 5px;"><img src="../Images/Sextant3.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[Piloting]          +='<b>Piloting course</b>&nbsp;-  The Piloting course is the first in the sequence of USPS courses on navigation, ';
	ClassDescription[Piloting]          +='covering the basics of coastal and inland navigation. This all-new course focuses on navigation as it is done ';
	ClassDescription[Piloting]          +='on recreational boats today and embraces GPS as a primary navigation tool while covering enough of traditional ';
	ClassDescription[Piloting]          +='techniques so the student will be able to find his/her way even if their GPS fails. The course includes many ';
	ClassDescription[Piloting]          +='in-class exercises, developing the student’s skills through hands-on practice and learning. Topics covered include: ';
	ClassDescription[Piloting]          +='<ul><li>Charts and their interpretation</li><li>Navigation aids and how they point to safe water</li>';
	ClassDescription[Piloting]          +='<li>Plotting courses and determining direction and distance</li>';
	ClassDescription[Piloting]          +='<li>The mariner’s compass and converting between True and Magnetic</li>';
	ClassDescription[Piloting]          +='<li>Use of GPS – typical GPS displays and information they provide, setting up waypoints and routes, staying on a GPS route.</li>';
	ClassDescription[Piloting]          +='<li>Pre-planning safe courses and entering them into the GPS</li>';
	ClassDescription[Piloting]          +='<li>Monitoring progress and determining position by both GPS and traditional techniques such as bearings and dead reckoning</li>';
	ClassDescription[Piloting]          +='<li>The “Seaman’s Eye” – simple skills for checking that one is on course.</li></ul>'; 

	ClassDescription[JuniorNavigator]   = '<div style="float: left; padding-right: 5px;"><img src="../Images/Sextant2.gif" width="70" alt="" border="0" style="float: left;"></div>';
	ClassDescription[JuniorNavigator]   +='<b>Junior Navigation</b>&nbsp;-  begins the study of offshore (open-ocean) navigation - integrated electronic ';
	ClassDescription[JuniorNavigator]   +="positioning systems, sight taking with a mariner's sextant on the sun, moon, planets, and stars, how to ";
	ClassDescription[JuniorNavigator]   +='reduce sights using the nautical almanac to determine position, and passage planning with special open-ocean charts.'; 

	ClassDescription[Seamanship]        = '<div style="float: left; padding-right: 5px;"><img src="../Images/Seamanship.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[Seamanship]        +='<b>Seamanship course (Members Only)</b>&nbsp;- ';
	ClassDescription[Seamanship]        +='Interested in more than a basic Boating Course?  Our Seamanship course includes your ';
	ClassDescription[Seamanship]        +='first years membership in Music City Power Squadron! Building on the basics of recreational'	;
	ClassDescription[Seamanship]        +='boating, Seamanship adds foundational information for continuing boater education. The ';
	ClassDescription[Seamanship]        +='course contents should facilitate knowledge development for increased safe operation of ';
	ClassDescription[Seamanship]        +='recreational boats and provide the basis for completion of USCG licensing examination. ';
	ClassDescription[Seamanship]        +='Emphasis within the course has been placed on higher level boating skills, rules of the ';
	ClassDescription[Seamanship]        +='road, and marlinspike. The class meets on Tuesdays beginning August 3rd from 6:00pm ';
	ClassDescription[Seamanship]        +='to 8:00pm for 8 weeks.  Course fee is $130.00 and includes first year squadron (single) membership. ';
	ClassDescription[Seamanship]        +=' Discounted course fee for current members.)'; 

	ClassDescription[InstructorDev]     = '<div style="float: left; padding-right: 5px;"><img src="../Images/Meeting.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[InstructorDev]     +='<b>Instructor Development & Recertification class</b>&nbsp;- Teaches effective communication skills for not only USPS instructors but everyone, c';
	ClassDescription[InstructorDev]     +='overing various methods of presenting information to others, effective use of audiovisual aids (including PowerPoint), etc.';	
											
	ClassDescription[CruisePlanning]    = '<div style="float: left; padding-right: 5px;"><img src="../Images/Boat.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[CruisePlanning]    +='<b>Cruise planning course</b>&nbsp;- ';
	ClassDescription[CruisePlanning]    +='This course is preparation for a cruise, whether the cruise is for a day, a week, a month or longer. ';
	ClassDescription[CruisePlanning]    +='Whether you are going to cruise on rivers, lakes, the coasts, or across the oceans, very valuable information ';
	ClassDescription[CruisePlanning]    +='is provided by those who have been there. The topics discussed are: planning the voyage, financing the voyage, ';
	ClassDescription[CruisePlanning]    +='equipping the boat, crew selection, provisioning, voyage management, navigation planning, weather, communications, ';
	ClassDescription[CruisePlanning]    +='entering and clearing foreign and domestic ports, anchors and anchoring, emergencies afloat, medical emergencies and security. ';

	ClassDescription[Knots]             = '<div style="float: left; padding-right: 5px;"><img src="../Images/Knot.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[Knots]             +='<b>Knots for Mariners Seminar</b>&nbsp;- The essentials of the boater’s repertoire are discussed in this seminar—the bowline, ';
	ClassDescription[Knots]             +='the sheet bend, the clove hitch, etc. — but so are such lesser-known gems as the hawser bend, the cow hitch, and many more. ';
	ClassDescription[Knots]             +='The Seminar includes the text Knots For Mariners published by International Marine/McGraw-Hill. It is illustrated with 200 ';
	ClassDescription[Knots]             +='fine drawings and this handy little how-to has something for every mariner. Also included is a Basic Knots CD packaged with ';
	ClassDescription[Knots]             +='two different colored pieces of light nylon line that help show when a knot is correctly tied.';
	ClassDescription[Knots]             +='<br><br>';
	
	ClassDescription[Weather]           = '<div style="float: left; padding-right: 5px;"><img src="../Images/Weather.gif" alt="" border="0" style="float: left;"></div>';
	ClassDescription[Weather]           +='<b>On Board Weather Forecasting seminar</b>&nbsp;- Changing weather conditions can convert what was a delightful day "';
	ClassDescription[Weather]           +='on the water into a real challenge. Forecasting what weather you will encounter is one of the top priorities for safe boating. ';
	ClassDescription[Weather]           +='Should we go out? When should we come in? These are important questions, but some fundamental understanding of the ';
	ClassDescription[Weather]           +='weather can help you make these decisions. That’s what this seminar is all about. While not a course in weather, ';
	ClassDescription[Weather]           +='this seminar explains ';
	ClassDescription[Weather]           +='how just using your own senses can help you determine what conditions you will encounter where you are.   ';
	ClassDescription[Weather]           +='The seminar explains weather systems, how to understand clouds and their changes, using changing wind direction, ';
	ClassDescription[Weather]           +='temperature, and pressure to hone in on emerging weather fronts. <br><br>';
	
    ClassDescription[EngineMaintenance] = '<img src="../Images/Steamboat.gif" width="70" height="50" alt="" border="0" style="float: left;">';
	ClassDescription[EngineMaintenance] += '<b>Engine maintenance course (members Only)</b>&nbsp;- ';
	ClassDescription[EngineMaintenance] += 'A course that stresses the diagnosis of modern systems, while also teaching the basics of engine ';
	ClassDescription[EngineMaintenance] += 'layout and operation. Gasoline inboards, outboards, and diesel engines are taught in a way that ';
	ClassDescription[EngineMaintenance] += 'reinforces the common aspects of how engines work.  Modern engines offer high reliability and ';
	ClassDescription[EngineMaintenance] += 'good performance through the use of computerized systems for fuel delivery and engine timing. ';
	ClassDescription[EngineMaintenance] += 'Most of these systems are “black boxes” that can no longer be serviced by weekend mechanics ';
	ClassDescription[EngineMaintenance] += 'with ordinary tools. The EM course covers those repairs that do-it-yourselfers can still perform, ';
	ClassDescription[EngineMaintenance] += 'teaches how to diagnose problems that might be beyond your ability to fix, and how to share ';
	ClassDescription[EngineMaintenance] += 'information with your mechanic so the right repairs get performed.  It also covers basic ';
	ClassDescription[EngineMaintenance] += 'mechanical systems such as drive systems (propellers), steering systems, and engine controls.<br><br>';
	
	ClassDescription[EXCOM]             = '<div style="background-color: gainsboro; padding-left: 5px; padding-right: 5px; float: left; border-top: thin solid #ff0000; border-bottom: thin solid #ff0000;">';
	ClassDescription[EXCOM]             +='<font style="color: black; font-size:14pt; font-family:Arial Black;">E</font>';
	ClassDescription[EXCOM]             +='<font style="color: blue; font-size:14pt; font-family:Arial Black;">X</font>';
	ClassDescription[EXCOM]             +='<font style="color: black; font-size:14pt; font-family:Arial Black;">COM</font></div><br>';
	ClassDescription[EXCOM]             +='<b>Squadron Executive Committe Meeting</b>&nbsp;';
	
	ClassDescription[GPS]               = '<img src="../Images/GPS.gif" alt="" border="0" style="float: left; padding-right: 5px;">';
	ClassDescription[GPS]               +='<b>Using GPS seminar</b>&nbsp; - ';
	ClassDescription[GPS]               +='GPS has become a common tool for navigation. However using GPS on the water is distinctly different from a ';
	ClassDescription[GPS]               +='moving map display in your car. This seminar explains the principles of waypoint navigation which you will ';
	ClassDescription[GPS]               +='use. It then shows you how to relate the GPS to your charts which provide essential information about what ';
	ClassDescription[GPS]               +='is around you. The seminar also shows you how to operate your GPS – what the buttons do, what the screens ';
	ClassDescription[GPS]               +='show, and how to access the functions you need.  You’ll also get some tips for choosing a GPS if you don’t ';
	ClassDescription[GPS]               +='currently own one. You will get a copy of the USPS GPS Guide and a waterproof McGraw-Hill ';
	ClassDescription[GPS]               +='<i>Captain’s Quick Guide Using GPS</i> to take aboard to remind you of the steps.';
	ClassDescription[GPS]               +='<br><br>'; 
	
	ClassDescription[BoatTennesee]      = '<img src="../Images/Boat Tennessee.gif" width="70" height="34" alt="" border="0" style="float: left;">';
	ClassDescription[BoatTennesee]      +='<b>Boat Tennessee course</b>&nbsp;is a boating education class for all children born after January <sup>1st</sup> 1989. ';
	ClassDescription[BoatTennesee]      +='You will receive classroom instruction on all requirement of the Tennessee Boating Certificate, including, general ';
	ClassDescription[BoatTennesee]      +='information on boats and maintenance, tips on being a more courteous boater, how to make your boating experience ';
	ClassDescription[BoatTennesee]      +='safer and more comfortable, laws and regulations to which you must adhere, and proper PWC operation. There is a minimum ';
	ClassDescription[BoatTennesee]      +='age of 11 to attend. You must purchase a TYPE 600 Boating Safely Exam Permit at any license agent and have it with you ';
	ClassDescription[BoatTennesee]      +='the day of the class. If a passing grade is achieved a temporary permit is issued the day of class. (Refreshments will be served). ';
	
	ClassDescription[BoatSmart]         = '<img src="../Images/boat_smart.gif" width="70" alt="" border="0" style="float: left;">';
	ClassDescription[BoatSmart]         +='<b>Boat Smart course</b>&nbsp;Boat Smart is a one day course for all boaters including personal ';
	ClassDescription[BoatSmart]         +='watercraft operators, hunters or fishermen operating an outboard utility boat, canoe and kayak ';
	ClassDescription[BoatSmart]         +='paddlers, skippers of a family cruiser, and sailing enthusiasts.  All boaters must follow the ';
	ClassDescription[BoatSmart]         +='same nautical rules, regulations, and courtesies of the sea.  As boating is often a family ';
	ClassDescription[BoatSmart]         +='activity, the course is of value to all members of a boating family and are they encouraged  ';
	ClassDescription[BoatSmart]         +='to attend as a group.  The course “Get\'s Started” with boat terms and types, boat handling, ';
	ClassDescription[BoatSmart]         +='anchoring, water sport safety, and personal watercraft.  It also covers “What\'s Needed” in ';
	ClassDescription[BoatSmart]         +='equipment, regulations, and law enforcement as well as “Rules To Live By” with reviews of ';
	ClassDescription[BoatSmart]         +='aids to navigation, navigation rules, adverse conditions, and marine radio. '; 
	
	var Location = new Array(17);
	var SpringHill            = 0;
	var AirportResidenceInn   = 1; 
	var Logans                = 2;
	var MarriottCourtyard     = 3;
	var BrentwoodResidenceInn = 4;
	var ErwinMarine           = 5;
	var LavergneLibrary       = 6;
	var AirportMarriott       = 7;
	var HurricaneMarina       = 8;
	var RockHarbor            = 9;
	var SteamboatBills        = 10;
	var SmyrnaPublicLibrary   = 11;
	var AcademySportsRivergate= 12;
	var AcademySportsCoolSprings= 13;
	var CaneyForkFishCamp     = 14;
	var ElmHillMarina         = 15;
	var JuniorAchievement     = 16;
	var DuthieLearning        = 17;
								  
	Location[ElmHillMarina]         = '<a href="http://www.elmhillmarina.com/">Elm Hill Marina</a>';
    Location[RockHarbor]            = '<a href="http://www.rhyc.net/">Rock Harbor Yacht Club</a>';
	Location[AirportMarriott]       = '<a href="https://www.marriott.com/hotels/travel/bnatn">Nashville Airport Marriott</a>';
	Location[ErwinMarine]           = '<a href="http://www.erwinmarinesales.com/">Erwin Marine Sales Office</a>';
	Location[LavergneLibrary]       = '<a href="http://www.lavergne.org/mod.php?mod=userpage&menu=1005&page_id=20">Lavergne Public Library</a>';
	Location[SpringHill]            = '<a href="http://www.marriott.com/hotels/travel/bnasa-springhill-suites-nashville-airport/">SpringHill Suites by Marriott – Nashville Airport</a>';
	Location[AirportResidenceInn]   = '<a href="http://www.marriott.com/hotels/travel/bnabn-residence-inn-nashville-airport/">Residence Inn by Marriott - Nashville Airport</a>';
	Location[Logans]                = '<a href="http://maps.msn.com/(huv0w3551ecic455txmomo45)/map.aspx?L=USA&C=36.14869%2c-86.80727&A=7.16667&P=|36.14869%2c-86.80727|1|2400+Elliston+Pl%2c+Nashville%2c+TN+37203|L1|" target="rbottom"> Logan' + "'" + 's Roadhouse</a> at 2404 Elliston Place, near Vanderbilt University';
	Location[MarriottCourtyard]     = '<a href="http://www.marriott.com/hotels/travel/bnabr-courtyard-nashville-brentwood/">Marriott Courtyard, Brentwood</a>'; 
	Location[BrentwoodResidenceInn] = '<a href="http://www.marriott.com/hotels/travel/bnamf-residence-inn-nashville-brentwood/">Marriott Residence Inn, Brentwood</a>'; 
    Location[HurricaneMarina]       = '<a href="http://www.waverunnerrentals.net/lakenet/marina.html">Hurricane Resort & Marina, 864 Floating Mill Rd. Silver Point, TN 38582</a>'; 
    Location[SteamboatBills]        = '<a href="http://www.steamboatbillsoftennessee.com">Steamboat Bill\'s, 248 Sanders Ferry Road in Hendersonville</a>'; 
    Location[SmyrnaPublicLibrary]   = '<a href="http://www.linebaugh.org/smyrna/home.htm">Smyrna Public Library, 400 Enon Springs Rd., Smyrna, TN37167</a>'; 
    Location[AcademySportsRivergate]= '<a href="http://www.academy.com/index.php?page=content&target=company%2Flocator%2Flanding&postalCode=37115&imageField.x=0&imageField.y=0">Academy Sport & Outdoors, Rivergate Store, 2350 Gallitin Pike North, Madison, TN 37115</a>'; 
    Location[AcademySportsCoolSprings]= '<a href="http://www.academy.com/index.php?page=content&target=company%2Flocator%2Flanding&postalCode=37115&imageField.x=0&imageField.y=0">Academy Sports Cool Springs Store, 1915 Mallory Lane, Franklin, TN 37067-8224</a>'; 
    Location[CaneyForkFishCamp]     = '<a href="http://www.caneyforkfishcamp.com/">Caney Fork Fish Camp, 2400 Music Valley Dr, Nashville, TN 37214, (615) 724-1200</a>'; 
    Location[JuniorAchievement]     = '<a href="http://maps.google.com/maps?sourceid=navclient&rlz=1T4GGIK_enUS286US287&um=1&ie=UTF-8&cid=0,0,8271006816488586621&fb=1&split=1&gl=us&dq=junior+achievement+nashville&daddr=120+Powell+Pl,+Nashville,+TN+37204&geocode=6856565840021845963,36.104945,-86.764512&ei=toIUSoraGM-rtgfpl8GWBA&sa=X&oi=local_result&ct=directions-to&resnum=1">Junior Achievement conference room at 120 Powell Place</a>'; 
    Location[DuthieLearning]        = '<a href="hhttp://maps.google.com/maps?hl=en&client=firefox-a&rls=org.mozilla:en-US:official&hs=ZO4&q=3310%20West%20End%20Ave%2Cnashville%2Ctn&um=1&ie=UTF-8&sa=N&tab=wl">Duthie Learning, 3310 West End Ave. Suite 575</a>'; 

function writeTable(Type){
	 
//
// If the event field (the last field) contains the word "course", "seminar", or "class" it will appear in the 
// "Course Registration" part of the "Contact Us" page.	Note that the words "course", "class" and "begins" 
// will be stripped out of the event field to produce the class name... so be careful.	 Note that a non-breaking 
// space (&nbsp;) is used to delimit the text that will appear in the calendar.
//
// It would be a most excellent practice to check the appearance of both the Events page and the Class Registration 
// portion of the Contact Us page after modifying any of the writeEventRow calls below:
//
// Do not use abbreviations for the month.
//
// Be sure to remove all events that are over a year old
//
// January 2010
   EventDate = "20100112";
   EventTime ="1600";
   EventLeader = 'Robby Gilreath';
   EventIcon = '<img src="../Images/Red Cross.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">';
   EventName = "The Red Cross will be conducting an Adult CPR and First Aid Class";
   EventDesc = 'for the squadron at the Spring Hill Suites by Marriott – Nashville Airport on Tuesday January 12th from 1600 to 2130.  The Adult CPR Class seeks to help participants identify and eliminate potentially hazardous conditions in their environment, recognize emergencies and make appropriate decisions for first aid care.  It teaches the knowledge and skills that individuals need to know to give immediate care to an ill or injured person until more advanced medical care arrives.  The class does NOT include training on AED’s. We will order pizzas and have a working dinner.  The cost of the class is $58.00 per person.  Please contact Robby Gilreath to sign up for training. Visit the Nashville Red Cross Online Store if you need to purchase First Aid Kits or CPR supplies for use AFTER the class.  Everything you need for class will be provided.'
	writeEventRow(EventDate, EventTime, EventLeader, EventIcon + EventName + '&nbsp;' + EventDesc);
// February 2010
   writeEventRow('20100206,20100213,20100220,20100227', '1000-1200',      'Robby Gilreath',   '<img src="../Images/Americas Boating Course.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">America&#39;s Boating Course&nbsp;- eight one hour sections that will be taught over four consecutive Saturdays from 10:00 - 12:00.  The cost of the class is $35 for the material and families are welcome to share books.  Hamilton Creek Yacht Club');
   writeEventRow('20100220', '1800',      '&nbsp;',           '<img src="../Images/Clock.gif" border="0" width="80  alt="" border="0" style="float: left;">Change of watch at the ' + Location[RockHarbor]);  
   writeEventRow('20100227', '0800',      'Mike Majka',       ClassDescription[BoatTennesee] + '<br><br>The class will be held at the ' + Location[AcademySportsCoolSprings] +'.  Cost is $15');
// March 2010
   writeEventRow('20100306,20100313', '0800',      'Robby Gilreath',   '<img src="../Images/Americas Boating Course.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">America&#39;s Boating Course&nbsp;- eight one hour sections that will be taught over two consecutive Saturdays with the exam following on the second Saturday.  The cost of the class is $35 for the material and families are welcome to share books.' + Location[SpringHill]);
   writeEventRow('20100319,20100320,20100321', '-',      'Robby Gilreath',   '<img src="../Images/District 17 (reduced).jpg" border="0" alt="" border="0" style="float: left; margin-right: 5px;">District 17 Spring 2010 Conference&nbsp;- D/C Michael P. Scher, AP has called a District 17 council and conference to be held during the period of 19-21 March 2010 beginning with registration at 1300-1800 on the Delta Queen Steamboat located in Chattanooga, TN. Click <a href="../Files/District Call for Spring Conference 2010.pdf">here</a> for more details. ');
   //writeEventRow('20100327', '0800',      'Mike Majka',       ClassDescription[BoatTennesee] + '<br><br>The class will be held at the ' + Location[AcademySportsCoolSprings] +'.  Cost is $15');
// April 2010
   writeEventRow('20100403,20100410', '0800',      'Robby Gilreath',   '<img src="../Images/Americas Boating Course.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">America&#39;s Boating Course - eight one hour sections that will be taught over two consecutive Saturdays with the exam following on the second Saturday.  The cost of the class is $35 for the material and families are welcome to share books.' + Location[SpringHill]);
   writeEventRow('20100413', '1800-2000',  'Liz Nelson',       ClassDescription[Piloting] + ' Cost: $50.00 for members only.  Ten weeks. Will be rescheduled to a later date.'); 
   writeEventRow('20100417', '0900',      'Mike Majka',        ClassDescription[BoatTennesee] + '<br><br>The class will be held at the ' + Location[SmyrnaPublicLibrary] +'.  Cost is $15');
// May 2010
   writeEventRow('20100501,20100508', '0800',      'Robby Gilreath',   '<img src="../Images/Americas Boating Course.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">America&#39;s Boating Course - eight one hour sections that will be taught over two consecutive Saturdays with the exam following on the second Saturday.  The cost of the class is $35 for the material and families are welcome to share books.' + Location[SpringHill]);
   
	//                                                  *****************
	//                                                  *  GPS Seminar  *
	//                                                  *****************
	EventDate = "20100517";
	EventTime = "1800";
	EventLeader = 'Norm McBurney';
	EventName = "Using GPS Seminar";
	EventDesc =  ClassDescription[GPS] + Location[SpringHill] + '. Cost is $20.00'
	writeEventRow(EventDate, EventTime, EventLeader, EventDesc);
	//                                              **************************
	//                                              *  Marine Radar Seminar  *
	//                                              **************************
	EventDate = "20100518";
	EventTime = "1800";
	EventLeader = 'TBA';
	EventName = "Marine Radar Seminar";
	EventDesc =  ClassDescription[MarineRadarSeminar] + Location[SpringHill] + '. Cost is $25.00'
	writeEventRow(EventDate, EventTime, EventLeader, EventDesc);
	//                                      ******************************************
	//                                      *  On Board Weather Forecasting Seminar  *
	//                                      ******************************************
	EventDate = "20100519";
	EventTime = "1800";
	EventLeader = 'TBA';
	EventName = "On Board Weather Forecasting Seminar";
	EventDesc =  ClassDescription[Weather] + Location[SpringHill] + '. Cost is $16.00'
	writeEventRow(EventDate, EventTime, EventLeader,EventDesc);
	//                                           *********************************
	//                                           *  Using VHF/DSF Radio Seminar  *
	//                                           *********************************
	EventDate = "20100520";
	EventTime = "1800";
	EventLeader = 'TBA';
	EventName = "Using VHF/DSF Radio Seminar";
	EventDesc =  ClassDescription[Radio] + Location[SpringHill] + '. Cost is $20.00'
	writeEventRow(EventDate, EventTime, EventLeader,EventDesc);
	//                                           ********************************
	//                                           *  Knots for Mariners Seminar  *
	//                                           ********************************
	EventDate = "20100521";
	EventTime = "1800";
	EventLeader = 'TBA';
	EventName = "Knots for Mariners Seminar";
	EventDesc =  ClassDescription[Knots] + Location[SpringHill] + '. Cost is $24.00'
	writeEventRow(EventDate, EventTime, EventLeader,EventDesc);
	//                                           ********************************
	//                                           *  How to read a ChartSeminar  *
	//                                           ********************************
	EventDate = "20100524";
	EventTime = "1800";
	EventLeader = 'TBA';
	EventName = "How to read a Chart Seminar";
	EventDesc =  ClassDescription[ChartSeminar] + Location[SpringHill] + '. Cost is $20.00'
	writeEventRow(EventDate, EventTime, EventLeader,EventDesc);
	
    writeEventRow('20100530', '1000',      'Mike Majka',        '<img src="../Images/Mothballed.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Memorial Day Raft-Up. J.Percy Priest Lake.  Meet in Bryant Grove Cove around 1000 hrs.  Rain date Moday May 31st.');
// June 2010
    writeEventRow('20100605', '1600-2000',  'Robby Gilreath',     '<img src="../Images/Picnic.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Membership meeting and picnic at <a href="http://www.arringtonvineyards.com">Arrington Vineyards</a>. Pot luck.  Rain date June 6th.'); 
    writeEventRow('20100626', ' ',  'Tom Hudson',     '<img src="../Images/Cardboard Race.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Watts Bar cardboard boat race and district meeting.'); 
// July 2010
	writeEventRow('20100703', ' ',      'Robby Gilreath',   '<img src="../Images/Fireworks.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Fireworks celebration at the <a href="http://ppyc.org/">J. Percy Priest Yacht Club</a>.');
	writeEventRow('20100711', ' ',      'Robby Gilreath',   '<img src="../Images/Drag Boat.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;"><a href="http://www.explorekentuckylake.com/lakesarea/boating/kdba.htm">Kentucky Lake Drag Races</a> and membership meeting.');
	writeEventRow('20100724,20100731', '0800',      'Robby Gilreath',   '<img src="../Images/Americas Boating Course.jpg" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">America&#39;s Boating Course&nbsp;- two four hour sections that will be taught over two consecutive Saturdays with the exam following on the second Saturday.  The cost of the class is $35 for the material and families are welcome to share books.' + Location[SpringHill]);
// August 2010
	writeEventRow('20100809', ' ',      'Robby Gilreath',   '<img src="../Images/Chaffins Barn.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;"><a href="http://www.dinnertheatre.com/index.html">Chaffins Barn</a>.  Membership meeting and show, <i>Smoke on the Mountain Homecoming</i>.');
// September 2010
	writeEventRow('20100903', ' ',      'Robby Gilreath',   '<img src="../Images/Sounds.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;"><a href="http://web.minorleaguebaseball.com/index.jsp?sid=t556">Sounds</a> baseball game.');
	writeEventRow('20100911', '1800',      'Robby Gilreath',   '<img src="../Images/Meeting.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Membership meeting.');
	writeEventRow('20100803', '1800-2000', 'Liz Nelson', ClassDescription[Seamanship] + ' ' + Location[SpringHill]);
// October 200
	writeEventRow('20101002', ' ',      'Liz Nelson',   '<img src="../Images/Harrahs.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Gaming day trip to <a href="http://www.harrahsmetropolis.com">Harrahs, Metropolis</a>.');
	writeEventRow('20101015', ' ',      'Robby Gilreath',   ClassDescription[Weather]);
	writeEventRow('20101030', ' ',      'Robby Gilreath',   '<img src="../Images/Blue Heron.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Halloween cruise on the <a href="http://www.blueheroncruises.com">Blue Heron</a>.  Meet us for lunch at the <a href="http://riverviewrestaurantandmarina.com/flood_2010_update">Riverview Restaurant</a> or just join us for the cruise.</a>.  Check the restaurant&#39;s web site to be sure they&#39;ve been able to reopen.');
// November 2010
	writeEventRow('20101108', '1800',      'Robby Gilreath',   '<img src="../Images/Meeting.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Membership meeting.');
// December 2010
// January 2011
	writeEventRow('20110110', '1800',      'Robby Gilreath',   '<img src="../Images/Meeting 2.gif" border="0" width="80" alt="" border="0" style="float: left; margin-right: 5px;">Annual meeting.');

    writeEventRow('EOF', ' ', ' ', ' ', ' '); 
		
	var nRows = 0;
	var CellColor = 'DarkGray; text-decoration: line-through;"';
	var FontColor = 'SlateGray';
	var Style = '';
	var s
	var Current = false;
	var today = new Date();
	var mo = MonthName[today.getMonth()]; 

	if ( document.title == 'Music City Power Squadron - Events') {

		document.writeln("<center>");
		for (i = 1; i < CalendarCount; i++){
			s = '<a href="#' + TheDate[i] + 'd" style="text-decoration:none;"';
			s = s + ' onClick = "document.getElementById(' + "'" + TheDate[i] + "a').style.backgroundColor = '#fff'";
			s = s + ';document.getElementById(' + "'" + TheDate[i] + "b').style.backgroundColor = '#fff'";
			s = s + ';document.getElementById(' + "'" + TheDate[i] + "c').style.backgroundColor = '#fff'";
			s = s + ';document.getElementById(' + "'" + TheDate[i] + "d').style.backgroundColor = '#fff'";
	 		s = s + ';">' + CalendarEvent[i] + '</a>';
 
			DefineEvent(CalendarDate[i], s, "", "", 0, 0);
		}
		Calendar( );
		
		document.writeln("<br><br></center>");
		document.writeln("<table border='1' cellpadding='5' style='border: 2px solid black; background-color: #EEEEEE; font-size: 9pt;'>");
		document.writeln("<tr style='color: white; background-color: black;' cols='5'>");
		document.writeln("<td align='center' width='80'><b>Month</b></td>");
		document.writeln("<td align='center' width='65'><b>Day(s)</b></td>");
		document.writeln("<td align='center' width='50'><b>Time</b></td>");
		document.writeln("<td align='center' width='120'><b>Contact</b></td>"); 
		document.writeln("<td><b>Event</b></td>");
		document.writeln("</tr>");	
		 
		for (i = 1; i < EventCount; i++){
			if (month[i] == mo) 
			{
			   CellColor = 'LightGray; text-decoration: none;"'; 
			   FontColor = 'Black'; 
			}
			document.writeln('<tr>');	
			if ( month[i] != month[i-1] ) {
				nRows = nRows + 1;
				s = "<td align='center' rowspan='" + rows[nRows] + "'" + ' style="color: white; background-color: Gray;"><b>';
				s = s + month[i] +'</b></td>';
				document.writeln(s);}
			
			Style = 'style="color: ' + FontColor + '; background-color: ' + CellColor ;
			document.writeln("<td align='center' id='" + TheTDDate[i] +"a' " + Style + ">" + day[i] +  "</td>"); 
			document.writeln("<td align='center' id='" + TheTDDate[i] +"b' " + Style + ">" + time[i] + "</td>"); 
			
			s = '<a href="mailto:'
			if ( body[i] == 'Lyle Fuson')           { s = s + BuildAddress('lyle_fuson',     'gspnet',            'com')}
			else if ( body[i] == 'Norm McBurney')   { s = s + BuildAddress('MCPS',           'NRMcBurney',        'net')}
			else if ( body[i] == 'Liz Nelson')      { s = s + BuildAddress('MsBoatbug',      'AOL',               'com')}
			else if ( body[i] == 'Mike Majka')      { s = s + BuildAddress('sweetride',      'bellsouth',         'net')}			
			else if ( body[i] == 'Bob Duthie')      { s = s + BuildAddress('bob',            'duthielearning',    'com')}		 
			else if ( body[i] == 'Brian Lee')       { s = s + BuildAddress('blee',           'genesco',           'com')}		
			else if ( body[i] == 'Tom Hudson')      { s = s + BuildAddress('THudson',        'm-hc',              'com')}		
			else if ( body[i] == 'Robby Gilreath')  { s = s + BuildAddress('Robby.Gilreath', 'marriott',          'com')}		
			else if ( body[i] == 'David Mensel')    { s = s + BuildAddress('david',          'menselcpa',         'com')}		
			else if ( body[i] == 'Swineas')         { s = s + BuildAddress('ljswinea',       'rochestermarketing','net')}		
			else if ( body[i] == 'Suzanne Campbell'){ s = s + BuildAddress('scamp10220',     'comcast',           'net')}		
			else if ( body[i] == 'Ray Alley')       { s = s + BuildAddress('ralley',         'ups',               'com')}		
		    else if ( body[i] == 'Lyle Fuson ')     { s = s + BuildAddress('Lyle_Fuson',     'gspnet',            'com')}		
		    else if ( body[i] == 'Michael Swinea')  { s = s + BuildAddress('mswinea',        'rochestermarketing','net')}		
			else if ( body[i] == 'TBA')             { s = s + Address('Education Officer')}
			else s  = body[i];
			if ( s != body[i] )
			   {s = s + '?subject=MCPS Web Site - Request for additional class information'
			    s = s + '&bcc=' + Address('Education Officer') + '">'
			    s = s + body[i] + '</a>'};
				 
         document.writeln("<td id='" + TheTDDate[i] +"c' " + Style + ">" + s + "</td> "); 
			if ( ((event[i].indexOf('course') > 0) || (event[i].indexOf('class') > 0) || (event[i].indexOf('seminar') > 0) || (event[i].indexOf('Course') > 0) || (event[i].indexOf('Class') > 0) || (event[i].indexOf('Seminar') > 0) ) )  
			   {
				if (FontColor == 'Black') event[i] = event[i] + '.  Click <a href="Form-Class 2.htm">here</a> to register.';
				} 
			document.writeln("<td id='" + TheTDDate[i] +"d' " + Style + ">" + event[i] + "</td> "); 

			document.writeln("</span></tr>");
      }
   } else if (Type == 'Class')
	  {
 	      s = "";
			for (i = 1; i < EventCount; i++) {
				if (month[i] == mo) Current = true;	
				if ( ((event[i].indexOf('course') > 0) || (event[i].indexOf('class') > 0) || (event[i].indexOf('seminar') > 0) || (event[i].indexOf('Course') > 0) || (event[i].indexOf('Class') > 0) || (event[i].indexOf('Seminar') > 0) ) && Current )  
			   {
				document.writeln("<tr>"); 
				s = month[i] + ', ' + day[i] + ' - ' + event[i] + '<br><br>';
				//s = s.replace(/<\/?[^>]+(>|$)/g, ""); // Remove HTML tags from the event description
				n = s.indexOf('course'); 
				if (n > 0) s = s.substr(0,n-1) + s.substr(n+6);
				n = s.indexOf('class');
				if (n > 0) s = s.substr(0,n-1) + s.substr(n+5);
				n = s.indexOf('begins');
				if (n > 0) s = s.substr(0,n-1) + s.substr(n+6);

            document.writeln("<td valign='top' align='center'><input type='Checkbox' name='Class" + i +"' value='" + s +"'></td>");
			   document.writeln("<td valign='top'>" + s + "</td>"); 
				s = day[i] + ' / ' + time[i];
				if ( s == 'TBD / TBD' ) s= '/ TBD';
				s = month[i] + ' ' + s;
				document.writeln("<td valign='top'>" + s + "</td>"); 
				document.writeln("<td valign='top'>" + body[i] + "&nbsp;</td> "); 
				document.writeln("</tr>"); 
			   } 
         }
			if (s == "")
			   {
				document.writeln('<div align="center" style="font-size:12pt; margin-top:9; color:red;">');
				document.writeln("<b>No classes are currently scheduled.<br>"); 
				document.writeln("Please check back at a later date.</b><br><br></div>"); 
				}
	  } 
   document.close();
}
function stripZeros(num){
   var num,newTerm
	while (num.charAt(0) == "0") {
		newTerm = num.substring(1, num.length);
		num = newTerm;
	}
	if (num == "")
		num = "0";
	return num;
}

function writeEventRow (EventDate, Time, Body, TheEvent){ 

	var n = EventDate.slice(4,6);
	var DayS = EventDate.slice(6,8); 
	n = stripZeros(n);  
	var i = parseInt(n) - 1;
	var TheMonth = MonthName[i];
	var s;
	var SDate = parseInt(EventDate); 
    var sEventDate = EventDate.slice(0,9); 
	
	EventCount = EventCount + 1;
	if ( TheMonth != month[EventCount-1] ) { 
	   MonthCount = MonthCount + 1;
		rows[MonthCount] = 0;
		} 
	rows[MonthCount] = rows[MonthCount] + 1;
	month[EventCount] = TheMonth;
	if ( DayS == '01') Day = "1st"
	else if ( DayS == '02') Day = "2nd"
	else if ( DayS == '03') Day = "3rd"
	else if ( DayS == '04') Day = "4th"
	else if ( DayS == '05') Day = "5th"
	else if ( DayS == '06') Day = "6th"
	else if ( DayS == '07') Day = "7th"
	else if ( DayS == '08') Day = "8th"
	else if ( DayS == '09') Day = "9th"
	else if ( DayS == '10') Day = "10th"
	else if ( DayS == '11') Day = "11th"
	else if ( DayS == '12') Day = "12th"
	else if ( DayS == '13') Day = "13th"
	else if ( DayS == '14') Day = "14th"
	else if ( DayS == '15') Day = "15th"
	else if ( DayS == '16') Day = "16th"
	else if ( DayS == '17') Day = "17th"
	else if ( DayS == '18') Day = "18th"
	else if ( DayS == '19') Day = "19th"
	else if ( DayS == '20') Day = "20th"
	else if ( DayS == '21') Day = "21st"
	else if ( DayS == '22') Day = "22nd"
	else if ( DayS == '23') Day = "23rd"
	else if ( DayS == '24') Day = "24th"
	else if ( DayS == '25') Day = "25th"
	else if ( DayS == '26') Day = "26th"
	else if ( DayS == '27') Day = "27th"
	else if ( DayS == '28') Day = "28th"
	else if ( DayS == '29') Day = "29th"
	else if ( DayS == '30') Day = "30th"
	else if ( DayS == '31') Day = "31st"

	day[EventCount] = Day;
	// alert(TheMonth +'\n'+EventDate+'\n'+Day+'\n'+n+'\n'+DayS)
	time[EventCount] = Time;
	body[EventCount] = Body;
	TheTDDate[EventCount] = SDate;
	event[EventCount] = TheEvent;
	//
	// Add the event to the calendar
	//
	n = TheEvent.indexOf('&nbsp;');
	if ( n != 0) {
		do {
		CalendarCount = CalendarCount + 1;
		TheDate[CalendarCount] = SDate;
		CalendarDate[CalendarCount] = parseInt(EventDate);
		EventDate = EventDate.slice(9);
		CalendarEvent[CalendarCount] = TheEvent.slice(0,n);
		} while ( parseInt(EventDate) > 0 );	
	}
} 



