
google.load("maps", "2.x");

function add_markers() {

	mapobj = new google.maps.Map2(document.getElementById("map"));
	mapobj.addControl(new GSmallMapControl());
	mapobj.addControl(new GScaleControl());
	mapobj.addControl(new GOverviewMapControl());
	var center = new google.maps.LatLng(33.77,-84.37);
	mapobj.setCenter(center,10);

	var locations = [
		
			{

	
		"streetname": "Crestworth Xing",
	

	
		"subdivision": "Meadows/northcrest 02",
	

	
		"zip": 30127,
	

	
		"hsr_url": "Http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/paulding/30127",
	

	
		"price": "130,000",
	

	
		"date": "May 26, 2009",
	

	
		"city": "Powder Springs",
	

	
		"id": 1313642,
	

	
		"coordinates": {"latitude": 33.829726451, "longitude": -84.743614193},
	

	
		"number": 291,
	


	
	"zip_link": "http://homesales.ajchomefinder.com/homesales/zip/30127",
	

	
	"city_link": "http://homesales.ajchomefinder.com/homesales/city/powder_springs",
	

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30127/meadows%7Cnorthcrest_02",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing",
	

	
	"hsr_link": "http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/Paulding/30127",
	

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing/291",
	

	"null":null
}

			
			,
			
		
			{

	
		"streetname": "Crestworth Xing",
	

	
		"subdivision": "Meadows/northcrest 02",
	

	
		"zip": 30127,
	

	
		"hsr_url": "Http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/paulding/30127",
	

	
		"price": "160,000",
	

	
		"date": "Jul 30, 2007",
	

	
		"city": "Powder Springs",
	

	
		"id": 1068306,
	

	
		"coordinates": {"latitude": 33.829726451, "longitude": -84.743614193},
	

	
		"number": 291,
	


	
	"zip_link": "http://homesales.ajchomefinder.com/homesales/zip/30127",
	

	
	"city_link": "http://homesales.ajchomefinder.com/homesales/city/powder_springs",
	

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30127/meadows%7Cnorthcrest_02",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing",
	

	
	"hsr_link": "http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/Paulding/30127",
	

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing/291",
	

	"null":null
}

			
			,
			
		
			{

	
		"streetname": "Crestworth Xing",
	

	
		"subdivision": "Meadows/northcrest 02",
	

	
		"zip": 30127,
	

	
		"hsr_url": "Http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/paulding/30127",
	

	
		"price": "155,000",
	

	
		"date": "Apr 26, 2007",
	

	
		"city": "Powder Springs",
	

	
		"id": 1000661,
	

	
		"coordinates": {"latitude": 33.829701642, "longitude": -84.743783199},
	

	
		"number": 337,
	


	
	"zip_link": "http://homesales.ajchomefinder.com/homesales/zip/30127",
	

	
	"city_link": "http://homesales.ajchomefinder.com/homesales/city/powder_springs",
	

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30127/meadows%7Cnorthcrest_02",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing",
	

	
	"hsr_link": "http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/Paulding/30127",
	

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing/337",
	

	"null":null
}

			
			,
			
		
			{

	
		"streetname": "Crestworth Xing",
	

	
		"subdivision": "Meadows/northcrest 02",
	

	
		"zip": 30127,
	

	
		"hsr_url": "Http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/paulding/30127",
	

	
		"price": "144,677",
	

	
		"date": "Jan 02, 2007",
	

	
		"city": "Powder Springs",
	

	
		"id": 1000362,
	

	
		"coordinates": {"latitude": 33.829726451, "longitude": -84.743614193},
	

	
		"number": 291,
	


	
	"zip_link": "http://homesales.ajchomefinder.com/homesales/zip/30127",
	

	
	"city_link": "http://homesales.ajchomefinder.com/homesales/city/powder_springs",
	

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30127/meadows%7Cnorthcrest_02",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing",
	

	
	"hsr_link": "http://projects.ajchomefinder.com/atlanta-home-sales-report/detail/Paulding/30127",
	

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30127/crestworth_xing/291",
	

	"null":null
}

			
		
	];
	
	center = new google.maps.LatLng(33.82972024875,-84.7436564445);
	
	var zoom = 16;
	
	window.mapobj.setCenter(center,zoom);
	

	var i;
	for(i=0;i<locations.length;i++) {
		var lat = locations[i].coordinates.latitude;
		var lng = locations[i].coordinates.longitude;
		var point = new google.maps.LatLng(lat,lng);
		var marker = new google.maps.Marker(point);
		GEvent.addListener(marker, "click", 
			create_info_closure(marker,locations[i]));
		mapobj.addOverlay(marker);
	}

}

google.setOnLoadCallback(add_markers);

