
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": "Silk Tree Pointe",
	

	
		"subdivision": "Mulberry Park Ph 03",
	

	
		"zip": 30517,
	

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

	
		"price": "178,000",
	

	
		"date": "Jan 18, 2007",
	

	
		"city": "Braselton",
	

	
		"id": 838277,
	

	
		"coordinates": {"latitude": 34.126830001, "longitude": -83.8175},
	

	
		"number": 6542,
	


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

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

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30517/mulberry_park_ph_03",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe",
	

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

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe/6542",
	

	"null":null
}

			
			,
			
		
			{

	
		"streetname": "Silk Tree Pointe",
	

	
		"subdivision": "Mulberry Park Ph 03",
	

	
		"zip": 30517,
	

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

	
		"price": "0",
	

	
		"date": "Nov 13, 2006",
	

	
		"city": "Braselton",
	

	
		"id": 833605,
	

	
		"coordinates": {"latitude": 34.126830001, "longitude": -83.8175},
	

	
		"number": 6542,
	


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

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

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30517/mulberry_park_ph_03",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe",
	

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

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe/6542",
	

	"null":null
}

			
			,
			
		
			{

	
		"streetname": "Silk Tree Pointe",
	

	
		"subdivision": "Mulberry Park Ph 03",
	

	
		"zip": 30517,
	

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

	
		"price": "174,000",
	

	
		"date": "Jun 09, 2005",
	

	
		"city": "Braselton",
	

	
		"id": 782966,
	

	
		"coordinates": {"latitude": 34.126830001, "longitude": -83.8175},
	

	
		"number": 6542,
	


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

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

	
	"sub_link": "http://homesales.ajchomefinder.com/homesales/subdivision/30517/mulberry_park_ph_03",
	

	
	"street_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe",
	

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

	
	"address_link": "http://homesales.ajchomefinder.com/homesales/street/30517/silk_tree_pointe/6542",
	

	"null":null
}

			
		
	];
	
	center = new google.maps.LatLng(34.126830001,-83.8175);
	
	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);

