    var map;
	var active;
    
    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(38.989559, -77.095329), 13);
      }
    }
	
	clubs = new Array();
	clubs['bethesda'] = new Array(38.989559, -77.095329,"Bethesda, MD","Bethesda offers easy parking and is convenient to the Metro, restaurants and shopping, and only minutes outside our nation's capital.");
	clubs['frederick'] = new Array(39.417271, -77.443520,"Frederick, MD", "Westridge Square located in Frederick, MD, has plenty of free parking, and is convenient to movies, and shopping.");
	clubs['gaithersburg'] = new Array(39.156158, -77.165344,"Gaithersburg, MD","Located in a mostly residential area with convenient parking, Flower Hill is among the more popular clubs with our members. ");
	clubs['germantown'] = new Array(39.179131, -77.238235,"Germantown, MD","Germantown which opened in 1996, has recently undergone a major expansion, which has added an additional 4,000 sq. ft. to this club.");
	clubs['north-potomac'] = new Array(39.117573, -77.251755,"N Potomac, MD","The North Potomac (Gaithersburg) Fitness First, is located in the Potomac Valley Center at the corner of Darnestown and Quince Orchard Roads.");
	clubs['olney'] = new Array(39.152580, -77.063423,"Olney, MD","With plenty of parking and the convenience of shopping in close proximity, Olney is one of our member's favorite locations.");
	clubs['rockville'] = new Array(39.075932, -77.138191,"Rockville, MD","This 2-level club is one of the more aesthetically pleasing locations, packed full of the latest fitness equipment. ");
	clubs['silver-spring'] = new Array(39.091045, -77.044792,"Silver Spring, MD","Silver Spring, managed by Brian Dewey, boasts state-of-the-art fitness equipment and professional, highly motivated fitness trainers.");
	clubs['alexandria'] = new Array(38.810646, -77.132095,"Alexandria, VA","Celebrating the grand opening in May of 2001, Alexandria is one the largest clubs in the Northern Virginia area.");
	clubs['leesburg'] = new Array(39.109318, -77.552773,"Leesburg, VA","The Leesburg club, offers all the amenities our members have come to expect from our family of health clubs.");
	clubs['reston'] = new Array(39.109318, -77.349075,"Reston, VA","Reston's amenities include sauna and steam facilities, state-of-the-art fitness equipment and childcare services.");
	clubs['tysons-corner'] = new Array(38.915977, -77.226883,"Tysons, VA","Tysons Corner, one of our newer clubs, is located on the second floor of the PNC Bank Building, just a block from Tyson's Corner Mall.");
	clubs['washington-dc'] = new Array(38.903446, -77.043457,"Washington DC","The club features all of the amenities and services you've become used to at Fitness First, but for much less than any other club in the DC area.");
	clubs['boca-raton'] = new Array(26.367821, -80.174599,"Boca Raton, FL","The 15,000 sq. ft. facility features a full-service locker room and a large variety of group excercise classes.");
	clubs['chantilly'] = new Array(38.894142, -77.427971,"Chantilly, VA","The completely renovated facility features the latest fitness equipment, sauna and steam amenities and dozens of classes.");
	clubs['falls-church'] = new Array(38.871777, -77.153763,"Falls Church, VA","One of our newest and largest health clubs to date, Falls Church features the latest equipment, classes, and spacious locker rooms.");
	clubs['ashburn'] = new Array(39.010380, -77.490501,"Ashburn, VA","This club boasts 15,000 square feet of state-of-the-art equipment, group exercise and cycling programs with a wide variety of classes.");
	clubs['arlington'] = new Array(38.888466, -77.083694,"Alrington, VA","The new club is over 19,000 sf, the largest Fitness First to date. It boasts the lowest rates by far ever to be found in Arlington, VA.");
    
	function go_to(club) {
	  animate_to(clubs[club][0],clubs[club][1]);
	  map.addOverlay(new GMarker(new GLatLng(clubs[club][0],clubs[club][1])));
	  $('club_descriptions').update(club_html(club));
	  make_active(club);
	  //alert(club);
    }
	
	function club_html(club) {
		return "<h2>"+clubs[club][2]+"</h2>\
				<p>"+clubs[club][3]+"</p>\
				<a href='https://www.fitnessfirstclubs.com/join-health-club.php' class='join-button'>Join Now</a>\
				<a href='"+club+"-health-club.html' class='club-button'>Club Info</a>";
	}
	
	function make_active(club) {
	  if(active){
		$(active).removeClassName('active');
	  }
	  $(club).addClassName('active');  
	  active = club;
	}
	
	function animate_to(lang,long) {
	  map.panTo(new GLatLng(lang, long));
	}

			
		//
		//  In my case I want to load them onload, this is how you do it!
		// 
		Event.observe(window, 'load', loadAccordions, false);
	
		//
		//	Set up all accordions
		//
		function loadAccordions() {
			var bottomAccordion = new accordion('locations_container');
			
			// Open first one
			bottomAccordion.activate($$('#locations_container .accordion_toggle')[0], { resizeSpeed : 8, direction : 'vertical' });
		}
		